diff --git a/chunk-CJJRYHRM.js b/chunk-7TV72ZZQ.js similarity index 88% rename from chunk-CJJRYHRM.js rename to chunk-7TV72ZZQ.js index 15326469..877644f4 100644 --- a/chunk-CJJRYHRM.js +++ b/chunk-7TV72ZZQ.js @@ -1 +1 @@ -import{$a as fe,$b as hr,$c as Le,$d as Xr,A as xt,Aa as f,Ab as rr,Ac as rn,Ad as gn,Ae as $e,B as ie,Ba as h,Bb as ar,Bd as xi,Be as We,C as Pi,Ca as oe,Cd as ai,Ce as yn,D as Zo,Da as K,Db as Gi,Dd as fn,De as On,E as le,Ea as J,Eb as sr,Ed as _n,Ee as Dn,F as qo,Fa as $,Fb as lr,Fd as si,Fe as Pn,G as C,Ga as Bi,Gb as ur,Gd as jr,Ge as hi,H as Ge,Ha as ce,Hb as St,Hd as Br,He as gi,I as ro,Ia as b,Ib as Qe,Id as a,Ie as wn,J as ao,Ja as er,Jb as Ki,Jd as te,K as k,Ka as pe,Kb as dr,Kc as wr,Kd as Ur,Ke as aa,L as M,La as tr,Lb as cr,Lc as Fe,Ld as li,Le as sa,M as y,Ma as W,Mb as X,Mc as xr,Md as $r,Me as la,N as Wt,Na as Q,Nb as R,Nc as Ir,Nd as go,Ne as ua,O as It,Oa as lo,Ob as Qi,Oc as an,Od as Wr,P as w,Pa as Ui,Pb as ti,Pd as Yr,Q as x,Qa as $i,Qc as kr,Qd as fo,Ra as V,Rb as ot,Rc as Er,Rd as _o,S as ge,Sa as G,Sb as Xi,Sc as B,Sd as Gr,T as ke,Ta as Ct,Tb as Zi,Tc as Sr,Td as bt,U as Zt,Ua as j,Ub as pr,Uc as po,Ud as Lt,V as wi,Va as Te,Vb as mr,Vc as Fr,Vd as Ue,W as zi,Wb as qi,Wc as mo,Xa as uo,Xb as Ji,Xc as Ar,Xd as vn,Y as Vi,Yb as en,Yc as sn,Yd as ui,Za as Jt,Zc as ln,Zd as Kr,_a as ee,_c as rt,_d as Qr,aa as kt,ab as N,ac as ii,ad as Hr,ae as Zr,b as Uo,ba as Jo,bc as Ee,bd as oi,be as Cn,c as $o,ca as E,cc as Xe,cd as un,ce as qr,d as Pt,dc as co,dd as dn,de as Jr,e as wt,ec as gr,ed as Rr,ee as ea,f as Wo,fa as c,fc as Ze,fe as ta,g as Yo,ga as s,gc as fr,gd as Lr,ge as st,h as se,ha as Ce,hc as _r,hd as xe,he as ia,i as Go,ia as Y,ib as Wi,ic as vr,id as Ie,ie as na,j as Be,ja as et,jb as tt,jc as Cr,jd as ri,je as oa,k as L,ka as I,kb as we,kc as Se,kd as At,ke as vo,l as no,la as H,lb as it,lc as tn,ld as Ht,le as Mn,m as Hi,ma as u,mb as Re,mc as Mr,md as Nr,n as Ri,na as He,nb as ir,nc as Tr,nd as zr,ne as Tn,o as Pe,oa as F,ob as nr,oc as br,od as Vr,oe as di,p as Ko,pa as so,pb as nt,pc as nn,q as _t,qa as v,qc as yr,qe as ra,r as Qo,ra as m,rc as ni,rd as ho,re as ci,sa as g,sc as Or,sd as at,t as Xo,ta as S,tc as Ft,td as Mt,te as bn,u as vt,ua as ue,uc as on,ud as Rt,ue as _e,v as Ye,va as de,vb as Me,vc as Z,vd as cn,ve as be,w as oo,wa as qt,wb as ei,wc as re,wd as pn,we as pi,x as Li,xa as U,xb as or,xc as Dr,xd as mn,xe as lt,y as Xt,ya as Ke,yb as Yi,yc as Pr,yd as hn,ye as mi,z as Ni,za as ji,zb as Et,zd as Tt}from"./chunk-B52ZPIL7.js";var al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],decls:0,vars:0,template:function(e,n){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),da=(()=>{class t{constructor(e){this.autofilled=!1,this.tuiAutofilledChange=new Y,e.addComponent(al)}transitionStartHandler({propertyName:e,target:n}){var o;e.includes("box-shadow")&&((o=n)===null||o===void 0?void 0:o.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return t.\u0275fac=function(e){return new(e||t)(s(Sr))},t.\u0275dir=y({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(e,n){e&1&&f("transitionstart",function(r){return n.transitionStartHandler(r)}),e&2&&F("_autofilled",n.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),ca=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var xn=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new Y}get isChecked(){return this.checked}get isIndeterminate(){return this.indeterminate}set tuiChecked(e){this.checked=e||!1,this.indeterminate=e===null}onChange({checked:e}){this.checked=e,this.indeterminate=!1,this.tuiCheckedChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(e,n){e&1&&f("change",function(r){return n.onChange(r.target)}),e&2&&Ke("checked",n.isChecked)("indeterminate",n.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),In=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var kn=(()=>{class t{constructor(e){this.tuiFocusVisibleChange=e}}return t.\u0275fac=function(e){return new(e||t)(s(po))},t.\u0275dir=y({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[b([B,po])]}),t})(),En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ut=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,n){e&2&&Ke("tabIndex",n.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),t})(),dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Sn=(()=>{class t{constructor({nativeElement:e},n){this.tuiFocusedChange=Pe(Se(e,"focusin"),Se(e,"focusout")).pipe(L(()=>Ee(e)),Ni(!1),Ye(),Xt(1),ni(n))}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(et))},t.\u0275dir=y({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),Fn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function sl({currentTarget:t,relatedTarget:i}){return!ot(i)||!ot(t)||!t.contains(i)}var ct=(()=>{class t extends $o{constructor(e,n){super(o=>this.stream$.subscribe(o)),this.el=e,this.zone=n,this.stream$=Pe(Se(this.el.nativeElement,"mouseenter").pipe(L(ei)),Se(this.el.nativeElement,"mouseleave").pipe(L(Me)),Se(this.el.nativeElement,"mouseout").pipe(_t(sl),L(Me))).pipe(Ye(),ni(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(ro(E),ro(et))},t.\u0275prov=qo({token:t,factory:t.\u0275fac}),t})(),fi=(()=>{class t{constructor(e){this.tuiHoveredChange=e}}return t.\u0275fac=function(e){return new(e||t)(s(ct))},t.\u0275dir=y({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[b([ct])]}),t})(),Nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var pa=(()=>{class t{constructor(e,n){this.enabled$=new Pt;let o=n.pipe(L(r=>!!r&&(!e||!r.length||r.every(l=>!e.contains(l)))));this.tuiObscured=this.enabled$.pipe(tn(()=>o))}set tuiObscuredEnabled(e){this.enabled$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(s(Ie,8),s(mo,2))},t.\u0275dir=y({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[b([mo,Fr,B])]}),t})(),ma=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var An=(()=>{class t{constructor(e,n){this.el=e,this.takeOnlyTrustedEvents=n,this.tuiPressedChange=Tr(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(Er))},t.\u0275dir=y({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})(),_i=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ha=(()=>{class t{constructor(e,n,o){this.el=e,this.zone=n,this.destroy$=o,this.eventName=""}ngOnInit(){Hi(this.el.nativeElement,this.eventName,{passive:!1}).pipe(yr(this.zone),br(),ie(this.destroy$)).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(et),s(B,2))},t.\u0275dir=y({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:["tuiPreventDefault","eventName"]},features:[b([B])]}),t})(),ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ll=65536,Co=class{constructor(i){this.$implicit=i}},Hn=(()=>{class t{constructor(e,n){this.viewContainer=e,this.templateRef=n}set tuiRepeatTimesOf(e){let n=Math.floor(St(e,0,ll)),{length:o}=this.viewContainer;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function _a(t,i,e){return e&&et?i:t}var Nn=7;var Mi=12,Ln=1,Mo=0,To=11,bo=0,yo=9999,Ii="".concat(Gi).concat(sr).concat(Gi),ul=1e3,va=60,Ca=60,Do=24,vi=ul*va,Ci=vi*Ca,fa=Ci*Do,Ti=10,dl=2*Ti+Ii.length,Po=X("DMY"),Ma=X("."),Ta=(t,i)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,i),ye=class t{constructor(i){this.year=i}static isValidYear(i){return Number.isInteger(i)&&Qe(i,bo,yo+1)}static isLeapYear(i){return i%400===0||i%4===0&&i%100!==0}static getAbsoluteLeapYears(i){return Math.ceil(i/400)+(Math.ceil(i/4)-Math.ceil(i/100))}static lengthBetween(i,e){return e.year-i.year}static normalizeYearPart(i){return Ki(i,bo,yo)}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:i}){return this.year=i}yearAfter({year:i}){return this.year>i}append({year:i=0}){let e=this.year+i;return new t(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](i){return Date.prototype[Symbol.toPrimitive].call(this,i)}toJSON(){return this.formattedYear}},q=class t extends ye{constructor(i,e){super(i),this.month=e}static isValidMonth(i,e){return ye.isValidYear(i)&&t.isValidMonthPart(e)}static getMonthDaysCount(i,e){switch(i){case at.February:return e?29:28;case at.April:case at.June:case at.September:case at.November:return 30;default:return 31}}static currentLocal(){let i=new Date;return new t(i.getFullYear(),i.getMonth())}static currentUtc(){let i=new Date;return new t(i.getUTCFullYear(),i.getUTCMonth())}static lengthBetween(i,e){let n=i.month+i.year*12;return e.month+e.year*12-n}static normalizeMonthPart(i){return Ki(i,Mo,To)}static isValidMonthPart(i){return Number.isInteger(i)&&Qe(i,Mo,To+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(i){return this.yearBefore(i)||this.yearSame(i)&&this.month=i.month}monthAfter(i){return this.yearAfter(i)||this.yearSame(i)&&this.month>i.month}append({year:i=0,month:e=0}){let n=(this.year+i)*Mi+this.month+e;return new t(Math.floor(n/Mi),n%Mi)}toString(){return"".concat(this.formattedMonthPart,".").concat(this.formattedYear)}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return"".concat(super.toJSON(),"-").concat(this.formattedMonthPart)}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}},ve=class t extends q{constructor(i,e,n){super(i,e),this.day=n}static fromLocalNativeDate(i){return new t(i.getFullYear(),i.getMonth(),i.getDate())}static fromUtcNativeDate(i){return new t(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate())}static isValidDay(i,e,n){return q.isValidMonth(i,e)&&Number.isInteger(n)&&Qe(n,Ln,q.getMonthDaysCount(e,ye.isLeapYear(i))+1)}static currentLocal(){let i=new Date,e=i.getFullYear(),n=i.getMonth(),o=i.getDate();return new t(e,n,o)}static currentUtc(){let i=new Date,e=i.getUTCFullYear(),n=i.getUTCMonth(),o=i.getUTCDate();return new t(e,n,o)}static normalizeOf(i,e,n){let o=ye.normalizeYearPart(i),r=q.normalizeMonthPart(e),l=t.normalizeDayPart(n,r,o);return new t(o,r,l)}static lengthBetween(i,e){return Math.round((e.toLocalNativeDate().getTime()-i.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(i,e="DMY"){switch(e){case"YMD":return{day:parseInt(i.slice(8,10),10),month:parseInt(i.slice(5,7),10)-1,year:parseInt(i.slice(0,4),10)};case"MDY":return{day:parseInt(i.slice(3,5),10),month:parseInt(i.slice(0,2),10)-1,year:parseInt(i.slice(6,10),10)};default:case"DMY":return{day:parseInt(i.slice(0,2),10),month:parseInt(i.slice(3,5),10)-1,year:parseInt(i.slice(6,10),10)}}}static normalizeParse(i,e="DMY"){let{day:n,month:o,year:r}=this.parseRawDateString(i,e);return t.normalizeOf(r,o,n)}static jsonParse(i){let{day:e,month:n,year:o}=this.parseRawDateString(i,"YMD");if(!ye.isValidYear(o))throw new vr(o);if(!q.isValidMonth(o,n))throw new _r(n);if(!Number.isInteger(e)||!Qe(e,Ln,q.getMonthDaysCount(n,ye.isLeapYear(o))+1))throw new fr(e);return new t(o,n,e)}static normalizeDayPart(i,e,n){let o=q.getMonthDaysCount(e,ye.isLeapYear(n));return Ki(i,1,o)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let i=this.dayOfWeek(!1);return i===ho.Saturday||i===ho.Sunday}dayOfWeek(i=!0){let e=i?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(i){return this.monthBefore(i)||this.monthSame(i)&&this.day=i.day}dayAfter(i){return this.monthAfter(i)||this.monthSame(i)&&this.day>i.day}dayLimit(i,e){return i!==null&&this.dayBefore(i)?i:e!==null&&this.dayAfter(e)?e:this}append({year:i=0,month:e=0,day:n=0}){let o=(this.year+i)*Mi+this.month+e,r=Math.floor(o/Mi),l=o%Mi,d=Math.min(this.day,q.getMonthDaysCount(l,ye.isLeapYear(r)))+n;for(;d>q.getMonthDaysCount(l,ye.isLeapYear(r));)d-=q.getMonthDaysCount(l,ye.isLeapYear(r)),l===at.December?(r++,l=at.January):l++;for(;d0,n=e||i==="HH:MM:SS"||!i&&this.seconds>0;return"".concat(this.formatTime(this.hours),":").concat(this.formatTime(this.minutes))+"".concat(n?":".concat(this.formatTime(this.seconds)):"")+"".concat(e?".".concat(this.formatTime(this.ms,3)):"")}valueOf(){return this.toAbsoluteMilliseconds()}[Symbol.toPrimitive](i){return Date.prototype[Symbol.toPrimitive].call(this,i)}toAbsoluteMilliseconds(){return this.hours*Ci+this.minutes*vi+this.seconds*1e3+this.ms}formatTime(i,e=2){return String(i).padStart(e,"0")}};function cl(t,i){t&1&&S(0,"tui-scroll-controls",2)}var pl=["*"];var Vt=(()=>{class t{constructor(e,n,o,r){this.cssRef=e,this.el=n,this.userAgent=o,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||ur(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new E(this.el.nativeElement)}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(e){this.delegated=!0,this.browserScrollRef.nativeElement=e}scrollIntoView(e){var n;if(this.delegated)return;let{nativeElement:o}=this.browserScrollRef,{offsetTop:r,offsetLeft:l}=mr(o,e),{clientHeight:d,clientWidth:p}=o,{offsetHeight:T,offsetWidth:_}=e,O=r+T/2-d/2,D=l+_/2-p/2;(n=o.scrollTo)===null||n===void 0||n.call(o,D,O)}}return t.\u0275fac=function(e){return new(e||t)(s(Pr),s(E),s(rn),s(Ir))},t.\u0275cmp=k({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(e,n){e&1&&f("tui-scrollable.stop",function(r){return n.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return n.scrollIntoView(r.detail)}),e&2&&F("_legacy",n.showNative)},inputs:{hidden:"hidden"},features:[b([{provide:kr,deps:[t],useFactory:({browserScrollRef:i})=>i}])],ngContentSelectors:pl,decls:3,vars:1,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(e,n){e&1&&(oe(),v(0,cl,1,0,"tui-scroll-controls",0),m(1,"div",1),K(2),g()),e&2&&u("ngIf",n.showScrollbars)},dependencies:[Rr,ee],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:.375rem solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.t-content[_ngcontent-%COMP%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})(),yi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Lr]]}),t})();function ml(t,i){if(t&1&&(m(0,"div",4),$(1),g()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}var hl=t=>({$implicit:t}),gl=R(()=>Cl),wo=(()=>{class t{constructor(){this.tuiDropdownOpenChange=new Y}set tuiDropdownOpen(e){var n;(n=this.dropdown)===null||n===void 0||n.toggle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"}}),t})(),ae=class{constructor(i,e,n,o,r,l){this.el=e,this.dropdown=n,this.injector=o,this.dropdownService=r,this.open=l,this.refresh$=new Pt,this.dropdownBoxRef=null,this.type="dropdown",this.component=new Ft(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe(Zo(0),ie(i)).subscribe(()=>{var d,p;(d=this.dropdownBoxRef)===null||d===void 0||d.changeDetectorRef.detectChanges(),(p=this.dropdownBoxRef)===null||p===void 0||p.changeDetectorRef.markForCheck()})}get position(){return Ur(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(i){var e,n;i&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),(e=this.open)===null||e===void 0||e.tuiDropdownOpenChange.emit(!0)):!i&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,(n=this.open)===null||n===void 0||n.tuiDropdownOpenChange.emit(!1))}};ae.\u0275fac=function(i){return new(i||ae)(s(B,2),s(E),s(gl),s(zi),s(Vr),s(wo,8))};ae.\u0275dir=y({type:ae,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[b([B,si(ae),pn(ae)]),It]});se([xe],ae.prototype,"position",null);var fl={showDelay:200,hideDelay:500},_l=X(fl);var xo=(()=>{class t extends Mt{constructor(e,n,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=n,this.parentHover=o,this.toggle$=new Pt,this.stream$=Pe(this.toggle$,this.hovered$).pipe(xt(r=>Be(r).pipe(vt(r?this.showDelay:this.hideDelay))),Pi(r=>{this.hovered=r}),Li()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(e){var n;(n=this.parentHover)===null||n===void 0||n.toggle(e),this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(s(ct),s(_l),s(t,12))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[b([Rt(t),ct]),I]}),t})(),ya={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Yt=X(ya),Oa=t=>({provide:Yt,deps:[[new ke,vl],[new ke,new wi,Yt]],useFactory:_o(t,ya)}),vl=(()=>{class t{constructor(e){this.options=e,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}}return t.\u0275fac=function(e){return new(e||t)(s(Yt,4))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:["tuiDropdownAlign","align"],appearance:["tuiDropdownAppearance","appearance"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],offset:["tuiDropdownOffset","offset"]},features:[b([{provide:Yt,useExisting:le(()=>t)}])]}),t})(),Cl=(()=>{class t{constructor(e,n,o,r,l,d,p,T,_,O,D){this.directive=r,this.animation=l,this.el=d,this.accessor=p,this.win=T,this.mode$=_,this.options=O,this.hoverDirective=D,n.pipe(L(P=>this.directive.position==="fixed"?e.correct(P):P),ie(o)).subscribe(([P,z])=>{this.update(P,z)}),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(e){this.hoverDirective&&this.hoverDirective.toggle(e)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(e,n){var o;let{style:r}=this.el.nativeElement,{right:l}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:d,offset:p}=this.options,{innerHeight:T}=this.win,_=(o=this.el.nativeElement.offsetParent)===null||o===void 0?void 0:o.getBoundingClientRect(),{position:O}=this.directive,D=this.accessor.getClientRect(),P=O==="fixed"?0:-((_==null?void 0:_.left)||0),z=O==="fixed"?0:-((_==null?void 0:_.top)||0);e+=z,n+=P;let he=nD.left&&ethis.stream$.subscribe(e)),this.activeZone=i,this.stream$=new Pt,this.currentRect=Et,this.type="dropdown"}onContextMenu(i,e){this.currentRect=Ji(i,e),this.stream$.next(!0)}closeDropdown(){this.stream$.next(!1)}getClientRect(){return this.currentRect}};yt.\u0275fac=function(i){return new(i||yt)(s(Ie))};yt.\u0275dir=y({type:yt,selectors:[["","tuiDropdown","","tuiDropdownContext",""]],hostBindings:function(i,e){i&1&&f("contextmenu.prevent.stop",function(o){return e.onContextMenu(o.clientX,o.clientY)})("click.silent",function(o){return e.closeDropdown(o.target)},!1,kt)("contextmenu.capture.silent",function(o){return e.closeDropdown(o.target)},!1,kt)("keydown.esc",function(o){return e.closeDropdown(o.currentTarget)},!1,kt)},features:[b([Ie,Rt(yt),si(yt)]),I]});se([mi(Ml)],yt.prototype,"closeDropdown",null);var Da=(()=>{class t extends mn{constructor(e,n,o){super(e,n,o),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(Mt),s(cn))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown",""]],features:[b([B]),I]}),t})();var Pa=(()=>{class t extends Mt{constructor(){super(e=>this.stream$.subscribe(e)),this.stream$=new wt(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[b([Rt(t)]),I,It]}),t})(),pt=class extends Tt{constructor(i,e,n,o){super(),this.options=i,this.viewport=e,this.accessors=n,this.directive=o,this.type="dropdown"}getPosition({width:i,height:e}){var n,o;!i&&!e&&(this.previous=void 0);let r=(o=(n=this.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:Et,l=this.viewport.getClientRect(),{minHeight:d,align:p,direction:T,offset:_}=this.options,O={top:l.top-_,bottom:l.bottom+_,right:l.right-_,left:l.left+_},D=this.previous||T||"bottom",P={top:r.top-2*_-O.top,bottom:O.bottom-r.bottom-2*_},z=Math.max(r.right-i,_),De=r.left+iP.bottom?"top":"bottom";return P[D]>d&&T||P[D]>e?[he[D],he[p]]:(this.previous=je,[he[je],he[p]])}get accessor(){return _n("dropdown")(this.accessors,this.directive)}};pt.\u0275fac=function(i){return new(i||pt)(s(Yt),s(di),s(ai),s(ae))};pt.\u0275dir=y({type:pt,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[b([xi(pt)]),I]});se([xe],pt.prototype,"accessor",null);var wa=(()=>{class t extends Tt{constructor(e,n,o){super(),this.options=e,this.viewport=n,this.vertical=o,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var n,o;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:r,width:l}=e,d=(o=(n=this.vertical.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:Et,p=this.viewport.getClientRect(),{direction:T,minHeight:_,offset:O}=this.options,D=this.options.align==="center"?"left":this.options.align,P={top:d.bottom-p.top,left:d.left-O-p.left,right:p.right-d.right-O,bottom:p.bottom-d.top},z={top:d.bottom-r+this.tuiDropdownSidedOffset+1,left:d.left-l-O,right:d.right+O,bottom:d.top-this.tuiDropdownSidedOffset-1},De=P.top>P.bottom?"top":"bottom",he=P.left>P.right?z.left:z.right,je=P[D]>l?z[D]:he;return P[this.previous]>_&&T||this.previous===De?[z[this.previous],je]:(this.previous=De,[z[De],je])}}return t.\u0275fac=function(e){return new(e||t)(s(Yt),s(di),s(pt))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[b([pt,xi(t)]),I]}),t})();var xa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[re,ri,zr,yi,Nt]]}),t})();function bl(t,i){if(t&1&&S(0,"span",1),t&2){let e=i.polymorpheusOutlet;u("innerHTML",e,Jo)}}var yl=R(()=>Bt),Ol={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},Kt=X(Ol);var Ut=(()=>{class t extends Le{constructor(e){super(),this.options=e,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}}return t.\u0275fac=function(e){return new(e||t)(s(Kt,4))},t.\u0275dir=y({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[b([{provide:Kt,useExisting:le(()=>t)}]),I]}),t})(),Vn=(()=>{class t{constructor(e,n,o,r,l){this.el=e,this.component=n,this.hintService=o,this.options=r,this.activeZone=l,this.tuiHintAppearance=null,this.type="hint"}get appearance(){var e;return(e=this.tuiHintAppearance)!==null&&e!==void 0?e:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(e){e&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(Ft),s(ra),s(Kt),s(Ie,8))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[b([si(t),pn(t),{provide:Ft,deps:[yl,zi],useClass:Ft}]),It]}),t})(),Oi=(()=>{class t extends Mt{constructor(e,n,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=n,this.el=o,this.visible=!1,this.toggle$=new Pt,this.stream$=Pe(this.toggle$.pipe(xt(r=>Be(r).pipe(vt(r?0:this.hideDelay))),ie(this.hovered$),oo()),this.hovered$.pipe(xt(r=>Be(r).pipe(vt(r?this.showDelay:this.hideDelay))),ie(this.toggle$),oo())).pipe(_t(()=>this.enabled),L(r=>r&&!fo(this.el.nativeElement)),Pi(r=>{this.visible=r})),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(e=!this.visible){this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(s(ct),s(Kt),s(E))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[b([Rt(t),ct]),I]}),t})(),Dl=(()=>{class t extends Oi{constructor(){super(...arguments),this.currentRect=Et}onMove({clientX:e,clientY:n}){this.currentRect=Ji(e,n)}getClientRect(){return this.currentRect}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(e,n){e&1&&f("mousemove.silent",function(r){return n.onMove(r)})},features:[b([si(t),Rt(t)]),I]}),t})(),Ia=4,Bt=class{constructor(i,e,n,o,r,l,d,p,T,_,O,D){var P;this.animation=o,this.pointer=r,this.accessor=l,this.el=d,this.polymorpheus=p,this.hover=T,this.mode=_,this.visualViewportService=O,this.viewport=D,this.appearance=this.polymorpheus.$implicit.appearance||((P=this.mode)===null||P===void 0?void 0:P.mode),e.pipe(L(z=>this.visualViewportService.correct(z)),ie(n)).subscribe(([z,De])=>{this.update(z,De)}),i.pipe(ie(n)).subscribe(z=>this.hover.toggle(z))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(i){(!this.el.nativeElement.contains(i)&&!this.hover.el.nativeElement.contains(i)||fo(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(i,e){let{height:n,width:o}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,l=this.accessor.getClientRect(),d=this.viewport.getClientRect();if(l===Et)return;let p=St(e,Ia,d.width-o-Ia),[T,_]=this.visualViewportService.correct([l.top+l.height/2-i,l.left+l.width/2-p]);r.top=Ze(i),r.left=Ze(p),r.setProperty("--top",Ze(St(T,.5,n-1))),r.setProperty("--left",Ze(St(_,.5,o-1)))}};Bt.\u0275fac=function(i){return new(i||Bt)(s(ct),s(ci),s(B,2),s(vn),s(Dl,8),s(ai),s(E),s(Or),s(Oi),s(pi,8),s(bn),s(di))};Bt.\u0275cmp=k({type:Bt,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(i,e){i&1&&f("click",function(o){return e.onClick(o.target)},!1,kt),i&2&&(H("data-appearance",e.appearance),ji("@tuiFadeIn",e.animation),F("_untouchable",e.pointer))},features:[b([B,ci,ct,gn("hint"),fn("hint",Vn)])],decls:1,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(i,e){i&1&&v(0,bl,1,1,"span",0),i&2&&u("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context)},dependencies:[Z],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}[_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-error-fill)}[data-appearance=onDark][_nghost-%COMP%]{background:var(--tui-elevation-02);color:var(--tui-text-01);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:[jr]},changeDetection:0});se([xe],Bt.prototype,"update",null);var ht=class extends Mt{constructor(i,e,n){super(o=>this.stream$.subscribe(o)),this.zone=i,this.doc=e,this.el=n,this.id$=new Wo(1),this.stream$=this.id$.pipe(tn(()=>Se(this.doc,"keydown",{capture:!0}),Qi),xt(()=>this.focused?Be(!1):Pe(Se(this.doc,"keyup"),Se(this.element,"blur")).pipe(L(()=>this.focused))),Qo(o=>o?Ri(1e3):Be(null)),Ni(!1),Ye(),Xt(1),ni(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return Ee(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}};ht.\u0275fac=function(i){return new(i||ht)(s(et),s(uo),s(E))};ht.\u0275dir=y({type:ht,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[b([Rt(ht)]),I,It]});se([xe],ht.prototype,"element",null);var ka=(()=>{class t extends mn{constructor(e,n,o){super(e,n,o),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(Mt),s(cn))},t.\u0275dir=y({type:t,selectors:[["","tuiHint",""]],features:[b([B]),I]}),t})();var jt=8,zn=22,ne=0,me=1,gt=class extends Tt{constructor(i,e,n,o){super(),this.options=i,this.viewport=e,this.directive=n,this.accessors=o,this.points=go.reduce((r,l)=>Object.assign(Object.assign({},r),{[l]:[0,0]}),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:i,height:e}){var n,o;let r=(o=(n=this.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:Et,l=r.left+r.width/2,d=r.top+r.height/2;if(this.points["top-left"][ne]=r.top-e-jt,this.points["top-left"][me]=l-i+zn,this.points.top[ne]=this.points["top-left"][ne],this.points.top[me]=l-i/2,this.points["top-right"][ne]=this.points["top-left"][ne],this.points["top-right"][me]=l-zn,this.points["bottom-left"][ne]=r.bottom+jt,this.points["bottom-left"][me]=this.points["top-left"][me],this.points.bottom[ne]=this.points["bottom-left"][ne],this.points.bottom[me]=this.points.top[me],this.points["bottom-right"][ne]=this.points["bottom-left"][ne],this.points["bottom-right"][me]=this.points["top-right"][me],this.points["left-top"][ne]=d-e+zn,this.points["left-top"][me]=r.left-i-jt,this.points.left[ne]=d-e/2,this.points.left[me]=this.points["left-top"][me],this.points["left-bottom"][ne]=d-zn,this.points["left-bottom"][me]=this.points["left-top"][me],this.points["right-top"][ne]=this.points["left-top"][ne],this.points["right-top"][me]=r.right+jt,this.points.right[ne]=this.points.left[ne],this.points.right[me]=this.points["right-top"][me],this.points["right-bottom"][ne]=this.points["left-bottom"][ne],this.points["right-bottom"][me]=this.points["right-top"][me],this.checkPosition(this.points[this.direction],i,e))return this.points[this.direction];let p=go.find(T=>this.checkPosition(this.points[T],i,e));return this.points[p||this.fallback]}get accessor(){return _n("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[ne]>this.viewport.getClientRect().bottom-this.points.bottom[ne]?"top":"bottom"}checkPosition([i,e],n,o){let r=this.viewport.getClientRect();return i>jt&&e>jt&&i+o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,re]]}),t})();var Ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[b([{provide:Wi,deps:[[new ke,Tn],tt],multi:!0,useFactory:(i,e)=>i?i[0]:e}])]}),t})(),Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Fa=(()=>{class t{constructor(e,n){this.el=e,this.destroy$=n}set tuiScrollIntoView(e){e&&Ri(0).pipe(ie(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent($r,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(B,2))},t.\u0275dir=y({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[b([B])]}),t})(),Aa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Io=class{constructor(i,e,n,o,r,l,d,p,T,_,O,D,P){this.change$=i,this.options=e,this.legacyAppearance=n,this.appearanceDirective=o,this.cleanerDirective=r,this.customContentDirective=l,this.iconDirective=d,this.iconLeftDirective=p,this.labelOutsideDirective=T,this.sizeDirective=_,this.prefixDirective=O,this.postfixDirective=D,this.fillerDirective=P}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 iconLeft(){return this.iconLeftDirective.iconLeft}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}},Il={iconCleaner:"tuiIconClose",hintOnDisabled:!1},ko=X(Il);var Ha=R(()=>new kl),kl=(()=>{class t extends Le{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[b([{provide:Ha,useExisting:le(()=>t)}]),I]}),t})(),Ra=R(()=>new El),El=(()=>{class t extends Le{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[b([{provide:Ra,useExisting:le(()=>t)}]),I]}),t})(),La=R(()=>new Sl),Sl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[b([{provide:La,useExisting:le(()=>t)}]),I]}),t})(),Na=R(()=>new Eo),Eo=(()=>{class t extends Le{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[b([{provide:Na,useExisting:le(()=>t)}]),I]}),t})(),za=R(()=>new So),So=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[b([{provide:za,useExisting:le(()=>t)}]),I]}),t})(),Va=R(()=>new Fl),Fl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[b([{provide:Va,useExisting:le(()=>t)}]),I]}),t})(),ja=R(()=>new Fo),Fo=(()=>{class t extends Le{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[b([{provide:ja,useExisting:le(()=>t)}]),I]}),t})(),Ba=R(()=>new Al),Al=(()=>{class t extends Le{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[b([{provide:Ba,useExisting:le(()=>t)}]),I]}),t})(),Ua=R(()=>new Hl),Hl=(()=>{class t extends Le{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[b([{provide:Ua,useExisting:le(()=>t)}]),I]}),t})(),Bn=R(()=>new Rl),Rl=(()=>{class t extends Le{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[b([{provide:Bn,useExisting:le(()=>t)}]),I]}),t})(),Un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})(),Qt=new Ge("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Di=[B,{provide:Qt,deps:[Ce,B,ko,oa,Ha,Ra,La,za,Va,ja,Bn,Ua,Ba,Na],useFactory:(t,i,e,n,...o)=>{let r=Pe(...o.map(({change$:l})=>l||Ko)).pipe(nn(t),ie(i));return r.subscribe(),new Io(r,e,n,...o)}}];function Ll(t,i){if(t&1){let e=U();m(0,"div",4),f("click",function(){let r=w(e).tuiLet,l=h(3);return x(l.onItemClick(r))})("tuiHoveredChange",function(o){let l=w(e).tuiLet,d=h(3);return x(d.onItemHovered(o,l))})("tuiPressedChange",function(o){let l=w(e).tuiLet,d=h(3);return x(d.onItemPressed(o,l))}),m(1,"div",5),$(2),g()()}if(t&2){let e=i.tuiLet,n=h(3);F("t-cell_interval",n.itemIsInterval(e))("t-cell_today",n.itemIsToday(e)),u("tuiScrollIntoView",n.scrollItemIntoView(e)),H("data-range",n.getItemRange(e))("data-state",n.getItemState(e)),c(2),Bi(e)}}function Nl(t,i){if(t&1&&(ue(0),v(1,Ll,3,8,"div",3),de()),t&2){let e=i.$implicit,n=h().$implicit,o=h();c(1),u("tuiLet",o.getItem(n,e))}}function zl(t,i){t&1&&(m(0,"div",1),v(1,Nl,2,1,"ng-container",2),g()),t&2&&(c(1),u("tuiRepeatTimesOf",4))}var $a=100,Wa=4,Ya=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=q.currentLocal().year,this.value=null,this.initialItem=q.currentLocal(),this.min=Ae,this.max=Ne,this.disabledItemHandler=Me,this.yearClick=new Y}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Ae}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ne}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/Wa)}get calculatedMin(){let e=this.initialItem.year-$a,n=this.computedMin;return n.year>e?n.year:e}get calculatedMax(){let e=this.initialItem.year+$a,n=this.computedMax;return n.yearn.from.year&&n.from.year===e&&n.from.yearSame(n.to)||o!==null&&o===e&&on.from.year&&n.from.yearSame(n.to)?Ue.End:n.from.yearSame(n.to)&&n.from.year===e?Ue.Single:null:n.find(r=>r.year===e)?Ue.Single:null}itemIsToday(e){return this.currentYear===e}itemIsInterval(e){let{value:n,hoveredItem:o}=this;return n===null||!this.isRange(n)?!1:n.from.yearSame(n.to)?o===null||n.from.year===o?!1:Qe(e,Math.min(n.from.year,o),Math.max(n.from.year,o)):n.from.year<=e&&n.to.year>e}onItemHovered(e,n){this.updateHoveredItem(e,n)}onItemPressed(e,n){this.updatePressedItem(e,n)}onItemClick(e){this.yearClick.emit(new ye(e))}updateHoveredItem(e,n){this.hoveredItem=e?n:null}updatePressedItem(e,n){this.pressedItem=e?n:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,n){e&2&&F("_single",n.isSingle)},inputs:{value:"value",initialItem:"initialItem",min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},outputs:{yearClick:"yearClick"},decls:1,vars:1,consts:[["automation-id","tui-primitive-year-picker__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__cell","class","t-cell",3,"t-cell_interval","t-cell_today","tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],["automation-id","tui-primitive-year-picker__cell",1,"t-cell",3,"tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange"],[1,"t-item"]],template:function(e,n){e&1&&v(0,zl,2,1,"div",0),e&2&&u("tuiRepeatTimesOf",n.rows)},dependencies:[Hn,At,Fa,fi,An],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{content:"";position:absolute;top:0;left:0;right:0;bottom:0;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:3.9375rem;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-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;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-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-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[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_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}),t})(),Ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[Nt,_i,Rn,Ht,Aa]]}),t})();function jl(t,i){if(t&1){let e=U();ue(0),m(1,"button",1),f("click",function(){w(e);let o=h();return x(o.onLeftClick())}),g(),m(2,"span",2),K(3),g(),m(4,"button",3),f("click",function(){w(e);let o=h();return x(o.onRightClick())}),g(),de()}if(t&2){let e=i.ngIf,n=h();c(1),F("t-hidden",n.leftComputedDisabled),u("focusable",n.computedFocusable)("icon",n.icons.decrement)("title",e[0]),c(3),F("t-hidden",n.rightComputedDisabled),u("focusable",n.computedFocusable)("icon",n.icons.increment)("title",e[1])}}var Bl=["*"],Ka=(()=>{class t extends sn{constructor(e,n,o){super(),this.el=e,this.icons=n,this.spinTexts$=o,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new Y,this.rightClick=new Y}get focused(){return Xe(this.el.nativeElement)}get leftComputedDisabled(){return this.computedDisabled||this.leftDisabled}get rightComputedDisabled(){return this.computedDisabled||this.rightDisabled}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(na),s(ea))},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(e,n){e&1&&f("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return n.onLeftClick()})("keydown.arrowRight.prevent",function(){return n.onRightClick()})("focusin",function(){return n.onFocused(!0)})("focusout",function(){return n.onFocused(!1)})},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[I],ngContentSelectors:Bl,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-primitive-spin-button__left","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-primitive-spin-button__right","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"]],template:function(e,n){e&1&&(oe(),v(0,jl,5,10,"ng-container",0),W(1,"async")),e&2&&u("ngIf",Q(1,1,n.spinTexts$))},dependencies:[Dn,ee,fe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:bold}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0}),t})(),Qa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Pn]]}),t})();var $l=(t,i)=>{let e=new Date(t.year,t.month,1).getDay();return e>=i?e-i:Nn-(i-e)},Wl=({month:t,rowIndex:i,colIndex:e,firstDayOfWeek:n})=>{let o=i*Nn+e-$l(t,n)+1;return o>t.daysCount&&(o-=t.daysCount,t=t.append({month:1})),o<=0&&(t=t.append({month:-1}),o=t.daysCount+o),new ve(t.year,t.month,o)},Yl=6,Xa=(()=>{class t{constructor(e){this.firstDayOfWeek=e,this.currentMonth=null,this.currentSheet=[]}transform(e,n=!1){var o;if(!((o=this.currentMonth)===null||o===void 0)&&o.monthSame(e))return this.currentSheet;let r=[];for(let l=0;lD.yearD.year>P.year||D.month>P.month;if(!(_(T)&&!n)){if(O(T)&&!n)break;d.push(T)}}r.push(d)}return this.currentSheet=r.filter(l=>l.length),this.currentMonth=e,this.currentSheet}}return t.\u0275fac=function(e){return new(e||t)(s(Cn,16))},t.\u0275pipe=Wt({name:"tuiCalendarSheet",type:t,pure:!0}),t})(),Za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Ao=(()=>{class t{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe(L(n=>n[e]))}}return t.\u0275fac=function(e){return new(e||t)(s(qr,16))},t.\u0275pipe=Wt({name:"tuiMonth",type:t,pure:!0}),t})(),qa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Ja=(()=>{class t{constructor(e){this.firstDayOfWeekIndex=e}transform(e){return e.pipe(L(Gl),L(n=>[...n.slice(this.firstDayOfWeekIndex),...n.slice(0,this.firstDayOfWeekIndex)]))}}return t.\u0275fac=function(e){return new(e||t)(s(Cn,16))},t.\u0275pipe=Wt({name:"tuiOrderWeekDays",type:t,pure:!0}),t})();function Gl(t){let i=t.length-1;return[t[i],...t.slice(0,i)]}var es=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function Ql(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=h();c(1),ce(" ",e.value.formattedYear," ")}}function Xl(t,i){if(t&1){let e=U();m(0,"button",3),f("click",function(){w(e);let o=h();return x(o.onYearClick())}),$(1),g()}if(t&2){let e=h();u("tuiFocusable",!1),c(1),ce(" ",e.value.formattedYear," ")}}var ts=(()=>{class t{constructor(){this.value=q.currentLocal(),this.min=Ae,this.max=Ne,this.valueChange=new Y,this.yearClick=new Y}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Ae}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ne}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){let{computedMin:e,computedMax:n}=this;return e.year===n.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(e){let n=this.value.append(e),{computedMin:o,computedMax:r}=this;if(o.monthSameOrAfter(n)){this.updateValue(o);return}this.updateValue(r.monthSameOrBefore(n)?r:n)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-year-month-pagination"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},decls:7,vars:10,consts:[[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],[4,"ngIf","ngIfElse"],["button",""],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tuiLink","","type","button",3,"tuiFocusable","click"]],template:function(e,n){if(e&1&&(m(0,"tui-primitive-spin-button",0),f("leftClick",function(){return n.onPrevMonthClick()})("rightClick",function(){return n.onNextMonthClick()}),$(1),W(2,"async"),W(3,"tuiMonth"),v(4,Ql,2,1,"ng-container",1)(5,Xl,2,2,"ng-template",null,2,Te),g()),e&2){let o=J(6);u("focusable",!1)("leftDisabled",n.prevMonthDisabled)("rightDisabled",n.nextMonthDisabled),c(1),ce(" ",Q(2,6,Q(3,8,n.value))," "),c(3),u("ngIf",n.oneYear)("ngIfElse",o)}},dependencies:[Ka,hi,ee,ut,fe,Ao],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),is=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,dt,Qa,gi,qa]]}),t})();function ql(t,i){if(t&1&&S(0,"div",3),t&2){let e=i.$implicit;u("textContent",e)}}function Jl(t,i){if(t&1&&S(0,"div",14),t&2){let e=h().ngIf;He("background-color",(e==null?null:e[1])||"")}}function eu(t,i){if(t&1&&(m(0,"div",13),S(1,"div",14),v(2,Jl,1,2,"div",15),g()),t&2){let e=i.ngIf;c(1),He("background-color",e==null?null:e[0]),c(1),u("ngIf",e.length>1)}}function tu(t,i){if(t&1){let e=U();m(0,"div",10),f("click",function(){w(e);let o=h().tuiLet,r=h(4);return x(r.onItemClick(o))})("tuiHoveredChange",function(o){w(e);let r=h().tuiLet,l=h(4);return x(l.onItemHovered(o&&r))})("tuiPressedChange",function(o){w(e);let r=h().tuiLet,l=h(4);return x(l.onItemPressed(o&&r))}),m(1,"div",11),W(2,"tuiMapper"),$(3),v(4,eu,3,3,"div",12),W(5,"tuiMapper"),g()()}if(t&2){let e=h().tuiLet,n=h(4);F("t-cell_interval",n.itemIsInterval(e))("t-cell_today",n.itemIsToday(e))("t-cell_unavailable",n.itemIsUnavailable(e)),H("data-range",n.getItemRange(e))("data-state",n.getItemState(e)),c(1),F("t-item_unavailable",n.itemIsUnavailable(e)),H("data-type",lo(2,13,e,n.dayTypeHandler)),c(2),ce(" ",e.day," "),c(1),u("ngIf",Ui(5,16,e,n.toMarkers,n.itemIsToday(e),!!n.getItemRange(e)))}}function iu(t,i){if(t&1&&(ue(0),v(1,tu,6,21,"div",9),de()),t&2){let e=i.tuiLet,n=h(4);c(1),u("ngIf",!n.itemIsUnavailable(e)||n.showAdjacent)}}function nu(t,i){if(t&1&&(ue(0),v(1,iu,2,1,"ng-container",8),de()),t&2){let e=i.$implicit,n=h().$implicit,o=h().tuiLet;c(1),u("tuiLet",o[n][e])}}function ou(t,i){if(t&1&&(m(0,"div",6),v(1,nu,2,1,"ng-container",7),g()),t&2){let e=i.$implicit,n=h().tuiLet;c(1),u("tuiRepeatTimesOf",n[e].length)}}function ru(t,i){if(t&1&&(m(0,"div",4),v(1,ou,2,1,"div",5),g()),t&2){let e=i.tuiLet;c(1),u("tuiRepeatTimesOf",e.length)}}var ns=(()=>{class t{constructor(e,n){this.unorderedWeekDays$=e,this.dayTypeHandler=n,this.pressedItem=null,this.today=ve.currentLocal(),this.month=q.currentLocal(),this.disabledItemHandler=Me,this.markerHandler=li,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new Y,this.dayClick=new Y,this.toMarkers=(o,r,l)=>{if(r||l)return null;let d=this.markerHandler(o);return d.length===0?null:d}}get isSingleDayRange(){return this.value instanceof zt&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(e){let{disabledItemHandler:n,pressedItem:o,hoveredItem:r}=this;return n(e)?Lt.Disabled:o!=null&&o.daySame(e)?Lt.Active:r!=null&&r.daySame(e)?Lt.Hover:null}getItemRange(e){let{value:n,hoveredItem:o}=this;return n?n instanceof ve?n.daySame(e)?Ue.Single:null:n instanceof zt?n.from.daySame(e)&&!n.isSingleDay||o!=null&&o.dayAfter(n.from)&&n.from.daySame(e)&&n.isSingleDay||o!=null&&o.daySame(e)&&o.dayBefore(n.from)&&n.isSingleDay?Ue.Start:n.to.daySame(e)&&!n.isSingleDay||o!=null&&o.dayBefore(n.from)&&n.from.daySame(e)&&n.isSingleDay||o!=null&&o.daySame(e)&&o.dayAfter(n.from)&&n.isSingleDay?Ue.End:n.isSingleDay&&n.from.daySame(e)?Ue.Single:null:n.find(r=>r.daySame(e))?Ue.Single:null:null}itemIsToday(e){return this.today.daySame(e)}itemIsUnavailable(e){return!this.month.monthSame(e)}itemIsInterval(e){let{value:n,hoveredItem:o}=this;if(!(n instanceof zt))return!1;if(!n.isSingleDay)return n.from.daySameOrBefore(e)&&n.to.dayAfter(e);if(o===null)return!1;let r=zt.sort(n.from,o);return r.from.daySameOrBefore(e)&&r.to.dayAfter(e)}onItemHovered(e){this.updateHoveredItem(e||null)}onItemPressed(e){this.pressedItem=e||null}onItemClick(e){this.dayClick.emit(e)}updateHoveredItem(e){ti(this.hoveredItem,e,(n,o)=>n.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(s(ta),s(Zr))},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,n){e&2&&F("_single",n.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],["id","date-rows",4,"tuiLet"],[1,"t-cell",3,"textContent"],["id","date-rows"],["automation-id","tui-primitive-calendar__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"tuiLet"],["automation-id","tui-primitive-calendar__cell","class","t-cell",3,"t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange","tuiPressedChange",4,"ngIf"],["automation-id","tui-primitive-calendar__cell",1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],["automation-id","tui-primitive-calendar__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"backgroundColor",4,"ngIf"]],template:function(e,n){e&1&&(m(0,"div",0),v(1,ql,1,1,"div",1),W(2,"async"),W(3,"tuiOrderWeekDays"),g(),v(4,ru,2,1,"div",2),W(5,"tuiCalendarSheet")),e&2&&(c(1),u("ngForOf",Q(2,2,Q(3,4,n.unorderedWeekDays$))),c(3),u("tuiLet",lo(5,6,n.month,!0)))},dependencies:[Jt,At,Hn,ee,fi,An,fe,Ja,Xa,un],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{content:"";position:absolute;top:0;left:0;right:0;bottom:0;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-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;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-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-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[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.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-02);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}),t})(),os=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Ht,dn,Rn,Nt,_i,Za,es]]}),t})();function su(t,i){if(t&1){let e=U();m(0,"tui-scrollbar",2)(1,"tui-primitive-year-picker",3),f("yearClick",function(o){w(e);let r=h();return x(r.onPickerYearClick(o))}),g()()}if(t&2){let e=h();c(1),u("initialItem",e.year)("max",e.computedMax)("min",e.computedMin)("value",e.value)}}function lu(t,i){if(t&1){let e=U();m(0,"tui-primitive-year-month-pagination",4),f("valueChange",function(o){w(e);let r=h();return x(r.onPaginationValueChange(o))})("yearClick",function(o){w(e);let r=h();return x(r.onPaginationYearClick(o))}),g(),m(1,"tui-primitive-calendar",5),f("dayClick",function(o){w(e);let r=h();return x(r.onDayClick(o))})("hoveredItemChange",function(o){w(e);let r=h();return x(r.onHoveredItemChange(o))}),W(2,"tuiMapper"),g()}if(t&2){let e=h();u("max",e.computedMaxViewedMonth)("min",e.computedMinViewedMonth)("value",e.month),c(1),u("disabledItemHandler",Ui(2,9,e.disabledItemHandler,e.disabledItemHandlerMapper,e.computedMin,e.computedMax))("hoveredItem",e.hoveredItem)("markerHandler",e.markerHandler)("month",e.month)("showAdjacent",e.showAdjacent)("value",e.value)}}var $n=(()=>{class t{constructor(){this.day=null,this.month=q.currentLocal(),this.disabledItemHandler=Me,this.min=Ae,this.max=Ne,this.minViewedMonth=Ae,this.maxViewedMonth=Ne,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=li,this.dayClick=new Y,this.monthChange=new Y,this.hoveredItemChange=new Y,this.year=null,this.disabledItemHandlerMapper=(e,n,o)=>r=>r.dayBefore(n)||r.dayAfter(o)||e(r)}set value(e){this.day=e,this.showAdjacent&&e instanceof ve&&(this.month=e)}get value(){return this.day}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Ae}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ne}get computedMinViewedMonth(){var e;let n=this.computedMin,o=(e=this.minViewedMonth)!==null&&e!==void 0?e:Ae;return o.monthSameOrAfter(n)?o:n}get computedMaxViewedMonth(){var e;let n=this.computedMax,o=(e=this.maxViewedMonth)!==null&&e!==void 0?e:Ne;return o.monthSameOrBefore(n)?o:n}onPaginationYearClick(e){this.year=e}onPickerYearClick({year:e}){this.year=null,this.updateViewedMonth(new q(e,this.month.month))}onPaginationValueChange(e){this.updateViewedMonth(e)}onDayClick(e){this.dayClick.emit(e)}onHoveredItemChange(e){this.updateHoveredDay(e)}updateViewedMonth(e){this.month.monthSame(e)||(this.month=e,this.monthChange.emit(e))}updateHoveredDay(e){ti(this.hoveredItem,e,(n,o)=>n.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},decls:3,vars:2,consts:[["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["calendar",""],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"initialItem","max","min","value","yearClick"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"max","min","value","valueChange","yearClick"],["automation-id","tui-calendar__calendar",3,"disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value","dayClick","hoveredItemChange"]],template:function(e,n){if(e&1&&v(0,su,2,4,"tui-scrollbar",0)(1,lu,3,14,"ng-template",null,1,Te),e&2){let o=J(2);u("ngIf",n.year)("ngIfElse",o)}},dependencies:[Vt,Ya,ts,ns,ee,un],styles:["[_nghost-%COMP%]{display:block;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}),t})(),Wn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,is,os,Ga,yi,dn]]}),t})();var uu=["tuiOption",""];function du(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e,"\n")}}function cu(t,i){if(t&1&&S(0,"tui-svg",3),t&2){let e=h(2);u("src",e.icons.more)}}function pu(t,i){if(t&1&&(K(0),v(1,cu,1,1,"tui-svg",2)),t&2){let e=h();c(1),u("ngIf",e.dropdown)}}var mu=t=>({$implicit:t}),rs=["*"];function hu(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}function gu(t,i){if(t&1&&(m(0,"div",2),v(1,hu,2,1,"ng-container",3),W(2,"async"),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.emptyContent||Q(2,1,e.defaultEmptyContent$))}}function fu({currentTarget:t}){return!Ee(t)}var $t=class{constructor(i,e,n,o,r,l){this.content=i,this.dataList=e,this.el=n,this.host=o,this.dropdown=r,this.icons=l,this.size=null,this.role="option",this.disabled=!1}get active(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef}onClick(){this.host&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove({currentTarget:i}){i.focus({preventScroll:!0})}ngOnDestroy(){var i;(i=this.dataList)===null||i===void 0||i.handleFocusLossIfNecessary(this.el.nativeElement)}};$t.\u0275fac=function(i){return new(i||$t)(s(ia,8),s(le(()=>Ot),8),s(E),s(Qr,8),s(ae,10),s(ui))};$t.\u0275cmp=k({type:$t,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(i,e){i&1&&f("click",function(){return e.onClick()})("mousemove.silent",function(o){return e.onMouseMove(o)}),i&2&&(H("disabled",e.disabled||null)("data-size",e.size)("role",e.role),F("_with-dropdown",e.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:uu,ngContentSelectors:rs,decls:3,vars:4,consts:[[4,"polymorpheusOutlet","polymorpheusOutletContext"],["base",""],["class","t-arrow",3,"src",4,"ngIf"],[1,"t-arrow",3,"src"]],template:function(i,e){if(i&1&&(oe(),v(0,du,2,1,"ng-container",0)(1,pu,2,1,"ng-template",null,1,Te)),i&2){let n=J(2);u("polymorpheusOutlet",e.content||n)("polymorpheusOutletContext",pe(2,mu,n))}},dependencies:[_e,Z,ee],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;justify-content:space-between;text-align:left;color:var(--tui-text-01);border-radius:var(--tui-radius-s);outline:none;text-decoration:none;cursor:pointer;background-clip:padding-box}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[_nghost-%COMP%]:focus, ._with-dropdown[_nghost-%COMP%]{background-color:var(--tui-clear)}[_nghost-%COMP%] [data-list-size="s"][_nghost-%COMP%], [data-list-size="s"] [_nghost-%COMP%], [_nghost-%COMP%] [data-list-size="xs"][_nghost-%COMP%], [data-list-size="xs"] [_nghost-%COMP%], [data-size=s][data-size=s][_nghost-%COMP%], [data-size=xs][data-size=xs][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}[_nghost-%COMP%] [data-list-size="m"][_nghost-%COMP%], [data-list-size="m"] [_nghost-%COMP%], [data-size=m][data-size=m][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}[_nghost-%COMP%] [data-list-size="l"][_nghost-%COMP%], [data-list-size="l"] [_nghost-%COMP%], [data-size=l][data-size=l][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}.t-arrow[_ngcontent-%COMP%]{margin:0 -.5rem 0 .75rem}'],changeDetection:0});se([mi(fu)],$t.prototype,"onMouseMove",null);var Ot=class{constructor(i,e,n){var o;this.controller=i,this.el=e,this.defaultEmptyContent$=n,this.options=Yi,this.role="listbox",this.size=((o=this.controller)===null||o===void 0?void 0:o.size)||"m"}get empty$(){return Mr(this.options).pipe(L(({length:i})=>!i))}onFocusIn(i,e){!e.contains(i)&&!this.origin&&(this.origin=i)}noop(){}onKeyDownArrow(i,e){let{elements:n}=this;co(n.indexOf(i),n,e)}handleFocusLossIfNecessary(i=this.el.nativeElement){this.origin&&Xe(i)&&gr(this.origin,!0,!0)}getOptions(i=!1){return this.options.filter(({disabled:e})=>i||!e).map(({value:e})=>e).filter(Qi)}onFocus({target:i},e){if(!ot(i))return;let{elements:n}=this;co(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(i)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}};Ot.\u0275fac=function(i){return new(i||Ot)(s(Qt,8),s(E),s(Jr))};Ot.\u0275cmp=k({type:Ot,selectors:[["tui-data-list"]],contentQueries:function(i,e,n){if(i&1&&Ct(n,$t,5),i&2){let o;V(o=j())&&(e.options=o)}},hostVars:2,hostBindings:function(i,e){i&1&&f("focusin",function(o){return e.onFocusIn(o.relatedTarget,o.currentTarget)})("mousedown.prevent",function(){return e.noop()})("keydown.arrowDown.prevent",function(o){return e.onKeyDownArrow(o.target,1)})("keydown.arrowUp.prevent",function(o){return e.onKeyDownArrow(o.target,-1)})("wheel.silent.passive",function(){return e.handleFocusLossIfNecessary()})("mouseleave",function(o){return e.handleFocusLossIfNecessary(o.target)}),i&2&&H("role",e.role)("data-list-size",e.size)},inputs:{role:"role",emptyContent:"emptyContent",size:"size"},features:[b([Kr(Ot),Di])],ngContentSelectors:rs,decls:5,vars:3,consts:[["tabindex","0",1,"t-trap",3,"focusin"],["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(i,e){i&1&&(oe(),m(0,"div",0),f("focusin",function(o){return e.onFocus(o,!0)}),g(),K(1),v(2,gu,3,3,"div",1),W(3,"async"),m(4,"div",0),f("focusin",function(o){return e.onFocus(o,!1)}),g()),i&2&&(c(2),u("ngIf",Q(3,1,e.empty$)))},dependencies:[ee,Z,fe],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-03)}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-list-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-list-size=s]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-list-size=m]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-list-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-list-size=l]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-02);flex-direction:column;line-height:1rem}tui-data-list[data-list-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-list-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-list-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-base-03)}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}\n'],encapsulation:2,changeDetection:0});se([xe],Ot.prototype,"empty$",null);var as=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})();var _u=["wrapper"];function vu(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}var Cu=(t,i)=>({$implicit:t,close:i});function Mu(t,i){if(t&1){let e=U();m(0,"div",5,6),f("keydown",function(o){w(e);let r=h(2);return x(r.onKeydown(o))}),v(2,vu,2,1,"ng-container",7),g(),S(3,"div")}if(t&2){h();let e=J(1),n=h();c(2),u("polymorpheusOutlet",n.content)("polymorpheusOutletContext",tr(2,Cu,e,n.close))}}function Tu(t,i){if(t&1){let e=U();m(0,"div",1,2),f("tuiActiveZoneChange",function(o){w(e);let r=h();return x(r.onActiveZone(o))})("tuiObscured",function(o){w(e);let r=h();return x(r.onHostObscured(o))}),K(2),v(3,Mu,4,5,"ng-template",3,4,Te),g()}if(t&2){let e=i.tuiLet,n=J(4),o=h();u("tuiDropdown",n)("tuiDropdownManual",e&&o.canOpen)("tuiDropdownSided",o.sided)("tuiObscuredEnabled",e),c(3),u("polymorpheus",o.context)}}var bu=["*"],ss=(()=>{class t extends Tt{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiAccessorProxy",""]],features:[b([{provide:Tt,multi:!0,deps:[[new ke,new wi,t],t],useFactory:(i,e)=>i||e}]),I]}),t})(),ls=new Ge("[TUI_HOSTED_DROPDOWN_COMPONENT]"),yu=(()=>{class t{constructor(e,n,o,r){r==null||r.tuiDropdownOpenChange.pipe(_t(l=>l&&r.dropdown===o&&!n.focused),ie(e)).subscribe(()=>{var l;(l=n.nativeFocusableElement)===null||l===void 0||l.focus(),n.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(ls),s(ae,2),s(wo,8))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[b([B])]}),t})(),Ou=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function Du(t){var i;return"key"in t&&t.key.toLowerCase()==="escape"&&this.canOpen&&this.open&&!(!((i=this.dropdown)===null||i===void 0)&&i.nextElementSibling)}var Oe=class{constructor(i,e){this.hover$=i,this.el=e,this.focus$=new wt(!1),this.openChange=new wt(!1),this.sided=!1,this.canOpen=!0,this.hostHover$=no([Se(this.el.nativeElement,"mouseover").pipe(L(n=>this.computedHost.contains(Zi(n))),xt(n=>{var o,r;return Be(n).pipe(vt((n?(o=this.hover$)===null||o===void 0?void 0:o.showDelay:(r=this.hover$)===null||r===void 0?void 0:r.hideDelay)||0))})),this.hover$||Yo]).pipe(L(([n,o])=>n&&o)),this.open$=Pe(this.openChange,this.hostHover$).pipe(Xt(1),Ye(),Li()),this.focusedChange=new Y,this.close=()=>this.updateOpen(!1)}set open(i){this.openChange.next(i)}get open(){return this.openChange.value}get host(){var i;return((i=this.dropdownHost)===null||i===void 0?void 0:i.nativeElement)||this.el.nativeElement}get computedHost(){var i;return((i=this.dropdownHost)===null||i===void 0?void 0:i.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var i,e;return(e=(i=this.dropdownDirective)===null||i===void 0?void 0:i.dropdownBoxRef)===null||e===void 0?void 0:e.location.nativeElement}get nativeFocusableElement(){return hr(this.host)?this.host:ii({initial:this.host,root:this.el.nativeElement})}get focused(){return Xe(this.host)||this.open&&!!this.wrapper&&Xe(this.wrapper.nativeElement)}onFocusInOut(){this.focus$.next(this.focused)}onFocusIn(i){this.computedHost.contains(i)||this.updateOpen(!1)}onClick(i){var e;!this.hostEditable&&this.computedHost.contains(i)&&!(!((e=this.hover$)===null||e===void 0)&&e.hovered)&&this.updateOpen(!this.open)}onKeyDownEsc(i){i.preventDefault(),this.closeDropdown()}onArrow(i,e){this.focusDropdown(i,e)}onKeydown({key:i,target:e,defaultPrevented:n}){!n&&Yr(i)&&this.hostEditable&&Xi(e)&&!qi(e)&&this.focusHost()}onActiveZone(i){this.updateFocused(i),i||this.updateOpen(!1)}onHostObscured(i){i&&this.closeDropdown()}updateOpen(i){(!i||this.canOpen)&&(this.open=i)}get hostEditable(){return qi(this.computedHost)}focusDropdown(i,e){let n=this.nativeFocusableElement;if(!n||!Xi(n)||!ot(i.target)||!n.contains(i.target))return;if(!this.wrapper||!this.open||!this.dropdown||!Xi(this.wrapper.nativeElement.nextElementSibling)){this.updateOpen(!0),qi(n)||i.preventDefault();return}let o=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=ii({initial:o,root:this.wrapper.nativeElement,previous:!e});r&&(r.focus(),i.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){let i=this.nativeFocusableElement;i&&i.focus({preventScroll:!0})}updateFocused(i){this.focusedChange.emit(i)}};Oe.\u0275fac=function(i){return new(i||Oe)(s(xo,10),s(E))};Oe.\u0275cmp=k({type:Oe,selectors:[["tui-hosted-dropdown"]],contentQueries:function(i,e,n){if(i&1&&Ct(n,Ou,5,E),i&2){let o;V(o=j())&&(e.dropdownHost=o.first)}},viewQuery:function(i,e){if(i&1&&(G(_u,5,E),G(ae,5),G(Ie,5)),i&2){let n;V(n=j())&&(e.wrapper=n.first),V(n=j())&&(e.dropdownDirective=n.first),V(n=j())&&(e.activeZone=n.first)}},hostVars:1,hostBindings:function(i,e){i&1&&f("$.class._hosted_dropdown_focused",function(){return e.focus$})("focusin.capture.silent",function(){return e.onFocusInOut()})("focusout.capture.silent",function(){return e.onFocusInOut()})("focusin",function(o){return e.onFocusIn(o.target)})("click",function(o){return e.onClick(o.target)})("keydown.silent.capture",function(o){return e.onKeyDownEsc(o)},!1,kt)("keydown.arrowDown",function(o){return e.onArrow(o,!0)})("keydown.arrowUp",function(o){return e.onArrow(o,!1)}),i&2&&Ke("$.class._hosted_dropdown_focused",e.focus$)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[b([Fe(Oe),{provide:ss,deps:[[new ke,new Zt,Tt]],useFactory:t=>t==null?void 0:t[0]},{provide:ls,useExisting:Oe}])],ngContentSelectors:bu,decls:2,vars:3,consts:[["tuiAccessorProxy","","tuiDropdownOpenMonitor","","class","t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured",4,"tuiLet"],["tuiAccessorProxy","","tuiDropdownOpenMonitor","",1,"t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured"],["activeZone","tuiActiveZone"],[3,"polymorpheus"],["dropdown","polymorpheus"],[1,"t-dropdown",3,"keydown"],["wrapper",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,e){if(i&1&&(oe(),v(0,Tu,5,5,"div",0),W(1,"async")),i&2){let n;u("tuiLet",(n=Q(1,1,e.open$))!==null&&n!==void 0?n:e.openChange.value)}},dependencies:[At,ss,yu,ae,Da,Pa,wa,Ie,pa,on,Z,fe],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.t-dropdown[_ngcontent-%COMP%]{height:100%}"],changeDetection:0});se([mi(Du)],Oe.prototype,"onKeyDownEsc",null);var Yn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,re,Ht,ma,ri,xa]]}),t})();function Pu(t,i){if(t&1&&S(0,"tui-svg",2),t&2){let e=i.polymorpheusOutlet,n=h();F("t-mark_on",!n.empty),u("src",e)}}var wu=t=>({$implicit:t}),xu=["*"],Iu={size:"m",appearances:{unchecked:bt.Outline,checked:bt.Primary,indeterminate:bt.Primary},icons:{checked:({$implicit:t})=>t==="m"?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>t==="m"?"tuiIconMinus":"tuiIconMinusLarge"}},ki=X(Iu);var ds=(()=>{class t{constructor(e){this.options=e,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.icon=this.options.icons.checked,this.value=!1}set valueSetter(e){e!==!1&&this.setCurrentIcon(e),this.value=e}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return this.value===!1}setCurrentIcon(e){this.icon=e===null?this.options.icons.indeterminate:this.options.icons.checked}}return t.\u0275fac=function(e){return new(e||t)(s(ki))},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,n){e&2&&H("data-size",n.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:xu,decls:3,vars:10,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",3,"t-mark_on","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-mark",3,"src"]],template:function(e,n){e&1&&(oe(),m(0,"div",0),v(1,Pu,1,3,"tui-svg",1),K(2),g()),e&2&&(u("active",n.pressed)("appearance",n.appearance)("disabled",n.disabled)("focus",n.focused)("hover",n.hovered)("invalid",n.invalid),c(1),u("polymorpheusOutlet",n.icon)("polymorpheusOutletContext",pe(8,wu,n.size)))},dependencies:[_e,$e,Z],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.t-mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.t-mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),t})(),cs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[be,We,re]]}),t})();function ku(t,i){if(t&1&&S(0,"tui-svg",3),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var Gn=(()=>{class t extends Ut{constructor(e,n,o,r){super(o),this.isMobile=r,this.mode=null,this.describeId="",n.pipe(ie(e)).subscribe(l=>{this.mode=l})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(e){var n;this.isMobile&&(e.preventDefault(),e.stopPropagation()),(n=this.driver$)===null||n===void 0||n.toggle()}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(st),s(Kt),s(an))},t.\u0275cmp=k({type:t,selectors:[["tui-tooltip"]],viewQuery:function(e,n){if(e&1&&G(Oi,5),e&2){let o;V(o=j())&&(n.driver$=o.first)}},hostVars:1,hostBindings:function(e,n){e&1&&f("mousedown",function(r){return n.stopOnMobile(r)}),e&2&&H("data-appearance",n.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[b([B,lt]),I],decls:4,vars:11,consts:[["appearance","icon","automation-id","tui-tooltip__icon","tuiWrapper","",1,"t-tooltip-icon",3,"hover","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["driver","tuiHintHover"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(e,n){if(e&1&&(m(0,"span",0,1),W(2,"async"),v(3,ku,1,1,"tui-svg",2),g()),e&2){let o=J(1);u("hover",Q(2,9,o)||null)("tuiHint",n.content)("tuiHintAppearance",n.computedAppearance)("tuiHintContext",n.context)("tuiHintDescribe",n.describeId)("tuiHintDirection",n.direction)("tuiHintHideDelay",n.hideDelay)("tuiHintShowDelay",n.showDelay),c(3),u("polymorpheusOutlet",n.icon)}},dependencies:[_e,$e,Vn,ka,Oi,gt,ht,Z,fe],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-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;color:inherit}[tuiWrapper][data-appearance="textfield"][data-state="disabled"][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [tuiWrapper][data-appearance="textfield"][data-state="disabled"] [_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),t})(),Kn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,We,be,jn,re]]}),t})();var Su=["pre"],Fu=["focusableElement"];function Au(t,i){t&1&&qt(0)}function Hu(t,i){t&1&&qt(0)}function Ru(t,i){t&1&&(m(0,"div",17),K(1,2),g())}function Lu(t,i){if(t&1&&S(0,"tui-svg",20),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var Ro=t=>({$implicit:t});function Nu(t,i){if(t&1&&(m(0,"div",18),v(1,Lu,1,1,"tui-svg",19),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconLeftContent)("polymorpheusOutletContext",pe(2,Ro,e.size))}}function zu(t,i){if(t&1&&(m(0,"label",21),K(1,3),g()),t&2){let e=h();F("t-placeholder_raised",e.placeholderRaised),u("for",e.computedId)}}function Vu(t,i){if(t&1&&S(0,"tui-svg",24),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function ju(t,i){if(t&1&&(m(0,"div",22),v(1,Vu,1,1,"tui-svg",23),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.controller.customContent)}}function Bu(t,i){if(t&1&&S(0,"tui-svg",27),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function Uu(t,i){if(t&1){let e=U();m(0,"span",25),f("click.stop",function(){w(e);let o=h();return x(o.clear())}),v(1,Bu,1,1,"tui-svg",26),g()}if(t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconCleaner||e.controller.options.iconCleaner)("polymorpheusOutletContext",pe(2,Ro,e.size))}}function $u(t,i){if(t&1&&S(0,"tui-tooltip",28),t&2){let e=h();u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.computedId)}}function Wu(t,i){if(t&1&&S(0,"tui-svg",20),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function Yu(t,i){if(t&1&&(m(0,"div",29),v(1,Wu,1,1,"tui-svg",19),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconContent)("polymorpheusOutletContext",pe(2,Ro,e.size))}}var Gu=[[["input"]],[["select"]],[["tuiContent"]],"*"],Ku=["input","select","tuiContent","*"];var Qu=(()=>{class t{constructor(e,n){this.textfield=e,this.fontsReady$=n,this.prefix$=new wt(""),this.pre$=Pe(this.fontsReady$,this.prefix$).pipe(vt(0),_t(()=>{var o;return!!(!((o=this.pre)===null||o===void 0)&&o.nativeElement.isConnected)}),L(()=>{var o;return((o=this.pre)===null||o===void 0?void 0:o.nativeElement.offsetWidth)||0}),Ye())}get isContextTable(){return this.textfield.appearance===bt.Table}get value(){return this.textfield.value}get filler(){let{focused:e,placeholder:n,exampleText:o,value:r,textfield:l}=this;return n&&o?"":e?o||l.filler.slice(r.length):""}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}ngDoCheck(){this.prefix$.next(this.prefix)}get placeholder(){var e;return((e=this.textfield.nativeFocusableElement)===null||e===void 0?void 0:e.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)?" ".concat(this.textfield.postfix):this.textfield.postfix}}return t.\u0275fac=function(e){return new(e||t)(s(wr),s(xr))},t.\u0275cmp=k({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(e,n){if(e&1&&G(Su,7,E),e&2){let o;V(o=j())&&(n.pre=o.first)}},hostVars:4,hostBindings:function(e,n){e&1&&f("animationstart",function(){return n.ngDoCheck()}),e&2&&F("_table",n.isContextTable)("_filler",n.filler)},decls:5,vars:4,consts:[[1,"t-prefix",3,"textContent"],["pre",""],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(e,n){e&1&&S(0,"span",0,1)(2,"span",2)(3,"span",3)(4,"span",4),e&2&&(u("textContent",n.prefix),c(2),u("textContent",n.value),c(1),u("textContent",n.filler),c(1),u("textContent",n.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-03);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 [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-03-night)}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-01)}tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']}),t})(),Xu={s:1.25,m:1.75,l:2.25},Ve=class extends sn{constructor(i,e,n,o){super(),this.controller=i,this.hintOptions=e,this.options=n,this.el=o,this.editable=!0,this.textfieldFiller="",this.iconCleaner=this.options.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.textfieldPrefix="",this.textfieldPostfix="",this.value="",this.valueChange=new Y,this.autofilled=!1}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get filler(){return this.textfieldFiller||this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:i}=this.focusableElement;return i.previousElementSibling||i}get focused(){return Xe(this.el.nativeElement)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var i;return!!(!((i=this.content)===null||i===void 0)&&i.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var i;return!!(!((i=this.hintOptions)===null||i===void 0)&&i.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var i;let n=(((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!n}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return Wr(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get showHint(){var i;return!!(!((i=this.hintOptions)===null||i===void 0)&&i.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var i;return((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var i;return((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.id)||""}onFocused(i){this.updateFocused(i)}getIndent$(i){return Hi(i,"scroll").pipe(L(()=>-1*Math.max(i.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(i){let{nativeFocusableElement:e}=this;!e||i.target===e||(i.preventDefault(),e.focus())}onModelChange(i){this.updateValue(i)}onAutofilled(i){this.updateAutofilled(i)}detectRetargetFromLabel(i){en(i)&&i.stopImmediatePropagation()}get iconPaddingLeft(){return Xu[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(i){this.autofilled!==i&&(this.autofilled=i)}updateValue(i){this.value=i,this.valueChange.emit(i)}};Ve.\u0275fac=function(i){return new(i||Ve)(s(Qt),s(Ut,8),s(ko),s(E))};Ve.\u0275cmp=k({type:Ve,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,e,n){if(i&1&&Ct(n,Z,5),i&2){let o;V(o=j())&&(e.content=o)}},viewQuery:function(i,e){if(i&1&&G(Fu,5),i&2){let n;V(n=j())&&(e.focusableElement=n.first)}},hostVars:15,hostBindings:function(i,e){i&1&&f("focusin",function(){return e.onFocused(!0)})("focusout",function(){return e.onFocused(!1)}),i&2&&(H("data-size",e.size),He("--border-start",e.borderStart,"rem")("--border-end",e.borderEnd,"rem"),F("_autofilled",e.autofilled)("_label-outside",e.controller.labelOutside)("_readonly",e.readOnly)("_invalid",e.computedInvalid)("_hidden",e.inputHidden))},inputs:{editable:"editable",textfieldFiller:["filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[b([Fe(Ve),Di]),I],ngContentSelectors:Ku,decls:24,vars:37,consts:[[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown","tuiAutofilledChange"],["automation-id","tui-primitive-textfield__native-input","tuiMaskAccessor","",1,"t-input",3,"disabled","id","ngModel","readOnly","tuiFocusable","ngModelChange"],["focusableElement",""],["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"],["decor",""],[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"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["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,"src",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"src"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(i,e){if(i&1&&(oe(Gu),v(0,Au,1,0,"ng-container",0),W(1,"async"),v(2,Hu,1,0,"ng-container",0),W(3,"async"),m(4,"div",1),f("click.prevent.silent",function(o){return e.detectRetargetFromLabel(o)})("mousedown",function(o){return e.onMouseDown(o)})("tuiAutofilledChange",function(o){return e.onAutofilled(o)}),W(5,"async"),K(6),K(7,1),m(8,"input",2,3),f("ngModelChange",function(o){return e.onModelChange(o)}),g(),v(10,Ru,2,0,"div",4),m(11,"div",5),v(12,Nu,2,4,"div",6),m(13,"div",7),v(14,zu,2,3,"label",8),m(15,"div",9)(16,"tui-value-decoration",10,11),W(18,"async"),g()()(),m(19,"div",12),v(20,ju,2,1,"div",13)(21,Uu,2,4,"span",14)(22,$u,1,2,"tui-tooltip",15)(23,Yu,2,4,"div",16),g()()()),i&2){let n=J(9),o=J(17);u("ngIf",Q(1,29,e.content==null?null:e.content.changes)),c(2),u("ngIf",Q(3,31,e.hintOptions==null?null:e.hintOptions.change$)),c(2),He("--text-indent",Q(5,33,o.pre$),"px"),u("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),c(4),u("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly||!e.editable)("tuiFocusable",e.computedFocusable),H("aria-invalid",e.computedInvalid)("name",e.name),c(2),u("ngIf",e.inputHidden),c(2),u("ngIf",e.iconLeftContent),c(2),u("ngIf",e.hasPlaceholder),c(2),He("text-indent",Q(18,35,e.getIndent$(n)),"px"),F("t-has-value",e.value),c(4),u("ngIf",e.hasCustomContent),c(1),u("ngIf",e.hasCleaner),c(1),u("ngIf",e.showHint),c(1),u("ngIf",e.iconContent)}},dependencies:[_e,Qu,Gn,ee,$e,da,Ea,tt,it,Re,ut,Z,fe],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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;-moz-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);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{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.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-03);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}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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%], .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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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;-webkit-padding-end:.25rem;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;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);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-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._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-03)}[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-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}.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}._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%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;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}.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;-webkit-padding-end:0;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});se([xe],Ve.prototype,"getIndent$",null);var ps=(()=>{class t extends hn{constructor(e){super(e),this.textfield=e}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(e){this.textfield.onModelChange(e)}}return t.\u0275fac=function(e){return new(e||t)(s(Ve))},t.\u0275dir=y({type:t,selectors:[["tui-primitive-textfield"]],features:[b([Mn(t)]),I]}),t})();var ms=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,nt,re,Sa,dt,We,be,Kn,ca]]}),t})();function hs(t){if(t==="")return"";let i=0;for(let r=0;rl&&i(r)),n=t[e-1]||t[0],o=t[e]||t[t.length-1];return[n,o]}function vs(t,i){let[[e,n],[o,r]]=_s(i,([p,T])=>t<=p),l=(t-e)/(o-e),d=(r-n)*l+n;return dr(d,fs)}function Cs(t,i){let[[e,n],[o,r]]=_s(i,([d,p])=>t<=p),l=(t-n)/(r-n)||0;return(o-e)*l+e}function Ms(t,i){return t?Cr(t).pipe(L(e=>i?i.fromControlValue(e):e)):Be(null)}var Zu=new Ge("[TUI_CALENDAR_DATE_STREAM]");function Ts(t){return{provide:Zu,deps:[[new ke,new Zt,we],[new ke,t]],useFactory:Ms}}var yv=X({[a.AD]:"+376###-###",[a.AE]:"+971-##-###-####",[a.AF]:"+93##-###-####",[a.AG]:"+1(268) ###-####",[a.AI]:"+1(264) ###-####",[a.AL]:"+355(###) ###-###",[a.AM]:"+374##-###-###",[a.AO]:"+244(###) ###-###",[a.AR]:"+54(###) ####-####",[a.AT]:"+43(###) ###-####",[a.AU]:"+61#-####-####",[a.AW]:"+297###-####",[a.AZ]:"+994##-###-##-##",[a.BA]:"+387 ###-####-##",[a.BB]:"+1(246) ###-####",[a.BD]:"+880##-###-###",[a.BE]:"+32(###) ###-###",[a.BF]:"+226##-##-####",[a.BG]:"+359(###) ###-###",[a.BH]:"+973####-####",[a.BI]:"+257##-##-####",[a.BJ]:"+229##-##-####",[a.BL]:"+590 ## ## ## ## ##",[a.BM]:"+1(441) ###-####",[a.BN]:"+673###-####",[a.BO]:"+591#-###-####",[a.BQ]:"+599-###-####",[a.BR]:"+55(##) ####-####",[a.BS]:"+1(242) ###-####",[a.BT]:"+975#-###-###",[a.BW]:"+267##-###-###",[a.BY]:"+375(##) ###-##-##",[a.BZ]:"+501###-####",[a.CA]:"+1(###) ###-####",[a.CD]:"+243(###) ###-###",[a.CF]:"+236-##-##-####",[a.CG]:"+242##-###-####",[a.CH]:"+41##-###-####",[a.CI]:"+225##-##-###-###",[a.CL]:"+56#-####-####",[a.CM]:"+237#####-####",[a.CN]:"+86(###) ####-####",[a.CO]:"+57(###) ###-####",[a.CR]:"+506####-####",[a.CU]:"+53#-###-####",[a.CV]:"+238(###) ##-##",[a.CW]:"+5999-###-####",[a.CY]:"+357##-###-###",[a.CZ]:"+420(###) ###-###",[a.DE]:"+49(###) ###-###-##",[a.DJ]:"+253##-##-##-##",[a.DK]:"+45##-##-##-##",[a.DM]:"+1(767) ###-####",[a.DO]:"+1(###) ###-####",[a.DZ]:"+213##-###-####",[a.EC]:"+593##-###-####",[a.EE]:"+372####-####",[a.EG]:"+20(###) ###-####",[a.ER]:"+291#-###-###",[a.ES]:"+34(###) ###-###",[a.ET]:"+251##-###-####",[a.FI]:"+358(###) ###-##-##",[a.FJ]:"+679##-#####",[a.FK]:"+500#####",[a.FM]:"+691###-####",[a.FR]:"+33 ## ## ## ## ##",[a.GA]:"+241##-##-##-##",[a.GB]:"+44##-####-####",[a.GD]:"+1(473) ###-####",[a.GE]:"+995(###) ###-###",[a.GF]:"+594 ## ## ## ## ##",[a.GH]:"+233(###) ###-###",[a.GI]:"+350###-#####",[a.GL]:"+299##-##-##",[a.GM]:"+220(###) ##-##",[a.GN]:"+224##-###-###",[a.GP]:"+590 ## ## ## ## ##",[a.GQ]:"+240##-###-####",[a.GR]:"+30(###) ###-####",[a.GT]:"+502#-###-####",[a.GW]:"+245#-######",[a.GY]:"+592###-####",[a.HK]:"+852####-####",[a.HN]:"+504####-####",[a.HR]:"+385##-###-####",[a.HT]:"+509##-##-####",[a.HU]:"+36(###) ###-###",[a.ID]:"+62(###) ###-##-###",[a.IE]:"+353(###) ###-###",[a.IL]:"+972##-###-####",[a.IN]:"+91(####) ###-###",[a.IQ]:"+964(###) ###-####",[a.IR]:"+98(###) ###-####",[a.IS]:"+354###-####",[a.IT]:"+39(###) ####-###",[a.JM]:"+1(876) ###-####",[a.JO]:"+962#-####-####",[a.JP]:"+81-##-####-####",[a.KE]:"+254###-######",[a.KG]:"+996(###) ###-###",[a.KH]:"+855##-###-###",[a.KM]:"+269##-#####",[a.KN]:"+1(869) ###-####",[a.KP]:"+850####-#############",[a.KR]:"+82##-###-####",[a.KW]:"+965####-####",[a.KY]:"+1(345) ###-####",[a.KZ]:"+7(###) ###-##-##",[a.LA]:"+856##-##-###-###",[a.LB]:"+961##-###-###",[a.LC]:"+1(758) ###-####",[a.LI]:"+423(###) ###-####",[a.LK]:"+94##-###-####",[a.LR]:"+231##-###-###",[a.LS]:"+266#-###-####",[a.LT]:"+370(###) ##-###",[a.LU]:"+352(###) ###-###",[a.LV]:"+371##-###-###",[a.LY]:"+218##-###-####",[a.MA]:"+212##-####-###",[a.MC]:"+377###-###-###",[a.MD]:"+373####-####",[a.ME]:"+382##-###-###",[a.MF]:"+590 ## ## ## ## ##",[a.MG]:"+261##-##-#####",[a.MK]:"+389##-###-###",[a.ML]:"+223##-##-####",[a.MM]:"+95##-###-###",[a.MN]:"+976##-##-####",[a.MO]:"+853####-####",[a.MQ]:"+596 ## ## ## ## ##",[a.MR]:"+222##-##-####",[a.MS]:"+1(664) ###-####",[a.MT]:"+356####-####",[a.MU]:"+230####-####",[a.MV]:"+960###-####",[a.MW]:"+265#-####-####",[a.MX]:"+52(###) ###-####",[a.MY]:"+60(###) ###-###",[a.MZ]:"+258##-###-###",[a.NA]:"+264##-###-####",[a.NC]:"+687 ### ###",[a.NE]:"+227##-##-####",[a.NG]:"+234(###) ###-####",[a.NI]:"+505####-####",[a.NL]:"+31##-###-####",[a.NO]:"+47(###) ##-###",[a.NP]:"+977##-###-###",[a.NZ]:"+64(###) ###-####",[a.OM]:"+968##-###-###",[a.PA]:"+507###-####",[a.PE]:"+51(###) ###-###",[a.PF]:"+689 ## ## ## ##",[a.PG]:"+675(###) ##-###",[a.PH]:"+63(###) ###-####",[a.PK]:"+92(###) ###-####",[a.PL]:"+48(###) ###-###",[a.PT]:"+351##-###-####",[a.PW]:"+680###-####",[a.PY]:"+595(###) ###-###",[a.QA]:"+974####-####",[a.RE]:"+262 ## ## ## ## ##",[a.RO]:"+40##-###-####",[a.RS]:"+381##-###-####",[a.RU]:"+7### ###-##-##",[a.RW]:"+250(###) ###-###",[a.SA]:"+966#-####-####",[a.SB]:"+677###-####",[a.SC]:"+248#-###-###",[a.SD]:"+249##-###-####",[a.SE]:"+46##-###-####",[a.SG]:"+65####-####",[a.SH]:"+290####",[a.SI]:"+386##-###-###",[a.SK]:"+421(###) ###-###",[a.SL]:"+232##-######",[a.SM]:"+378####-######",[a.SN]:"+221##-###-####",[a.SO]:"+252##-###-###",[a.SR]:"+597###-####",[a.ST]:"+239##-#####",[a.SV]:"+503##-##-####",[a.SX]:"+1(721) ###-####",[a.SY]:"+963##-####-###",[a.SZ]:"+268##-##-####",[a.TC]:"+1(649) ###-####",[a.TD]:"+235##-##-##-##",[a.TG]:"+228##-###-###",[a.TH]:"+66##-###-####",[a.TJ]:"+992##-###-####",[a.TL]:"+670###-#####",[a.TM]:"+993#-###-####",[a.TN]:"+216##-###-###",[a.TO]:"+676#####",[a.TR]:"+90(###) ###-####",[a.TT]:"+1(868) ###-####",[a.TW]:"+886#-####-####",[a.TZ]:"+255##-###-####",[a.UA]:"+380(##) ###-##-##",[a.UG]:"+256(###) ###-###",[a.US]:"+1(###) ###-####",[a.UY]:"+598#-###-##-##",[a.UZ]:"+998##-###-####",[a.VC]:"+1(784) ###-####",[a.VE]:"+58(###) ###-####",[a.VG]:"+1(284)###-####",[a.VN]:"+84(###) ####-###",[a.VU]:"+678##-#####",[a.WS]:"+685##-####",[a.XK]:"+383##-###-###",[a.YE]:"+967###-###-###",[a.YT]:"+262 ## ## ## ## ##",[a.ZA]:"+27##-###-####",[a.ZM]:"+260##-###-####",[a.ZW]:"+263#-######"}),Lo=new Ge("[TUI_DATE_VALUE_TRANSFORMER]"),Ov=new Ge("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),Dv=new Ge("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),Pv=R(te("prompt")),wv=R(te("cancel")),xv=R(te("done")),Iv=R(te("more")),kv=R(te("hide")),Ev=R(te("showAll")),Sv=R(te("otherDate")),Fv=R(te("mobileCalendarTexts")),Av=R(te("range")),Hv=R(te("countTexts")),Rv=R(te("time")),bs=R(te("dateTexts")),Lv=R(te("digitalInformationUnits")),Nv=R(te("copyTexts")),zv=R(te("passwordTexts")),Vv=R(te("shortCalendarMonths")),jv=R(te("fileTexts")),Bv=R(te("pagination")),Uv=R(te("inputFileTexts")),$v=R(te("multiSelectTexts")),Wv=R(te("countries")),qu={icon:({$implicit:t})=>t==="s"?"tuiIconCalendar":"tuiIconCalendarLarge",min:Ae,max:Ne,nativePicker:!1},ys=X(qu);var Ju={stringify:rr,identityMatcher:ar,disabledItemHandler:Me},Yv=X(Ju);var Os=new Ge("[TUI_MOBILE_CALENDAR]"),Gv=new Ge("[TUI_MONTH_FORMATTER]"),Kv=X(24),Qv=X({});var Es=t=>t.querySelector("input,textarea")||t,Dt={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},No=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let i=this.past.pop();i&&this.now&&(this.future.push(this.now),this.updateElement(i,"historyUndo"))}redo(){let i=this.future.pop();i&&this.now&&(this.past.push(this.now),this.updateElement(i,"historyRedo"))}updateHistory(i){if(!this.now){this.now=i;return}let e=this.now.value!==i.value,n=this.now.selection.some((o,r)=>o!==i.selection[r]);!e&&!n||(e&&(this.past.push(this.now),this.future=[]),this.now=i)}updateElement(i,e){this.now=i,this.updateElementState(i,{inputType:e,data:null})}};function ed(t,...i){return i.every(({value:e})=>e===t.value)}function td(t,...i){return i.every(({value:e,selection:n})=>e===t.value&&n[0]===t.selection[0]&&n[1]===t.selection[1])}function id({value:t,selection:i},e,n){let[o,r]=i,l=typeof n=="function"?n({value:t,selection:i}):n;return{value:t,selection:l==="replace"?[o,o+e.length]:[o,r]}}function Jn(t){return typeof t=="string"}function Ds(t,i,e,n){let o="";for(let r=i.length;r{let o=i[n];return Jn(o)?e===o:e.match(o)}):i.test(t)}function nd(t,i,e){let n=null,o=null,r=Array.from(t.value).reduce((d,p,T)=>{let _=Ds(i,d,p,e),O=d+_,D=i[O.length];return Jn(D)?O+D:p.match(D)?(n===null&&T>=t.selection[0]&&(n=O.length),o===null&&T>=t.selection[1]&&(o=O.length),O+p):O},""),l=Ds(i,r,"",e);return{value:Ss(r+l,i)?r+l:r,selection:[n!=null?n:r.length,o!=null?o:r.length]}}function od({value:t,selection:i},e){let[n,o]=i,r=n,l=o;return{value:Array.from(t).reduce((p,T,_)=>{let O=p+T;return n===_&&(r=p.length),o===_&&(l=p.length),O.match(e)?O:p},""),selection:[r,l]}}function Xn(t,i,e=null){if(Ss(t.value,i))return t;let{value:n,selection:o}=Array.isArray(i)?nd(t,i,e):od(t,i);return{selection:o,value:Array.isArray(i)?n.slice(0,i.length):n}}function Ps(t,i){if(!Array.isArray(i))return t;let[e,n]=t.selection,o=[],r=Array.from(t.value).reduce((l,d,p)=>{let T=i[p];return p===e&&o.push(l.length),p===n&&o.push(l.length),Jn(T)&&T===d?l:l+d},"");return o.length<2&&o.push(...new Array(2-o.length).fill(r.length)),{value:r,selection:[o[0],o[1]]}}var Si=class{constructor(i,e){this.initialElementState=i,this.maskOptions=e,this.value="",this.selection=[0,0];let{value:n,selection:o}=Xn(i,this.getMaskExpression(i));this.value=n,this.selection=o}addCharacters([i,e],n){let{value:o}=this,r=this.getMaskExpression({value:o.slice(0,i)+n+o.slice(e),selection:[i+n.length,i+n.length]}),l={value:o,selection:[i,e]},d=Ps(l,r),[p,T]=id(d,n,this.maskOptions.overwriteMode).selection,_=d.value.slice(0,p)+n,O=_.length,D=Xn({value:_+d.value.slice(T),selection:[O,O]},r,l);if(o.slice(0,p)===Xn({value:_,selection:[O,O]},r,l).value||td(this,D))throw new Error("Invalid mask value");this.value=D.value,this.selection=D.selection}deleteCharacters([i,e]){if(i===e||!e)return;let{value:n}=this,o=this.getMaskExpression({value:n.slice(0,i)+n.slice(e),selection:[i,i]}),r={value:n,selection:[i,e]},l=Ps(r,o),[d,p]=l.selection,T=l.value.slice(0,d)+l.value.slice(p),_=Xn({value:T,selection:[d,d]},o,r);this.value=_.value,this.selection=_.selection}getMaskExpression(i){let{mask:e}=this.maskOptions;return typeof e=="function"?e(i):e}},zo=class{constructor(i){this.element=i,this.listeners=[]}listen(i,e,n){let o=e;this.element.addEventListener(i,o,n),this.listeners.push(()=>this.element.removeEventListener(i,o))}destroy(){this.listeners.forEach(i=>i())}};function Ei(t,i,e){return t.ctrlKey===!!(i&1)&&t.altKey===!!(i&2)&&t.shiftKey===!!(i&4)&&t.metaKey===!!(i&8)&&t.keyCode===e}function rd(t){return Ei(t,1,89)||Ei(t,5,90)||Ei(t,12,90)}function ad(t){return Ei(t,1,90)||Ei(t,8,90)}function sd(t){return"onbeforeinput"in t}function ld({key:t,ctrlKey:i,metaKey:e,altKey:n}){let o=i||e||n,r=/^.$/u.test(t);return!o&&t!=="Backspace"&&r}function ud({value:t,selection:i},e){let[n,o]=i;if(n!==o)return[n,o];let r=e?t.slice(n).indexOf("\n")+1||t.length:t.slice(0,o).lastIndexOf("\n")+1;return[e?n:r,e?r:o]}function ws({value:t,selection:i},e){let[n,o]=i;return n!==o?[n,o]:(e?[n,o+1]:[n-1,o]).map(l=>Math.min(Math.max(l,0),t.length))}var xs=/\s+$/g,Is=/^\s+/g,ks=/\s/;function dd({value:t,selection:i},e){let[n,o]=i;if(n!==o)return[n,o];if(e){let p=t.slice(n),[T]=p.match(Is)||[""],_=p.replace(Is,"").search(ks);return[n,_!==-1?n+T.length+_:t.length]}let r=t.slice(0,o),[l]=r.match(xs)||[""],d=r.replace(xs,"").split("").reverse().findIndex(p=>p.match(ks));return[d!==-1?o-l.length-d:0,o]}function Zn(t=[]){return(i,...e)=>t.reduce((n,o)=>Object.assign(Object.assign({},n),o(n,...e)),i)}function Vo(t,i){let e=Object.assign(Object.assign({},Dt),i),n=Zn(e.preprocessors),o=Zn(e.postprocessors),r=typeof t=="string"?{value:t,selection:[0,0]}:t,{elementState:l}=n({elementState:r,data:""},"validation"),d=new Si(l,e),{value:p,selection:T}=o(d,r);return typeof t=="string"?p:{value:p,selection:T}}var qn=class extends No{constructor(i,e){super(),this.element=i,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new zo(this.element),this.options=Object.assign(Object.assign({},Dt),this.maskitoOptions),this.preprocessor=Zn(this.options.preprocessors),this.postprocessor=Zn(this.options.postprocessors),this.teardowns=this.options.plugins.map(n=>n(this.element,this.options)),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",n=>{if(rd(n))return n.preventDefault(),this.redo();if(ad(n))return n.preventDefault(),this.undo()}),sd(i)?this.eventListener.listen("beforeinput",n=>{let o=n.inputType.includes("Forward");switch(this.updateHistory(this.elementState),n.inputType){case"historyUndo":return n.preventDefault(),this.undo();case"historyRedo":return n.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:n,isForward:o,selection:ws(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:n,isForward:o,selection:dd(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:n,isForward:o,selection:ud(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertLineBreak":return this.handleEnter(n);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(n,n.data||"")}}):(this.eventListener.listen("keydown",n=>this.handleKeydown(n)),this.eventListener.listen("paste",n=>{var o;return this.handleInsert(n,((o=n.clipboardData)===null||o===void 0?void 0:o.getData("text/plain"))||"")})),this.eventListener.listen("input",({inputType:n})=>{n!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:i,selectionStart:e,selectionEnd:n}=this.element;return{value:i,selection:[e||0,n||0]}}get maxLength(){let{maxLength:i}=this.element;return i===-1?1/0:i}destroy(){this.eventListener.destroy(),this.teardowns.forEach(i=>i==null?void 0:i())}updateElementState({value:i,selection:e},n={inputType:"insertText",data:null}){let o=this.elementState.value;this.updateValue(i),this.updateSelectionRange(e),o!==i&&this.dispatchInputEvent(n)}updateSelectionRange([i,e]){var n,o;(this.element.selectionStart!==i||this.element.selectionEnd!==e)&&((o=(n=this.element).setSelectionRange)===null||o===void 0||o.call(n,i,e))}updateValue(i){this.element.value=i}ensureValueFitsMask(){this.updateElementState(Vo(this.elementState,this.options))}dispatchInputEvent(i={inputType:"insertText",data:null}){let e=typeof window<"u"?window:globalThis;e!=null&&e.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},i),{bubbles:!0,cancelable:!1})))}handleKeydown(i){let e=i.key,n=e==="Delete";switch(e){case"Backspace":case"Delete":return this.handleDelete({event:i,isForward:n,selection:ws(this.elementState,n)});case"Enter":return this.handleEnter(i)}ld(i)&&this.handleInsert(i,e)}handleDelete({event:i,selection:e,isForward:n,force:o=!1}){let r={value:this.elementState.value,selection:e},[l,d]=r.selection,{elementState:p}=this.preprocessor({elementState:r,data:""},n?"deleteForward":"deleteBackward"),T=new Si(p,this.options),[_,O]=p.selection;T.deleteCharacters([_,O]);let D=this.postprocessor(T,r);if(r.value.slice(0,l)+r.value.slice(d)===D.value&&!o)return;if(i.preventDefault(),ed(r,p,T,D))return this.updateSelectionRange(n?[O,O]:[_,_]);let z=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(D,{inputType:"inputType"in i?i.inputType:z,data:null}),this.updateHistory(D)}handleInsert(i,e){let n=this.elementState,{elementState:o,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),l=new Si(o,this.options);try{l.addCharacters(o.selection,r)}catch{return i.preventDefault()}let[d,p]=o.selection,T=o.value.slice(0,d)+e+o.value.slice(p),_=this.postprocessor(l,n);if(_.value.length>this.maxLength)return i.preventDefault();T!==_.value&&(i.preventDefault(),this.updateElementState(_,{data:e,inputType:"inputType"in i?i.inputType:"insertText"}),this.updateHistory(_))}handleEnter(i){this.isTextArea&&this.handleInsert(i,"\n")}};var Fs=Oa({limitWidth:"fixed",align:"right"}),As={provide:Tn,deps:[[new ke,new Zt,Wi]],useFactory:Uo};var Hs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiValueAccessor",""]],features:[b([As])]}),t})(),Rs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var cd=["focusableElement"],eo=(()=>{class t extends oi{constructor(e,n,o){super(e,o),this.options=n,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return Ee(this.nativeFocusableElement)}get computedFocusable(){return this.interactive&&this.focusable}onChecked(e){this.value=e}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(ki),s(Ce))},t.\u0275cmp=k({type:t,selectors:[["tui-checkbox"]],viewQuery:function(e,n){if(e&1&&G(cd,5),e&2){let o;V(o=j())&&(n.focusableElement=o.first)}},hostVars:1,hostBindings:function(e,n){e&2&&H("data-size",n.size)},inputs:{size:"size"},features:[b([Fe(t),rt(t)]),I],decls:3,vars:11,consts:[[3,"disabled","focused","hovered","invalid","pressed","size","value"],["automation-id","tui-checkbox__native","type","checkbox",1,"t-native",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(e,n){e&1&&(m(0,"tui-primitive-checkbox",0)(1,"input",1,2),f("tuiCheckedChange",function(r){return n.value=r})("tuiFocusedChange",function(r){return n.onFocused(r)})("tuiFocusVisibleChange",function(r){return n.onFocusVisible(r)}),g()()),e&2&&(u("disabled",n.disabled)("focused",n.computedFocusVisible)("hovered",n.pseudoHover)("invalid",n.computedInvalid)("pressed",n.pseudoActive)("size",n.size)("value",n.value),c(1),u("disabled",n.disabled)("id",n.id)("tuiFocusable",n.computedFocusable)("tuiChecked",n.value))},dependencies:[ds,xn,ut,Sn,kn],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%] tui-primitive-checkbox[_ngcontent-%COMP%]{pointer-events:none}.t-native[_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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}"],changeDetection:0}),t})(),Ls=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,In,dt,Fn,En,cs]]}),t})();var md=["*"],Ns=(()=>{class t extends oi{constructor(e,n,o,r){super(e,n),this.mode$=o,this.options=r,this.size=this.options.size}get focused(){return Ee(this.nativeFocusableElement)}get nativeFocusableElement(){var e,n;return(n=(e=this.checkbox)===null||e===void 0?void 0:e.nativeFocusableElement)!==null&&n!==void 0?n:null}onFocused(e){this.updateFocused(e)}onModelChange(e){this.value=e}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(st),s(ki))},t.\u0275cmp=k({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(e,n){if(e&1&&G(eo,5),e&2){let o;V(o=j())&&(n.checkbox=o.first)}},hostVars:1,hostBindings:function(e,n){e&1&&f("$.data-mode.attr",function(){return n.mode$}),e&2&&H("data-size",n.size)},inputs:{size:"size"},features:[b([Fe(t),rt(t),lt]),I],ngContentSelectors:md,decls:4,vars:12,consts:[[1,"t-wrapper"],[3,"disabled","focusable","nativeId","pseudoActive","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","size","ngModel","ngModelChange","focusedChange"],[1,"t-content"]],template:function(e,n){e&1&&(oe(),m(0,"label",0)(1,"tui-checkbox",1),f("ngModelChange",function(r){return n.value=r})("focusedChange",function(r){return n.onFocused(r)}),g(),m(2,"div",2),K(3),g()()),e&2&&(c(1),u("disabled",n.computedDisabled)("focusable",n.focusable)("nativeId",n.nativeId)("pseudoActive",n.pseudoActive)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("pseudoInvalid",n.computedInvalid)("readOnly",n.readOnly)("size",n.size)("ngModel",n.value),c(1),F("t-content_disabled",n.computedDisabled))},dependencies:[eo,it,Re],styles:["[_nghost-%COMP%]{position:relative;display:block;line-height:0}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:inline-flex;max-width:100%;cursor:pointer}._disabled[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{cursor:default}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);line-height:1rem;word-wrap:break-word;min-width:0}.t-content_disabled[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-left:.5rem}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-left:.75rem}"],changeDetection:0}),t})(),zs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,nt,Ls]]}),t})();var hd=new Date("0001-01-01"),gd=new Date("9999-12-31");var fd="\u2013",_d="\u2014",vd="-",Cd="\u2212",Md=[vd,fd,_d,Cd];var Td=[":","."];function bd(t,i,e){let n=Math.min(Number(e),Math.max(Number(i),Number(t)));return t instanceof Date?new Date(n):n}var Vs=t=>{var i,e,n;return{day:((i=t.match(/d/g))===null||i===void 0?void 0:i.length)||0,month:((e=t.match(/m/g))===null||e===void 0?void 0:e.length)||0,year:((n=t.match(/y/g))===null||n===void 0?void 0:n.length)||0}};function yd(t){return{day:String(t.getDate()).padStart(2,"0"),month:String(t.getMonth()+1).padStart(2,"0"),year:String(t.getFullYear()).padStart(4,"0"),hours:String(t.getHours()).padStart(2,"0"),minutes:String(t.getMinutes()).padStart(2,"0"),seconds:String(t.getSeconds()).padStart(2,"0"),milliseconds:String(t.getMilliseconds()).padStart(3,"0")}}function Od(t,i){return t.length!e.match(/^0+$/))}function js(t,i,e){let n=i.replace(/\W/g,"").length;return t.replace(e,"").match(new RegExp("(\\D*\\d[^\\d\\s]*){1,".concat(n,"}"),"g"))||[]}function Bs(t){return t.reduce((i,[e,n])=>Object.assign(Object.assign({},i),{[e]:n}),{})}function Us(t,i){let e=i.replace(/[^dmy]/g,""),n=t.replace(/\D+/g,""),o={day:n.slice(e.indexOf("d"),e.lastIndexOf("d")+1),month:n.slice(e.indexOf("m"),e.lastIndexOf("m")+1),year:n.slice(e.indexOf("y"),e.lastIndexOf("y")+1)};return Bs(Object.entries(o).filter(([r,l])=>!!l).sort(([r],[l])=>i.toLowerCase().indexOf(r[0])>i.toLowerCase().indexOf(l[0])?1:-1))}function Dd(t,i){var e,n,o,r,l,d,p;let T=((e=t.year)===null||e===void 0?void 0:e.length)===2?"20".concat(t.year):t.year,_=new Date(Number(T!=null?T:"0"),Number((n=t.month)!==null&&n!==void 0?n:"1")-1,Number((o=t.day)!==null&&o!==void 0?o:"1"),Number((r=i==null?void 0:i.hours)!==null&&r!==void 0?r:"0"),Number((l=i==null?void 0:i.minutes)!==null&&l!==void 0?l:"0"),Number((d=i==null?void 0:i.seconds)!==null&&d!==void 0?d:"0"),Number((p=i==null?void 0:i.milliseconds)!==null&&p!==void 0?p:"0"));return _.setFullYear(Number(T!=null?T:"0")),_}var Ai=", ";function to({day:t,month:i,year:e,hours:n,minutes:o,seconds:r,milliseconds:l},d,p){var T;let _=((T=d.match(/y/g))===null||T===void 0?void 0:T.length)===2?e==null?void 0:e.slice(-2):e;return(d+(p?Ai+p:"")).replace(/d+/g,t!=null?t:"").replace(/m+/g,i!=null?i:"").replace(/y+/g,_!=null?_:"").replace(/H+/g,n!=null?n:"").replace(/MSS/g,l!=null?l:"").replace(/M+/g,o!=null?o:"").replace(/S+/g,r!=null?r:"").replace(/^\D+/g,"").replace(/\D+$/g,"")}function jo(t,i,e=0){return Number(t.padEnd(i.length,"0"))<=Number(i)?{validatedSegmentValue:t,prefixedZeroesCount:e}:t.endsWith("0")?jo("0".concat(t.slice(0,i.length-1)),i,e+1):jo("".concat(t.slice(0,i.length-1),"0"),i,e)}var Pd={day:31,month:12,year:9999};function wd({dateString:t,dateModeTemplate:i,offset:e,selection:[n,o]}){let r=Us(t,i),l=Object.entries(r),d={},p=0;for(let[O,D]of l){let P=to(d,i),z=Pd[O],De=P.length&&1,he=e+P.length+De+Vs(i)[O],je=he>=n&&he===o;if(je&&Number(D)>Number(z))return{validatedDateString:"",updatedSelection:[n,o]};if(je&&Number(D)<1)return{validatedDateString:"",updatedSelection:[n,o]};let{validatedSegmentValue:io,prefixedZeroesCount:rl}=jo(D,"".concat(z));p+=rl,d[O]=io}let T=to(d,i),_=T.length-t.length;return{validatedDateString:T,updatedSelection:[n+p+_,o+p+_]}}var $s=/[\\^$.*+?()[\]{}|]/g,xd=new RegExp($s.source);function Ws(t){return t&&xd.test(t)?t.replace($s,"\\$&"):t}function Id(t,i){let e=Vs(i);return Bs(Object.entries(t).map(([n,o])=>{let r=e[n];return[n,o.length===r&&o.match(/^0+$/)?"1".padStart(r,"0"):o]}))}function kd({dateModeTemplate:t,min:i=hd,max:e=gd,rangeSeparator:n="",dateSegmentSeparator:o="."}){return({value:r,selection:l})=>{let d=n&&r.endsWith(n),p=js(r,t,n),T="";for(let _ of p){T+=T?n:"";let O=Us(_,t);if(!Od(_,t)){let z=Id(O,t),De=to(z,t),he=_.endsWith(o)?o:"";T+=De+he;continue}let D=Dd(O),P=bd(D,i,e);T+=to(yd(P),t)}return{selection:l,value:T+(d?n:"")}}}function Ed({dateModeTemplate:t,dateSegmentsSeparator:i,rangeSeparator:e=""}){return({elementState:n,data:o})=>{let r=e?new RegExp("".concat(e,"|-")):Ai,l=o.split(r),d=o.includes(Ai)?[l[0]]:l;if(d.every(p=>p.trim().split(/\D/).length===t.split(i).length)){let p=d.map(T=>Sd(T,t,i)).join(e);return{elementState:n,data:"".concat(p).concat(o.includes(Ai)&&Ai+l[1]||"")}}return{elementState:n,data:o}}}function Sd(t,i,e){let n=t.split(/\D/),o=i.split(e);return n.map((l,d)=>d===o.length-1?l:l.padStart(o[d].length,"0")).join(e)}function Fd({dateModeTemplate:t,dateSegmentsSeparator:i,rangeSeparator:e=""}){return({elementState:n,data:o})=>{let{value:r,selection:l}=n;if(o===i)return{elementState:n,data:l[0]===r.length?o:""};if(Md.includes(o))return{elementState:n,data:e};let d=o.replace(new RegExp("[^\\d".concat(Ws(i)).concat(e,"]"),"g"),"");if(!d)return{elementState:n,data:""};let[p,T]=l,_=T+o.length,O=r.slice(0,p)+d+r.slice(_),D=js(O,t,e),P="",z=!!e&&O.includes(e);for(let he of D){let{validatedDateString:je,updatedSelection:io}=wd({dateString:he,dateModeTemplate:t,offset:P?P.length+e.length:0,selection:[p,_]});if(he&&!je)return{elementState:n,data:""};_=io[1],P+=z&&P?e+je:je}let De=P.slice(p,_);return{elementState:{selection:l,value:P.slice(0,p)+De.split(i).map(he=>"0".repeat(he.length)).join(i)+P.slice(_)},data:De}}}function Ad(){return({elementState:t},i)=>{let{value:e,selection:n}=t;if(!e||Hd(e,n))return{elementState:t};let[o,r]=n,l=e.slice(o,r).replace(/\d/g,"0"),d=e.slice(0,o)+l+e.slice(r);return i==="validation"||i==="insert"&&o===r?{elementState:{selection:n,value:d}}:{elementState:{selection:i==="deleteBackward"||i==="insert"?[o,o]:[r,r],value:d}}}}function Hd(t,[i,e]){return e===t.length}function Ys({mode:t,separator:i=".",max:e,min:n}){let o=t.split("/").join(i);return Object.assign(Object.assign({},Dt),{mask:Array.from(o).map(r=>r===i?r:/\d/),overwriteMode:"replace",preprocessors:[Ad(),Ed({dateModeTemplate:o,dateSegmentsSeparator:i}),Fd({dateModeTemplate:o,dateSegmentsSeparator:i})],postprocessors:[kd({min:n,max:e,dateModeTemplate:o,dateSegmentSeparator:i})]})}var H0=new RegExp("[".concat(Td.map(Ws).join(""),"]$"));var Gs=(()=>{class t{constructor(e,n){this.ngZone=e,this.elementRef=n,this.maskedElement=null,this.maskito=Dt,this.maskitoElement=Es}ngOnChanges(){var e;return Go(this,void 0,void 0,function*(){(e=this.maskedElement)===null||e===void 0||e.destroy();let n=this.maskitoElement,o=yield n(this.elementRef.nativeElement);this.maskitoElement===n&&this.ngZone.runOutsideAngular(()=>{var r;this.maskedElement=new qn(o,(r=this.maskito)!==null&&r!==void 0?r:Dt)})})}ngOnDestroy(){var e;(e=this.maskedElement)===null||e===void 0||e.destroy()}}return t.\u0275fac=function(e){return new(e||t)(s(et),s(E))},t.\u0275dir=y({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[It]}),t})();var Ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function Ld(t,i){if(t&1){let e=U();m(0,"tui-primitive-textfield",5),f("focusedChange",function(o){w(e);let r=h();return x(r.onFocused(o))})("valueChange",function(o){w(e);let r=h();return x(r.onValueChange(o))}),K(1),K(2,1,["ngProjectAs","input",5,["input"]]),g()}if(t&2){let e=i.tuiLet,n=h(),o=J(4);u("disabled",n.computedDisabled)("focusable",n.computedFocusable)("invalid",n.computedInvalid)("maskito",n.computedMask)("nativeId",n.nativeId)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldFiller",n.getComputedFiller(e||""))("tuiTextfieldIcon",n.calendarIcon&&o)("value",n.computedValue)}}function Nd(t,i){if(t&1){let e=U();m(0,"tui-svg",8),f("click",function(){w(e);let o=h(2);return x(o.onIconClick())}),g()}if(t&2){let e=i.polymorpheusOutlet,n=h(2);F("t-icon",!n.computedDisabled),u("src",e)}}function zd(t,i){t&1&&S(0,"input",9)}var Vd=t=>({$implicit:t});function jd(t,i){if(t&1&&v(0,Nd,1,3,"tui-svg",6)(1,zd,1,0,"input",7),t&2){let e=h();u("polymorpheusOutlet",e.calendarIcon)("polymorpheusOutletContext",pe(3,Vd,e.size)),c(1),u("ngIf",e.isMobile&&e.nativePicker)}}function Bd(t,i){if(t&1){let e=U();m(0,"div",12)(1,"button",13),f("click",function(){w(e);let o=h(2);return x(o.onDayClick(o.items[0].day))}),$(2),g()()}if(t&2){let e=h(2);c(2),ce(" ",e.items[0]," ")}}function Ud(t,i){if(t&1){let e=U();m(0,"tui-calendar",10),f("dayClick",function(o){w(e);let r=h();return x(r.onDayClick(o))})("monthChange",function(o){w(e);let r=h();return x(r.onMonthChange(o))}),g(),v(1,Bd,3,1,"div",11)}if(t&2){let e=h();u("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.computedMax)("min",e.computedMin)("month",e.computedActiveYearMonth)("value",e.value),c(1),u("ngIf",e.items.length===1)}}var $d=["*",[["input"]]],Wd=["*","input"],Yd=(()=>{class t{constructor(e,n){this.host=e,this.dateFormat=n}get value(){return this.host.value.length===Ti?ve.normalizeParse(this.host.value,this.dateFormat).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(e){this.host.onValueChange(e?ve.normalizeParse(e,"YMD").toString(this.dateFormat):"")}}return t.\u0275fac=function(e){return new(e||t)(s(vo),s(Po))},t.\u0275dir=y({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(e,n){e&1&&f("change",function(r){return n.onChange(r.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),e&2&&Ke("tabIndex",-1)("value",n.value)("max",n.max)("min",n.min)}}),t})(),Je=class extends oi{constructor(i,e,n,o,r,l,d,p,T,_,O,D){super(i,e,_),this.injector=n,this.isMobile=o,this.dialogs=r,this.mobileCalendar=l,this.dateFormat=d,this.dateSeparator=p,this.dateTexts$=T,this.valueTransformer=_,this.options=O,this.textfieldSize=D,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=Me,this.markerHandler=li,this.items=[],this.defaultActiveYearMonth=q.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe(L(P=>Ta(P[this.dateFormat],this.dateSeparator)))}get size(){return this.textfieldSize.size}get computedMin(){var i;return(i=this.min)!==null&&i!==void 0?i:this.options.min}get computedMax(){var i;return(i=this.max)!==null&&i!==void 0?i:this.options.max}get nativeFocusableElement(){var i,e;return(e=(i=this.textfield)===null||i===void 0?void 0:i.nativeFocusableElement)!==null&&e!==void 0?e:null}get focused(){var i;return!!(!((i=this.textfield)===null||i===void 0)&&i.focused)}get computedMobile(){return this.isMobile&&(!!this.mobileCalendar||this.nativePicker)}get nativePicker(){return this.options.nativePicker}get calendarIcon(){return this.options.icon}get computedValue(){let{value:i,nativeValue:e,activeItem:n}=this;return n?String(n):i?i.toString(this.dateFormat,this.dateSeparator):e}get computedActiveYearMonth(){return this.items[0]&&this.value&&this.value.daySame(this.items[0].day)?this.items[0].displayDay:this.month||this.value||_a(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get nativeValue(){var i;return((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.value)||""}set nativeValue(i){this.nativeFocusableElement&&(this.nativeFocusableElement.value=i)}get canOpen(){return this.interactive&&!this.computedMobile}get computedMask(){return this.activeItem?Dt:this.computeMaskOptions(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax)}get activeItem(){let{value:i}=this;return i&&this.items.find(e=>e.day.daySame(i))||null}onClick(){this.isMobile||(this.open=!this.open)}getComputedFiller(i){return this.activeItem?"":i}onMobileClick(){this.onIconClick()}onIconClick(){!this.computedMobile||!this.mobileCalendar||this.dialogs.open(new Ft(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe(ie(this.destroy$)).subscribe(i=>{this.value=i})}onValueChange(i){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),i||this.onOpenChange(!0),this.value=i.length!==Ti?null:ve.normalizeParse(i,this.dateFormat)}onDayClick(i){this.value=i,this.open=!1}onMonthChange(i){this.month=i}onOpenChange(i){this.open=i}onFocused(i){this.updateFocused(i)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(i){super.writeValue(i),this.nativeValue=i?this.computedValue:""}valueIdenticalComparator(i,e){return ti(i,e,(n,o)=>n.daySame(o))}computeMaskOptions(i,e,n,o){return Ys({separator:e,mode:gs[i],min:n.toLocalNativeDate(),max:o.toLocalNativeDate()})}};Je.\u0275fac=function(i){return new(i||Je)(s(we,10),s(Ce),s(Vi),s(an),s(wn),s(Os,8),s(Po),s(Ma),s(bs),s(Lo,8),s(ys),s(Bn))};Je.\u0275cmp=k({type:Je,selectors:[["tui-input-date"]],viewQuery:function(i,e){if(i&1&&G(Ve,5),i&2){let n;V(n=j())&&(e.textfield=n.first)}},hostVars:1,hostBindings:function(i,e){i&1&&f("click",function(){return e.onClick()}),i&2&&H("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[b([Fe(Je),rt(Je),Ts(Lo)]),I],ngContentSelectors:Wd,decls:7,vars:7,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange"],["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"],["iconContent",""],[3,"polymorpheus"],["dropdown","polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"t-icon","src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"src","click"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","markerHandler","max","min","month","value","dayClick","monthChange"],["tuiPreventDefault","mousedown","class","t-button",4,"ngIf"],["tuiPreventDefault","mousedown",1,"t-button"],["tuiLink","","type","button",3,"click"]],template:function(i,e){if(i&1&&(oe($d),m(0,"tui-hosted-dropdown",0),f("openChange",function(o){return e.onOpenChange(o)}),v(1,Ld,3,11,"tui-primitive-textfield",1),W(2,"async"),v(3,jd,2,5,"ng-template",null,2,Te)(5,Ud,2,7,"ng-template",3,4,Te),g()),i&2){let n=J(6);u("canOpen",e.canOpen)("content",n)("open",e.open&&e.canOpen),c(1),u("tuiLet",Q(2,5,e.filler$)),c(4),u("polymorpheus",e.type)}},dependencies:[Oe,Ve,_e,$n,hi,At,ps,Hs,Gs,Eo,So,Z,$e,ee,Yd,on,ha,fe],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-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.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});se([xe],Je.prototype,"computeMaskOptions",null);var Qs=(()=>{class t extends hn{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}onValueChange(e){e||(this.host.nativeValue=""),this.host.onValueChange(e)}process(e){e.inputMode="numeric"}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["tui-input-date"]],features:[b([Mn(t)]),I]}),t})(),Xs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Ks,re,We,ga,Wn,be,gi,Yn,ms,Rs,Ht,Un]]}),t})();var Gd=["input"];function Kd(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}function Qd(t,i){if(t&1&&(m(0,"div",6),v(1,Kd,2,1,"ng-container",7),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.leftContent)}}function Xd(t,i){if(t&1&&S(0,"tui-loader",8),t&2){let e=h();u("inheritColor",!0)("size",e.loaderSize)}}function Zd(t,i){if(t&1){let e=U();m(0,"tui-svg",9),f("click",function(o){w(e);let r=h();return x(r.remove(o))})("mousedown.stop.prevent.silent",function(){return 0}),g()}if(t&2){let e=h();u("src",e.icons.close)}}function qd(t,i){if(t&1){let e=U();m(0,"input",10,11),f("blur",function(){w(e);let o=h();return x(o.onBlur())})("keydown",function(o){w(e);let r=h();return x(r.onKeyDown(o))})("ngModelChange",function(o){w(e);let r=h();return x(r.onInput(o))}),g()}if(t&2){let e=h();u("ngModel",e.editedText),H("maxLength",e.maxLength)}}var Jd={size:"m",status:"default",autoColor:!1},ec=X(Jd);var Zs=(()=>{class t{constructor(e,n,o,r){this.el=e,this.mode$=n,this.options=o,this.icons=r,this.value="",this.editable=!1,this.separator=",",this.maxLength=null,this.size=this.options.size,this.showLoader=!1,this.status=this.options.status,this.hoverable=!1,this.removable=!1,this.disabled=!1,this.autoColor=this.options.autoColor,this.edited=new Y,this.editing=!1,this.editedText=null}set input(e){e&&e.nativeElement.focus()}get backgroundColor(){return this.autoColor?hs(this.value):null}get canRemove(){return this.removable&&!this.disabled&&!this.showLoader}get displayText(){return this.editedText===null?this.value:this.editedText}get loaderSize(){return Gr(this.size)?"s":"xs"}edit(e){this.canEdit&&(e.preventDefault(),this.editing=!0,this.editedText=this.value)}remove(e){this.canRemove&&(e.preventDefault(),e.stopPropagation(),this.edited.emit(""))}onInput(e){let n=e.split(this.separator);if(n.length>1){this.save(String(n));return}this.editedText=e}onKeyDown(e){switch(e.stopPropagation(),e.key.toLowerCase()){case"enter":e.preventDefault(),this.save(this.editedText||"");break;case"escape":case"esc":e.preventDefault(),this.stopEditing(),this.el.nativeElement.focus();break;default:break}}onBlur(){this.editedText!==null&&this.save(this.editedText)}get canEdit(){return this.editable&&!this.disabled&&!this.showLoader}stopEditing(){this.editing=!1,this.editedText=null}save(e){this.stopEditing(),this.edited.emit(e.trim())}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(st),s(ec),s(ui))},t.\u0275cmp=k({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(e,n){if(e&1&&G(Gd,5,E),e&2){let o;V(o=j())&&(n.input=o.first)}},hostVars:10,hostBindings:function(e,n){e&1&&f("$.data-mode.attr",function(){return n.mode$})("keydown.enter",function(r){return n.edit(r)})("keydown.delete",function(r){return n.remove(r)})("keydown.backspace",function(r){return n.remove(r)}),e&2&&(H("data-size",n.size)("data-status",n.status),F("_hoverable",n.hoverable)("_disabled",n.disabled)("_autocolor",n.autoColor)("_editing",n.editing))},inputs:{value:"value",editable:"editable",separator:"separator",maxLength:"maxLength",size:"size",showLoader:"showLoader",status:"status",hoverable:"hoverable",removable:"removable",disabled:"disabled",autoColor:"autoColor",leftContent:"leftContent"},outputs:{edited:"edited"},features:[b([lt])],decls:6,vars:7,consts:[[1,"t-tag",3,"dblclick"],["class","t-content",4,"ngIf"],["automation-id","tui-tag__text",1,"t-text",3,"textContent"],["class","t-content",3,"inheritColor","size",4,"ngIf"],["automation-id","tui-tag__remove","class","t-icon",3,"src","click","mousedown.stop.prevent.silent",4,"ngIf"],["automation-id","tui-tag__edit","type","text","class","t-edit",3,"ngModel","blur","keydown","ngModelChange",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content",3,"inheritColor","size"],["automation-id","tui-tag__remove",1,"t-icon",3,"src","click","mousedown.stop.prevent.silent"],["automation-id","tui-tag__edit","type","text",1,"t-edit",3,"ngModel","blur","keydown","ngModelChange"],["input",""]],template:function(e,n){e&1&&(m(0,"div",0),f("dblclick",function(r){return n.edit(r)}),v(1,Qd,2,1,"div",1),S(2,"span",2),v(3,Xd,1,2,"tui-loader",3)(4,Zd,1,1,"tui-svg",4),g(),v(5,qd,2,2,"input",5)),e&2&&(He("background-color",n.backgroundColor),c(1),u("ngIf",n.leftContent),c(1),u("textContent",n.displayText),c(1),u("ngIf",n.showLoader),c(1),u("ngIf",n.canRemove),c(1),u("ngIf",n.editing))},dependencies:[yn,_e,ee,Z,tt,it,Re],styles:['[_nghost-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;font:var(--tui-font-text-s);line-height:1.25rem;max-width:100%;cursor:default;outline:none;text-decoration:none;padding:0;border:0}[_nghost-%COMP%]:after{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;pointer-events:none}._hoverable[_nghost-%COMP%]:hover[data-status=custom]:after, ._hoverable[_nghost-%COMP%]:active[data-status=custom]:after{background-color:var(--tui-clear)}[_nghost-%COMP%]:focus:after{border:2px solid var(--tui-focus)}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;border-radius:var(--tui-radius-xs)}[data-size=m][_nghost-%COMP%]{border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{border-radius:var(--tui-radius-s)}[data-status=primary][_nghost-%COMP%]{background-color:var(--tui-primary);color:var(--tui-primary-text)}[data-status=primary]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-primary-hover)}[data-status=primary]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-primary-active)}[data-status=error][_nghost-%COMP%]{background-color:var(--tui-error-bg);color:var(--tui-text-01)}[data-status=error]._hoverable[_nghost-%COMP%]:hover, [data-status=error]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-hover)}[data-status=error][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-error-bg-night);color:var(--tui-text-01-night)}[data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-night-hover)}[data-status=success][_nghost-%COMP%]{background-color:var(--tui-success-bg);color:var(--tui-text-01)}[data-status=success]._hoverable[_nghost-%COMP%]:hover, [data-status=success]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-hover)}[data-status=success][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-success-bg-night);color:var(--tui-text-01-night)}[data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-night-hover)}[data-status=warning][_nghost-%COMP%]{background-color:var(--tui-warning-bg);color:var(--tui-text-01)}[data-status=warning]._hoverable[_nghost-%COMP%]:hover, [data-status=warning]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-hover)}[data-status=warning][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-warning-bg-night);color:var(--tui-text-01-night)}[data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-night-hover)}[data-status=default][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-base-06)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:hover{background-color:var(--tui-base-07)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:active{background-color:var(--tui-base-08)}[data-status=default][data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-clear-inverse)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-inverse-hover)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-inverse-active)}[data-status=default][data-mode=onDark][_nghost-%COMP%]:focus:after{border:2px solid var(--tui-base-01)}[data-status=default][data-mode=onLight][_nghost-%COMP%]{background-color:var(--tui-clear);color:var(--tui-text-01)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-hover)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-active)}._editing[_nghost-%COMP%]{background:transparent!important}._disabled[_nghost-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}._hoverable[_nghost-%COMP%]{cursor:pointer}._autocolor[_nghost-%COMP%]{color:#000c}.t-text[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:.02em}.t-tag[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;width:auto;align-items:center;font:inherit;border-radius:inherit}[data-size=s][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:1.25rem;padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-xs);padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-s);padding:0 .75rem}._editing[_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{visibility:hidden}.t-edit[_ngcontent-%COMP%]{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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;font:inherit;color:var(--tui-text-01);width:100%;height:100%;box-sizing:border-box;padding:0 .5rem}.t-edit[_ngcontent-%COMP%]:-webkit-autofill, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-size=s][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .75rem}.t-icon[_ngcontent-%COMP%]{width:1rem;height:100%;cursor:pointer;pointer-events:all;opacity:var(--tui-disabled-opacity);-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:-.25rem;margin-inline-end:-.25rem}.t-icon[_ngcontent-%COMP%]:hover{opacity:1}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{-webkit-margin-start:0;margin-inline-start:0}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%] svg{transform:scale(.75)}.t-content[_ngcontent-%COMP%]{width:1rem;height:1rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}'],changeDetection:0}),t})(),qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,nt,be,On,re]]}),t})();var ic=["focusableElement"],nc=["tagsContainer"],oc=["cleaner"],rc=["errorIcon"],ac=["tag"];function sc(t,i){t&1&&qt(0)}function lc(t,i){if(t&1&&S(0,"tui-svg",21),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var Bo=t=>({$implicit:t});function uc(t,i){if(t&1&&(m(0,"div",19),v(1,lc,1,1,"tui-svg",20),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconLeft)("polymorpheusOutletContext",pe(2,Bo,e.size))}}function dc(t,i){if(t&1&&(m(0,"div",22),K(1,2),g()),t&2){let e=h();F("t-placeholder_raised",e.placeholderRaised)}}function cc(t,i){if(t&1){let e=U();m(0,"tui-tag",24,25),f("edited",function(o){let l=w(e).index,d=h(2);return x(d.onTagEdited(o,l))})("keydown.arrowLeft.prevent",function(){let r=w(e).index,l=h(2);return x(l.onTagKeyDownArrowLeft(r))})("keydown.arrowRight.prevent",function(){let r=w(e).index,l=h(2);return x(l.onTagKeyDownArrowRight(r))}),W(2,"async"),g()}if(t&2){let e=i.$implicit,n=h(2);u("disabled",n.computedDisabled||n.disabledItemHandler(e))("editable",n.editable&&!n.readOnly)("hoverable",!n.readOnly)("leftContent",n.getLeftContent(e))("maxLength",n.maxLength)("removable",!n.readOnly&&n.removable)("separator",n.separator)("size",n.controller.size)("status",Q(2,11,n.status$))("tuiFocusable",!1)("value",e.toString())}}function pc(t,i){if(t&1&&(ue(0),v(1,cc,3,13,"tui-tag",23),de()),t&2){let e=h();c(1),u("ngForOf",e.value)("ngForTrackBy",e.trackByFn)}}function mc(t,i){if(t&1&&S(0,"span",27),t&2){let e=i.$implicit,n=h(2);F("t-text_comma",n.computedFocused&&!n.inputHidden)("t-text_disabled",n.disabledItemHandler(e))("t-text_error",!n.tagValidator(e)),u("textContent",e)}}function hc(t,i){if(t&1&&v(0,mc,1,7,"span",26),t&2){let e=h();u("ngForOf",e.value)}}function gc(t,i){if(t&1){let e=U();m(0,"tui-svg",32,33),f("click.stop",function(){w(e);let o=h(3);return x(o.onCleanerClick())}),g()}if(t&2){let e=i.polymorpheusOutlet;u("src",e)}}function fc(t,i){if(t&1&&(ue(0),v(1,gc,2,1,"tui-svg",31),de()),t&2){let e=h(2);c(1),u("polymorpheusOutlet",e.iconCleaner)("polymorpheusOutletContext",pe(2,Bo,e.size))}}function _c(t,i){if(t&1&&S(0,"tui-tooltip",34),t&2){let e=h(2);u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.id)}}function vc(t,i){if(t&1&&S(0,"tui-svg",21),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function Cc(t,i){if(t&1&&(m(0,"div",35),v(1,vc,1,1,"tui-svg",20),g()),t&2){let e=h(2);c(1),u("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",pe(2,Bo,e.size))}}function Mc(t,i){if(t&1&&(m(0,"div",28),v(1,fc,2,4,"ng-container",0)(2,_c,1,2,"tui-tooltip",29)(3,Cc,2,4,"div",30),g()),t&2){let e=h();c(1),u("ngIf",e.hasCleaner),c(1),u("ngIf",e.showHint),c(1),u("ngIf",e.icon)}}function Tc(t,i){if(t&1&&S(0,"tui-svg",36),t&2){let e=h();u("src",e.icons.error)}}var bc=[[["tuiContent"]],[["select"]],"*"],yc=["tuiContent","select","*"],Oc={separator:",",uniqueTags:!0,tagStatus:"primary"},Dc=X(Oc);var Pc={s:1.25,m:1.5,l:2},wc={s:1,m:1.25,l:1.25},xc=.125,Js=(()=>{class t extends Hr{constructor(e,n,o,r,l,d,p,T,_,O){super(e,n),this.el=o,this.modeDirective=r,this.mode$=l,this.hintOptions=d,this.controller=p,this.options=T,this.parentHostedDropdown=_,this.icons=O,this.tags=Yi,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=ei,this.expandable=!0,this.rows=1/0,this.inputHidden=!1,this.uniqueTags=this.options.uniqueTags,this.maxLength=null,this.placeholder="",this.removable=!0,this.disabledItemHandler=Me,this.searchChange=new Y,this.status$=this.mode$.pipe(L(()=>this.status)),this.open=!1}set pseudoFocusedSetter(e){!e&&!this.focused&&this.scrollTo(0),this.pseudoFocus=e}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){var e;return Xe(this.el.nativeElement)||!!(!((e=this.hostedDropdown)===null||e===void 0)&&e.focused)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get labelOutside(){let{size:e,labelOutside:n}=this.controller;return e==="s"||n}get iconLeft(){return this.controller.iconLeft}get icon(){return this.controller.icon}get iconCleaner(){return this.controller.options.iconCleaner}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&this.interactive}get hasNativeValue(){return!!this.search}get hasValue(){return!!this.value.length||this.hasNativeValue}get hasPlaceholder(){return!this.labelOutside||!this.hasValue&&(!this.hasExampleText||this.inputHidden)}get placeholderRaised(){return!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)}get hasExampleText(){var e;return!!(!((e=this.nativeFocusableElement)===null||e===void 0)&&e.placeholder)&&this.computedFocused&&!this.hasValue&&!this.readOnly}get hasRightIcons(){var e;return this.hasCleaner||!!this.icon||!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&!this.computedDisabled}get showHint(){var e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&(this.controller.options.hintOnDisabled||!this.computedDisabled)}get status(){var e;return!((e=this.modeDirective)===null||e===void 0)&&e.mode?"default":this.options.tagStatus}get canOpen(){return this.interactive&&!!this.datalist}get computeMaxHeight(){return this.expandable?this.rows*this.lineHeight:null}detectRetargetFromLabel(e){en(e)&&e.stopImmediatePropagation()}getLeftContent(e){return!this.tagValidator(e)&&this.errorIconTemplate?this.errorIconTemplate:""}onCleanerClick(){var e;this.updateSearch(""),this.clear(),this.focusInput(),(e=this.parentHostedDropdown)===null||e===void 0||e.updateOpen(!0)}onActiveZone(e){this.open=!1,this.addTag(),this.updateFocused(e),!e&&!this.computedFocused&&this.scrollTo(0)}onMouseDown(e){var n;let o=Zi(e);!this.focusableElement||o===this.focusableElement.nativeElement||!ot(e.target)||!((n=this.cleanerSvg)===null||n===void 0)&&n.nativeElement.contains(e.target)||this.tagsContainer&&o!==this.tagsContainer.nativeElement&&this.tagsContainer.nativeElement.contains(o)||(e.preventDefault(),this.focusInput())}onFieldKeyDownBackspace(e){!this.labelOutside&&!this.hasNativeValue&&this.value.length?this.deleteLastEnabledItem():this.onFieldKeyDownArrowLeft(e)}onFieldKeyDownArrowLeft(e){!this.labelOutside||this.hasNativeValue||!this.value.length||(e.preventDefault(),this.tags.last.nativeElement.focus())}onFieldKeyDownEnter(){this.addTag(),this.scrollTo()}onTagKeyDownArrowLeft(e){e>0&&this.onScrollKeyDown(e,-1)}onTagKeyDownArrowRight(e){e===this.value.length-1?this.focusInput():this.onScrollKeyDown(e,1)}onTagEdited(e,n){this.focusInput(e===""),this.value=this.filterValue(this.value.map((o,r)=>r!==n?o:e.split(this.separator).map(l=>l.trim()).filter(Boolean)).reduce((o,r)=>o.concat(r),[]))}handleOption(e){this.focusInput(),this.updateSearch(""),this.value=this.filterValue(this.value.concat(e)),this.open=!1,this.scrollTo()}onInput(e){let n=e.split(this.separator),r=n.map(l=>this.clippedValue(l.trim())).filter((l,d,{length:p})=>l.length>0&&d!==p-1).filter(l=>!this.disabledItemHandler(l));n.length>1?(this.updateSearch(this.clippedValue(n[n.length-1].trim())),this.value=this.filterValue([...this.value,...r])):this.updateSearch(this.clippedValue(e)),this.open=this.hasNativeValue}onPaste(e){let n=pr(e);this.onInput(n||"")}onDrop({dataTransfer:e}){e&&this.onInput(e.getData("text")||"")}setDisabledState(){super.setDisabledState(),this.open=!1}trackByFn(e,n){return n.toString()}scrollTo(e){var n;e===void 0&&(e=(n=this.scrollBar)===null||n===void 0?void 0:n.nativeElement.scrollWidth),setTimeout(()=>{this.scrollBar&&(this.scrollBar.nativeElement.scrollLeft=e||0)})}filterValue(e){let n=new Set;return e.reverse().filter(o=>!this.uniqueTags||o&&!n.has(o)&&n.add(o)).reverse()}onScrollKeyDown(e,n){let o=this.tags.find((r,l)=>l===e+n);!o||!this.scrollBar||(o.nativeElement.focus(),n*this.scrollBar.nativeElement.clientWidth-n*o.nativeElement.offsetLeft-o.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=n*o.nativeElement.clientWidth))}updateSearch(e){this.focusableElement&&(this.focusableElement.nativeElement.value=e),this.search=e,this.searchChange.emit(e)}addTag(){var e,n;let o=(n=(e=this.search)===null||e===void 0?void 0:e.trim())!==null&&n!==void 0?n:"";!o||this.disabledItemHandler(o)||(this.updateSearch(""),this.value=this.filterValue(this.value.concat(o)))}deleteLastEnabledItem(){for(let e=this.value.length-1;e>=0;e--)if(!this.disabledItemHandler(this.value[e])){this.value=cr(this.value,e);break}}focusInput(e=!1){var n;(n=this.nativeFocusableElement)===null||n===void 0||n.focus({preventScroll:e})}clippedValue(e){return e.slice(0,this.maxLength||e.length)}get lineHeight(){return this.labelOutside?Pc[this.controller.size]+2*xc:wc[this.controller.size]}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(E),s(pi,8),s(st),s(Ut,8),s(Qt),s(Dc),s(Oe,8),s(ui))},t.\u0275cmp=k({type:t,selectors:[["tui-input-tag"]],contentQueries:function(e,n,o){if(e&1&&Ct(o,as,5,$i),e&2){let r;V(r=j())&&(n.datalist=r.first)}},viewQuery:function(e,n){if(e&1&&(G(Oe,5),G(ic,5),G(nc,5),G(oc,5,E),G(Vt,5,E),G(rc,5),G(ac,5,E)),e&2){let o;V(o=j())&&(n.hostedDropdown=o.first),V(o=j())&&(n.focusableElement=o.first),V(o=j())&&(n.tagsContainer=o.first),V(o=j())&&(n.cleanerSvg=o.first),V(o=j())&&(n.scrollBar=o.first),V(o=j())&&(n.errorIconTemplate=o.first),V(o=j())&&(n.tags=o)}},hostVars:7,hostBindings:function(e,n){e&2&&(H("data-size",n.size),F("_expandable",n.expandable)("_label-outside",n.labelOutside)("_icon-left",n.iconLeft))},inputs:{separator:"separator",search:"search",editable:"editable",tagValidator:"tagValidator",expandable:"expandable",rows:"rows",inputHidden:"inputHidden",uniqueTags:"uniqueTags",maxLength:"maxLength",placeholder:"placeholder",removable:"removable",disabledItemHandler:"disabledItemHandler",pseudoFocusedSetter:["pseudoFocused","pseudoFocusedSetter"]},outputs:{searchChange:"searchChange"},features:[b([Fe(t),rt(t),Xr(t),Di,lt],[Fs]),I],ngContentSelectors:yc,decls:25,vars:34,consts:[[4,"ngIf"],[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiWrapper","",3,"appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon t-icon-wrapper",4,"ngIf"],[1,"t-wrapper"],[1,"t-absolute-wrapper"],["automation-id","tui-input-tag__placeholder","class","t-placeholder",3,"t-placeholder_raised",4,"ngIf"],[1,"t-scrollbar",3,"hidden"],[1,"t-tags"],[4,"ngIf","ngIfElse"],["text",""],[1,"t-input-wrapper"],[1,"t-ghost"],["automation-id","tui-input-tag__native","type","text",1,"t-native",3,"disabled","id","ngModel","placeholder","readOnly","tuiFocusable","drop.prevent","keydown.arrowLeft","keydown.backspace","keydown.enter.prevent","ngModelChange","paste.prevent"],["focusableElement",""],[1,"t-value-content"],["class","t-icons t-icon-wrapper",4,"ngIf"],["errorIcon",""],[1,"t-icon","t-icon_left","t-textfield-icon","t-icon-wrapper"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["automation-id","tui-input-tag__placeholder",1,"t-placeholder"],["automation-id","tui-input-tag__tag","class","t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent",4,"ngFor","ngForOf","ngForTrackBy"],["automation-id","tui-input-tag__tag",1,"t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent"],["tag",""],["class","t-text",3,"t-text_comma","t-text_disabled","t-text_error","textContent",4,"ngFor","ngForOf"],[1,"t-text",3,"textContent"],[1,"t-icons","t-icon-wrapper"],["automation-id","tui-input-tag__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","","class","t-cleaner",3,"src","click.stop",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","",1,"t-cleaner",3,"src","click.stop"],["cleaner",""],["automation-id","tui-input-tag__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"],[1,"t-error-icon",3,"src"]],template:function(e,n){if(e&1&&(oe(bc),v(0,sc,1,0,"ng-container",0),W(1,"async"),m(2,"tui-hosted-dropdown",1),f("openChange",function(r){return n.open=r})("tuiActiveZoneChange",function(r){return n.onActiveZone(r)}),m(3,"div",2),f("click.prevent.silent",function(r){return n.detectRetargetFromLabel(r)})("mousedown",function(r){return n.onMouseDown(r)}),m(4,"div",3),v(5,uc,2,4,"div",4),m(6,"div",5)(7,"div",6),v(8,dc,2,2,"div",7),g(),m(9,"tui-scrollbar",8)(10,"div",9),v(11,pc,2,2,"ng-container",10)(12,hc,1,1,"ng-template",null,11,Te),m(14,"div",12)(15,"div",13),$(16),g(),m(17,"input",14,15),f("drop.prevent",function(r){return n.onDrop(r)})("keydown.arrowLeft",function(r){return n.onFieldKeyDownArrowLeft(r)})("keydown.backspace",function(r){return n.onFieldKeyDownBackspace(r)})("keydown.enter.prevent",function(){return n.onFieldKeyDownEnter()})("ngModelChange",function(r){return n.onInput(r)})("paste.prevent",function(r){return n.onPaste(r)}),g()()(),m(19,"div",16),K(20),g()()(),K(21,1),v(22,Mc,4,3,"div",17),g(),v(23,Tc,1,1,"ng-template",null,18,Te),g()()),e&2){let o=J(13);u("ngIf",Q(1,32,n.hintOptions==null?null:n.hintOptions.change$)),c(2),u("canOpen",n.canOpen)("content",n.datalist||"")("open",n.open),c(1),u("appearance",n.appearance)("disabled",n.computedDisabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),c(2),u("ngIf",n.iconLeft),c(3),u("ngIf",n.hasPlaceholder),c(1),He("max-height",n.computeMaxHeight,"rem"),u("hidden",!n.expandable),c(1),F("t-tags_empty",(!n.focused||n.inputHidden)&&!(n.value!=null&&n.value.length)),c(1),u("ngIf",n.labelOutside)("ngIfElse",o),c(3),F("t-input-wrapper_collapsed",n.computedDisabled||n.readOnly||n.inputHidden),c(2),Bi(n.search),c(1),F("t-native_hidden",n.inputHidden),u("disabled",n.computedDisabled)("id",n.id)("ngModel",n.search)("placeholder",n.placeholder)("readOnly",n.readOnly||n.inputHidden)("tuiFocusable",n.computedFocusable),H("maxLength",n.maxLength),c(5),u("ngIf",n.hasRightIcons)}},dependencies:[Oe,_e,Vt,Zs,Gn,ee,Ie,$e,Z,Jt,ut,tt,it,Re,fe],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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;-moz-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);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{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.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-03);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}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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%], .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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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;-webkit-padding-end:.25rem;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;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);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-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._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-03)}[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-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}.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}._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%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}[_nghost-%COMP%]{cursor:text}._expandable[_nghost-%COMP%]{height:auto;max-height:none}._disabled[_nghost-%COMP%]{pointer-events:none}._readonly[_nghost-%COMP%]{cursor:default}[data-size=m][_nghost-%COMP%]{line-height:1rem}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-scrollbar[_ngcontent-%COMP%]{-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%;scroll-behavior:smooth}[_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%], ._label-outside._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{margin:0}[data-size=s]._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{-webkit-margin-start:.25rem;margin-inline-start:.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1rem solid transparent}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1.25rem solid transparent}.t-tags[_ngcontent-%COMP%]{display:flex;-webkit-padding-start:.25rem;padding-inline-start:.25rem}.t-tags_expandable[_ngcontent-%COMP%]{overflow:hidden}.t-tags_empty[_ngcontent-%COMP%]{height:0}._expandable[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{flex-wrap:wrap;white-space:normal;overflow:hidden}._readonly[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{pointer-events:none}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{align-items:flex-start}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}[data-size=s][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-absolute-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}[data-size=m][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:0;box-sizing:border-box}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-s);padding:calc((var(--tui-height-s) - 1.5rem) / 2) 0}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-m);padding:calc((var(--tui-height-m) - var(--tui-height-xs) - .25rem) / 2) 0}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - var(--tui-height-s) - .25rem) / 2) 0}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-m) - 2rem) / 2) 0}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - 2.5rem) / 2) 0}.t-tag[_ngcontent-%COMP%]{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}.t-text[_ngcontent-%COMP%]:after{content:",\\a0"}.t-text_disabled[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-text_error[_ngcontent-%COMP%]{color:var(--tui-negative)}.t-text[_ngcontent-%COMP%]:not(.t-text_comma):last-of-type:after{content:""}[_nghost-%COMP%]:not(._expandable) .t-text[_ngcontent-%COMP%]{white-space:nowrap}.t-input-wrapper[_ngcontent-%COMP%], .t-value-content[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;max-width:100%}[data-size=s][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:1.5rem}[data-size=m][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=m][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}[data-size=l][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-s) + 2 * .125rem)}[_nghost-%COMP%]:not(._label-outside) .t-input-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]:not(._label-outside) .t-value-content[_ngcontent-%COMP%]{min-height:1rem}.t-input-wrapper_collapsed[_ngcontent-%COMP%]{flex:0;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem}.t-value-content[_ngcontent-%COMP%]:empty{display:none}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}[_nghost-%COMP%]:not(._expandable) .t-ghost[_ngcontent-%COMP%]{min-width:2rem}.t-native[_ngcontent-%COMP%]{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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-native_hidden[_ngcontent-%COMP%]{opacity:0;text-indent:-10em}.t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03-night)}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:-moz-read-only)::placeholder{opacity:1}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:read-only)::placeholder{opacity:1}.t-error-icon[_ngcontent-%COMP%]{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}'],changeDetection:0}),t})(),el=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({providers:[Ar],imports:[[N,nt,re,dt,Nt,ri,be,yi,Kn,Yn,qs,We]]}),t})();var Ic=["type","range","tuiSlider",""];var kc={size:"m",trackColor:"var(--tui-base-03)"},Ec=X(kc);var ft=class{constructor(i,e,n,o,r,l){var d;this.control=i,this.options=n,this.el=o,this.userAgent=r,this.injector=l,this.size=this.options.size,this.segments=1,i instanceof Re&&((d=i.valueChanges)===null||d===void 0||d.pipe(nn(e),Xo(1)).subscribe())}get min(){return Number(this.el.nativeElement.min)}get max(){return Number(this.el.nativeElement.max||100)}get step(){return Number(this.el.nativeElement.step)||1}get value(){let{el:i,control:e,hasKeySteps:n}=this;return!n&&e instanceof Re?e.viewModel:Number(i.nativeElement.value)||0}set value(i){this.el.nativeElement.value="".concat(i)}get valuePercentage(){return 100*(this.value-this.min)/(this.max-this.min)||0}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return lr(or,this.userAgent)}get hasKeySteps(){return!!this.injector.get(Sc,null)}};ft.\u0275fac=function(i){return new(i||ft)(s(we,10),s(Ce),s(Ec),s(E),s(rn),s(Vi))};ft.\u0275cmp=k({type:ft,selectors:[["input","type","range","tuiSlider",""]],hostVars:9,hostBindings:function(i,e){i&1&&f("input",function(){return 0}),i&2&&(H("data-size",e.size),He("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),F("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:Ic,decls:0,vars:0,template:function(i,e){},styles:["[_nghost-%COMP%]{display:block;width:100%;color:var(--tui-primary);cursor:pointer}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[_nghost-%COMP%]:not(._old-edge){-webkit-appearance:none;-moz-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%]:not(._old-edge)::-webkit-slider-container{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-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 .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.375rem,0;background-size:calc(100% - 1rem),calc(100% - 1rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-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-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-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 .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.375rem;background-size:calc(100% - 1rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-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-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}._old-edge[_nghost-%COMP%]::-ms-thumb{background:currentColor;border-radius:50%}._old-edge[_nghost-%COMP%]::-ms-fill-lower{background:currentColor}._old-edge[_nghost-%COMP%]::-ms-track{background:var(--tui-slider-track-color);border:none}"],changeDetection:0});se([xe],ft.prototype,"hasKeySteps",null);var Sc=(()=>{class t extends ln{constructor(e,n,o,r){super(e,n),this.el=o,this.slider=r}get nativeFocusableElement(){return this.computedDisabled?null:this.el.nativeElement}get focused(){return Ee(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=vs(this.slider.valuePercentage,this.keySteps)}writeValue(e){if(e===null)return;let n=St(e,this.min,this.max);this.slider.value=this.transformToNativeValue(n)}getFallbackValue(){return 0}transformToNativeValue(e){let{min:n,max:o}=this.slider;return Cs(e,this.keySteps)*(o-n)/100+n}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(E),s(le(()=>ft)))},t.\u0275dir=y({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(e,n){e&1&&f("input",function(){return n.updateControlValue()})("change",function(){return n.updateControlValue()}),e&2&&(Ke("disabled",n.computedDisabled),H("aria-valuenow",n.safeCurrentValue)("aria-valuemin",n.min)("aria-valuemax",n.max))},inputs:{keySteps:"keySteps"},features:[I]}),t})();var tl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N]]}),t})();var Fc=["focusableElement"];function Ac(t,i){if(t&1&&S(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",e.value)("size",e.loaderSize)}}function Hc(t,i){if(t&1&&S(0,"tui-svg",10),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var il=t=>({$implicit:t});function Rc(t,i){if(t&1&&(m(0,"span",8),v(1,Hc,1,1,"tui-svg",9),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconOn)("polymorpheusOutletContext",pe(2,il,e.size))}}function Lc(t,i){if(t&1&&S(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",!e.value)("size",e.loaderSize)}}function Nc(t,i){if(t&1&&S(0,"tui-svg",12),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function zc(t,i){if(t&1&&(m(0,"span",8),v(1,Nc,1,1,"tui-svg",11),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconOff)("polymorpheusOutletContext",pe(2,il,e.size))}}var Vc={icons:{toggleOff({$implicit:t}){return t==="m"?"tuiIconToggleOff":"tuiIconToggleOffLarge"},toggleOn({$implicit:t}){return t==="m"?"tuiIconToggleOn":"tuiIconToggleOnLarge"}},appearances:{checked:bt.Primary,unchecked:bt.Secondary},singleColor:!1,showIcons:!1,size:"m"},jc=X(Vc);var nl=(()=>{class t extends ln{constructor(e,n,o,r){super(e,n),this.modeDirective=o,this.options=r,this.singleColor=this.options.singleColor,this.showIcons=this.options.showIcons,this.showLoader=!1,this.size=this.options.size}get iconOn(){return this.options.icons.toggleOn}get iconOff(){return this.options.icons.toggleOff}get nativeFocusableElement(){var e,n;return(n=(e=this.focusableElement)===null||e===void 0?void 0:e.nativeElement)!==null&&n!==void 0?n:null}get focused(){return Ee(this.nativeFocusableElement)}get appearance(){return this.singleColor||this.value?this.options.appearances.checked:this.options.appearances.unchecked}get sizeM(){return this.size==="m"}get loaderSize(){return this.sizeM?"xs":"s"}get hostMode(){var e,n;return(n=(e=this.modeDirective)===null||e===void 0?void 0:e.mode)!==null&&n!==void 0?n:null}onChecked(e){this.value=e}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}getFallbackValue(){return!1}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(pi,8),s(jc))},t.\u0275cmp=k({type:t,selectors:[["tui-toggle"]],viewQuery:function(e,n){if(e&1&&G(Fc,5),e&2){let o;V(o=j())&&(n.focusableElement=o.first)}},hostVars:4,hostBindings:function(e,n){e&2&&(H("data-size",n.size)("data-mode",n.hostMode),F("_checked",n.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[b([Fe(t),rt(t)]),I],decls:9,vars:16,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly"],[1,"t-toggle"],["class","t-loader",3,"inheritColor","showLoader","size",4,"ngIf"],["class","t-icon-wrapper",4,"ngIf"],[1,"t-circle"],["automation-id","tui-toggle__checkbox","role","switch","type","checkbox",1,"t-checkbox",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-loader",3,"inheritColor","showLoader","size"],[1,"t-icon-wrapper"],["automation-id","tui-toggle__check-icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__check-icon",1,"t-icon",3,"src"],["automation-id","tui-toggle__cancel-icon","class","t-icon t-icon_off",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__cancel-icon",1,"t-icon","t-icon_off",3,"src"]],template:function(e,n){e&1&&(m(0,"div",0)(1,"div",1),v(2,Ac,1,3,"tui-loader",2)(3,Rc,2,4,"span",3),S(4,"div",4),v(5,Lc,1,3,"tui-loader",2)(6,zc,2,4,"span",3),g(),m(7,"input",5,6),f("tuiCheckedChange",function(r){return n.value=r})("tuiFocusedChange",function(r){return n.onFocused(r)})("tuiFocusVisibleChange",function(r){return n.onFocusVisible(r)}),g()()),e&2&&(u("active",n.pseudoActive)("appearance",n.appearance)("disabled",n.computedDisabled)("focus",n.computedFocusVisible)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),c(2),u("ngIf",n.showLoader),c(1),u("ngIf",n.showIcons&&!n.showLoader),c(2),u("ngIf",n.showLoader),c(1),u("ngIf",n.showIcons&&!n.showLoader),c(1),u("disabled",n.disabled)("id",n.id)("tuiFocusable",n.focusable)("tuiChecked",n.value),H("aria-checked",n.value))},dependencies:[yn,_e,$e,ee,Z,xn,ut,Sn,kn],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}[data-size=m][_nghost-%COMP%]{width:2rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:3rem;height:1.5rem}.t-checkbox[_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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.t-checkbox[_ngcontent-%COMP%]:-webkit-autofill, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-checkbox[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.t-toggle[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}[data-size=m][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:3rem;height:1rem;transform:translate(-1rem)}[data-size=l][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:4.5rem;height:1.5rem;transform:translate(-1.5rem)}._checked[_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{transform:translate(0)}.t-circle[_ngcontent-%COMP%]{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}._disabled[_nghost-%COMP%] .t-circle_light[_ngcontent-%COMP%]{opacity:.24}[data-size=m][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:.75rem;height:.75rem}[data-size=l][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:1rem;height:1rem}._disabled[_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{background-color:var(--tui-base-01)}.t-loader[_ngcontent-%COMP%]{min-width:auto}[_nghost-%COMP%]:not(._checked) .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-06)}[_nghost-%COMP%]:not(._checked)._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-05)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:.75rem;margin:0 .2rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:1rem;margin:0 .25rem}.t-icon-wrapper[_ngcontent-%COMP%]{display:flex}.t-icon[_ngcontent-%COMP%]{opacity:.8}.t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-06)}._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-05)}[data-mode=onDark][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[data-mode=onLight][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{margin:0 .125rem;width:1.5rem;height:1.5rem}[_nghost-%COMP%]:hover .t-icon[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),t})(),ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Fn,dt,_i,En,In,We,be,On,re]]}),t})();function Bc(t,i){if(t&1&&(m(0,"tui-checkbox-labeled",16),$(1),g()),t&2){let e=i.$implicit,n=h();u("ngModel",e===n.labels[1]),c(1),ce(" ",e," ")}}function Uc(t,i){if(t&1){let e=U();m(0,"div",17)(1,"div",18),S(2,"img",19),m(3,"h3"),$(4,"Aleksandr Inkin"),g()(),m(5,"div",20)(6,"button",21),f("click",function(){let r=w(e).$implicit;return x(r.complete())}),g(),m(7,"button",22),f("click",function(){let r=w(e).$implicit;return x(r.complete())}),g()()()}}function $c(t,i){if(t&1){let e=U();m(0,"tui-push",23),f("close",function(){w(e);let o=h();return x(o.toggle(!1))}),S(1,"tui-svg",24),$(2," I have a bad feeling about this... "),m(3,"button",25),f("click",function(){w(e);let o=h();return x(o.toggle(!1))}),$(4," Fortune "),g(),m(5,"button",26),f("click",function(){w(e);let o=h();return x(o.toggle(!1))}),$(6," Glory "),g()()}}var XM=(()=>{let i=class i{constructor(){this.dialogs=ao(wn),this.cd=ao(Ce),this.labels=["New","Read","Archived","Junk"],this.tags=["Angular","Open source"],this.date=null,this.notification=!1,this.slider=80}onDay(n){this.date=n}call(n){this.dialogs.open(n,{appearance:"call",closeable:!1,dismissible:!1}).subscribe()}toggle(n){this.notification=n,this.cd.detectChanges()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=k({type:i,selectors:[["home"]],standalone:!0,features:[er],decls:24,vars:10,consts:[[1,"title"],["tuiHintContent","Customizable for any use case",1,"tui-space_vertical-10",3,"tuiTextfieldLabelOutside","ngModel","ngModelChange"],[1,"flex"],[1,"date"],["required","",3,"ngModel","ngModelChange","click.capture.stop","keydown.capture.stop","mousedown.capture.stop"],[1,"calendar",3,"value","dayClick","event.prevent.silent"],["size","l","class","tui-space_bottom-4",3,"ngModel",4,"ngFor","ngForOf"],[1,"controls"],["size","l",1,"tui-space_right-3",3,"showIcons","ngModel","ngModelChange"],["size","m","step","any","tuiSlider","","type","range",1,"tui-space_vertical-6",3,"max","ngModel","ngModelChange"],[1,"icons"],["appearance","","icon","tuiIconVolumeXLarge","shape","rounded","title","Mute speaker","tuiIconButton","","type","button",1,"button",3,"click"],["appearance","","icon","tuiIconMicOffLarge","shape","rounded","title","Mute microphone","tuiIconButton","","type","button",1,"button"],["appearance","","icon","tuiIconPhoneForwardedLarge","shape","rounded","title","Forward call","tuiIconButton","","type","button",1,"error",3,"click"],["callTemplate",""],["heading","Indiana Jones","type","Dr. Henry Walton Jones, Jr.",3,"close",4,"tuiPush"],["size","l",1,"tui-space_bottom-4",3,"ngModel"],[1,"call","gradient-border"],[1,"person"],["alt","author","loading","lazy","src","https://avatars.githubusercontent.com/u/11832552"],[1,"buttons"],["appearance","custom","iconRight","tuiIconPhone","size","m","tuiIconButton","",1,"missed",3,"click"],["appearance","custom","iconRight","tuiIconPhone","size","m","tuiIconButton","",1,"income",3,"click"],["heading","Indiana Jones","type","Dr. Henry Walton Jones, Jr.",3,"close"],["src","tuiIconMessageSquareLarge"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"]],template:function(o,r){if(o&1){let l=U();m(0,"h2",0),$(1," Dozens of "),S(2,"br"),$(3," components\n"),g(),m(4,"tui-input-tag",1),f("ngModelChange",function(p){return r.tags=p}),g(),m(5,"div",2)(6,"div",3)(7,"tui-input-date",4),f("ngModelChange",function(p){return r.date=p})("click.capture.stop",function(){return 0})("keydown.capture.stop",function(){return 0})("mousedown.capture.stop",function(){return 0}),$(8," Choose date "),g(),m(9,"tui-calendar",5),f("dayClick",function(p){return r.onDay(p)})("event.prevent.silent",function(){return 0}),g()(),m(10,"div"),v(11,Bc,2,2,"tui-checkbox-labeled",6),g(),m(12,"div",7)(13,"label")(14,"tui-toggle",8),f("ngModelChange",function(p){return r.notification=p}),g(),$(15," Push notification "),g(),m(16,"input",9),f("ngModelChange",function(p){return r.slider=p}),g(),m(17,"div",10)(18,"button",11),f("click",function(){return r.slider=0}),g(),S(19,"button",12),m(20,"button",13),f("click",function(){w(l);let p=J(22);return x(r.call(p))}),g()()()(),v(21,Uc,8,0,"ng-template",null,14,Te)(23,$c,7,0,"tui-push",15)}o&2&&(c(4),u("tuiTextfieldLabelOutside",!0)("ngModel",r.tags),c(3),u("ngModel",r.date),c(2),u("value",r.date),c(2),u("ngForOf",r.labels),c(3),u("showIcons",!0)("ngModel",r.notification),c(2),u("max",140)("ngModel",r.slider),c(7),u("tuiPush",r.notification))},dependencies:[N,Jt,nt,tt,ir,it,nr,Re,el,Js,ol,nl,Wn,$n,Un,Fo,Xs,Je,Qs,zs,Ns,Pn,Dn,jn,Ut,tl,ft,be,_e,ua,aa,sa,la,gi,hi],styles:['.title{font-size:3.5rem;line-height:4.0625rem;margin:0}.t-overlay{display:none!important}.flex{display:flex}.date{width:18rem;margin-right:2.8125rem}.calendar{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;border-radius:var(--tui-radius-m);border:.0625rem solid var(--tui-base-03);margin-top:.25rem;width:18rem;box-sizing:border-box;height:auto}.controls{flex:1;margin-left:2.8125rem}.icons{display:flex;justify-content:space-between}.button[data-size][data-shape],.error[data-size][data-shape]{transition-property:color,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-primary)}.button[data-size][data-shape]:hover,.error[data-size][data-shape]:hover,.button[data-size][data-shape]:active,.error[data-size][data-shape]:active{background:var(--tui-base-03);color:var(--tui-primary-hover)}.error[data-size][data-shape]{color:var(--tui-negative)}.error[data-size][data-shape]:hover,.error[data-size][data-shape]:active{color:var(--tui-negative-hover)}tui-dialog[data-appearance=call][data-size]{border-radius:.25rem;width:25rem;padding:0;border:none;margin:1.25rem auto}tui-dialog[data-appearance=call][data-size]>.t-content{padding:.5rem 1rem;box-shadow:0 0 .1875rem #1f1f1f;--border-width: .1875rem}tui-dialog[data-appearance=call][data-size]>.t-content:after{position:absolute;content:"";top:calc(-1 * var(--border-width));left:calc(-1 * var(--border-width));z-index:-1;width:calc(100% + var(--border-width) * 2);height:calc(100% + var(--border-width) * 2);background:linear-gradient(60deg,hsl(224,85%,66%),hsl(269,85%,66%),hsl(314,85%,66%),hsl(359,85%,66%),hsl(44,85%,66%),hsl(89,85%,66%),hsl(134,85%,66%),hsl(179,85%,66%));background-size:300% 300%;background-position:0 50%;border-radius:calc(2 * var(--border-width));animation:moveGradient 4s alternate infinite}tui-dialog[data-appearance=call][data-size]>.t-filler,tui-dialog[data-appearance=call][data-size]:after{display:none}tui-dialog[data-appearance=call][data-size] .call{display:flex;align-items:center;justify-content:space-between}tui-dialog[data-appearance=call][data-size] .person{display:flex;align-items:center;gap:.625rem}tui-dialog[data-appearance=call][data-size] .person img{width:2.25rem;border-radius:.625rem;border:.0625rem solid var(--tui-base-05)}tui-dialog[data-appearance=call][data-size] .missed,tui-dialog[data-appearance=call][data-size] .income{border-radius:50%;color:#fff}tui-dialog[data-appearance=call][data-size] .missed [data-appearance=custom]{background:#d23a47;transform:rotate(135deg)}tui-dialog[data-appearance=call][data-size] .income [data-appearance=custom]{background:#27bb64}tui-dialog[data-appearance=call][data-size] .buttons{display:flex;gap:.625rem}@keyframes moveGradient{50%{background-position:100% 50%}}\n'],encapsulation:2,changeDetection:0});let t=i;return t})();export{XM as HomeComponent}; +import{$a as fe,$b as gr,$c as Le,$d as Zr,A as xt,Aa as f,Ab as ar,Ac as an,Ad as fn,Ae as $e,B as ie,Ba as h,Bb as sr,Bd as xi,Be as We,C as Pi,Ca as oe,Cd as ai,Ce as On,D as qo,Da as K,Db as Ki,Dd as _n,De as Dn,E as le,Ea as J,Eb as lr,Ed as vn,Ee as Pn,F as Jo,Fa as $,Fb as ur,Fd as si,Fe as wn,G as C,Ga as Ui,Gb as dr,Gd as Br,Ge as hi,H as Ge,Ha as ce,Hb as St,Hd as Ur,He as gi,I as so,Ia as b,Ib as Qe,Id as a,Ie as xn,J as lo,Ja as tr,Jb as Qi,Jd as te,K as k,Ka as pe,Kb as cr,Kc as xr,Kd as $r,Ke as sa,L as M,La as ir,Lb as pr,Lc as Fe,Ld as li,Le as la,M as y,Ma as W,Mb as X,Mc as Ir,Md as Wr,Me as ua,N as Wt,Na as Q,Nb as R,Nc as kr,Nd as _o,Ne as da,O as It,Oa as co,Ob as Xi,Oc as sn,Od as Yr,P as w,Pa as $i,Pb as ti,Pd as Gr,Q as x,Qa as Wi,Qc as Er,Qd as vo,Ra as V,Rb as ot,Rc as Sr,Rd as Co,S as ge,Sa as G,Sb as Zi,Sc as B,Sd as Kr,T as ke,Ta as Ct,Tb as qi,Tc as Fr,Td as bt,U as Zt,Ua as j,Ub as mr,Uc as ho,Ud as Lt,V as wi,Va as Te,Vb as hr,Vc as Ar,Vd as Ue,W as Vi,Wb as Ji,Wc as go,Xa as po,Xb as en,Xc as Hr,Xd as Cn,Y as ji,Yb as tn,Yc as ln,Yd as ui,Za as Jt,Zc as un,Zd as Qr,_a as ee,_c as rt,_d as Xr,aa as kt,ab as N,ac as ii,ad as Rr,ae as qr,b as $o,ba as er,bc as Ee,bd as oi,be as Mn,c as Wo,ca as E,cc as Xe,cd as dn,ce as Jr,d as Pt,dc as mo,dd as cn,de as ea,e as wt,ec as fr,ed as Lr,ee as ta,f as Yo,fa as c,fc as Ze,fe as ia,g as Go,ga as s,gc as _r,gd as Nr,ge as st,h as se,ha as Ce,hc as vr,hd as xe,he as na,i as Ko,ia as Y,ib as Yi,ic as Cr,id as Ie,ie as oa,j as Be,ja as et,jb as tt,jc as Mr,jd as ri,je as ra,k as L,ka as I,kb as we,kc as Se,kd as At,ke as Mo,l as ro,la as H,lb as it,lc as nn,ld as Ht,le as Tn,m as Ri,ma as u,mb as Re,mc as Tr,md as zr,n as Li,na as He,nb as nr,nc as br,nd as Vr,ne as bn,o as Pe,oa as F,ob as or,oc as yr,od as jr,oe as di,p as Qo,pa as uo,pb as nt,pc as on,q as _t,qa as v,qc as Or,qe as aa,r as Xo,ra as m,rc as ni,rd as fo,re as ci,sa as g,sc as Dr,sd as at,t as Zo,ta as S,tc as Ft,td as Mt,te as yn,u as vt,ua as ue,uc as rn,ud as Rt,ue as _e,v as Ye,va as de,vb as Me,vc as Z,vd as pn,ve as be,w as ao,wa as qt,wb as ei,wc as re,wd as mn,we as pi,x as Ni,xa as U,xb as rr,xc as Pr,xd as hn,xe as lt,y as Xt,ya as Ke,yb as Gi,yc as wr,yd as gn,ye as mi,z as zi,za as Bi,zb as Et,zd as Tt}from"./chunk-B52ZPIL7.js";var al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],decls:0,vars:0,template:function(e,n){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),ca=(()=>{class t{constructor(e){this.autofilled=!1,this.tuiAutofilledChange=new Y,e.addComponent(al)}transitionStartHandler({propertyName:e,target:n}){var o;e.includes("box-shadow")&&((o=n)===null||o===void 0?void 0:o.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return t.\u0275fac=function(e){return new(e||t)(s(Fr))},t.\u0275dir=y({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(e,n){e&1&&f("transitionstart",function(r){return n.transitionStartHandler(r)}),e&2&&F("_autofilled",n.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),pa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var In=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new Y}get isChecked(){return this.checked}get isIndeterminate(){return this.indeterminate}set tuiChecked(e){this.checked=e||!1,this.indeterminate=e===null}onChange({checked:e}){this.checked=e,this.indeterminate=!1,this.tuiCheckedChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(e,n){e&1&&f("change",function(r){return n.onChange(r.target)}),e&2&&Ke("checked",n.isChecked)("indeterminate",n.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),kn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var En=(()=>{class t{constructor(e){this.tuiFocusVisibleChange=e}}return t.\u0275fac=function(e){return new(e||t)(s(ho))},t.\u0275dir=y({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[b([B,ho])]}),t})(),Sn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ut=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,n){e&2&&Ke("tabIndex",n.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),t})(),dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Fn=(()=>{class t{constructor({nativeElement:e},n){this.tuiFocusedChange=Pe(Se(e,"focusin"),Se(e,"focusout")).pipe(L(()=>Ee(e)),zi(!1),Ye(),Xt(1),ni(n))}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(et))},t.\u0275dir=y({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),An=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function sl({currentTarget:t,relatedTarget:i}){return!ot(i)||!ot(t)||!t.contains(i)}var ct=(()=>{class t extends Wo{constructor(e,n){super(o=>this.stream$.subscribe(o)),this.el=e,this.zone=n,this.stream$=Pe(Se(this.el.nativeElement,"mouseenter").pipe(L(ei)),Se(this.el.nativeElement,"mouseleave").pipe(L(Me)),Se(this.el.nativeElement,"mouseout").pipe(_t(sl),L(Me))).pipe(Ye(),ni(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(so(E),so(et))},t.\u0275prov=Jo({token:t,factory:t.\u0275fac}),t})(),fi=(()=>{class t{constructor(e){this.tuiHoveredChange=e}}return t.\u0275fac=function(e){return new(e||t)(s(ct))},t.\u0275dir=y({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[b([ct])]}),t})(),Nt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ma=(()=>{class t{constructor(e,n){this.enabled$=new Pt;let o=n.pipe(L(r=>!!r&&(!e||!r.length||r.every(l=>!e.contains(l)))));this.tuiObscured=this.enabled$.pipe(nn(()=>o))}set tuiObscuredEnabled(e){this.enabled$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(s(Ie,8),s(go,2))},t.\u0275dir=y({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[b([go,Ar,B])]}),t})(),ha=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Hn=(()=>{class t{constructor(e,n){this.el=e,this.takeOnlyTrustedEvents=n,this.tuiPressedChange=br(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(Sr))},t.\u0275dir=y({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})(),_i=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ga=(()=>{class t{constructor(e,n,o){this.el=e,this.zone=n,this.destroy$=o,this.eventName=""}ngOnInit(){Ri(this.el.nativeElement,this.eventName,{passive:!1}).pipe(Or(this.zone),yr(),ie(this.destroy$)).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(et),s(B,2))},t.\u0275dir=y({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:["tuiPreventDefault","eventName"]},features:[b([B])]}),t})(),fa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ll=65536,To=class{constructor(i){this.$implicit=i}},Rn=(()=>{class t{constructor(e,n){this.viewContainer=e,this.templateRef=n}set tuiRepeatTimesOf(e){let n=Math.floor(St(e,0,ll)),{length:o}=this.viewContainer;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function va(t,i,e){return e&&et?i:t}var zn=7;var Mi=12,Nn=1,bo=0,yo=11,Oo=0,Do=9999,Ii="".concat(Ki).concat(lr).concat(Ki),ul=1e3,Ca=60,Ma=60,wo=24,vi=ul*Ca,Ci=vi*Ma,_a=Ci*wo,Ti=10,dl=2*Ti+Ii.length,xo=X("DMY"),Ta=X("."),ba=(t,i)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,i),ye=class t{constructor(i){this.year=i}static isValidYear(i){return Number.isInteger(i)&&Qe(i,Oo,Do+1)}static isLeapYear(i){return i%400===0||i%4===0&&i%100!==0}static getAbsoluteLeapYears(i){return Math.ceil(i/400)+(Math.ceil(i/4)-Math.ceil(i/100))}static lengthBetween(i,e){return e.year-i.year}static normalizeYearPart(i){return Qi(i,Oo,Do)}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:i}){return this.year=i}yearAfter({year:i}){return this.year>i}append({year:i=0}){let e=this.year+i;return new t(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](i){return Date.prototype[Symbol.toPrimitive].call(this,i)}toJSON(){return this.formattedYear}},q=class t extends ye{constructor(i,e){super(i),this.month=e}static isValidMonth(i,e){return ye.isValidYear(i)&&t.isValidMonthPart(e)}static getMonthDaysCount(i,e){switch(i){case at.February:return e?29:28;case at.April:case at.June:case at.September:case at.November:return 30;default:return 31}}static currentLocal(){let i=new Date;return new t(i.getFullYear(),i.getMonth())}static currentUtc(){let i=new Date;return new t(i.getUTCFullYear(),i.getUTCMonth())}static lengthBetween(i,e){let n=i.month+i.year*12;return e.month+e.year*12-n}static normalizeMonthPart(i){return Qi(i,bo,yo)}static isValidMonthPart(i){return Number.isInteger(i)&&Qe(i,bo,yo+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(i){return this.yearBefore(i)||this.yearSame(i)&&this.month=i.month}monthAfter(i){return this.yearAfter(i)||this.yearSame(i)&&this.month>i.month}append({year:i=0,month:e=0}){let n=(this.year+i)*Mi+this.month+e;return new t(Math.floor(n/Mi),n%Mi)}toString(){return"".concat(this.formattedMonthPart,".").concat(this.formattedYear)}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return"".concat(super.toJSON(),"-").concat(this.formattedMonthPart)}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}},ve=class t extends q{constructor(i,e,n){super(i,e),this.day=n}static fromLocalNativeDate(i){return new t(i.getFullYear(),i.getMonth(),i.getDate())}static fromUtcNativeDate(i){return new t(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate())}static isValidDay(i,e,n){return q.isValidMonth(i,e)&&Number.isInteger(n)&&Qe(n,Nn,q.getMonthDaysCount(e,ye.isLeapYear(i))+1)}static currentLocal(){let i=new Date,e=i.getFullYear(),n=i.getMonth(),o=i.getDate();return new t(e,n,o)}static currentUtc(){let i=new Date,e=i.getUTCFullYear(),n=i.getUTCMonth(),o=i.getUTCDate();return new t(e,n,o)}static normalizeOf(i,e,n){let o=ye.normalizeYearPart(i),r=q.normalizeMonthPart(e),l=t.normalizeDayPart(n,r,o);return new t(o,r,l)}static lengthBetween(i,e){return Math.round((e.toLocalNativeDate().getTime()-i.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(i,e="DMY"){switch(e){case"YMD":return{day:parseInt(i.slice(8,10),10),month:parseInt(i.slice(5,7),10)-1,year:parseInt(i.slice(0,4),10)};case"MDY":return{day:parseInt(i.slice(3,5),10),month:parseInt(i.slice(0,2),10)-1,year:parseInt(i.slice(6,10),10)};default:case"DMY":return{day:parseInt(i.slice(0,2),10),month:parseInt(i.slice(3,5),10)-1,year:parseInt(i.slice(6,10),10)}}}static normalizeParse(i,e="DMY"){let{day:n,month:o,year:r}=this.parseRawDateString(i,e);return t.normalizeOf(r,o,n)}static jsonParse(i){let{day:e,month:n,year:o}=this.parseRawDateString(i,"YMD");if(!ye.isValidYear(o))throw new Cr(o);if(!q.isValidMonth(o,n))throw new vr(n);if(!Number.isInteger(e)||!Qe(e,Nn,q.getMonthDaysCount(n,ye.isLeapYear(o))+1))throw new _r(e);return new t(o,n,e)}static normalizeDayPart(i,e,n){let o=q.getMonthDaysCount(e,ye.isLeapYear(n));return Qi(i,1,o)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let i=this.dayOfWeek(!1);return i===fo.Saturday||i===fo.Sunday}dayOfWeek(i=!0){let e=i?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(i){return this.monthBefore(i)||this.monthSame(i)&&this.day=i.day}dayAfter(i){return this.monthAfter(i)||this.monthSame(i)&&this.day>i.day}dayLimit(i,e){return i!==null&&this.dayBefore(i)?i:e!==null&&this.dayAfter(e)?e:this}append({year:i=0,month:e=0,day:n=0}){let o=(this.year+i)*Mi+this.month+e,r=Math.floor(o/Mi),l=o%Mi,d=Math.min(this.day,q.getMonthDaysCount(l,ye.isLeapYear(r)))+n;for(;d>q.getMonthDaysCount(l,ye.isLeapYear(r));)d-=q.getMonthDaysCount(l,ye.isLeapYear(r)),l===at.December?(r++,l=at.January):l++;for(;d0,n=e||i==="HH:MM:SS"||!i&&this.seconds>0;return"".concat(this.formatTime(this.hours),":").concat(this.formatTime(this.minutes))+"".concat(n?":".concat(this.formatTime(this.seconds)):"")+"".concat(e?".".concat(this.formatTime(this.ms,3)):"")}valueOf(){return this.toAbsoluteMilliseconds()}[Symbol.toPrimitive](i){return Date.prototype[Symbol.toPrimitive].call(this,i)}toAbsoluteMilliseconds(){return this.hours*Ci+this.minutes*vi+this.seconds*1e3+this.ms}formatTime(i,e=2){return String(i).padStart(e,"0")}};function cl(t,i){t&1&&S(0,"tui-scroll-controls",2)}var pl=["*"];var Vt=(()=>{class t{constructor(e,n,o,r){this.cssRef=e,this.el=n,this.userAgent=o,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||dr(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new E(this.el.nativeElement)}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(e){this.delegated=!0,this.browserScrollRef.nativeElement=e}scrollIntoView(e){var n;if(this.delegated)return;let{nativeElement:o}=this.browserScrollRef,{offsetTop:r,offsetLeft:l}=hr(o,e),{clientHeight:d,clientWidth:p}=o,{offsetHeight:T,offsetWidth:_}=e,O=r+T/2-d/2,D=l+_/2-p/2;(n=o.scrollTo)===null||n===void 0||n.call(o,D,O)}}return t.\u0275fac=function(e){return new(e||t)(s(wr),s(E),s(an),s(kr))},t.\u0275cmp=k({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(e,n){e&1&&f("tui-scrollable.stop",function(r){return n.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return n.scrollIntoView(r.detail)}),e&2&&F("_legacy",n.showNative)},inputs:{hidden:"hidden"},features:[b([{provide:Er,deps:[t],useFactory:({browserScrollRef:i})=>i}])],ngContentSelectors:pl,decls:3,vars:1,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(e,n){e&1&&(oe(),v(0,cl,1,0,"tui-scroll-controls",0),m(1,"div",1),K(2),g()),e&2&&u("ngIf",n.showScrollbars)},dependencies:[Lr,ee],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:.375rem solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.t-content[_ngcontent-%COMP%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})(),yi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Nr]]}),t})();function ml(t,i){if(t&1&&(m(0,"div",4),$(1),g()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}var hl=t=>({$implicit:t}),gl=R(()=>Cl),ki=(()=>{class t{constructor(){this.tuiDropdownOpenChange=new Y}set tuiDropdownOpen(e){var n;(n=this.dropdown)===null||n===void 0||n.toggle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"}}),t})(),ae=class{constructor(i,e,n,o,r,l){this.el=e,this.dropdown=n,this.injector=o,this.dropdownService=r,this.open=l,this.refresh$=new Pt,this.dropdownBoxRef=null,this.type="dropdown",this.component=new Ft(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe(qo(0),ie(i)).subscribe(()=>{var d,p;(d=this.dropdownBoxRef)===null||d===void 0||d.changeDetectorRef.detectChanges(),(p=this.dropdownBoxRef)===null||p===void 0||p.changeDetectorRef.markForCheck()})}get position(){return $r(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(i){var e,n;i&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),(e=this.open)===null||e===void 0||e.tuiDropdownOpenChange.emit(!0)):!i&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,(n=this.open)===null||n===void 0||n.tuiDropdownOpenChange.emit(!1))}};ae.\u0275fac=function(i){return new(i||ae)(s(B,2),s(E),s(gl),s(Vi),s(jr),s(ki,8))};ae.\u0275dir=y({type:ae,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[b([B,si(ae),mn(ae)]),It]});se([xe],ae.prototype,"position",null);var fl={showDelay:200,hideDelay:500},_l=X(fl);var Io=(()=>{class t extends Mt{constructor(e,n,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=n,this.parentHover=o,this.toggle$=new Pt,this.stream$=Pe(this.toggle$,this.hovered$).pipe(xt(r=>Be(r).pipe(vt(r?this.showDelay:this.hideDelay))),Pi(r=>{this.hovered=r}),Ni()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(e){var n;(n=this.parentHover)===null||n===void 0||n.toggle(e),this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(s(ct),s(_l),s(t,12))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[b([Rt(t),ct]),I]}),t})(),Oa={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Yt=X(Oa),Da=t=>({provide:Yt,deps:[[new ke,vl],[new ke,new wi,Yt]],useFactory:Co(t,Oa)}),vl=(()=>{class t{constructor(e){this.options=e,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}}return t.\u0275fac=function(e){return new(e||t)(s(Yt,4))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:["tuiDropdownAlign","align"],appearance:["tuiDropdownAppearance","appearance"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],offset:["tuiDropdownOffset","offset"]},features:[b([{provide:Yt,useExisting:le(()=>t)}])]}),t})(),Cl=(()=>{class t{constructor(e,n,o,r,l,d,p,T,_,O,D){this.directive=r,this.animation=l,this.el=d,this.accessor=p,this.win=T,this.mode$=_,this.options=O,this.hoverDirective=D,n.pipe(L(P=>this.directive.position==="fixed"?e.correct(P):P),ie(o)).subscribe(([P,z])=>{this.update(P,z)}),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(e){this.hoverDirective&&this.hoverDirective.toggle(e)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(e,n){var o;let{style:r}=this.el.nativeElement,{right:l}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:d,offset:p}=this.options,{innerHeight:T}=this.win,_=(o=this.el.nativeElement.offsetParent)===null||o===void 0?void 0:o.getBoundingClientRect(),{position:O}=this.directive,D=this.accessor.getClientRect(),P=O==="fixed"?0:-((_==null?void 0:_.left)||0),z=O==="fixed"?0:-((_==null?void 0:_.top)||0);e+=z,n+=P;let he=nD.left&&ethis.stream$.subscribe(e)),this.activeZone=i,this.stream$=new Pt,this.currentRect=Et,this.type="dropdown"}onContextMenu(i,e){this.currentRect=en(i,e),this.stream$.next(!0)}closeDropdown(){this.stream$.next(!1)}getClientRect(){return this.currentRect}};yt.\u0275fac=function(i){return new(i||yt)(s(Ie))};yt.\u0275dir=y({type:yt,selectors:[["","tuiDropdown","","tuiDropdownContext",""]],hostBindings:function(i,e){i&1&&f("contextmenu.prevent.stop",function(o){return e.onContextMenu(o.clientX,o.clientY)})("click.silent",function(o){return e.closeDropdown(o.target)},!1,kt)("contextmenu.capture.silent",function(o){return e.closeDropdown(o.target)},!1,kt)("keydown.esc",function(o){return e.closeDropdown(o.currentTarget)},!1,kt)},features:[b([Ie,Rt(yt),si(yt)]),I]});se([mi(Ml)],yt.prototype,"closeDropdown",null);var Pa=(()=>{class t extends hn{constructor(e,n,o){super(e,n,o),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(Mt),s(pn))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown",""]],features:[b([B]),I]}),t})();var wa=(()=>{class t extends Mt{constructor(){super(e=>this.stream$.subscribe(e)),this.stream$=new wt(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[b([Rt(t)]),I,It]}),t})(),pt=class extends Tt{constructor(i,e,n,o){super(),this.options=i,this.viewport=e,this.accessors=n,this.directive=o,this.type="dropdown"}getPosition({width:i,height:e}){var n,o;!i&&!e&&(this.previous=void 0);let r=(o=(n=this.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:Et,l=this.viewport.getClientRect(),{minHeight:d,align:p,direction:T,offset:_}=this.options,O={top:l.top-_,bottom:l.bottom+_,right:l.right-_,left:l.left+_},D=this.previous||T||"bottom",P={top:r.top-2*_-O.top,bottom:O.bottom-r.bottom-2*_},z=Math.max(r.right-i,_),De=r.left+iP.bottom?"top":"bottom";return P[D]>d&&T||P[D]>e?[he[D],he[p]]:(this.previous=je,[he[je],he[p]])}get accessor(){return vn("dropdown")(this.accessors,this.directive)}};pt.\u0275fac=function(i){return new(i||pt)(s(Yt),s(di),s(ai),s(ae))};pt.\u0275dir=y({type:pt,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[b([xi(pt)]),I]});se([xe],pt.prototype,"accessor",null);var xa=(()=>{class t extends Tt{constructor(e,n,o){super(),this.options=e,this.viewport=n,this.vertical=o,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var n,o;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:r,width:l}=e,d=(o=(n=this.vertical.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:Et,p=this.viewport.getClientRect(),{direction:T,minHeight:_,offset:O}=this.options,D=this.options.align==="center"?"left":this.options.align,P={top:d.bottom-p.top,left:d.left-O-p.left,right:p.right-d.right-O,bottom:p.bottom-d.top},z={top:d.bottom-r+this.tuiDropdownSidedOffset+1,left:d.left-l-O,right:d.right+O,bottom:d.top-this.tuiDropdownSidedOffset-1},De=P.top>P.bottom?"top":"bottom",he=P.left>P.right?z.left:z.right,je=P[D]>l?z[D]:he;return P[this.previous]>_&&T||this.previous===De?[z[this.previous],je]:(this.previous=De,[z[De],je])}}return t.\u0275fac=function(e){return new(e||t)(s(Yt),s(di),s(pt))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[b([pt,xi(t)]),I]}),t})();var Vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[re,ri,Vr,yi,Nt]]}),t})();function bl(t,i){if(t&1&&S(0,"span",1),t&2){let e=i.polymorpheusOutlet;u("innerHTML",e,er)}}var yl=R(()=>Bt),Ol={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},Kt=X(Ol);var Ut=(()=>{class t extends Le{constructor(e){super(),this.options=e,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}}return t.\u0275fac=function(e){return new(e||t)(s(Kt,4))},t.\u0275dir=y({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[b([{provide:Kt,useExisting:le(()=>t)}]),I]}),t})(),Bn=(()=>{class t{constructor(e,n,o,r,l){this.el=e,this.component=n,this.hintService=o,this.options=r,this.activeZone=l,this.tuiHintAppearance=null,this.type="hint"}get appearance(){var e;return(e=this.tuiHintAppearance)!==null&&e!==void 0?e:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(e){e&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(Ft),s(aa),s(Kt),s(Ie,8))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[b([si(t),mn(t),{provide:Ft,deps:[yl,Vi],useClass:Ft}]),It]}),t})(),Oi=(()=>{class t extends Mt{constructor(e,n,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=n,this.el=o,this.visible=!1,this.toggle$=new Pt,this.stream$=Pe(this.toggle$.pipe(xt(r=>Be(r).pipe(vt(r?0:this.hideDelay))),ie(this.hovered$),ao()),this.hovered$.pipe(xt(r=>Be(r).pipe(vt(r?this.showDelay:this.hideDelay))),ie(this.toggle$),ao())).pipe(_t(()=>this.enabled),L(r=>r&&!vo(this.el.nativeElement)),Pi(r=>{this.visible=r})),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(e=!this.visible){this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(s(ct),s(Kt),s(E))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[b([Rt(t),ct]),I]}),t})(),Dl=(()=>{class t extends Oi{constructor(){super(...arguments),this.currentRect=Et}onMove({clientX:e,clientY:n}){this.currentRect=en(e,n)}getClientRect(){return this.currentRect}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(e,n){e&1&&f("mousemove.silent",function(r){return n.onMove(r)})},features:[b([si(t),Rt(t)]),I]}),t})(),Ia=4,Bt=class{constructor(i,e,n,o,r,l,d,p,T,_,O,D){var P;this.animation=o,this.pointer=r,this.accessor=l,this.el=d,this.polymorpheus=p,this.hover=T,this.mode=_,this.visualViewportService=O,this.viewport=D,this.appearance=this.polymorpheus.$implicit.appearance||((P=this.mode)===null||P===void 0?void 0:P.mode),e.pipe(L(z=>this.visualViewportService.correct(z)),ie(n)).subscribe(([z,De])=>{this.update(z,De)}),i.pipe(ie(n)).subscribe(z=>this.hover.toggle(z))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(i){(!this.el.nativeElement.contains(i)&&!this.hover.el.nativeElement.contains(i)||vo(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(i,e){let{height:n,width:o}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,l=this.accessor.getClientRect(),d=this.viewport.getClientRect();if(l===Et)return;let p=St(e,Ia,d.width-o-Ia),[T,_]=this.visualViewportService.correct([l.top+l.height/2-i,l.left+l.width/2-p]);r.top=Ze(i),r.left=Ze(p),r.setProperty("--top",Ze(St(T,.5,n-1))),r.setProperty("--left",Ze(St(_,.5,o-1)))}};Bt.\u0275fac=function(i){return new(i||Bt)(s(ct),s(ci),s(B,2),s(Cn),s(Dl,8),s(ai),s(E),s(Dr),s(Oi),s(pi,8),s(yn),s(di))};Bt.\u0275cmp=k({type:Bt,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(i,e){i&1&&f("click",function(o){return e.onClick(o.target)},!1,kt),i&2&&(H("data-appearance",e.appearance),Bi("@tuiFadeIn",e.animation),F("_untouchable",e.pointer))},features:[b([B,ci,ct,fn("hint"),_n("hint",Bn)])],decls:1,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(i,e){i&1&&v(0,bl,1,1,"span",0),i&2&&u("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context)},dependencies:[Z],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}[_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-error-fill)}[data-appearance=onDark][_nghost-%COMP%]{background:var(--tui-elevation-02);color:var(--tui-text-01);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:[Br]},changeDetection:0});se([xe],Bt.prototype,"update",null);var ht=class extends Mt{constructor(i,e,n){super(o=>this.stream$.subscribe(o)),this.zone=i,this.doc=e,this.el=n,this.id$=new Yo(1),this.stream$=this.id$.pipe(nn(()=>Se(this.doc,"keydown",{capture:!0}),Xi),xt(()=>this.focused?Be(!1):Pe(Se(this.doc,"keyup"),Se(this.element,"blur")).pipe(L(()=>this.focused))),Xo(o=>o?Li(1e3):Be(null)),zi(!1),Ye(),Xt(1),ni(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return Ee(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}};ht.\u0275fac=function(i){return new(i||ht)(s(et),s(po),s(E))};ht.\u0275dir=y({type:ht,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[b([Rt(ht)]),I,It]});se([xe],ht.prototype,"element",null);var ka=(()=>{class t extends hn{constructor(e,n,o){super(e,n,o),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(Mt),s(pn))},t.\u0275dir=y({type:t,selectors:[["","tuiHint",""]],features:[b([B]),I]}),t})();var jt=8,jn=22,ne=0,me=1,gt=class extends Tt{constructor(i,e,n,o){super(),this.options=i,this.viewport=e,this.directive=n,this.accessors=o,this.points=_o.reduce((r,l)=>Object.assign(Object.assign({},r),{[l]:[0,0]}),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:i,height:e}){var n,o;let r=(o=(n=this.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:Et,l=r.left+r.width/2,d=r.top+r.height/2;if(this.points["top-left"][ne]=r.top-e-jt,this.points["top-left"][me]=l-i+jn,this.points.top[ne]=this.points["top-left"][ne],this.points.top[me]=l-i/2,this.points["top-right"][ne]=this.points["top-left"][ne],this.points["top-right"][me]=l-jn,this.points["bottom-left"][ne]=r.bottom+jt,this.points["bottom-left"][me]=this.points["top-left"][me],this.points.bottom[ne]=this.points["bottom-left"][ne],this.points.bottom[me]=this.points.top[me],this.points["bottom-right"][ne]=this.points["bottom-left"][ne],this.points["bottom-right"][me]=this.points["top-right"][me],this.points["left-top"][ne]=d-e+jn,this.points["left-top"][me]=r.left-i-jt,this.points.left[ne]=d-e/2,this.points.left[me]=this.points["left-top"][me],this.points["left-bottom"][ne]=d-jn,this.points["left-bottom"][me]=this.points["left-top"][me],this.points["right-top"][ne]=this.points["left-top"][ne],this.points["right-top"][me]=r.right+jt,this.points.right[ne]=this.points.left[ne],this.points.right[me]=this.points["right-top"][me],this.points["right-bottom"][ne]=this.points["left-bottom"][ne],this.points["right-bottom"][me]=this.points["right-top"][me],this.checkPosition(this.points[this.direction],i,e))return this.points[this.direction];let p=_o.find(T=>this.checkPosition(this.points[T],i,e));return this.points[p||this.fallback]}get accessor(){return vn("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[ne]>this.viewport.getClientRect().bottom-this.points.bottom[ne]?"top":"bottom"}checkPosition([i,e],n,o){let r=this.viewport.getClientRect();return i>jt&&e>jt&&i+o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,re]]}),t})();var Ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[b([{provide:Yi,deps:[[new ke,bn],tt],multi:!0,useFactory:(i,e)=>i?i[0]:e}])]}),t})(),Sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Fa=(()=>{class t{constructor(e,n){this.el=e,this.destroy$=n}set tuiScrollIntoView(e){e&&Li(0).pipe(ie(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(Wr,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(B,2))},t.\u0275dir=y({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[b([B])]}),t})(),Aa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var ko=class{constructor(i,e,n,o,r,l,d,p,T,_,O,D,P){this.change$=i,this.options=e,this.legacyAppearance=n,this.appearanceDirective=o,this.cleanerDirective=r,this.customContentDirective=l,this.iconDirective=d,this.iconLeftDirective=p,this.labelOutsideDirective=T,this.sizeDirective=_,this.prefixDirective=O,this.postfixDirective=D,this.fillerDirective=P}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 iconLeft(){return this.iconLeftDirective.iconLeft}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}},Il={iconCleaner:"tuiIconClose",hintOnDisabled:!1},Eo=X(Il);var Ha=R(()=>new kl),kl=(()=>{class t extends Le{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[b([{provide:Ha,useExisting:le(()=>t)}]),I]}),t})(),Ra=R(()=>new El),El=(()=>{class t extends Le{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[b([{provide:Ra,useExisting:le(()=>t)}]),I]}),t})(),La=R(()=>new Sl),Sl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[b([{provide:La,useExisting:le(()=>t)}]),I]}),t})(),Na=R(()=>new So),So=(()=>{class t extends Le{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[b([{provide:Na,useExisting:le(()=>t)}]),I]}),t})(),za=R(()=>new Fo),Fo=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[b([{provide:za,useExisting:le(()=>t)}]),I]}),t})(),Va=R(()=>new Fl),Fl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[b([{provide:Va,useExisting:le(()=>t)}]),I]}),t})(),ja=R(()=>new Ao),Ao=(()=>{class t extends Le{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[b([{provide:ja,useExisting:le(()=>t)}]),I]}),t})(),Ba=R(()=>new Al),Al=(()=>{class t extends Le{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[b([{provide:Ba,useExisting:le(()=>t)}]),I]}),t})(),Ua=R(()=>new Hl),Hl=(()=>{class t extends Le{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[b([{provide:Ua,useExisting:le(()=>t)}]),I]}),t})(),$n=R(()=>new Rl),Rl=(()=>{class t extends Le{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[b([{provide:$n,useExisting:le(()=>t)}]),I]}),t})(),Wn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})(),Qt=new Ge("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Di=[B,{provide:Qt,deps:[Ce,B,Eo,ra,Ha,Ra,La,za,Va,ja,$n,Ua,Ba,Na],useFactory:(t,i,e,n,...o)=>{let r=Pe(...o.map(({change$:l})=>l||Qo)).pipe(on(t),ie(i));return r.subscribe(),new ko(r,e,n,...o)}}];function Ll(t,i){if(t&1){let e=U();m(0,"div",4),f("click",function(){let r=w(e).tuiLet,l=h(3);return x(l.onItemClick(r))})("tuiHoveredChange",function(o){let l=w(e).tuiLet,d=h(3);return x(d.onItemHovered(o,l))})("tuiPressedChange",function(o){let l=w(e).tuiLet,d=h(3);return x(d.onItemPressed(o,l))}),m(1,"div",5),$(2),g()()}if(t&2){let e=i.tuiLet,n=h(3);F("t-cell_interval",n.itemIsInterval(e))("t-cell_today",n.itemIsToday(e)),u("tuiScrollIntoView",n.scrollItemIntoView(e)),H("data-range",n.getItemRange(e))("data-state",n.getItemState(e)),c(2),Ui(e)}}function Nl(t,i){if(t&1&&(ue(0),v(1,Ll,3,8,"div",3),de()),t&2){let e=i.$implicit,n=h().$implicit,o=h();c(1),u("tuiLet",o.getItem(n,e))}}function zl(t,i){t&1&&(m(0,"div",1),v(1,Nl,2,1,"ng-container",2),g()),t&2&&(c(1),u("tuiRepeatTimesOf",4))}var $a=100,Wa=4,Ya=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=q.currentLocal().year,this.value=null,this.initialItem=q.currentLocal(),this.min=Ae,this.max=Ne,this.disabledItemHandler=Me,this.yearClick=new Y}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Ae}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ne}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/Wa)}get calculatedMin(){let e=this.initialItem.year-$a,n=this.computedMin;return n.year>e?n.year:e}get calculatedMax(){let e=this.initialItem.year+$a,n=this.computedMax;return n.yearn.from.year&&n.from.year===e&&n.from.yearSame(n.to)||o!==null&&o===e&&on.from.year&&n.from.yearSame(n.to)?Ue.End:n.from.yearSame(n.to)&&n.from.year===e?Ue.Single:null:n.find(r=>r.year===e)?Ue.Single:null}itemIsToday(e){return this.currentYear===e}itemIsInterval(e){let{value:n,hoveredItem:o}=this;return n===null||!this.isRange(n)?!1:n.from.yearSame(n.to)?o===null||n.from.year===o?!1:Qe(e,Math.min(n.from.year,o),Math.max(n.from.year,o)):n.from.year<=e&&n.to.year>e}onItemHovered(e,n){this.updateHoveredItem(e,n)}onItemPressed(e,n){this.updatePressedItem(e,n)}onItemClick(e){this.yearClick.emit(new ye(e))}updateHoveredItem(e,n){this.hoveredItem=e?n:null}updatePressedItem(e,n){this.pressedItem=e?n:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,n){e&2&&F("_single",n.isSingle)},inputs:{value:"value",initialItem:"initialItem",min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},outputs:{yearClick:"yearClick"},decls:1,vars:1,consts:[["automation-id","tui-primitive-year-picker__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__cell","class","t-cell",3,"t-cell_interval","t-cell_today","tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],["automation-id","tui-primitive-year-picker__cell",1,"t-cell",3,"tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange"],[1,"t-item"]],template:function(e,n){e&1&&v(0,zl,2,1,"div",0),e&2&&u("tuiRepeatTimesOf",n.rows)},dependencies:[Rn,At,Fa,fi,Hn],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{content:"";position:absolute;top:0;left:0;right:0;bottom:0;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:3.9375rem;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-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;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-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-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[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_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}),t})(),Ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[Nt,_i,Ln,Ht,Aa]]}),t})();function jl(t,i){if(t&1){let e=U();ue(0),m(1,"button",1),f("click",function(){w(e);let o=h();return x(o.onLeftClick())}),g(),m(2,"span",2),K(3),g(),m(4,"button",3),f("click",function(){w(e);let o=h();return x(o.onRightClick())}),g(),de()}if(t&2){let e=i.ngIf,n=h();c(1),F("t-hidden",n.leftComputedDisabled),u("focusable",n.computedFocusable)("icon",n.icons.decrement)("title",e[0]),c(3),F("t-hidden",n.rightComputedDisabled),u("focusable",n.computedFocusable)("icon",n.icons.increment)("title",e[1])}}var Bl=["*"],Ka=(()=>{class t extends ln{constructor(e,n,o){super(),this.el=e,this.icons=n,this.spinTexts$=o,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new Y,this.rightClick=new Y}get focused(){return Xe(this.el.nativeElement)}get leftComputedDisabled(){return this.computedDisabled||this.leftDisabled}get rightComputedDisabled(){return this.computedDisabled||this.rightDisabled}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(oa),s(ta))},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(e,n){e&1&&f("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return n.onLeftClick()})("keydown.arrowRight.prevent",function(){return n.onRightClick()})("focusin",function(){return n.onFocused(!0)})("focusout",function(){return n.onFocused(!1)})},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[I],ngContentSelectors:Bl,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-primitive-spin-button__left","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-primitive-spin-button__right","size","xs","tuiIconButton","","type","button",3,"focusable","icon","title","click"]],template:function(e,n){e&1&&(oe(),v(0,jl,5,10,"ng-container",0),W(1,"async")),e&2&&u("ngIf",Q(1,1,n.spinTexts$))},dependencies:[Pn,ee,fe],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:bold}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0}),t})(),Qa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,wn]]}),t})();var $l=(t,i)=>{let e=new Date(t.year,t.month,1).getDay();return e>=i?e-i:zn-(i-e)},Wl=({month:t,rowIndex:i,colIndex:e,firstDayOfWeek:n})=>{let o=i*zn+e-$l(t,n)+1;return o>t.daysCount&&(o-=t.daysCount,t=t.append({month:1})),o<=0&&(t=t.append({month:-1}),o=t.daysCount+o),new ve(t.year,t.month,o)},Yl=6,Xa=(()=>{class t{constructor(e){this.firstDayOfWeek=e,this.currentMonth=null,this.currentSheet=[]}transform(e,n=!1){var o;if(!((o=this.currentMonth)===null||o===void 0)&&o.monthSame(e))return this.currentSheet;let r=[];for(let l=0;lD.yearD.year>P.year||D.month>P.month;if(!(_(T)&&!n)){if(O(T)&&!n)break;d.push(T)}}r.push(d)}return this.currentSheet=r.filter(l=>l.length),this.currentMonth=e,this.currentSheet}}return t.\u0275fac=function(e){return new(e||t)(s(Mn,16))},t.\u0275pipe=Wt({name:"tuiCalendarSheet",type:t,pure:!0}),t})(),Za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Ho=(()=>{class t{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe(L(n=>n[e]))}}return t.\u0275fac=function(e){return new(e||t)(s(Jr,16))},t.\u0275pipe=Wt({name:"tuiMonth",type:t,pure:!0}),t})(),qa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var Ja=(()=>{class t{constructor(e){this.firstDayOfWeekIndex=e}transform(e){return e.pipe(L(Gl),L(n=>[...n.slice(this.firstDayOfWeekIndex),...n.slice(0,this.firstDayOfWeekIndex)]))}}return t.\u0275fac=function(e){return new(e||t)(s(Mn,16))},t.\u0275pipe=Wt({name:"tuiOrderWeekDays",type:t,pure:!0}),t})();function Gl(t){let i=t.length-1;return[t[i],...t.slice(0,i)]}var es=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function Ql(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=h();c(1),ce(" ",e.value.formattedYear," ")}}function Xl(t,i){if(t&1){let e=U();m(0,"button",3),f("click",function(){w(e);let o=h();return x(o.onYearClick())}),$(1),g()}if(t&2){let e=h();u("tuiFocusable",!1),c(1),ce(" ",e.value.formattedYear," ")}}var ts=(()=>{class t{constructor(){this.value=q.currentLocal(),this.min=Ae,this.max=Ne,this.valueChange=new Y,this.yearClick=new Y}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Ae}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ne}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){let{computedMin:e,computedMax:n}=this;return e.year===n.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(e){let n=this.value.append(e),{computedMin:o,computedMax:r}=this;if(o.monthSameOrAfter(n)){this.updateValue(o);return}this.updateValue(r.monthSameOrBefore(n)?r:n)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-year-month-pagination"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},decls:7,vars:10,consts:[[3,"focusable","leftDisabled","rightDisabled","leftClick","rightClick"],[4,"ngIf","ngIfElse"],["button",""],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tuiLink","","type","button",3,"tuiFocusable","click"]],template:function(e,n){if(e&1&&(m(0,"tui-primitive-spin-button",0),f("leftClick",function(){return n.onPrevMonthClick()})("rightClick",function(){return n.onNextMonthClick()}),$(1),W(2,"async"),W(3,"tuiMonth"),v(4,Ql,2,1,"ng-container",1)(5,Xl,2,2,"ng-template",null,2,Te),g()),e&2){let o=J(6);u("focusable",!1)("leftDisabled",n.prevMonthDisabled)("rightDisabled",n.nextMonthDisabled),c(1),ce(" ",Q(2,6,Q(3,8,n.value))," "),c(3),u("ngIf",n.oneYear)("ngIfElse",o)}},dependencies:[Ka,hi,ee,ut,fe,Ho],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),is=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,dt,Qa,gi,qa]]}),t})();function ql(t,i){if(t&1&&S(0,"div",3),t&2){let e=i.$implicit;u("textContent",e)}}function Jl(t,i){if(t&1&&S(0,"div",14),t&2){let e=h().ngIf;He("background-color",(e==null?null:e[1])||"")}}function eu(t,i){if(t&1&&(m(0,"div",13),S(1,"div",14),v(2,Jl,1,2,"div",15),g()),t&2){let e=i.ngIf;c(1),He("background-color",e==null?null:e[0]),c(1),u("ngIf",e.length>1)}}function tu(t,i){if(t&1){let e=U();m(0,"div",10),f("click",function(){w(e);let o=h().tuiLet,r=h(4);return x(r.onItemClick(o))})("tuiHoveredChange",function(o){w(e);let r=h().tuiLet,l=h(4);return x(l.onItemHovered(o&&r))})("tuiPressedChange",function(o){w(e);let r=h().tuiLet,l=h(4);return x(l.onItemPressed(o&&r))}),m(1,"div",11),W(2,"tuiMapper"),$(3),v(4,eu,3,3,"div",12),W(5,"tuiMapper"),g()()}if(t&2){let e=h().tuiLet,n=h(4);F("t-cell_interval",n.itemIsInterval(e))("t-cell_today",n.itemIsToday(e))("t-cell_unavailable",n.itemIsUnavailable(e)),H("data-range",n.getItemRange(e))("data-state",n.getItemState(e)),c(1),F("t-item_unavailable",n.itemIsUnavailable(e)),H("data-type",co(2,13,e,n.dayTypeHandler)),c(2),ce(" ",e.day," "),c(1),u("ngIf",$i(5,16,e,n.toMarkers,n.itemIsToday(e),!!n.getItemRange(e)))}}function iu(t,i){if(t&1&&(ue(0),v(1,tu,6,21,"div",9),de()),t&2){let e=i.tuiLet,n=h(4);c(1),u("ngIf",!n.itemIsUnavailable(e)||n.showAdjacent)}}function nu(t,i){if(t&1&&(ue(0),v(1,iu,2,1,"ng-container",8),de()),t&2){let e=i.$implicit,n=h().$implicit,o=h().tuiLet;c(1),u("tuiLet",o[n][e])}}function ou(t,i){if(t&1&&(m(0,"div",6),v(1,nu,2,1,"ng-container",7),g()),t&2){let e=i.$implicit,n=h().tuiLet;c(1),u("tuiRepeatTimesOf",n[e].length)}}function ru(t,i){if(t&1&&(m(0,"div",4),v(1,ou,2,1,"div",5),g()),t&2){let e=i.tuiLet;c(1),u("tuiRepeatTimesOf",e.length)}}var ns=(()=>{class t{constructor(e,n){this.unorderedWeekDays$=e,this.dayTypeHandler=n,this.pressedItem=null,this.today=ve.currentLocal(),this.month=q.currentLocal(),this.disabledItemHandler=Me,this.markerHandler=li,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new Y,this.dayClick=new Y,this.toMarkers=(o,r,l)=>{if(r||l)return null;let d=this.markerHandler(o);return d.length===0?null:d}}get isSingleDayRange(){return this.value instanceof zt&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(e){let{disabledItemHandler:n,pressedItem:o,hoveredItem:r}=this;return n(e)?Lt.Disabled:o!=null&&o.daySame(e)?Lt.Active:r!=null&&r.daySame(e)?Lt.Hover:null}getItemRange(e){let{value:n,hoveredItem:o}=this;return n?n instanceof ve?n.daySame(e)?Ue.Single:null:n instanceof zt?n.from.daySame(e)&&!n.isSingleDay||o!=null&&o.dayAfter(n.from)&&n.from.daySame(e)&&n.isSingleDay||o!=null&&o.daySame(e)&&o.dayBefore(n.from)&&n.isSingleDay?Ue.Start:n.to.daySame(e)&&!n.isSingleDay||o!=null&&o.dayBefore(n.from)&&n.from.daySame(e)&&n.isSingleDay||o!=null&&o.daySame(e)&&o.dayAfter(n.from)&&n.isSingleDay?Ue.End:n.isSingleDay&&n.from.daySame(e)?Ue.Single:null:n.find(r=>r.daySame(e))?Ue.Single:null:null}itemIsToday(e){return this.today.daySame(e)}itemIsUnavailable(e){return!this.month.monthSame(e)}itemIsInterval(e){let{value:n,hoveredItem:o}=this;if(!(n instanceof zt))return!1;if(!n.isSingleDay)return n.from.daySameOrBefore(e)&&n.to.dayAfter(e);if(o===null)return!1;let r=zt.sort(n.from,o);return r.from.daySameOrBefore(e)&&r.to.dayAfter(e)}onItemHovered(e){this.updateHoveredItem(e||null)}onItemPressed(e){this.pressedItem=e||null}onItemClick(e){this.dayClick.emit(e)}updateHoveredItem(e){ti(this.hoveredItem,e,(n,o)=>n.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(s(ia),s(qr))},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,n){e&2&&F("_single",n.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],["id","date-rows",4,"tuiLet"],[1,"t-cell",3,"textContent"],["id","date-rows"],["automation-id","tui-primitive-calendar__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"tuiLet"],["automation-id","tui-primitive-calendar__cell","class","t-cell",3,"t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange","tuiPressedChange",4,"ngIf"],["automation-id","tui-primitive-calendar__cell",1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],["automation-id","tui-primitive-calendar__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"backgroundColor",4,"ngIf"]],template:function(e,n){e&1&&(m(0,"div",0),v(1,ql,1,1,"div",1),W(2,"async"),W(3,"tuiOrderWeekDays"),g(),v(4,ru,2,1,"div",2),W(5,"tuiCalendarSheet")),e&2&&(c(1),u("ngForOf",Q(2,2,Q(3,4,n.unorderedWeekDays$))),c(3),u("tuiLet",co(5,6,n.month,!0)))},dependencies:[Jt,At,Rn,ee,fi,Hn,fe,Ja,Xa,dn],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{content:"";position:absolute;top:0;left:0;right:0;bottom:0;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-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;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-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-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[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.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-02);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}),t})(),os=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Ht,cn,Ln,Nt,_i,Za,es]]}),t})();function su(t,i){if(t&1){let e=U();m(0,"tui-scrollbar",2)(1,"tui-primitive-year-picker",3),f("yearClick",function(o){w(e);let r=h();return x(r.onPickerYearClick(o))}),g()()}if(t&2){let e=h();c(1),u("initialItem",e.year)("max",e.computedMax)("min",e.computedMin)("value",e.value)}}function lu(t,i){if(t&1){let e=U();m(0,"tui-primitive-year-month-pagination",4),f("valueChange",function(o){w(e);let r=h();return x(r.onPaginationValueChange(o))})("yearClick",function(o){w(e);let r=h();return x(r.onPaginationYearClick(o))}),g(),m(1,"tui-primitive-calendar",5),f("dayClick",function(o){w(e);let r=h();return x(r.onDayClick(o))})("hoveredItemChange",function(o){w(e);let r=h();return x(r.onHoveredItemChange(o))}),W(2,"tuiMapper"),g()}if(t&2){let e=h();u("max",e.computedMaxViewedMonth)("min",e.computedMinViewedMonth)("value",e.month),c(1),u("disabledItemHandler",$i(2,9,e.disabledItemHandler,e.disabledItemHandlerMapper,e.computedMin,e.computedMax))("hoveredItem",e.hoveredItem)("markerHandler",e.markerHandler)("month",e.month)("showAdjacent",e.showAdjacent)("value",e.value)}}var Yn=(()=>{class t{constructor(){this.day=null,this.month=q.currentLocal(),this.disabledItemHandler=Me,this.min=Ae,this.max=Ne,this.minViewedMonth=Ae,this.maxViewedMonth=Ne,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=li,this.dayClick=new Y,this.monthChange=new Y,this.hoveredItemChange=new Y,this.year=null,this.disabledItemHandlerMapper=(e,n,o)=>r=>r.dayBefore(n)||r.dayAfter(o)||e(r)}set value(e){this.day=e,this.showAdjacent&&e instanceof ve&&(this.month=e)}get value(){return this.day}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Ae}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ne}get computedMinViewedMonth(){var e;let n=this.computedMin,o=(e=this.minViewedMonth)!==null&&e!==void 0?e:Ae;return o.monthSameOrAfter(n)?o:n}get computedMaxViewedMonth(){var e;let n=this.computedMax,o=(e=this.maxViewedMonth)!==null&&e!==void 0?e:Ne;return o.monthSameOrBefore(n)?o:n}onPaginationYearClick(e){this.year=e}onPickerYearClick({year:e}){this.year=null,this.updateViewedMonth(new q(e,this.month.month))}onPaginationValueChange(e){this.updateViewedMonth(e)}onDayClick(e){this.dayClick.emit(e)}onHoveredItemChange(e){this.updateHoveredDay(e)}updateViewedMonth(e){this.month.monthSame(e)||(this.month=e,this.monthChange.emit(e))}updateHoveredDay(e){ti(this.hoveredItem,e,(n,o)=>n.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=k({type:t,selectors:[["tui-calendar"]],inputs:{month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},decls:3,vars:2,consts:[["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["calendar",""],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"initialItem","max","min","value","yearClick"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"max","min","value","valueChange","yearClick"],["automation-id","tui-calendar__calendar",3,"disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value","dayClick","hoveredItemChange"]],template:function(e,n){if(e&1&&v(0,su,2,4,"tui-scrollbar",0)(1,lu,3,14,"ng-template",null,1,Te),e&2){let o=J(2);u("ngIf",n.year)("ngIfElse",o)}},dependencies:[Vt,Ya,ts,ns,ee,dn],styles:["[_nghost-%COMP%]{display:block;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}),t})(),Gn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,is,os,Ga,yi,cn]]}),t})();var uu=["tuiOption",""];function du(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e,"\n")}}function cu(t,i){if(t&1&&S(0,"tui-svg",3),t&2){let e=h(2);u("src",e.icons.more)}}function pu(t,i){if(t&1&&(K(0),v(1,cu,1,1,"tui-svg",2)),t&2){let e=h();c(1),u("ngIf",e.dropdown)}}var mu=t=>({$implicit:t}),rs=["*"];function hu(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}function gu(t,i){if(t&1&&(m(0,"div",2),v(1,hu,2,1,"ng-container",3),W(2,"async"),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.emptyContent||Q(2,1,e.defaultEmptyContent$))}}function fu({currentTarget:t}){return!Ee(t)}var $t=class{constructor(i,e,n,o,r,l){this.content=i,this.dataList=e,this.el=n,this.host=o,this.dropdown=r,this.icons=l,this.size=null,this.role="option",this.disabled=!1}get active(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef}onClick(){this.host&&this.value!==void 0&&this.host.handleOption(this.value)}onMouseMove({currentTarget:i}){i.focus({preventScroll:!0})}ngOnDestroy(){var i;(i=this.dataList)===null||i===void 0||i.handleFocusLossIfNecessary(this.el.nativeElement)}};$t.\u0275fac=function(i){return new(i||$t)(s(na,8),s(le(()=>Ot),8),s(E),s(Xr,8),s(ae,10),s(ui))};$t.\u0275cmp=k({type:$t,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(i,e){i&1&&f("click",function(){return e.onClick()})("mousemove.silent",function(o){return e.onMouseMove(o)}),i&2&&(H("disabled",e.disabled||null)("data-size",e.size)("role",e.role),F("_with-dropdown",e.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:uu,ngContentSelectors:rs,decls:3,vars:4,consts:[[4,"polymorpheusOutlet","polymorpheusOutletContext"],["base",""],["class","t-arrow",3,"src",4,"ngIf"],[1,"t-arrow",3,"src"]],template:function(i,e){if(i&1&&(oe(),v(0,du,2,1,"ng-container",0)(1,pu,2,1,"ng-template",null,1,Te)),i&2){let n=J(2);u("polymorpheusOutlet",e.content||n)("polymorpheusOutletContext",pe(2,mu,n))}},dependencies:[_e,Z,ee],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;justify-content:space-between;text-align:left;color:var(--tui-text-01);border-radius:var(--tui-radius-s);outline:none;text-decoration:none;cursor:pointer;background-clip:padding-box}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[_nghost-%COMP%]:focus, ._with-dropdown[_nghost-%COMP%]{background-color:var(--tui-clear)}[_nghost-%COMP%] [data-list-size="s"][_nghost-%COMP%], [data-list-size="s"] [_nghost-%COMP%], [_nghost-%COMP%] [data-list-size="xs"][_nghost-%COMP%], [data-list-size="xs"] [_nghost-%COMP%], [data-size=s][data-size=s][_nghost-%COMP%], [data-size=xs][data-size=xs][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}[_nghost-%COMP%] [data-list-size="m"][_nghost-%COMP%], [data-list-size="m"] [_nghost-%COMP%], [data-size=m][data-size=m][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}[_nghost-%COMP%] [data-list-size="l"][_nghost-%COMP%], [data-list-size="l"] [_nghost-%COMP%], [data-size=l][data-size=l][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}.t-arrow[_ngcontent-%COMP%]{margin:0 -.5rem 0 .75rem}'],changeDetection:0});se([mi(fu)],$t.prototype,"onMouseMove",null);var Ot=class{constructor(i,e,n){var o;this.controller=i,this.el=e,this.defaultEmptyContent$=n,this.options=Gi,this.role="listbox",this.size=((o=this.controller)===null||o===void 0?void 0:o.size)||"m"}get empty$(){return Tr(this.options).pipe(L(({length:i})=>!i))}onFocusIn(i,e){!e.contains(i)&&!this.origin&&(this.origin=i)}noop(){}onKeyDownArrow(i,e){let{elements:n}=this;mo(n.indexOf(i),n,e)}handleFocusLossIfNecessary(i=this.el.nativeElement){this.origin&&Xe(i)&&fr(this.origin,!0,!0)}getOptions(i=!1){return this.options.filter(({disabled:e})=>i||!e).map(({value:e})=>e).filter(Xi)}onFocus({target:i},e){if(!ot(i))return;let{elements:n}=this;mo(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(i)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}};Ot.\u0275fac=function(i){return new(i||Ot)(s(Qt,8),s(E),s(ea))};Ot.\u0275cmp=k({type:Ot,selectors:[["tui-data-list"]],contentQueries:function(i,e,n){if(i&1&&Ct(n,$t,5),i&2){let o;V(o=j())&&(e.options=o)}},hostVars:2,hostBindings:function(i,e){i&1&&f("focusin",function(o){return e.onFocusIn(o.relatedTarget,o.currentTarget)})("mousedown.prevent",function(){return e.noop()})("keydown.arrowDown.prevent",function(o){return e.onKeyDownArrow(o.target,1)})("keydown.arrowUp.prevent",function(o){return e.onKeyDownArrow(o.target,-1)})("wheel.silent.passive",function(){return e.handleFocusLossIfNecessary()})("mouseleave",function(o){return e.handleFocusLossIfNecessary(o.target)}),i&2&&H("role",e.role)("data-list-size",e.size)},inputs:{role:"role",emptyContent:"emptyContent",size:"size"},features:[b([Qr(Ot),Di])],ngContentSelectors:rs,decls:5,vars:3,consts:[["tabindex","0",1,"t-trap",3,"focusin"],["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(i,e){i&1&&(oe(),m(0,"div",0),f("focusin",function(o){return e.onFocus(o,!0)}),g(),K(1),v(2,gu,3,3,"div",1),W(3,"async"),m(4,"div",0),f("focusin",function(o){return e.onFocus(o,!1)}),g()),i&2&&(c(2),u("ngIf",Q(3,1,e.empty$)))},dependencies:[ee,Z,fe],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-03)}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-list-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-list-size=s]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-list-size=m]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-list-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-list-size=l]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-02);flex-direction:column;line-height:1rem}tui-data-list[data-list-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-list-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-list-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-base-03)}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}\n'],encapsulation:2,changeDetection:0});se([xe],Ot.prototype,"empty$",null);var as=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})();var _u=["wrapper"];function vu(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}var Cu=(t,i)=>({$implicit:t,close:i});function Mu(t,i){if(t&1){let e=U();m(0,"div",5,6),f("keydown",function(o){w(e);let r=h(2);return x(r.onKeydown(o))}),v(2,vu,2,1,"ng-container",7),g(),S(3,"div")}if(t&2){h();let e=J(1),n=h();c(2),u("polymorpheusOutlet",n.content)("polymorpheusOutletContext",ir(2,Cu,e,n.close))}}function Tu(t,i){if(t&1){let e=U();m(0,"div",1,2),f("tuiActiveZoneChange",function(o){w(e);let r=h();return x(r.onActiveZone(o))})("tuiObscured",function(o){w(e);let r=h();return x(r.onHostObscured(o))}),K(2),v(3,Mu,4,5,"ng-template",3,4,Te),g()}if(t&2){let e=i.tuiLet,n=J(4),o=h();u("tuiDropdown",n)("tuiDropdownManual",e&&o.canOpen)("tuiDropdownSided",o.sided)("tuiObscuredEnabled",e),c(3),u("polymorpheus",o.context)}}var bu=["*"],ss=(()=>{class t extends Tt{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiAccessorProxy",""]],features:[b([{provide:Tt,multi:!0,deps:[[new ke,new wi,t],t],useFactory:(i,e)=>i||e}]),I]}),t})(),ls=new Ge("[TUI_HOSTED_DROPDOWN_COMPONENT]"),yu=(()=>{class t{constructor(e,n,o,r){r==null||r.tuiDropdownOpenChange.pipe(_t(l=>l&&r.dropdown===o&&!n.focused),ie(e)).subscribe(()=>{var l;(l=n.nativeFocusableElement)===null||l===void 0||l.focus(),n.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(ls),s(ae,2),s(ki,8))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[b([B])]}),t})(),Ou=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function Du(t){var i;return"key"in t&&t.key.toLowerCase()==="escape"&&this.canOpen&&this.open&&!(!((i=this.dropdown)===null||i===void 0)&&i.nextElementSibling)}var Oe=class{constructor(i,e){this.hover$=i,this.el=e,this.focus$=new wt(!1),this.openChange=new wt(!1),this.sided=!1,this.canOpen=!0,this.hostHover$=ro([Se(this.el.nativeElement,"mouseover").pipe(L(n=>this.computedHost.contains(qi(n))),xt(n=>{var o,r;return Be(n).pipe(vt((n?(o=this.hover$)===null||o===void 0?void 0:o.showDelay:(r=this.hover$)===null||r===void 0?void 0:r.hideDelay)||0))})),this.hover$||Go]).pipe(L(([n,o])=>n&&o)),this.open$=Pe(this.openChange,this.hostHover$).pipe(Xt(1),Ye(),Ni()),this.focusedChange=new Y,this.close=()=>this.updateOpen(!1)}set open(i){this.openChange.next(i)}get open(){return this.openChange.value}get host(){var i;return((i=this.dropdownHost)===null||i===void 0?void 0:i.nativeElement)||this.el.nativeElement}get computedHost(){var i;return((i=this.dropdownHost)===null||i===void 0?void 0:i.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var i,e;return(e=(i=this.dropdownDirective)===null||i===void 0?void 0:i.dropdownBoxRef)===null||e===void 0?void 0:e.location.nativeElement}get nativeFocusableElement(){return gr(this.host)?this.host:ii({initial:this.host,root:this.el.nativeElement})}get focused(){return Xe(this.host)||this.open&&!!this.wrapper&&Xe(this.wrapper.nativeElement)}onFocusInOut(){this.focus$.next(this.focused)}onFocusIn(i){this.computedHost.contains(i)||this.updateOpen(!1)}onClick(i){var e;!this.hostEditable&&this.computedHost.contains(i)&&!(!((e=this.hover$)===null||e===void 0)&&e.hovered)&&this.updateOpen(!this.open)}onKeyDownEsc(i){i.preventDefault(),this.closeDropdown()}onArrow(i,e){this.focusDropdown(i,e)}onKeydown({key:i,target:e,defaultPrevented:n}){!n&&Gr(i)&&this.hostEditable&&Zi(e)&&!Ji(e)&&this.focusHost()}onActiveZone(i){this.updateFocused(i),i||this.updateOpen(!1)}onHostObscured(i){i&&this.closeDropdown()}updateOpen(i){(!i||this.canOpen)&&(this.open=i)}get hostEditable(){return Ji(this.computedHost)}focusDropdown(i,e){let n=this.nativeFocusableElement;if(!n||!Zi(n)||!ot(i.target)||!n.contains(i.target))return;if(!this.wrapper||!this.open||!this.dropdown||!Zi(this.wrapper.nativeElement.nextElementSibling)){this.updateOpen(!0),Ji(n)||i.preventDefault();return}let o=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=ii({initial:o,root:this.wrapper.nativeElement,previous:!e});r&&(r.focus(),i.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){let i=this.nativeFocusableElement;i&&i.focus({preventScroll:!0})}updateFocused(i){this.focusedChange.emit(i)}};Oe.\u0275fac=function(i){return new(i||Oe)(s(Io,10),s(E))};Oe.\u0275cmp=k({type:Oe,selectors:[["tui-hosted-dropdown"]],contentQueries:function(i,e,n){if(i&1&&Ct(n,Ou,5,E),i&2){let o;V(o=j())&&(e.dropdownHost=o.first)}},viewQuery:function(i,e){if(i&1&&(G(_u,5,E),G(ae,5),G(Ie,5)),i&2){let n;V(n=j())&&(e.wrapper=n.first),V(n=j())&&(e.dropdownDirective=n.first),V(n=j())&&(e.activeZone=n.first)}},hostVars:1,hostBindings:function(i,e){i&1&&f("$.class._hosted_dropdown_focused",function(){return e.focus$})("focusin.capture.silent",function(){return e.onFocusInOut()})("focusout.capture.silent",function(){return e.onFocusInOut()})("focusin",function(o){return e.onFocusIn(o.target)})("click",function(o){return e.onClick(o.target)})("keydown.silent.capture",function(o){return e.onKeyDownEsc(o)},!1,kt)("keydown.arrowDown",function(o){return e.onArrow(o,!0)})("keydown.arrowUp",function(o){return e.onArrow(o,!1)}),i&2&&Ke("$.class._hosted_dropdown_focused",e.focus$)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[b([Fe(Oe),{provide:ss,deps:[[new ke,new Zt,Tt]],useFactory:t=>t==null?void 0:t[0]},{provide:ls,useExisting:Oe}])],ngContentSelectors:bu,decls:2,vars:3,consts:[["tuiAccessorProxy","","tuiDropdownOpenMonitor","","class","t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured",4,"tuiLet"],["tuiAccessorProxy","","tuiDropdownOpenMonitor","",1,"t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured"],["activeZone","tuiActiveZone"],[3,"polymorpheus"],["dropdown","polymorpheus"],[1,"t-dropdown",3,"keydown"],["wrapper",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(i,e){if(i&1&&(oe(),v(0,Tu,5,5,"div",0),W(1,"async")),i&2){let n;u("tuiLet",(n=Q(1,1,e.open$))!==null&&n!==void 0?n:e.openChange.value)}},dependencies:[At,ss,yu,ae,Pa,wa,xa,Ie,ma,rn,Z,fe],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.t-dropdown[_ngcontent-%COMP%]{height:100%}"],changeDetection:0});se([mi(Du)],Oe.prototype,"onKeyDownEsc",null);var Kn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,re,Ht,ha,ri,Vn]]}),t})();function Pu(t,i){if(t&1&&S(0,"tui-svg",2),t&2){let e=i.polymorpheusOutlet,n=h();F("t-mark_on",!n.empty),u("src",e)}}var wu=t=>({$implicit:t}),xu=["*"],Iu={size:"m",appearances:{unchecked:bt.Outline,checked:bt.Primary,indeterminate:bt.Primary},icons:{checked:({$implicit:t})=>t==="m"?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>t==="m"?"tuiIconMinus":"tuiIconMinusLarge"}},Ei=X(Iu);var ds=(()=>{class t{constructor(e){this.options=e,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.icon=this.options.icons.checked,this.value=!1}set valueSetter(e){e!==!1&&this.setCurrentIcon(e),this.value=e}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return this.value===!1}setCurrentIcon(e){this.icon=e===null?this.options.icons.indeterminate:this.options.icons.checked}}return t.\u0275fac=function(e){return new(e||t)(s(Ei))},t.\u0275cmp=k({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,n){e&2&&H("data-size",n.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:xu,decls:3,vars:10,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",3,"t-mark_on","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-mark",3,"src"]],template:function(e,n){e&1&&(oe(),m(0,"div",0),v(1,Pu,1,3,"tui-svg",1),K(2),g()),e&2&&(u("active",n.pressed)("appearance",n.appearance)("disabled",n.disabled)("focus",n.focused)("hover",n.hovered)("invalid",n.invalid),c(1),u("polymorpheusOutlet",n.icon)("polymorpheusOutletContext",pe(8,wu,n.size)))},dependencies:[_e,$e,Z],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.t-mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.t-mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),t})(),cs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[be,We,re]]}),t})();function ku(t,i){if(t&1&&S(0,"tui-svg",3),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var Qn=(()=>{class t extends Ut{constructor(e,n,o,r){super(o),this.isMobile=r,this.mode=null,this.describeId="",n.pipe(ie(e)).subscribe(l=>{this.mode=l})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(e){var n;this.isMobile&&(e.preventDefault(),e.stopPropagation()),(n=this.driver$)===null||n===void 0||n.toggle()}}return t.\u0275fac=function(e){return new(e||t)(s(B,2),s(st),s(Kt),s(sn))},t.\u0275cmp=k({type:t,selectors:[["tui-tooltip"]],viewQuery:function(e,n){if(e&1&&G(Oi,5),e&2){let o;V(o=j())&&(n.driver$=o.first)}},hostVars:1,hostBindings:function(e,n){e&1&&f("mousedown",function(r){return n.stopOnMobile(r)}),e&2&&H("data-appearance",n.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[b([B,lt]),I],decls:4,vars:11,consts:[["appearance","icon","automation-id","tui-tooltip__icon","tuiWrapper","",1,"t-tooltip-icon",3,"hover","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["driver","tuiHintHover"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(e,n){if(e&1&&(m(0,"span",0,1),W(2,"async"),v(3,ku,1,1,"tui-svg",2),g()),e&2){let o=J(1);u("hover",Q(2,9,o)||null)("tuiHint",n.content)("tuiHintAppearance",n.computedAppearance)("tuiHintContext",n.context)("tuiHintDescribe",n.describeId)("tuiHintDirection",n.direction)("tuiHintHideDelay",n.hideDelay)("tuiHintShowDelay",n.showDelay),c(3),u("polymorpheusOutlet",n.icon)}},dependencies:[_e,$e,Bn,ka,Oi,gt,ht,Z,fe],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-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;color:inherit}[tuiWrapper][data-appearance="textfield"][data-state="disabled"][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [tuiWrapper][data-appearance="textfield"][data-state="disabled"] [_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),t})(),Xn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,We,be,Un,re]]}),t})();var Su=["pre"],Fu=["focusableElement"];function Au(t,i){t&1&&qt(0)}function Hu(t,i){t&1&&qt(0)}function Ru(t,i){t&1&&(m(0,"div",17),K(1,2),g())}function Lu(t,i){if(t&1&&S(0,"tui-svg",20),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var Lo=t=>({$implicit:t});function Nu(t,i){if(t&1&&(m(0,"div",18),v(1,Lu,1,1,"tui-svg",19),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconLeftContent)("polymorpheusOutletContext",pe(2,Lo,e.size))}}function zu(t,i){if(t&1&&(m(0,"label",21),K(1,3),g()),t&2){let e=h();F("t-placeholder_raised",e.placeholderRaised),u("for",e.computedId)}}function Vu(t,i){if(t&1&&S(0,"tui-svg",24),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function ju(t,i){if(t&1&&(m(0,"div",22),v(1,Vu,1,1,"tui-svg",23),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.controller.customContent)}}function Bu(t,i){if(t&1&&S(0,"tui-svg",27),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function Uu(t,i){if(t&1){let e=U();m(0,"span",25),f("click.stop",function(){w(e);let o=h();return x(o.clear())}),v(1,Bu,1,1,"tui-svg",26),g()}if(t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconCleaner||e.controller.options.iconCleaner)("polymorpheusOutletContext",pe(2,Lo,e.size))}}function $u(t,i){if(t&1&&S(0,"tui-tooltip",28),t&2){let e=h();u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.computedId)}}function Wu(t,i){if(t&1&&S(0,"tui-svg",20),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function Yu(t,i){if(t&1&&(m(0,"div",29),v(1,Wu,1,1,"tui-svg",19),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconContent)("polymorpheusOutletContext",pe(2,Lo,e.size))}}var Gu=[[["input"]],[["select"]],[["tuiContent"]],"*"],Ku=["input","select","tuiContent","*"];var Qu=(()=>{class t{constructor(e,n){this.textfield=e,this.fontsReady$=n,this.prefix$=new wt(""),this.pre$=Pe(this.fontsReady$,this.prefix$).pipe(vt(0),_t(()=>{var o;return!!(!((o=this.pre)===null||o===void 0)&&o.nativeElement.isConnected)}),L(()=>{var o;return((o=this.pre)===null||o===void 0?void 0:o.nativeElement.offsetWidth)||0}),Ye())}get isContextTable(){return this.textfield.appearance===bt.Table}get value(){return this.textfield.value}get filler(){let{focused:e,placeholder:n,exampleText:o,value:r,textfield:l}=this;return n&&o?"":e?o||l.filler.slice(r.length):""}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}ngDoCheck(){this.prefix$.next(this.prefix)}get placeholder(){var e;return((e=this.textfield.nativeFocusableElement)===null||e===void 0?void 0:e.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)?" ".concat(this.textfield.postfix):this.textfield.postfix}}return t.\u0275fac=function(e){return new(e||t)(s(xr),s(Ir))},t.\u0275cmp=k({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(e,n){if(e&1&&G(Su,7,E),e&2){let o;V(o=j())&&(n.pre=o.first)}},hostVars:4,hostBindings:function(e,n){e&1&&f("animationstart",function(){return n.ngDoCheck()}),e&2&&F("_table",n.isContextTable)("_filler",n.filler)},decls:5,vars:4,consts:[[1,"t-prefix",3,"textContent"],["pre",""],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(e,n){e&1&&S(0,"span",0,1)(2,"span",2)(3,"span",3)(4,"span",4),e&2&&(u("textContent",n.prefix),c(2),u("textContent",n.value),c(1),u("textContent",n.filler),c(1),u("textContent",n.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-03);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 [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-03-night)}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-01)}tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']}),t})(),Xu={s:1.25,m:1.75,l:2.25},Ve=class extends ln{constructor(i,e,n,o){super(),this.controller=i,this.hintOptions=e,this.options=n,this.el=o,this.editable=!0,this.textfieldFiller="",this.iconCleaner=this.options.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.textfieldPrefix="",this.textfieldPostfix="",this.value="",this.valueChange=new Y,this.autofilled=!1}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get filler(){return this.textfieldFiller||this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;let{nativeElement:i}=this.focusableElement;return i.previousElementSibling||i}get focused(){return Xe(this.el.nativeElement)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var i;return!!(!((i=this.content)===null||i===void 0)&&i.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var i;return!!(!((i=this.hintOptions)===null||i===void 0)&&i.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var i;let n=(((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!n}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return Yr(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get showHint(){var i;return!!(!((i=this.hintOptions)===null||i===void 0)&&i.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var i;return((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var i;return((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.id)||""}onFocused(i){this.updateFocused(i)}getIndent$(i){return Ri(i,"scroll").pipe(L(()=>-1*Math.max(i.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(i){let{nativeFocusableElement:e}=this;!e||i.target===e||(i.preventDefault(),e.focus())}onModelChange(i){this.updateValue(i)}onAutofilled(i){this.updateAutofilled(i)}detectRetargetFromLabel(i){tn(i)&&i.stopImmediatePropagation()}get iconPaddingLeft(){return Xu[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(i){this.autofilled!==i&&(this.autofilled=i)}updateValue(i){this.value=i,this.valueChange.emit(i)}};Ve.\u0275fac=function(i){return new(i||Ve)(s(Qt),s(Ut,8),s(Eo),s(E))};Ve.\u0275cmp=k({type:Ve,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,e,n){if(i&1&&Ct(n,Z,5),i&2){let o;V(o=j())&&(e.content=o)}},viewQuery:function(i,e){if(i&1&&G(Fu,5),i&2){let n;V(n=j())&&(e.focusableElement=n.first)}},hostVars:15,hostBindings:function(i,e){i&1&&f("focusin",function(){return e.onFocused(!0)})("focusout",function(){return e.onFocused(!1)}),i&2&&(H("data-size",e.size),He("--border-start",e.borderStart,"rem")("--border-end",e.borderEnd,"rem"),F("_autofilled",e.autofilled)("_label-outside",e.controller.labelOutside)("_readonly",e.readOnly)("_invalid",e.computedInvalid)("_hidden",e.inputHidden))},inputs:{editable:"editable",textfieldFiller:["filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[b([Fe(Ve),Di]),I],ngContentSelectors:Ku,decls:24,vars:37,consts:[[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown","tuiAutofilledChange"],["automation-id","tui-primitive-textfield__native-input","tuiMaskAccessor","",1,"t-input",3,"disabled","id","ngModel","readOnly","tuiFocusable","ngModelChange"],["focusableElement",""],["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"],["decor",""],[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"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["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,"src",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"src"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(i,e){if(i&1&&(oe(Gu),v(0,Au,1,0,"ng-container",0),W(1,"async"),v(2,Hu,1,0,"ng-container",0),W(3,"async"),m(4,"div",1),f("click.prevent.silent",function(o){return e.detectRetargetFromLabel(o)})("mousedown",function(o){return e.onMouseDown(o)})("tuiAutofilledChange",function(o){return e.onAutofilled(o)}),W(5,"async"),K(6),K(7,1),m(8,"input",2,3),f("ngModelChange",function(o){return e.onModelChange(o)}),g(),v(10,Ru,2,0,"div",4),m(11,"div",5),v(12,Nu,2,4,"div",6),m(13,"div",7),v(14,zu,2,3,"label",8),m(15,"div",9)(16,"tui-value-decoration",10,11),W(18,"async"),g()()(),m(19,"div",12),v(20,ju,2,1,"div",13)(21,Uu,2,4,"span",14)(22,$u,1,2,"tui-tooltip",15)(23,Yu,2,4,"div",16),g()()()),i&2){let n=J(9),o=J(17);u("ngIf",Q(1,29,e.content==null?null:e.content.changes)),c(2),u("ngIf",Q(3,31,e.hintOptions==null?null:e.hintOptions.change$)),c(2),He("--text-indent",Q(5,33,o.pre$),"px"),u("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),c(4),u("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly||!e.editable)("tuiFocusable",e.computedFocusable),H("aria-invalid",e.computedInvalid)("name",e.name),c(2),u("ngIf",e.inputHidden),c(2),u("ngIf",e.iconLeftContent),c(2),u("ngIf",e.hasPlaceholder),c(2),He("text-indent",Q(18,35,e.getIndent$(n)),"px"),F("t-has-value",e.value),c(4),u("ngIf",e.hasCustomContent),c(1),u("ngIf",e.hasCleaner),c(1),u("ngIf",e.showHint),c(1),u("ngIf",e.iconContent)}},dependencies:[_e,Qu,Qn,ee,$e,ca,Ea,tt,it,Re,ut,Z,fe],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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;-moz-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);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{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.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-03);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}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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%], .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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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;-webkit-padding-end:.25rem;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;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);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-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._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-03)}[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-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}.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}._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%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;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}.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;-webkit-padding-end:0;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});se([xe],Ve.prototype,"getIndent$",null);var ps=(()=>{class t extends gn{constructor(e){super(e),this.textfield=e}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(e){this.textfield.onModelChange(e)}}return t.\u0275fac=function(e){return new(e||t)(s(Ve))},t.\u0275dir=y({type:t,selectors:[["tui-primitive-textfield"]],features:[b([Tn(t)]),I]}),t})();var ms=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,nt,re,Sa,dt,We,be,Xn,pa]]}),t})();function hs(t){if(t==="")return"";let i=0;for(let r=0;rl&&i(r)),n=t[e-1]||t[0],o=t[e]||t[t.length-1];return[n,o]}function vs(t,i){let[[e,n],[o,r]]=_s(i,([p,T])=>t<=p),l=(t-e)/(o-e),d=(r-n)*l+n;return cr(d,fs)}function Cs(t,i){let[[e,n],[o,r]]=_s(i,([d,p])=>t<=p),l=(t-n)/(r-n)||0;return(o-e)*l+e}function Ms(t,i){return t?Mr(t).pipe(L(e=>i?i.fromControlValue(e):e)):Be(null)}var Zu=new Ge("[TUI_CALENDAR_DATE_STREAM]");function Ts(t){return{provide:Zu,deps:[[new ke,new Zt,we],[new ke,t]],useFactory:Ms}}var yv=X({[a.AD]:"+376###-###",[a.AE]:"+971-##-###-####",[a.AF]:"+93##-###-####",[a.AG]:"+1(268) ###-####",[a.AI]:"+1(264) ###-####",[a.AL]:"+355(###) ###-###",[a.AM]:"+374##-###-###",[a.AO]:"+244(###) ###-###",[a.AR]:"+54(###) ####-####",[a.AT]:"+43(###) ###-####",[a.AU]:"+61#-####-####",[a.AW]:"+297###-####",[a.AZ]:"+994##-###-##-##",[a.BA]:"+387 ###-####-##",[a.BB]:"+1(246) ###-####",[a.BD]:"+880##-###-###",[a.BE]:"+32(###) ###-###",[a.BF]:"+226##-##-####",[a.BG]:"+359(###) ###-###",[a.BH]:"+973####-####",[a.BI]:"+257##-##-####",[a.BJ]:"+229##-##-####",[a.BL]:"+590 ## ## ## ## ##",[a.BM]:"+1(441) ###-####",[a.BN]:"+673###-####",[a.BO]:"+591#-###-####",[a.BQ]:"+599-###-####",[a.BR]:"+55(##) ####-####",[a.BS]:"+1(242) ###-####",[a.BT]:"+975#-###-###",[a.BW]:"+267##-###-###",[a.BY]:"+375(##) ###-##-##",[a.BZ]:"+501###-####",[a.CA]:"+1(###) ###-####",[a.CD]:"+243(###) ###-###",[a.CF]:"+236-##-##-####",[a.CG]:"+242##-###-####",[a.CH]:"+41##-###-####",[a.CI]:"+225##-##-###-###",[a.CL]:"+56#-####-####",[a.CM]:"+237#####-####",[a.CN]:"+86(###) ####-####",[a.CO]:"+57(###) ###-####",[a.CR]:"+506####-####",[a.CU]:"+53#-###-####",[a.CV]:"+238(###) ##-##",[a.CW]:"+5999-###-####",[a.CY]:"+357##-###-###",[a.CZ]:"+420(###) ###-###",[a.DE]:"+49(###) ###-###-##",[a.DJ]:"+253##-##-##-##",[a.DK]:"+45##-##-##-##",[a.DM]:"+1(767) ###-####",[a.DO]:"+1(###) ###-####",[a.DZ]:"+213##-###-####",[a.EC]:"+593##-###-####",[a.EE]:"+372####-####",[a.EG]:"+20(###) ###-####",[a.ER]:"+291#-###-###",[a.ES]:"+34(###) ###-###",[a.ET]:"+251##-###-####",[a.FI]:"+358(###) ###-##-##",[a.FJ]:"+679##-#####",[a.FK]:"+500#####",[a.FM]:"+691###-####",[a.FR]:"+33 ## ## ## ## ##",[a.GA]:"+241##-##-##-##",[a.GB]:"+44##-####-####",[a.GD]:"+1(473) ###-####",[a.GE]:"+995(###) ###-###",[a.GF]:"+594 ## ## ## ## ##",[a.GH]:"+233(###) ###-###",[a.GI]:"+350###-#####",[a.GL]:"+299##-##-##",[a.GM]:"+220(###) ##-##",[a.GN]:"+224##-###-###",[a.GP]:"+590 ## ## ## ## ##",[a.GQ]:"+240##-###-####",[a.GR]:"+30(###) ###-####",[a.GT]:"+502#-###-####",[a.GW]:"+245#-######",[a.GY]:"+592###-####",[a.HK]:"+852####-####",[a.HN]:"+504####-####",[a.HR]:"+385##-###-####",[a.HT]:"+509##-##-####",[a.HU]:"+36(###) ###-###",[a.ID]:"+62(###) ###-##-###",[a.IE]:"+353(###) ###-###",[a.IL]:"+972##-###-####",[a.IN]:"+91(####) ###-###",[a.IQ]:"+964(###) ###-####",[a.IR]:"+98(###) ###-####",[a.IS]:"+354###-####",[a.IT]:"+39(###) ####-###",[a.JM]:"+1(876) ###-####",[a.JO]:"+962#-####-####",[a.JP]:"+81-##-####-####",[a.KE]:"+254###-######",[a.KG]:"+996(###) ###-###",[a.KH]:"+855##-###-###",[a.KM]:"+269##-#####",[a.KN]:"+1(869) ###-####",[a.KP]:"+850####-#############",[a.KR]:"+82##-###-####",[a.KW]:"+965####-####",[a.KY]:"+1(345) ###-####",[a.KZ]:"+7(###) ###-##-##",[a.LA]:"+856##-##-###-###",[a.LB]:"+961##-###-###",[a.LC]:"+1(758) ###-####",[a.LI]:"+423(###) ###-####",[a.LK]:"+94##-###-####",[a.LR]:"+231##-###-###",[a.LS]:"+266#-###-####",[a.LT]:"+370(###) ##-###",[a.LU]:"+352(###) ###-###",[a.LV]:"+371##-###-###",[a.LY]:"+218##-###-####",[a.MA]:"+212##-####-###",[a.MC]:"+377###-###-###",[a.MD]:"+373####-####",[a.ME]:"+382##-###-###",[a.MF]:"+590 ## ## ## ## ##",[a.MG]:"+261##-##-#####",[a.MK]:"+389##-###-###",[a.ML]:"+223##-##-####",[a.MM]:"+95##-###-###",[a.MN]:"+976##-##-####",[a.MO]:"+853####-####",[a.MQ]:"+596 ## ## ## ## ##",[a.MR]:"+222##-##-####",[a.MS]:"+1(664) ###-####",[a.MT]:"+356####-####",[a.MU]:"+230####-####",[a.MV]:"+960###-####",[a.MW]:"+265#-####-####",[a.MX]:"+52(###) ###-####",[a.MY]:"+60(###) ###-###",[a.MZ]:"+258##-###-###",[a.NA]:"+264##-###-####",[a.NC]:"+687 ### ###",[a.NE]:"+227##-##-####",[a.NG]:"+234(###) ###-####",[a.NI]:"+505####-####",[a.NL]:"+31##-###-####",[a.NO]:"+47(###) ##-###",[a.NP]:"+977##-###-###",[a.NZ]:"+64(###) ###-####",[a.OM]:"+968##-###-###",[a.PA]:"+507###-####",[a.PE]:"+51(###) ###-###",[a.PF]:"+689 ## ## ## ##",[a.PG]:"+675(###) ##-###",[a.PH]:"+63(###) ###-####",[a.PK]:"+92(###) ###-####",[a.PL]:"+48(###) ###-###",[a.PT]:"+351##-###-####",[a.PW]:"+680###-####",[a.PY]:"+595(###) ###-###",[a.QA]:"+974####-####",[a.RE]:"+262 ## ## ## ## ##",[a.RO]:"+40##-###-####",[a.RS]:"+381##-###-####",[a.RU]:"+7### ###-##-##",[a.RW]:"+250(###) ###-###",[a.SA]:"+966#-####-####",[a.SB]:"+677###-####",[a.SC]:"+248#-###-###",[a.SD]:"+249##-###-####",[a.SE]:"+46##-###-####",[a.SG]:"+65####-####",[a.SH]:"+290####",[a.SI]:"+386##-###-###",[a.SK]:"+421(###) ###-###",[a.SL]:"+232##-######",[a.SM]:"+378####-######",[a.SN]:"+221##-###-####",[a.SO]:"+252##-###-###",[a.SR]:"+597###-####",[a.ST]:"+239##-#####",[a.SV]:"+503##-##-####",[a.SX]:"+1(721) ###-####",[a.SY]:"+963##-####-###",[a.SZ]:"+268##-##-####",[a.TC]:"+1(649) ###-####",[a.TD]:"+235##-##-##-##",[a.TG]:"+228##-###-###",[a.TH]:"+66##-###-####",[a.TJ]:"+992##-###-####",[a.TL]:"+670###-#####",[a.TM]:"+993#-###-####",[a.TN]:"+216##-###-###",[a.TO]:"+676#####",[a.TR]:"+90(###) ###-####",[a.TT]:"+1(868) ###-####",[a.TW]:"+886#-####-####",[a.TZ]:"+255##-###-####",[a.UA]:"+380(##) ###-##-##",[a.UG]:"+256(###) ###-###",[a.US]:"+1(###) ###-####",[a.UY]:"+598#-###-##-##",[a.UZ]:"+998##-###-####",[a.VC]:"+1(784) ###-####",[a.VE]:"+58(###) ###-####",[a.VG]:"+1(284)###-####",[a.VN]:"+84(###) ####-###",[a.VU]:"+678##-#####",[a.WS]:"+685##-####",[a.XK]:"+383##-###-###",[a.YE]:"+967###-###-###",[a.YT]:"+262 ## ## ## ## ##",[a.ZA]:"+27##-###-####",[a.ZM]:"+260##-###-####",[a.ZW]:"+263#-######"}),No=new Ge("[TUI_DATE_VALUE_TRANSFORMER]"),Ov=new Ge("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),Dv=new Ge("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),Pv=R(te("prompt")),wv=R(te("cancel")),xv=R(te("done")),Iv=R(te("more")),kv=R(te("hide")),Ev=R(te("showAll")),Sv=R(te("otherDate")),Fv=R(te("mobileCalendarTexts")),Av=R(te("range")),Hv=R(te("countTexts")),Rv=R(te("time")),bs=R(te("dateTexts")),Lv=R(te("digitalInformationUnits")),Nv=R(te("copyTexts")),zv=R(te("passwordTexts")),Vv=R(te("shortCalendarMonths")),jv=R(te("fileTexts")),Bv=R(te("pagination")),Uv=R(te("inputFileTexts")),$v=R(te("multiSelectTexts")),Wv=R(te("countries")),qu={icon:({$implicit:t})=>t==="s"?"tuiIconCalendar":"tuiIconCalendarLarge",min:Ae,max:Ne,nativePicker:!1},ys=X(qu);var Ju={stringify:ar,identityMatcher:sr,disabledItemHandler:Me},Yv=X(Ju);var Os=new Ge("[TUI_MOBILE_CALENDAR]"),Gv=new Ge("[TUI_MONTH_FORMATTER]"),Kv=X(24),Qv=X({});var Es=t=>t.querySelector("input,textarea")||t,Dt={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},zo=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let i=this.past.pop();i&&this.now&&(this.future.push(this.now),this.updateElement(i,"historyUndo"))}redo(){let i=this.future.pop();i&&this.now&&(this.past.push(this.now),this.updateElement(i,"historyRedo"))}updateHistory(i){if(!this.now){this.now=i;return}let e=this.now.value!==i.value,n=this.now.selection.some((o,r)=>o!==i.selection[r]);!e&&!n||(e&&(this.past.push(this.now),this.future=[]),this.now=i)}updateElement(i,e){this.now=i,this.updateElementState(i,{inputType:e,data:null})}};function ed(t,...i){return i.every(({value:e})=>e===t.value)}function td(t,...i){return i.every(({value:e,selection:n})=>e===t.value&&n[0]===t.selection[0]&&n[1]===t.selection[1])}function id({value:t,selection:i},e,n){let[o,r]=i,l=typeof n=="function"?n({value:t,selection:i}):n;return{value:t,selection:l==="replace"?[o,o+e.length]:[o,r]}}function to(t){return typeof t=="string"}function Ds(t,i,e,n){let o="";for(let r=i.length;r{let o=i[n];return to(o)?e===o:e.match(o)}):i.test(t)}function nd(t,i,e){let n=null,o=null,r=Array.from(t.value).reduce((d,p,T)=>{let _=Ds(i,d,p,e),O=d+_,D=i[O.length];return to(D)?O+D:p.match(D)?(n===null&&T>=t.selection[0]&&(n=O.length),o===null&&T>=t.selection[1]&&(o=O.length),O+p):O},""),l=Ds(i,r,"",e);return{value:Ss(r+l,i)?r+l:r,selection:[n!=null?n:r.length,o!=null?o:r.length]}}function od({value:t,selection:i},e){let[n,o]=i,r=n,l=o;return{value:Array.from(t).reduce((p,T,_)=>{let O=p+T;return n===_&&(r=p.length),o===_&&(l=p.length),O.match(e)?O:p},""),selection:[r,l]}}function qn(t,i,e=null){if(Ss(t.value,i))return t;let{value:n,selection:o}=Array.isArray(i)?nd(t,i,e):od(t,i);return{selection:o,value:Array.isArray(i)?n.slice(0,i.length):n}}function Ps(t,i){if(!Array.isArray(i))return t;let[e,n]=t.selection,o=[],r=Array.from(t.value).reduce((l,d,p)=>{let T=i[p];return p===e&&o.push(l.length),p===n&&o.push(l.length),to(T)&&T===d?l:l+d},"");return o.length<2&&o.push(...new Array(2-o.length).fill(r.length)),{value:r,selection:[o[0],o[1]]}}var Fi=class{constructor(i,e){this.initialElementState=i,this.maskOptions=e,this.value="",this.selection=[0,0];let{value:n,selection:o}=qn(i,this.getMaskExpression(i));this.value=n,this.selection=o}addCharacters([i,e],n){let{value:o}=this,r=this.getMaskExpression({value:o.slice(0,i)+n+o.slice(e),selection:[i+n.length,i+n.length]}),l={value:o,selection:[i,e]},d=Ps(l,r),[p,T]=id(d,n,this.maskOptions.overwriteMode).selection,_=d.value.slice(0,p)+n,O=_.length,D=qn({value:_+d.value.slice(T),selection:[O,O]},r,l);if(o.slice(0,p)===qn({value:_,selection:[O,O]},r,l).value||td(this,D))throw new Error("Invalid mask value");this.value=D.value,this.selection=D.selection}deleteCharacters([i,e]){if(i===e||!e)return;let{value:n}=this,o=this.getMaskExpression({value:n.slice(0,i)+n.slice(e),selection:[i,i]}),r={value:n,selection:[i,e]},l=Ps(r,o),[d,p]=l.selection,T=l.value.slice(0,d)+l.value.slice(p),_=qn({value:T,selection:[d,d]},o,r);this.value=_.value,this.selection=_.selection}getMaskExpression(i){let{mask:e}=this.maskOptions;return typeof e=="function"?e(i):e}},Vo=class{constructor(i){this.element=i,this.listeners=[]}listen(i,e,n){let o=e;this.element.addEventListener(i,o,n),this.listeners.push(()=>this.element.removeEventListener(i,o))}destroy(){this.listeners.forEach(i=>i())}};function Si(t,i,e){return t.ctrlKey===!!(i&1)&&t.altKey===!!(i&2)&&t.shiftKey===!!(i&4)&&t.metaKey===!!(i&8)&&t.keyCode===e}function rd(t){return Si(t,1,89)||Si(t,5,90)||Si(t,12,90)}function ad(t){return Si(t,1,90)||Si(t,8,90)}function sd(t){return"onbeforeinput"in t}function ld({key:t,ctrlKey:i,metaKey:e,altKey:n}){let o=i||e||n,r=/^.$/u.test(t);return!o&&t!=="Backspace"&&r}function ud({value:t,selection:i},e){let[n,o]=i;if(n!==o)return[n,o];let r=e?t.slice(n).indexOf("\n")+1||t.length:t.slice(0,o).lastIndexOf("\n")+1;return[e?n:r,e?r:o]}function ws({value:t,selection:i},e){let[n,o]=i;return n!==o?[n,o]:(e?[n,o+1]:[n-1,o]).map(l=>Math.min(Math.max(l,0),t.length))}var xs=/\s+$/g,Is=/^\s+/g,ks=/\s/;function dd({value:t,selection:i},e){let[n,o]=i;if(n!==o)return[n,o];if(e){let p=t.slice(n),[T]=p.match(Is)||[""],_=p.replace(Is,"").search(ks);return[n,_!==-1?n+T.length+_:t.length]}let r=t.slice(0,o),[l]=r.match(xs)||[""],d=r.replace(xs,"").split("").reverse().findIndex(p=>p.match(ks));return[d!==-1?o-l.length-d:0,o]}function Jn(t=[]){return(i,...e)=>t.reduce((n,o)=>Object.assign(Object.assign({},n),o(n,...e)),i)}function jo(t,i){let e=Object.assign(Object.assign({},Dt),i),n=Jn(e.preprocessors),o=Jn(e.postprocessors),r=typeof t=="string"?{value:t,selection:[0,0]}:t,{elementState:l}=n({elementState:r,data:""},"validation"),d=new Fi(l,e),{value:p,selection:T}=o(d,r);return typeof t=="string"?p:{value:p,selection:T}}var eo=class extends zo{constructor(i,e){super(),this.element=i,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new Vo(this.element),this.options=Object.assign(Object.assign({},Dt),this.maskitoOptions),this.preprocessor=Jn(this.options.preprocessors),this.postprocessor=Jn(this.options.postprocessors),this.teardowns=this.options.plugins.map(n=>n(this.element,this.options)),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",n=>{if(rd(n))return n.preventDefault(),this.redo();if(ad(n))return n.preventDefault(),this.undo()}),sd(i)?this.eventListener.listen("beforeinput",n=>{let o=n.inputType.includes("Forward");switch(this.updateHistory(this.elementState),n.inputType){case"historyUndo":return n.preventDefault(),this.undo();case"historyRedo":return n.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:n,isForward:o,selection:ws(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:n,isForward:o,selection:dd(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:n,isForward:o,selection:ud(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertLineBreak":return this.handleEnter(n);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(n,n.data||"")}}):(this.eventListener.listen("keydown",n=>this.handleKeydown(n)),this.eventListener.listen("paste",n=>{var o;return this.handleInsert(n,((o=n.clipboardData)===null||o===void 0?void 0:o.getData("text/plain"))||"")})),this.eventListener.listen("input",({inputType:n})=>{n!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:i,selectionStart:e,selectionEnd:n}=this.element;return{value:i,selection:[e||0,n||0]}}get maxLength(){let{maxLength:i}=this.element;return i===-1?1/0:i}destroy(){this.eventListener.destroy(),this.teardowns.forEach(i=>i==null?void 0:i())}updateElementState({value:i,selection:e},n={inputType:"insertText",data:null}){let o=this.elementState.value;this.updateValue(i),this.updateSelectionRange(e),o!==i&&this.dispatchInputEvent(n)}updateSelectionRange([i,e]){var n,o;(this.element.selectionStart!==i||this.element.selectionEnd!==e)&&((o=(n=this.element).setSelectionRange)===null||o===void 0||o.call(n,i,e))}updateValue(i){this.element.value=i}ensureValueFitsMask(){this.updateElementState(jo(this.elementState,this.options))}dispatchInputEvent(i={inputType:"insertText",data:null}){let e=typeof window<"u"?window:globalThis;e!=null&&e.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},i),{bubbles:!0,cancelable:!1})))}handleKeydown(i){let e=i.key,n=e==="Delete";switch(e){case"Backspace":case"Delete":return this.handleDelete({event:i,isForward:n,selection:ws(this.elementState,n)});case"Enter":return this.handleEnter(i)}ld(i)&&this.handleInsert(i,e)}handleDelete({event:i,selection:e,isForward:n,force:o=!1}){let r={value:this.elementState.value,selection:e},[l,d]=r.selection,{elementState:p}=this.preprocessor({elementState:r,data:""},n?"deleteForward":"deleteBackward"),T=new Fi(p,this.options),[_,O]=p.selection;T.deleteCharacters([_,O]);let D=this.postprocessor(T,r);if(r.value.slice(0,l)+r.value.slice(d)===D.value&&!o)return;if(i.preventDefault(),ed(r,p,T,D))return this.updateSelectionRange(n?[O,O]:[_,_]);let z=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(D,{inputType:"inputType"in i?i.inputType:z,data:null}),this.updateHistory(D)}handleInsert(i,e){let n=this.elementState,{elementState:o,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),l=new Fi(o,this.options);try{l.addCharacters(o.selection,r)}catch{return i.preventDefault()}let[d,p]=o.selection,T=o.value.slice(0,d)+e+o.value.slice(p),_=this.postprocessor(l,n);if(_.value.length>this.maxLength)return i.preventDefault();T!==_.value&&(i.preventDefault(),this.updateElementState(_,{data:e,inputType:"inputType"in i?i.inputType:"insertText"}),this.updateHistory(_))}handleEnter(i){this.isTextArea&&this.handleInsert(i,"\n")}};var Fs=Da({limitWidth:"fixed",align:"right"}),As={provide:bn,deps:[[new ke,new Zt,Yi]],useFactory:$o};var Hs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiValueAccessor",""]],features:[b([As])]}),t})(),Rs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();var cd=["focusableElement"],io=(()=>{class t extends oi{constructor(e,n,o){super(e,o),this.options=n,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return Ee(this.nativeFocusableElement)}get computedFocusable(){return this.interactive&&this.focusable}onChecked(e){this.value=e}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ei),s(Ce))},t.\u0275cmp=k({type:t,selectors:[["tui-checkbox"]],viewQuery:function(e,n){if(e&1&&G(cd,5),e&2){let o;V(o=j())&&(n.focusableElement=o.first)}},hostVars:1,hostBindings:function(e,n){e&2&&H("data-size",n.size)},inputs:{size:"size"},features:[b([Fe(t),rt(t)]),I],decls:3,vars:11,consts:[[3,"disabled","focused","hovered","invalid","pressed","size","value"],["automation-id","tui-checkbox__native","type","checkbox",1,"t-native",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(e,n){e&1&&(m(0,"tui-primitive-checkbox",0)(1,"input",1,2),f("tuiCheckedChange",function(r){return n.value=r})("tuiFocusedChange",function(r){return n.onFocused(r)})("tuiFocusVisibleChange",function(r){return n.onFocusVisible(r)}),g()()),e&2&&(u("disabled",n.disabled)("focused",n.computedFocusVisible)("hovered",n.pseudoHover)("invalid",n.computedInvalid)("pressed",n.pseudoActive)("size",n.size)("value",n.value),c(1),u("disabled",n.disabled)("id",n.id)("tuiFocusable",n.computedFocusable)("tuiChecked",n.value))},dependencies:[ds,In,ut,Fn,En],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%] tui-primitive-checkbox[_ngcontent-%COMP%]{pointer-events:none}.t-native[_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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}"],changeDetection:0}),t})(),Ls=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,kn,dt,An,Sn,cs]]}),t})();var md=["*"],Ns=(()=>{class t extends oi{constructor(e,n,o,r){super(e,n),this.mode$=o,this.options=r,this.size=this.options.size}get focused(){return Ee(this.nativeFocusableElement)}get nativeFocusableElement(){var e,n;return(n=(e=this.checkbox)===null||e===void 0?void 0:e.nativeFocusableElement)!==null&&n!==void 0?n:null}onFocused(e){this.updateFocused(e)}onModelChange(e){this.value=e}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(st),s(Ei))},t.\u0275cmp=k({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(e,n){if(e&1&&G(io,5),e&2){let o;V(o=j())&&(n.checkbox=o.first)}},hostVars:1,hostBindings:function(e,n){e&1&&f("$.data-mode.attr",function(){return n.mode$}),e&2&&H("data-size",n.size)},inputs:{size:"size"},features:[b([Fe(t),rt(t),lt]),I],ngContentSelectors:md,decls:4,vars:12,consts:[[1,"t-wrapper"],[3,"disabled","focusable","nativeId","pseudoActive","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","size","ngModel","ngModelChange","focusedChange"],[1,"t-content"]],template:function(e,n){e&1&&(oe(),m(0,"label",0)(1,"tui-checkbox",1),f("ngModelChange",function(r){return n.value=r})("focusedChange",function(r){return n.onFocused(r)}),g(),m(2,"div",2),K(3),g()()),e&2&&(c(1),u("disabled",n.computedDisabled)("focusable",n.focusable)("nativeId",n.nativeId)("pseudoActive",n.pseudoActive)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("pseudoInvalid",n.computedInvalid)("readOnly",n.readOnly)("size",n.size)("ngModel",n.value),c(1),F("t-content_disabled",n.computedDisabled))},dependencies:[io,it,Re],styles:["[_nghost-%COMP%]{position:relative;display:block;line-height:0}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:inline-flex;max-width:100%;cursor:pointer}._disabled[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{cursor:default}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);line-height:1rem;word-wrap:break-word;min-width:0}.t-content_disabled[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-left:.5rem}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-left:.75rem}"],changeDetection:0}),t})(),zs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,nt,Ls]]}),t})();var hd=new Date("0001-01-01"),gd=new Date("9999-12-31");var fd="\u2013",_d="\u2014",vd="-",Cd="\u2212",Md=[vd,fd,_d,Cd];var Td=[":","."];function bd(t,i,e){let n=Math.min(Number(e),Math.max(Number(i),Number(t)));return t instanceof Date?new Date(n):n}var Vs=t=>{var i,e,n;return{day:((i=t.match(/d/g))===null||i===void 0?void 0:i.length)||0,month:((e=t.match(/m/g))===null||e===void 0?void 0:e.length)||0,year:((n=t.match(/y/g))===null||n===void 0?void 0:n.length)||0}};function yd(t){return{day:String(t.getDate()).padStart(2,"0"),month:String(t.getMonth()+1).padStart(2,"0"),year:String(t.getFullYear()).padStart(4,"0"),hours:String(t.getHours()).padStart(2,"0"),minutes:String(t.getMinutes()).padStart(2,"0"),seconds:String(t.getSeconds()).padStart(2,"0"),milliseconds:String(t.getMilliseconds()).padStart(3,"0")}}function Od(t,i){return t.length!e.match(/^0+$/))}function js(t,i,e){let n=i.replace(/\W/g,"").length;return t.replace(e,"").match(new RegExp("(\\D*\\d[^\\d\\s]*){1,".concat(n,"}"),"g"))||[]}function Bs(t){return t.reduce((i,[e,n])=>Object.assign(Object.assign({},i),{[e]:n}),{})}function Us(t,i){let e=i.replace(/[^dmy]/g,""),n=t.replace(/\D+/g,""),o={day:n.slice(e.indexOf("d"),e.lastIndexOf("d")+1),month:n.slice(e.indexOf("m"),e.lastIndexOf("m")+1),year:n.slice(e.indexOf("y"),e.lastIndexOf("y")+1)};return Bs(Object.entries(o).filter(([r,l])=>!!l).sort(([r],[l])=>i.toLowerCase().indexOf(r[0])>i.toLowerCase().indexOf(l[0])?1:-1))}function Dd(t,i){var e,n,o,r,l,d,p;let T=((e=t.year)===null||e===void 0?void 0:e.length)===2?"20".concat(t.year):t.year,_=new Date(Number(T!=null?T:"0"),Number((n=t.month)!==null&&n!==void 0?n:"1")-1,Number((o=t.day)!==null&&o!==void 0?o:"1"),Number((r=i==null?void 0:i.hours)!==null&&r!==void 0?r:"0"),Number((l=i==null?void 0:i.minutes)!==null&&l!==void 0?l:"0"),Number((d=i==null?void 0:i.seconds)!==null&&d!==void 0?d:"0"),Number((p=i==null?void 0:i.milliseconds)!==null&&p!==void 0?p:"0"));return _.setFullYear(Number(T!=null?T:"0")),_}var Hi=", ";function no({day:t,month:i,year:e,hours:n,minutes:o,seconds:r,milliseconds:l},d,p){var T;let _=((T=d.match(/y/g))===null||T===void 0?void 0:T.length)===2?e==null?void 0:e.slice(-2):e;return(d+(p?Hi+p:"")).replace(/d+/g,t!=null?t:"").replace(/m+/g,i!=null?i:"").replace(/y+/g,_!=null?_:"").replace(/H+/g,n!=null?n:"").replace(/MSS/g,l!=null?l:"").replace(/M+/g,o!=null?o:"").replace(/S+/g,r!=null?r:"").replace(/^\D+/g,"").replace(/\D+$/g,"")}function Bo(t,i,e=0){return Number(t.padEnd(i.length,"0"))<=Number(i)?{validatedSegmentValue:t,prefixedZeroesCount:e}:t.endsWith("0")?Bo("0".concat(t.slice(0,i.length-1)),i,e+1):Bo("".concat(t.slice(0,i.length-1),"0"),i,e)}var Pd={day:31,month:12,year:9999};function wd({dateString:t,dateModeTemplate:i,offset:e,selection:[n,o]}){let r=Us(t,i),l=Object.entries(r),d={},p=0;for(let[O,D]of l){let P=no(d,i),z=Pd[O],De=P.length&&1,he=e+P.length+De+Vs(i)[O],je=he>=n&&he===o;if(je&&Number(D)>Number(z))return{validatedDateString:"",updatedSelection:[n,o]};if(je&&Number(D)<1)return{validatedDateString:"",updatedSelection:[n,o]};let{validatedSegmentValue:oo,prefixedZeroesCount:rl}=Bo(D,"".concat(z));p+=rl,d[O]=oo}let T=no(d,i),_=T.length-t.length;return{validatedDateString:T,updatedSelection:[n+p+_,o+p+_]}}var $s=/[\\^$.*+?()[\]{}|]/g,xd=new RegExp($s.source);function Ws(t){return t&&xd.test(t)?t.replace($s,"\\$&"):t}function Id(t,i){let e=Vs(i);return Bs(Object.entries(t).map(([n,o])=>{let r=e[n];return[n,o.length===r&&o.match(/^0+$/)?"1".padStart(r,"0"):o]}))}function kd({dateModeTemplate:t,min:i=hd,max:e=gd,rangeSeparator:n="",dateSegmentSeparator:o="."}){return({value:r,selection:l})=>{let d=n&&r.endsWith(n),p=js(r,t,n),T="";for(let _ of p){T+=T?n:"";let O=Us(_,t);if(!Od(_,t)){let z=Id(O,t),De=no(z,t),he=_.endsWith(o)?o:"";T+=De+he;continue}let D=Dd(O),P=bd(D,i,e);T+=no(yd(P),t)}return{selection:l,value:T+(d?n:"")}}}function Ed({dateModeTemplate:t,dateSegmentsSeparator:i,rangeSeparator:e=""}){return({elementState:n,data:o})=>{let r=e?new RegExp("".concat(e,"|-")):Hi,l=o.split(r),d=o.includes(Hi)?[l[0]]:l;if(d.every(p=>p.trim().split(/\D/).length===t.split(i).length)){let p=d.map(T=>Sd(T,t,i)).join(e);return{elementState:n,data:"".concat(p).concat(o.includes(Hi)&&Hi+l[1]||"")}}return{elementState:n,data:o}}}function Sd(t,i,e){let n=t.split(/\D/),o=i.split(e);return n.map((l,d)=>d===o.length-1?l:l.padStart(o[d].length,"0")).join(e)}function Fd({dateModeTemplate:t,dateSegmentsSeparator:i,rangeSeparator:e=""}){return({elementState:n,data:o})=>{let{value:r,selection:l}=n;if(o===i)return{elementState:n,data:l[0]===r.length?o:""};if(Md.includes(o))return{elementState:n,data:e};let d=o.replace(new RegExp("[^\\d".concat(Ws(i)).concat(e,"]"),"g"),"");if(!d)return{elementState:n,data:""};let[p,T]=l,_=T+o.length,O=r.slice(0,p)+d+r.slice(_),D=js(O,t,e),P="",z=!!e&&O.includes(e);for(let he of D){let{validatedDateString:je,updatedSelection:oo}=wd({dateString:he,dateModeTemplate:t,offset:P?P.length+e.length:0,selection:[p,_]});if(he&&!je)return{elementState:n,data:""};_=oo[1],P+=z&&P?e+je:je}let De=P.slice(p,_);return{elementState:{selection:l,value:P.slice(0,p)+De.split(i).map(he=>"0".repeat(he.length)).join(i)+P.slice(_)},data:De}}}function Ad(){return({elementState:t},i)=>{let{value:e,selection:n}=t;if(!e||Hd(e,n))return{elementState:t};let[o,r]=n,l=e.slice(o,r).replace(/\d/g,"0"),d=e.slice(0,o)+l+e.slice(r);return i==="validation"||i==="insert"&&o===r?{elementState:{selection:n,value:d}}:{elementState:{selection:i==="deleteBackward"||i==="insert"?[o,o]:[r,r],value:d}}}}function Hd(t,[i,e]){return e===t.length}function Ys({mode:t,separator:i=".",max:e,min:n}){let o=t.split("/").join(i);return Object.assign(Object.assign({},Dt),{mask:Array.from(o).map(r=>r===i?r:/\d/),overwriteMode:"replace",preprocessors:[Ad(),Ed({dateModeTemplate:o,dateSegmentsSeparator:i}),Fd({dateModeTemplate:o,dateSegmentsSeparator:i})],postprocessors:[kd({min:n,max:e,dateModeTemplate:o,dateSegmentSeparator:i})]})}var H0=new RegExp("[".concat(Td.map(Ws).join(""),"]$"));var Gs=(()=>{class t{constructor(e,n){this.ngZone=e,this.elementRef=n,this.maskedElement=null,this.maskito=Dt,this.maskitoElement=Es}ngOnChanges(){var e;return Ko(this,void 0,void 0,function*(){(e=this.maskedElement)===null||e===void 0||e.destroy();let n=this.maskitoElement,o=yield n(this.elementRef.nativeElement);this.maskitoElement===n&&this.ngZone.runOutsideAngular(()=>{var r;this.maskedElement=new eo(o,(r=this.maskito)!==null&&r!==void 0?r:Dt)})})}ngOnDestroy(){var e;(e=this.maskedElement)===null||e===void 0||e.destroy()}}return t.\u0275fac=function(e){return new(e||t)(s(et),s(E))},t.\u0275dir=y({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[It]}),t})();var Ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({}),t})();function Ld(t,i){if(t&1){let e=U();m(0,"tui-primitive-textfield",5),f("focusedChange",function(o){w(e);let r=h();return x(r.onFocused(o))})("valueChange",function(o){w(e);let r=h();return x(r.onValueChange(o))}),K(1),K(2,1,["ngProjectAs","input",5,["input"]]),g()}if(t&2){let e=i.tuiLet,n=h(),o=J(4);u("disabled",n.computedDisabled)("focusable",n.computedFocusable)("invalid",n.computedInvalid)("maskito",n.computedMask)("nativeId",n.nativeId)("pseudoFocus",n.pseudoFocus)("pseudoHover",n.pseudoHover)("readOnly",n.readOnly)("tuiTextfieldFiller",n.getComputedFiller(e||""))("tuiTextfieldIcon",n.calendarIcon&&o)("value",n.computedValue)}}function Nd(t,i){if(t&1){let e=U();m(0,"tui-svg",8),f("click",function(){w(e);let o=h(2);return x(o.onIconClick())}),g()}if(t&2){let e=i.polymorpheusOutlet,n=h(2);F("t-icon",!n.computedDisabled),u("src",e)}}function zd(t,i){t&1&&S(0,"input",9)}var Vd=t=>({$implicit:t});function jd(t,i){if(t&1&&v(0,Nd,1,3,"tui-svg",6)(1,zd,1,0,"input",7),t&2){let e=h();u("polymorpheusOutlet",e.calendarIcon)("polymorpheusOutletContext",pe(3,Vd,e.size)),c(1),u("ngIf",e.isMobile&&e.nativePicker)}}function Bd(t,i){if(t&1){let e=U();m(0,"div",12)(1,"button",13),f("click",function(){w(e);let o=h(2);return x(o.onDayClick(o.items[0].day))}),$(2),g()()}if(t&2){let e=h(2);c(2),ce(" ",e.items[0]," ")}}function Ud(t,i){if(t&1){let e=U();m(0,"tui-calendar",10),f("dayClick",function(o){w(e);let r=h();return x(r.onDayClick(o))})("monthChange",function(o){w(e);let r=h();return x(r.onMonthChange(o))}),g(),v(1,Bd,3,1,"div",11)}if(t&2){let e=h();u("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.computedMax)("min",e.computedMin)("month",e.computedActiveYearMonth)("value",e.value),c(1),u("ngIf",e.items.length===1)}}var $d=["*",[["input"]]],Wd=["*","input"],Yd=(()=>{class t{constructor(e,n){this.host=e,this.dateFormat=n}get value(){return this.host.value.length===Ti?ve.normalizeParse(this.host.value,this.dateFormat).toString("YMD","-"):""}get max(){return this.host.max.toJSON()}get min(){return this.host.min.toJSON()}onChange(e){this.host.onValueChange(e?ve.normalizeParse(e,"YMD").toString(this.dateFormat):"")}}return t.\u0275fac=function(e){return new(e||t)(s(Mo),s(xo))},t.\u0275dir=y({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(e,n){e&1&&f("change",function(r){return n.onChange(r.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),e&2&&Ke("tabIndex",-1)("value",n.value)("max",n.max)("min",n.min)}}),t})(),Je=class extends oi{constructor(i,e,n,o,r,l,d,p,T,_,O,D){super(i,e,_),this.injector=n,this.isMobile=o,this.dialogs=r,this.mobileCalendar=l,this.dateFormat=d,this.dateSeparator=p,this.dateTexts$=T,this.valueTransformer=_,this.options=O,this.textfieldSize=D,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=Me,this.markerHandler=li,this.items=[],this.defaultActiveYearMonth=q.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe(L(P=>ba(P[this.dateFormat],this.dateSeparator)))}get size(){return this.textfieldSize.size}get computedMin(){var i;return(i=this.min)!==null&&i!==void 0?i:this.options.min}get computedMax(){var i;return(i=this.max)!==null&&i!==void 0?i:this.options.max}get nativeFocusableElement(){var i,e;return(e=(i=this.textfield)===null||i===void 0?void 0:i.nativeFocusableElement)!==null&&e!==void 0?e:null}get focused(){var i;return!!(!((i=this.textfield)===null||i===void 0)&&i.focused)}get computedMobile(){return this.isMobile&&(!!this.mobileCalendar||this.nativePicker)}get nativePicker(){return this.options.nativePicker}get calendarIcon(){return this.options.icon}get computedValue(){let{value:i,nativeValue:e,activeItem:n}=this;return n?String(n):i?i.toString(this.dateFormat,this.dateSeparator):e}get computedActiveYearMonth(){return this.items[0]&&this.value&&this.value.daySame(this.items[0].day)?this.items[0].displayDay:this.month||this.value||va(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get nativeValue(){var i;return((i=this.nativeFocusableElement)===null||i===void 0?void 0:i.value)||""}set nativeValue(i){this.nativeFocusableElement&&(this.nativeFocusableElement.value=i)}get canOpen(){return this.interactive&&!this.computedMobile}get computedMask(){return this.activeItem?Dt:this.computeMaskOptions(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax)}get activeItem(){let{value:i}=this;return i&&this.items.find(e=>e.day.daySame(i))||null}onClick(){this.isMobile||(this.open=!this.open)}getComputedFiller(i){return this.activeItem?"":i}onMobileClick(){this.onIconClick()}onIconClick(){!this.computedMobile||!this.mobileCalendar||this.dialogs.open(new Ft(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe(ie(this.destroy$)).subscribe(i=>{this.value=i})}onValueChange(i){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),i||this.onOpenChange(!0),this.value=i.length!==Ti?null:ve.normalizeParse(i,this.dateFormat)}onDayClick(i){this.value=i,this.open=!1}onMonthChange(i){this.month=i}onOpenChange(i){this.open=i}onFocused(i){this.updateFocused(i)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(i){super.writeValue(i),this.nativeValue=i?this.computedValue:""}valueIdenticalComparator(i,e){return ti(i,e,(n,o)=>n.daySame(o))}computeMaskOptions(i,e,n,o){return Ys({separator:e,mode:gs[i],min:n.toLocalNativeDate(),max:o.toLocalNativeDate()})}};Je.\u0275fac=function(i){return new(i||Je)(s(we,10),s(Ce),s(ji),s(sn),s(xn),s(Os,8),s(xo),s(Ta),s(bs),s(No,8),s(ys),s($n))};Je.\u0275cmp=k({type:Je,selectors:[["tui-input-date"]],viewQuery:function(i,e){if(i&1&&G(Ve,5),i&2){let n;V(n=j())&&(e.textfield=n.first)}},hostVars:1,hostBindings:function(i,e){i&1&&f("click",function(){return e.onClick()}),i&2&&H("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[b([Fe(Je),rt(Je),Ts(No)]),I],ngContentSelectors:Wd,decls:7,vars:7,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange"],["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"],["iconContent",""],[3,"polymorpheus"],["dropdown","polymorpheus"],["automation-id","tui-input-date-range__textfield","tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","nativeId","pseudoFocus","pseudoHover","readOnly","tuiTextfieldFiller","tuiTextfieldIcon","value","focusedChange","valueChange"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"t-icon","src","click",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiDate","","class","t-native-input",4,"ngIf"],["appearance","icon","automation-id","tui-input-date-range__icon","tuiWrapper","",3,"src","click"],["tuiDate","",1,"t-native-input"],["automation-id","tui-input-date__calendar","tuiPreventDefault","mousedown",3,"disabledItemHandler","markerHandler","max","min","month","value","dayClick","monthChange"],["tuiPreventDefault","mousedown","class","t-button",4,"ngIf"],["tuiPreventDefault","mousedown",1,"t-button"],["tuiLink","","type","button",3,"click"]],template:function(i,e){if(i&1&&(oe($d),m(0,"tui-hosted-dropdown",0),f("openChange",function(o){return e.onOpenChange(o)}),v(1,Ld,3,11,"tui-primitive-textfield",1),W(2,"async"),v(3,jd,2,5,"ng-template",null,2,Te)(5,Ud,2,7,"ng-template",3,4,Te),g()),i&2){let n=J(6);u("canOpen",e.canOpen)("content",n)("open",e.open&&e.canOpen),c(1),u("tuiLet",Q(2,5,e.filler$)),c(4),u("polymorpheus",e.type)}},dependencies:[Oe,Ve,_e,Yn,hi,At,ps,Hs,Gs,So,Fo,Z,$e,ee,Yd,rn,ga,fe],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-button[_ngcontent-%COMP%]{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.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});se([xe],Je.prototype,"computeMaskOptions",null);var Qs=(()=>{class t extends gn{get value(){return this.host.computedValue}get max(){return this.host.computedMax}get min(){return this.host.computedMin}onValueChange(e){e||(this.host.nativeValue=""),this.host.onValueChange(e)}process(e){e.inputMode="numeric"}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=ge(t)))(n||t)}})(),t.\u0275dir=y({type:t,selectors:[["tui-input-date"]],features:[b([Tn(t)]),I]}),t})(),Xs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,Ks,re,We,fa,Gn,be,gi,Kn,ms,Rs,Ht,Wn]]}),t})();var Gd=["input"];function Kd(t,i){if(t&1&&(ue(0),$(1),de()),t&2){let e=i.polymorpheusOutlet;c(1),ce(" ",e," ")}}function Qd(t,i){if(t&1&&(m(0,"div",6),v(1,Kd,2,1,"ng-container",7),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.leftContent)}}function Xd(t,i){if(t&1&&S(0,"tui-loader",8),t&2){let e=h();u("inheritColor",!0)("size",e.loaderSize)}}function Zd(t,i){if(t&1){let e=U();m(0,"tui-svg",9),f("click",function(o){w(e);let r=h();return x(r.remove(o))})("mousedown.stop.prevent.silent",function(){return 0}),g()}if(t&2){let e=h();u("src",e.icons.close)}}function qd(t,i){if(t&1){let e=U();m(0,"input",10,11),f("blur",function(){w(e);let o=h();return x(o.onBlur())})("keydown",function(o){w(e);let r=h();return x(r.onKeyDown(o))})("ngModelChange",function(o){w(e);let r=h();return x(r.onInput(o))}),g()}if(t&2){let e=h();u("ngModel",e.editedText),H("maxLength",e.maxLength)}}var Jd={size:"m",status:"default",autoColor:!1},ec=X(Jd);var Zs=(()=>{class t{constructor(e,n,o,r){this.el=e,this.mode$=n,this.options=o,this.icons=r,this.value="",this.editable=!1,this.separator=",",this.maxLength=null,this.size=this.options.size,this.showLoader=!1,this.status=this.options.status,this.hoverable=!1,this.removable=!1,this.disabled=!1,this.autoColor=this.options.autoColor,this.edited=new Y,this.editing=!1,this.editedText=null}set input(e){e&&e.nativeElement.focus()}get backgroundColor(){return this.autoColor?hs(this.value):null}get canRemove(){return this.removable&&!this.disabled&&!this.showLoader}get displayText(){return this.editedText===null?this.value:this.editedText}get loaderSize(){return Kr(this.size)?"s":"xs"}edit(e){this.canEdit&&(e.preventDefault(),this.editing=!0,this.editedText=this.value)}remove(e){this.canRemove&&(e.preventDefault(),e.stopPropagation(),this.edited.emit(""))}onInput(e){let n=e.split(this.separator);if(n.length>1){this.save(String(n));return}this.editedText=e}onKeyDown(e){switch(e.stopPropagation(),e.key.toLowerCase()){case"enter":e.preventDefault(),this.save(this.editedText||"");break;case"escape":case"esc":e.preventDefault(),this.stopEditing(),this.el.nativeElement.focus();break;default:break}}onBlur(){this.editedText!==null&&this.save(this.editedText)}get canEdit(){return this.editable&&!this.disabled&&!this.showLoader}stopEditing(){this.editing=!1,this.editedText=null}save(e){this.stopEditing(),this.edited.emit(e.trim())}}return t.\u0275fac=function(e){return new(e||t)(s(E),s(st),s(ec),s(ui))},t.\u0275cmp=k({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(e,n){if(e&1&&G(Gd,5,E),e&2){let o;V(o=j())&&(n.input=o.first)}},hostVars:10,hostBindings:function(e,n){e&1&&f("$.data-mode.attr",function(){return n.mode$})("keydown.enter",function(r){return n.edit(r)})("keydown.delete",function(r){return n.remove(r)})("keydown.backspace",function(r){return n.remove(r)}),e&2&&(H("data-size",n.size)("data-status",n.status),F("_hoverable",n.hoverable)("_disabled",n.disabled)("_autocolor",n.autoColor)("_editing",n.editing))},inputs:{value:"value",editable:"editable",separator:"separator",maxLength:"maxLength",size:"size",showLoader:"showLoader",status:"status",hoverable:"hoverable",removable:"removable",disabled:"disabled",autoColor:"autoColor",leftContent:"leftContent"},outputs:{edited:"edited"},features:[b([lt])],decls:6,vars:7,consts:[[1,"t-tag",3,"dblclick"],["class","t-content",4,"ngIf"],["automation-id","tui-tag__text",1,"t-text",3,"textContent"],["class","t-content",3,"inheritColor","size",4,"ngIf"],["automation-id","tui-tag__remove","class","t-icon",3,"src","click","mousedown.stop.prevent.silent",4,"ngIf"],["automation-id","tui-tag__edit","type","text","class","t-edit",3,"ngModel","blur","keydown","ngModelChange",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content",3,"inheritColor","size"],["automation-id","tui-tag__remove",1,"t-icon",3,"src","click","mousedown.stop.prevent.silent"],["automation-id","tui-tag__edit","type","text",1,"t-edit",3,"ngModel","blur","keydown","ngModelChange"],["input",""]],template:function(e,n){e&1&&(m(0,"div",0),f("dblclick",function(r){return n.edit(r)}),v(1,Qd,2,1,"div",1),S(2,"span",2),v(3,Xd,1,2,"tui-loader",3)(4,Zd,1,1,"tui-svg",4),g(),v(5,qd,2,2,"input",5)),e&2&&(He("background-color",n.backgroundColor),c(1),u("ngIf",n.leftContent),c(1),u("textContent",n.displayText),c(1),u("ngIf",n.showLoader),c(1),u("ngIf",n.canRemove),c(1),u("ngIf",n.editing))},dependencies:[On,_e,ee,Z,tt,it,Re],styles:['[_nghost-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;font:var(--tui-font-text-s);line-height:1.25rem;max-width:100%;cursor:default;outline:none;text-decoration:none;padding:0;border:0}[_nghost-%COMP%]:after{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;pointer-events:none}._hoverable[_nghost-%COMP%]:hover[data-status=custom]:after, ._hoverable[_nghost-%COMP%]:active[data-status=custom]:after{background-color:var(--tui-clear)}[_nghost-%COMP%]:focus:after{border:2px solid var(--tui-focus)}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;border-radius:var(--tui-radius-xs)}[data-size=m][_nghost-%COMP%]{border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{border-radius:var(--tui-radius-s)}[data-status=primary][_nghost-%COMP%]{background-color:var(--tui-primary);color:var(--tui-primary-text)}[data-status=primary]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-primary-hover)}[data-status=primary]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-primary-active)}[data-status=error][_nghost-%COMP%]{background-color:var(--tui-error-bg);color:var(--tui-text-01)}[data-status=error]._hoverable[_nghost-%COMP%]:hover, [data-status=error]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-hover)}[data-status=error][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-error-bg-night);color:var(--tui-text-01-night)}[data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-night-hover)}[data-status=success][_nghost-%COMP%]{background-color:var(--tui-success-bg);color:var(--tui-text-01)}[data-status=success]._hoverable[_nghost-%COMP%]:hover, [data-status=success]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-hover)}[data-status=success][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-success-bg-night);color:var(--tui-text-01-night)}[data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-night-hover)}[data-status=warning][_nghost-%COMP%]{background-color:var(--tui-warning-bg);color:var(--tui-text-01)}[data-status=warning]._hoverable[_nghost-%COMP%]:hover, [data-status=warning]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-hover)}[data-status=warning][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-warning-bg-night);color:var(--tui-text-01-night)}[data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-night-hover)}[data-status=default][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-base-06)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:hover{background-color:var(--tui-base-07)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:active{background-color:var(--tui-base-08)}[data-status=default][data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-clear-inverse)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-inverse-hover)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-inverse-active)}[data-status=default][data-mode=onDark][_nghost-%COMP%]:focus:after{border:2px solid var(--tui-base-01)}[data-status=default][data-mode=onLight][_nghost-%COMP%]{background-color:var(--tui-clear);color:var(--tui-text-01)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-hover)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-active)}._editing[_nghost-%COMP%]{background:transparent!important}._disabled[_nghost-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}._hoverable[_nghost-%COMP%]{cursor:pointer}._autocolor[_nghost-%COMP%]{color:#000c}.t-text[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:.02em}.t-tag[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;width:auto;align-items:center;font:inherit;border-radius:inherit}[data-size=s][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:1.25rem;padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-xs);padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-s);padding:0 .75rem}._editing[_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{visibility:hidden}.t-edit[_ngcontent-%COMP%]{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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;font:inherit;color:var(--tui-text-01);width:100%;height:100%;box-sizing:border-box;padding:0 .5rem}.t-edit[_ngcontent-%COMP%]:-webkit-autofill, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-size=s][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .75rem}.t-icon[_ngcontent-%COMP%]{width:1rem;height:100%;cursor:pointer;pointer-events:all;opacity:var(--tui-disabled-opacity);-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:-.25rem;margin-inline-end:-.25rem}.t-icon[_ngcontent-%COMP%]:hover{opacity:1}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{-webkit-margin-start:0;margin-inline-start:0}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%] svg{transform:scale(.75)}.t-content[_ngcontent-%COMP%]{width:1rem;height:1rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}'],changeDetection:0}),t})(),qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,nt,be,Dn,re]]}),t})();var ic=["focusableElement"],nc=["tagsContainer"],oc=["cleaner"],rc=["errorIcon"],ac=["tag"];function sc(t,i){t&1&&qt(0)}function lc(t,i){if(t&1&&S(0,"tui-svg",21),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var Uo=t=>({$implicit:t});function uc(t,i){if(t&1&&(m(0,"div",19),v(1,lc,1,1,"tui-svg",20),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconLeft)("polymorpheusOutletContext",pe(2,Uo,e.size))}}function dc(t,i){if(t&1&&(m(0,"div",22),K(1,2),g()),t&2){let e=h();F("t-placeholder_raised",e.placeholderRaised)}}function cc(t,i){if(t&1){let e=U();m(0,"tui-tag",24,25),f("edited",function(o){let l=w(e).index,d=h(2);return x(d.onTagEdited(o,l))})("keydown.arrowLeft.prevent",function(){let r=w(e).index,l=h(2);return x(l.onTagKeyDownArrowLeft(r))})("keydown.arrowRight.prevent",function(){let r=w(e).index,l=h(2);return x(l.onTagKeyDownArrowRight(r))}),W(2,"async"),g()}if(t&2){let e=i.$implicit,n=h(2);u("disabled",n.computedDisabled||n.disabledItemHandler(e))("editable",n.editable&&!n.readOnly)("hoverable",!n.readOnly)("leftContent",n.getLeftContent(e))("maxLength",n.maxLength)("removable",!n.readOnly&&n.removable)("separator",n.separator)("size",n.controller.size)("status",Q(2,11,n.status$))("tuiFocusable",!1)("value",e.toString())}}function pc(t,i){if(t&1&&(ue(0),v(1,cc,3,13,"tui-tag",23),de()),t&2){let e=h();c(1),u("ngForOf",e.value)("ngForTrackBy",e.trackByFn)}}function mc(t,i){if(t&1&&S(0,"span",27),t&2){let e=i.$implicit,n=h(2);F("t-text_comma",n.computedFocused&&!n.inputHidden)("t-text_disabled",n.disabledItemHandler(e))("t-text_error",!n.tagValidator(e)),u("textContent",e)}}function hc(t,i){if(t&1&&v(0,mc,1,7,"span",26),t&2){let e=h();u("ngForOf",e.value)}}function gc(t,i){if(t&1){let e=U();m(0,"tui-svg",32,33),f("click.stop",function(){w(e);let o=h(3);return x(o.onCleanerClick())}),g()}if(t&2){let e=i.polymorpheusOutlet;u("src",e)}}function fc(t,i){if(t&1&&(ue(0),v(1,gc,2,1,"tui-svg",31),de()),t&2){let e=h(2);c(1),u("polymorpheusOutlet",e.iconCleaner)("polymorpheusOutletContext",pe(2,Uo,e.size))}}function _c(t,i){if(t&1&&S(0,"tui-tooltip",34),t&2){let e=h(2);u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.id)}}function vc(t,i){if(t&1&&S(0,"tui-svg",21),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function Cc(t,i){if(t&1&&(m(0,"div",35),v(1,vc,1,1,"tui-svg",20),g()),t&2){let e=h(2);c(1),u("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",pe(2,Uo,e.size))}}function Mc(t,i){if(t&1&&(m(0,"div",28),v(1,fc,2,4,"ng-container",0)(2,_c,1,2,"tui-tooltip",29)(3,Cc,2,4,"div",30),g()),t&2){let e=h();c(1),u("ngIf",e.hasCleaner),c(1),u("ngIf",e.showHint),c(1),u("ngIf",e.icon)}}function Tc(t,i){if(t&1&&S(0,"tui-svg",36),t&2){let e=h();u("src",e.icons.error)}}var bc=[[["tuiContent"]],[["select"]],"*"],yc=["tuiContent","select","*"],Oc={separator:",",uniqueTags:!0,tagStatus:"primary"},Dc=X(Oc);var Pc={s:1.25,m:1.5,l:2},wc={s:1,m:1.25,l:1.25},xc=.125,Js=(()=>{class t extends Rr{constructor(e,n,o,r,l,d,p,T,_,O){super(e,n),this.el=o,this.modeDirective=r,this.mode$=l,this.hintOptions=d,this.controller=p,this.options=T,this.parentHostedDropdown=_,this.icons=O,this.tags=Gi,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=ei,this.expandable=!0,this.rows=1/0,this.inputHidden=!1,this.uniqueTags=this.options.uniqueTags,this.maxLength=null,this.placeholder="",this.removable=!0,this.disabledItemHandler=Me,this.searchChange=new Y,this.status$=this.mode$.pipe(L(()=>this.status)),this.open=!1}set pseudoFocusedSetter(e){!e&&!this.focused&&this.scrollTo(0),this.pseudoFocus=e}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){var e;return Xe(this.el.nativeElement)||!!(!((e=this.hostedDropdown)===null||e===void 0)&&e.focused)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get labelOutside(){let{size:e,labelOutside:n}=this.controller;return e==="s"||n}get iconLeft(){return this.controller.iconLeft}get icon(){return this.controller.icon}get iconCleaner(){return this.controller.options.iconCleaner}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&this.interactive}get hasNativeValue(){return!!this.search}get hasValue(){return!!this.value.length||this.hasNativeValue}get hasPlaceholder(){return!this.labelOutside||!this.hasValue&&(!this.hasExampleText||this.inputHidden)}get placeholderRaised(){return!this.labelOutside&&(this.computedFocused&&!this.readOnly||this.hasValue)}get hasExampleText(){var e;return!!(!((e=this.nativeFocusableElement)===null||e===void 0)&&e.placeholder)&&this.computedFocused&&!this.hasValue&&!this.readOnly}get hasRightIcons(){var e;return this.hasCleaner||!!this.icon||!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&!this.computedDisabled}get showHint(){var e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&(this.controller.options.hintOnDisabled||!this.computedDisabled)}get status(){var e;return!((e=this.modeDirective)===null||e===void 0)&&e.mode?"default":this.options.tagStatus}get canOpen(){return this.interactive&&!!this.datalist}get computeMaxHeight(){return this.expandable?this.rows*this.lineHeight:null}detectRetargetFromLabel(e){tn(e)&&e.stopImmediatePropagation()}getLeftContent(e){return!this.tagValidator(e)&&this.errorIconTemplate?this.errorIconTemplate:""}onCleanerClick(){var e;this.updateSearch(""),this.clear(),this.focusInput(),(e=this.parentHostedDropdown)===null||e===void 0||e.updateOpen(!0)}onActiveZone(e){this.open=!1,this.addTag(),this.updateFocused(e),!e&&!this.computedFocused&&this.scrollTo(0)}onMouseDown(e){var n;let o=qi(e);!this.focusableElement||o===this.focusableElement.nativeElement||!ot(e.target)||!((n=this.cleanerSvg)===null||n===void 0)&&n.nativeElement.contains(e.target)||this.tagsContainer&&o!==this.tagsContainer.nativeElement&&this.tagsContainer.nativeElement.contains(o)||(e.preventDefault(),this.focusInput())}onFieldKeyDownBackspace(e){!this.labelOutside&&!this.hasNativeValue&&this.value.length?this.deleteLastEnabledItem():this.onFieldKeyDownArrowLeft(e)}onFieldKeyDownArrowLeft(e){!this.labelOutside||this.hasNativeValue||!this.value.length||(e.preventDefault(),this.tags.last.nativeElement.focus())}onFieldKeyDownEnter(){this.addTag(),this.scrollTo()}onTagKeyDownArrowLeft(e){e>0&&this.onScrollKeyDown(e,-1)}onTagKeyDownArrowRight(e){e===this.value.length-1?this.focusInput():this.onScrollKeyDown(e,1)}onTagEdited(e,n){this.focusInput(e===""),this.value=this.filterValue(this.value.map((o,r)=>r!==n?o:e.split(this.separator).map(l=>l.trim()).filter(Boolean)).reduce((o,r)=>o.concat(r),[]))}handleOption(e){this.focusInput(),this.updateSearch(""),this.value=this.filterValue(this.value.concat(e)),this.open=!1,this.scrollTo()}onInput(e){let n=e.split(this.separator),r=n.map(l=>this.clippedValue(l.trim())).filter((l,d,{length:p})=>l.length>0&&d!==p-1).filter(l=>!this.disabledItemHandler(l));n.length>1?(this.updateSearch(this.clippedValue(n[n.length-1].trim())),this.value=this.filterValue([...this.value,...r])):this.updateSearch(this.clippedValue(e)),this.open=this.hasNativeValue}onPaste(e){let n=mr(e);this.onInput(n||"")}onDrop({dataTransfer:e}){e&&this.onInput(e.getData("text")||"")}setDisabledState(){super.setDisabledState(),this.open=!1}trackByFn(e,n){return n.toString()}scrollTo(e){var n;e===void 0&&(e=(n=this.scrollBar)===null||n===void 0?void 0:n.nativeElement.scrollWidth),setTimeout(()=>{this.scrollBar&&(this.scrollBar.nativeElement.scrollLeft=e||0)})}filterValue(e){let n=new Set;return e.reverse().filter(o=>!this.uniqueTags||o&&!n.has(o)&&n.add(o)).reverse()}onScrollKeyDown(e,n){let o=this.tags.find((r,l)=>l===e+n);!o||!this.scrollBar||(o.nativeElement.focus(),n*this.scrollBar.nativeElement.clientWidth-n*o.nativeElement.offsetLeft-o.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=n*o.nativeElement.clientWidth))}updateSearch(e){this.focusableElement&&(this.focusableElement.nativeElement.value=e),this.search=e,this.searchChange.emit(e)}addTag(){var e,n;let o=(n=(e=this.search)===null||e===void 0?void 0:e.trim())!==null&&n!==void 0?n:"";!o||this.disabledItemHandler(o)||(this.updateSearch(""),this.value=this.filterValue(this.value.concat(o)))}deleteLastEnabledItem(){for(let e=this.value.length-1;e>=0;e--)if(!this.disabledItemHandler(this.value[e])){this.value=pr(this.value,e);break}}focusInput(e=!1){var n;(n=this.nativeFocusableElement)===null||n===void 0||n.focus({preventScroll:e})}clippedValue(e){return e.slice(0,this.maxLength||e.length)}get lineHeight(){return this.labelOutside?Pc[this.controller.size]+2*xc:wc[this.controller.size]}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(E),s(pi,8),s(st),s(Ut,8),s(Qt),s(Dc),s(Oe,8),s(ui))},t.\u0275cmp=k({type:t,selectors:[["tui-input-tag"]],contentQueries:function(e,n,o){if(e&1&&Ct(o,as,5,Wi),e&2){let r;V(r=j())&&(n.datalist=r.first)}},viewQuery:function(e,n){if(e&1&&(G(Oe,5),G(ic,5),G(nc,5),G(oc,5,E),G(Vt,5,E),G(rc,5),G(ac,5,E)),e&2){let o;V(o=j())&&(n.hostedDropdown=o.first),V(o=j())&&(n.focusableElement=o.first),V(o=j())&&(n.tagsContainer=o.first),V(o=j())&&(n.cleanerSvg=o.first),V(o=j())&&(n.scrollBar=o.first),V(o=j())&&(n.errorIconTemplate=o.first),V(o=j())&&(n.tags=o)}},hostVars:7,hostBindings:function(e,n){e&2&&(H("data-size",n.size),F("_expandable",n.expandable)("_label-outside",n.labelOutside)("_icon-left",n.iconLeft))},inputs:{separator:"separator",search:"search",editable:"editable",tagValidator:"tagValidator",expandable:"expandable",rows:"rows",inputHidden:"inputHidden",uniqueTags:"uniqueTags",maxLength:"maxLength",placeholder:"placeholder",removable:"removable",disabledItemHandler:"disabledItemHandler",pseudoFocusedSetter:["pseudoFocused","pseudoFocusedSetter"]},outputs:{searchChange:"searchChange"},features:[b([Fe(t),rt(t),Zr(t),Di,lt],[Fs]),I],ngContentSelectors:yc,decls:25,vars:34,consts:[[4,"ngIf"],[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["tuiWrapper","",3,"appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon t-icon-wrapper",4,"ngIf"],[1,"t-wrapper"],[1,"t-absolute-wrapper"],["automation-id","tui-input-tag__placeholder","class","t-placeholder",3,"t-placeholder_raised",4,"ngIf"],[1,"t-scrollbar",3,"hidden"],[1,"t-tags"],[4,"ngIf","ngIfElse"],["text",""],[1,"t-input-wrapper"],[1,"t-ghost"],["automation-id","tui-input-tag__native","type","text",1,"t-native",3,"disabled","id","ngModel","placeholder","readOnly","tuiFocusable","drop.prevent","keydown.arrowLeft","keydown.backspace","keydown.enter.prevent","ngModelChange","paste.prevent"],["focusableElement",""],[1,"t-value-content"],["class","t-icons t-icon-wrapper",4,"ngIf"],["errorIcon",""],[1,"t-icon","t-icon_left","t-textfield-icon","t-icon-wrapper"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["automation-id","tui-input-tag__placeholder",1,"t-placeholder"],["automation-id","tui-input-tag__tag","class","t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent",4,"ngFor","ngForOf","ngForTrackBy"],["automation-id","tui-input-tag__tag",1,"t-tag",3,"disabled","editable","hoverable","leftContent","maxLength","removable","separator","size","status","tuiFocusable","value","edited","keydown.arrowLeft.prevent","keydown.arrowRight.prevent"],["tag",""],["class","t-text",3,"t-text_comma","t-text_disabled","t-text_error","textContent",4,"ngFor","ngForOf"],[1,"t-text",3,"textContent"],[1,"t-icons","t-icon-wrapper"],["automation-id","tui-input-tag__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","","class","t-cleaner",3,"src","click.stop",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","automation-id","tui-input-tag__cleaner","tuiWrapper","",1,"t-cleaner",3,"src","click.stop"],["cleaner",""],["automation-id","tui-input-tag__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"],[1,"t-error-icon",3,"src"]],template:function(e,n){if(e&1&&(oe(bc),v(0,sc,1,0,"ng-container",0),W(1,"async"),m(2,"tui-hosted-dropdown",1),f("openChange",function(r){return n.open=r})("tuiActiveZoneChange",function(r){return n.onActiveZone(r)}),m(3,"div",2),f("click.prevent.silent",function(r){return n.detectRetargetFromLabel(r)})("mousedown",function(r){return n.onMouseDown(r)}),m(4,"div",3),v(5,uc,2,4,"div",4),m(6,"div",5)(7,"div",6),v(8,dc,2,2,"div",7),g(),m(9,"tui-scrollbar",8)(10,"div",9),v(11,pc,2,2,"ng-container",10)(12,hc,1,1,"ng-template",null,11,Te),m(14,"div",12)(15,"div",13),$(16),g(),m(17,"input",14,15),f("drop.prevent",function(r){return n.onDrop(r)})("keydown.arrowLeft",function(r){return n.onFieldKeyDownArrowLeft(r)})("keydown.backspace",function(r){return n.onFieldKeyDownBackspace(r)})("keydown.enter.prevent",function(){return n.onFieldKeyDownEnter()})("ngModelChange",function(r){return n.onInput(r)})("paste.prevent",function(r){return n.onPaste(r)}),g()()(),m(19,"div",16),K(20),g()()(),K(21,1),v(22,Mc,4,3,"div",17),g(),v(23,Tc,1,1,"ng-template",null,18,Te),g()()),e&2){let o=J(13);u("ngIf",Q(1,32,n.hintOptions==null?null:n.hintOptions.change$)),c(2),u("canOpen",n.canOpen)("content",n.datalist||"")("open",n.open),c(1),u("appearance",n.appearance)("disabled",n.computedDisabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),c(2),u("ngIf",n.iconLeft),c(3),u("ngIf",n.hasPlaceholder),c(1),He("max-height",n.computeMaxHeight,"rem"),u("hidden",!n.expandable),c(1),F("t-tags_empty",(!n.focused||n.inputHidden)&&!(n.value!=null&&n.value.length)),c(1),u("ngIf",n.labelOutside)("ngIfElse",o),c(3),F("t-input-wrapper_collapsed",n.computedDisabled||n.readOnly||n.inputHidden),c(2),Ui(n.search),c(1),F("t-native_hidden",n.inputHidden),u("disabled",n.computedDisabled)("id",n.id)("ngModel",n.search)("placeholder",n.placeholder)("readOnly",n.readOnly||n.inputHidden)("tuiFocusable",n.computedFocusable),H("maxLength",n.maxLength),c(5),u("ngIf",n.hasRightIcons)}},dependencies:[Oe,_e,Vt,Zs,Qn,ee,Ie,$e,Z,Jt,ut,tt,it,Re,fe],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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%]{font:var(--tui-font-text-s);color:var(--tui-text-01);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;-moz-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);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{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.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-03);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}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[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=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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%], .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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-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;-webkit-padding-end:.25rem;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;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);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-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._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-03)}[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-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}.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}._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%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}[_nghost-%COMP%]{cursor:text}._expandable[_nghost-%COMP%]{height:auto;max-height:none}._disabled[_nghost-%COMP%]{pointer-events:none}._readonly[_nghost-%COMP%]{cursor:default}[data-size=m][_nghost-%COMP%]{line-height:1rem}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-scrollbar[_ngcontent-%COMP%]{-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%;scroll-behavior:smooth}[_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%], ._label-outside._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{margin:0}[data-size=s]._icon-left[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{-webkit-margin-start:.25rem;margin-inline-start:.25rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1rem solid transparent}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-scrollbar[_ngcontent-%COMP%]{border-top:1.25rem solid transparent}.t-tags[_ngcontent-%COMP%]{display:flex;-webkit-padding-start:.25rem;padding-inline-start:.25rem}.t-tags_expandable[_ngcontent-%COMP%]{overflow:hidden}.t-tags_empty[_ngcontent-%COMP%]{height:0}._expandable[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{flex-wrap:wrap;white-space:normal;overflow:hidden}._readonly[_nghost-%COMP%] .t-tags[_ngcontent-%COMP%]{pointer-events:none}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%]:not(._label-outside) .t-tags[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{align-items:flex-start}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}[data-size=s][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-icon-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-absolute-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center}[data-size=m][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-absolute-wrapper[_ngcontent-%COMP%]{height:var(--tui-height-l)}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;padding:0;box-sizing:border-box}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-s);padding:calc((var(--tui-height-s) - 1.5rem) / 2) 0}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:var(--tui-height-m);padding:calc((var(--tui-height-m) - var(--tui-height-xs) - .25rem) / 2) 0}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - var(--tui-height-s) - .25rem) / 2) 0}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-m) - 2rem) / 2) 0}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-wrapper[_ngcontent-%COMP%]{padding:calc((var(--tui-height-l) - 2.5rem) / 2) 0}.t-tag[_ngcontent-%COMP%]{margin:.125rem .5rem .125rem -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem;max-width:100%;flex-shrink:0}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}.t-text[_ngcontent-%COMP%]:after{content:",\\a0"}.t-text_disabled[_ngcontent-%COMP%]{color:var(--tui-text-03)}.t-text_error[_ngcontent-%COMP%]{color:var(--tui-negative)}.t-text[_ngcontent-%COMP%]:not(.t-text_comma):last-of-type:after{content:""}[_nghost-%COMP%]:not(._expandable) .t-text[_ngcontent-%COMP%]{white-space:nowrap}.t-input-wrapper[_ngcontent-%COMP%], .t-value-content[_ngcontent-%COMP%]{position:relative;display:flex;flex:1;max-width:100%}[data-size=s][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:1.5rem}[data-size=m][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=m][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-xs) + 2 * .125rem)}[data-size=l][_nghost-%COMP%] .t-input-wrapper[_ngcontent-%COMP%], [data-size=l][_nghost-%COMP%] .t-value-content[_ngcontent-%COMP%]{min-height:calc(var(--tui-height-s) + 2 * .125rem)}[_nghost-%COMP%]:not(._label-outside) .t-input-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%]:not(._label-outside) .t-value-content[_ngcontent-%COMP%]{min-height:1rem}.t-input-wrapper_collapsed[_ngcontent-%COMP%]{flex:0;-webkit-margin-start:-.5rem;margin-inline-start:-.5rem}.t-value-content[_ngcontent-%COMP%]:empty{display:none}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip;min-width:.125rem}[_nghost-%COMP%]:not(._expandable) .t-ghost[_ngcontent-%COMP%]{min-width:2rem}.t-native[_ngcontent-%COMP%]{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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;padding:0;cursor:inherit}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-native_hidden[_ngcontent-%COMP%]{opacity:0;text-indent:-10em}.t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-native[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03-night)}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:-moz-read-only)::placeholder{opacity:1}._focused[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]:not(:read-only)::placeholder{opacity:1}.t-error-icon[_ngcontent-%COMP%]{display:block;color:var(--tui-error-fill);width:1rem;height:1rem}'],changeDetection:0}),t})(),el=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({providers:[Hr],imports:[[N,nt,re,dt,Nt,ri,be,yi,Xn,Kn,qs,We]]}),t})();var Ic=["type","range","tuiSlider",""];var kc={size:"m",trackColor:"var(--tui-base-03)"},Ec=X(kc);var ft=class{constructor(i,e,n,o,r,l){var d;this.control=i,this.options=n,this.el=o,this.userAgent=r,this.injector=l,this.size=this.options.size,this.segments=1,i instanceof Re&&((d=i.valueChanges)===null||d===void 0||d.pipe(on(e),Zo(1)).subscribe())}get min(){return Number(this.el.nativeElement.min)}get max(){return Number(this.el.nativeElement.max||100)}get step(){return Number(this.el.nativeElement.step)||1}get value(){let{el:i,control:e,hasKeySteps:n}=this;return!n&&e instanceof Re?e.viewModel:Number(i.nativeElement.value)||0}set value(i){this.el.nativeElement.value="".concat(i)}get valuePercentage(){return 100*(this.value-this.min)/(this.max-this.min)||0}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return ur(rr,this.userAgent)}get hasKeySteps(){return!!this.injector.get(Sc,null)}};ft.\u0275fac=function(i){return new(i||ft)(s(we,10),s(Ce),s(Ec),s(E),s(an),s(ji))};ft.\u0275cmp=k({type:ft,selectors:[["input","type","range","tuiSlider",""]],hostVars:9,hostBindings:function(i,e){i&1&&f("input",function(){return 0}),i&2&&(H("data-size",e.size),He("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),F("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:Ic,decls:0,vars:0,template:function(i,e){},styles:["[_nghost-%COMP%]{display:block;width:100%;color:var(--tui-primary);cursor:pointer}[_nghost-%COMP%]:active{cursor:ew-resize}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:auto}[_nghost-%COMP%]:not(._old-edge){-webkit-appearance:none;-moz-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%]:not(._old-edge)::-webkit-slider-container{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-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 .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.375rem,0;background-size:calc(100% - 1rem),calc(100% - 1rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-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-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width)),linear-gradient(to right,currentColor var(--tui-slider-fill-percentage),transparent var(--tui-slider-fill-percentage));background-position-x:0,.125rem,0;background-size:calc(100% - .5rem),calc(100% - .5rem),auto}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-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 .625rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.375rem;background-size:calc(100% - 1rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-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-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.125rem;background-size:calc(100% - .5rem)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem;margin-top:-.4375rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem;margin-top:-.1875rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:1rem;width:1rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border:none;border-radius:50%;height:.5rem;width:.5rem}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{cursor:ew-resize}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover{background:var(--tui-primary-hover)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:active{background:var(--tui-primary-active)}:focus-visible[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{box-shadow:0 0 0 2px inset var(--tui-focus)}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{border-radius:inherit}[_nghost-%COMP%]:not(._old-edge)::-moz-range-progress{height:.125rem;background:currentColor;border-top-right-radius:0;border-bottom-right-radius:0}._old-edge[_nghost-%COMP%]::-ms-thumb{background:currentColor;border-radius:50%}._old-edge[_nghost-%COMP%]::-ms-fill-lower{background:currentColor}._old-edge[_nghost-%COMP%]::-ms-track{background:var(--tui-slider-track-color);border:none}"],changeDetection:0});se([xe],ft.prototype,"hasKeySteps",null);var Sc=(()=>{class t extends un{constructor(e,n,o,r){super(e,n),this.el=o,this.slider=r}get nativeFocusableElement(){return this.computedDisabled?null:this.el.nativeElement}get focused(){return Ee(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=vs(this.slider.valuePercentage,this.keySteps)}writeValue(e){if(e===null)return;let n=St(e,this.min,this.max);this.slider.value=this.transformToNativeValue(n)}getFallbackValue(){return 0}transformToNativeValue(e){let{min:n,max:o}=this.slider;return Cs(e,this.keySteps)*(o-n)/100+n}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(E),s(le(()=>ft)))},t.\u0275dir=y({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(e,n){e&1&&f("input",function(){return n.updateControlValue()})("change",function(){return n.updateControlValue()}),e&2&&(Ke("disabled",n.computedDisabled),H("aria-valuenow",n.safeCurrentValue)("aria-valuemin",n.min)("aria-valuemax",n.max))},inputs:{keySteps:"keySteps"},features:[I]}),t})();var tl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N]]}),t})();var Fc=["focusableElement"];function Ac(t,i){if(t&1&&S(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",e.value)("size",e.loaderSize)}}function Hc(t,i){if(t&1&&S(0,"tui-svg",10),t&2){let e=i.polymorpheusOutlet;u("src",e)}}var il=t=>({$implicit:t});function Rc(t,i){if(t&1&&(m(0,"span",8),v(1,Hc,1,1,"tui-svg",9),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconOn)("polymorpheusOutletContext",pe(2,il,e.size))}}function Lc(t,i){if(t&1&&S(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",!e.value)("size",e.loaderSize)}}function Nc(t,i){if(t&1&&S(0,"tui-svg",12),t&2){let e=i.polymorpheusOutlet;u("src",e)}}function zc(t,i){if(t&1&&(m(0,"span",8),v(1,Nc,1,1,"tui-svg",11),g()),t&2){let e=h();c(1),u("polymorpheusOutlet",e.iconOff)("polymorpheusOutletContext",pe(2,il,e.size))}}var Vc={icons:{toggleOff({$implicit:t}){return t==="m"?"tuiIconToggleOff":"tuiIconToggleOffLarge"},toggleOn({$implicit:t}){return t==="m"?"tuiIconToggleOn":"tuiIconToggleOnLarge"}},appearances:{checked:bt.Primary,unchecked:bt.Secondary},singleColor:!1,showIcons:!1,size:"m"},jc=X(Vc);var nl=(()=>{class t extends un{constructor(e,n,o,r){super(e,n),this.modeDirective=o,this.options=r,this.singleColor=this.options.singleColor,this.showIcons=this.options.showIcons,this.showLoader=!1,this.size=this.options.size}get iconOn(){return this.options.icons.toggleOn}get iconOff(){return this.options.icons.toggleOff}get nativeFocusableElement(){var e,n;return(n=(e=this.focusableElement)===null||e===void 0?void 0:e.nativeElement)!==null&&n!==void 0?n:null}get focused(){return Ee(this.nativeFocusableElement)}get appearance(){return this.singleColor||this.value?this.options.appearances.checked:this.options.appearances.unchecked}get sizeM(){return this.size==="m"}get loaderSize(){return this.sizeM?"xs":"s"}get hostMode(){var e,n;return(n=(e=this.modeDirective)===null||e===void 0?void 0:e.mode)!==null&&n!==void 0?n:null}onChecked(e){this.value=e}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}getFallbackValue(){return!1}}return t.\u0275fac=function(e){return new(e||t)(s(we,10),s(Ce),s(pi,8),s(jc))},t.\u0275cmp=k({type:t,selectors:[["tui-toggle"]],viewQuery:function(e,n){if(e&1&&G(Fc,5),e&2){let o;V(o=j())&&(n.focusableElement=o.first)}},hostVars:4,hostBindings:function(e,n){e&2&&(H("data-size",n.size)("data-mode",n.hostMode),F("_checked",n.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[b([Fe(t),rt(t)]),I],decls:9,vars:16,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly"],[1,"t-toggle"],["class","t-loader",3,"inheritColor","showLoader","size",4,"ngIf"],["class","t-icon-wrapper",4,"ngIf"],[1,"t-circle"],["automation-id","tui-toggle__checkbox","role","switch","type","checkbox",1,"t-checkbox",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-loader",3,"inheritColor","showLoader","size"],[1,"t-icon-wrapper"],["automation-id","tui-toggle__check-icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__check-icon",1,"t-icon",3,"src"],["automation-id","tui-toggle__cancel-icon","class","t-icon t-icon_off",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__cancel-icon",1,"t-icon","t-icon_off",3,"src"]],template:function(e,n){e&1&&(m(0,"div",0)(1,"div",1),v(2,Ac,1,3,"tui-loader",2)(3,Rc,2,4,"span",3),S(4,"div",4),v(5,Lc,1,3,"tui-loader",2)(6,zc,2,4,"span",3),g(),m(7,"input",5,6),f("tuiCheckedChange",function(r){return n.value=r})("tuiFocusedChange",function(r){return n.onFocused(r)})("tuiFocusVisibleChange",function(r){return n.onFocusVisible(r)}),g()()),e&2&&(u("active",n.pseudoActive)("appearance",n.appearance)("disabled",n.computedDisabled)("focus",n.computedFocusVisible)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),c(2),u("ngIf",n.showLoader),c(1),u("ngIf",n.showIcons&&!n.showLoader),c(2),u("ngIf",n.showLoader),c(1),u("ngIf",n.showIcons&&!n.showLoader),c(1),u("disabled",n.disabled)("id",n.id)("tuiFocusable",n.focusable)("tuiChecked",n.value),H("aria-checked",n.value))},dependencies:[On,_e,$e,ee,Z,In,ut,Fn,En],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}[data-size=m][_nghost-%COMP%]{width:2rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:3rem;height:1.5rem}.t-checkbox[_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;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.t-checkbox[_ngcontent-%COMP%]:-webkit-autofill, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-checkbox[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.t-toggle[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}[data-size=m][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:3rem;height:1rem;transform:translate(-1rem)}[data-size=l][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:4.5rem;height:1.5rem;transform:translate(-1.5rem)}._checked[_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{transform:translate(0)}.t-circle[_ngcontent-%COMP%]{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}._disabled[_nghost-%COMP%] .t-circle_light[_ngcontent-%COMP%]{opacity:.24}[data-size=m][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:.75rem;height:.75rem}[data-size=l][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:1rem;height:1rem}._disabled[_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{background-color:var(--tui-base-01)}.t-loader[_ngcontent-%COMP%]{min-width:auto}[_nghost-%COMP%]:not(._checked) .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-06)}[_nghost-%COMP%]:not(._checked)._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-05)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:.75rem;margin:0 .2rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:1rem;margin:0 .25rem}.t-icon-wrapper[_ngcontent-%COMP%]{display:flex}.t-icon[_ngcontent-%COMP%]{opacity:.8}.t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-06)}._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-05)}[data-mode=onDark][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[data-mode=onLight][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{margin:0 .125rem;width:1.5rem;height:1.5rem}[_nghost-%COMP%]:hover .t-icon[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),t})(),ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=M({type:t}),t.\u0275inj=C({imports:[[N,An,dt,_i,Sn,kn,We,be,Dn,re]]}),t})();function Bc(t,i){if(t&1&&(m(0,"tui-checkbox-labeled",16),$(1),g()),t&2){let e=i.$implicit,n=h();u("ngModel",e===n.labels[1]),c(1),ce(" ",e," ")}}function Uc(t,i){if(t&1){let e=U();m(0,"div",17)(1,"div",18),S(2,"img",19),m(3,"h3"),$(4,"Aleksandr Inkin"),g()(),m(5,"div",20)(6,"button",21),f("click",function(){let r=w(e).$implicit;return x(r.complete())}),g(),m(7,"button",22),f("click",function(){let r=w(e).$implicit;return x(r.complete())}),g()()()}}function $c(t,i){if(t&1){let e=U();m(0,"tui-push",23),f("close",function(){w(e);let o=h();return x(o.toggle(!1))}),S(1,"tui-svg",24),$(2," I have a bad feeling about this... "),m(3,"button",25),f("click",function(){w(e);let o=h();return x(o.toggle(!1))}),$(4," Fortune "),g(),m(5,"button",26),f("click",function(){w(e);let o=h();return x(o.toggle(!1))}),$(6," Glory "),g()()}}var XM=(()=>{let i=class i{constructor(){this.dialogs=lo(xn),this.cd=lo(Ce),this.labels=["New","Read","Archived","Junk"],this.tags=["Angular","Open source"],this.date=null,this.notification=!1,this.slider=80}onDay(n){this.date=n}call(n){this.dialogs.open(n,{appearance:"call",closeable:!1,dismissible:!1}).subscribe()}toggle(n){this.notification=n,this.cd.detectChanges()}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=k({type:i,selectors:[["home"]],standalone:!0,features:[tr],decls:24,vars:11,consts:[[1,"title"],["tuiHintContent","Customizable for any use case",1,"tui-space_vertical-10",3,"tuiTextfieldLabelOutside","ngModel","ngModelChange"],[1,"flex"],[1,"date"],["required","",3,"ngModel","ngModelChange","click.capture.stop","keydown.capture.stop","mousedown.capture.stop"],[1,"calendar",3,"tuiDropdownOpen","value","dayClick","event.prevent.silent"],["size","l","class","tui-space_bottom-4",3,"ngModel",4,"ngFor","ngForOf"],[1,"controls"],["size","l",1,"tui-space_right-3",3,"showIcons","ngModel","ngModelChange"],["size","m","step","any","tuiSlider","","type","range",1,"tui-space_vertical-6",3,"max","ngModel","ngModelChange"],[1,"icons"],["appearance","","icon","tuiIconVolumeXLarge","shape","rounded","title","Mute speaker","tuiIconButton","","type","button",1,"button",3,"click"],["appearance","","icon","tuiIconMicOffLarge","shape","rounded","title","Mute microphone","tuiIconButton","","type","button",1,"button"],["appearance","","icon","tuiIconPhoneForwardedLarge","shape","rounded","title","Forward call","tuiIconButton","","type","button",1,"error",3,"click"],["callTemplate",""],["heading","Indiana Jones","type","Dr. Henry Walton Jones, Jr.",3,"close",4,"tuiPush"],["size","l",1,"tui-space_bottom-4",3,"ngModel"],[1,"call","gradient-border"],[1,"person"],["alt","author","loading","lazy","src","https://avatars.githubusercontent.com/u/11832552"],[1,"buttons"],["appearance","custom","iconRight","tuiIconPhone","size","m","tuiIconButton","",1,"missed",3,"click"],["appearance","custom","iconRight","tuiIconPhone","size","m","tuiIconButton","",1,"income",3,"click"],["heading","Indiana Jones","type","Dr. Henry Walton Jones, Jr.",3,"close"],["src","tuiIconMessageSquareLarge"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"]],template:function(o,r){if(o&1){let l=U();m(0,"h2",0),$(1," Dozens of "),S(2,"br"),$(3," components\n"),g(),m(4,"tui-input-tag",1),f("ngModelChange",function(p){return r.tags=p}),g(),m(5,"div",2)(6,"div",3)(7,"tui-input-date",4),f("ngModelChange",function(p){return r.date=p})("click.capture.stop",function(){return 0})("keydown.capture.stop",function(){return 0})("mousedown.capture.stop",function(){return 0}),$(8," Choose date "),g(),m(9,"tui-calendar",5),f("dayClick",function(p){return r.onDay(p)})("event.prevent.silent",function(){return 0}),g()(),m(10,"div"),v(11,Bc,2,2,"tui-checkbox-labeled",6),g(),m(12,"div",7)(13,"label")(14,"tui-toggle",8),f("ngModelChange",function(p){return r.notification=p}),g(),$(15," Push notification "),g(),m(16,"input",9),f("ngModelChange",function(p){return r.slider=p}),g(),m(17,"div",10)(18,"button",11),f("click",function(){return r.slider=0}),g(),S(19,"button",12),m(20,"button",13),f("click",function(){w(l);let p=J(22);return x(r.call(p))}),g()()()(),v(21,Uc,8,0,"ng-template",null,14,Te)(23,$c,7,0,"tui-push",15)}o&2&&(c(4),u("tuiTextfieldLabelOutside",!0)("ngModel",r.tags),c(3),u("ngModel",r.date),c(2),u("tuiDropdownOpen",!1)("value",r.date),c(2),u("ngForOf",r.labels),c(3),u("showIcons",!0)("ngModel",r.notification),c(2),u("max",140)("ngModel",r.slider),c(7),u("tuiPush",r.notification))},dependencies:[N,Jt,nt,tt,nr,it,or,Re,el,Js,ol,nl,Gn,Yn,Wn,Ao,Xs,Je,Qs,zs,Ns,wn,Pn,Un,Ut,tl,ft,be,_e,da,sa,la,ua,gi,hi,Vn,ki],styles:['.title{font-size:3.5rem;line-height:4.0625rem;margin:0}.t-overlay{display:none!important}.flex{display:flex}.date{width:18rem;margin-right:2.8125rem}.calendar{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;border-radius:var(--tui-radius-m);border:.0625rem solid var(--tui-base-03);margin-top:.25rem;width:18rem;box-sizing:border-box;height:auto}.controls{flex:1;margin-left:2.8125rem}.icons{display:flex;justify-content:space-between}.button[data-size][data-shape],.error[data-size][data-shape]{transition-property:color,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-primary)}.button[data-size][data-shape]:hover,.error[data-size][data-shape]:hover,.button[data-size][data-shape]:active,.error[data-size][data-shape]:active{background:var(--tui-base-03);color:var(--tui-primary-hover)}.error[data-size][data-shape]{color:var(--tui-negative)}.error[data-size][data-shape]:hover,.error[data-size][data-shape]:active{color:var(--tui-negative-hover)}tui-dialog[data-appearance=call][data-size]{border-radius:.25rem;width:25rem;padding:0;border:none;margin:1.25rem auto}tui-dialog[data-appearance=call][data-size]>.t-content{padding:.5rem 1rem;box-shadow:0 0 .1875rem #1f1f1f;--border-width: .1875rem}tui-dialog[data-appearance=call][data-size]>.t-content:after{position:absolute;content:"";top:calc(-1 * var(--border-width));left:calc(-1 * var(--border-width));z-index:-1;width:calc(100% + var(--border-width) * 2);height:calc(100% + var(--border-width) * 2);background:linear-gradient(60deg,hsl(224,85%,66%),hsl(269,85%,66%),hsl(314,85%,66%),hsl(359,85%,66%),hsl(44,85%,66%),hsl(89,85%,66%),hsl(134,85%,66%),hsl(179,85%,66%));background-size:300% 300%;background-position:0 50%;border-radius:calc(2 * var(--border-width));animation:moveGradient 4s alternate infinite}tui-dialog[data-appearance=call][data-size]>.t-filler,tui-dialog[data-appearance=call][data-size]:after{display:none}tui-dialog[data-appearance=call][data-size] .call{display:flex;align-items:center;justify-content:space-between}tui-dialog[data-appearance=call][data-size] .person{display:flex;align-items:center;gap:.625rem}tui-dialog[data-appearance=call][data-size] .person img{width:2.25rem;border-radius:.625rem;border:.0625rem solid var(--tui-base-05)}tui-dialog[data-appearance=call][data-size] .missed,tui-dialog[data-appearance=call][data-size] .income{border-radius:50%;color:#fff}tui-dialog[data-appearance=call][data-size] .missed [data-appearance=custom]{background:#d23a47;transform:rotate(135deg)}tui-dialog[data-appearance=call][data-size] .income [data-appearance=custom]{background:#27bb64}tui-dialog[data-appearance=call][data-size] .buttons{display:flex;gap:.625rem}@keyframes moveGradient{50%{background-position:100% 50%}}\n'],encapsulation:2,changeDetection:0});let t=i;return t})();export{XM as HomeComponent}; diff --git a/index.html b/index.html index f05f69e5..0cf0d23c 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@

Dozens of
components -

Angular
Open source
November
Mon
Tue
Wed
Thu
Fri
Sat
Sun
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
- +
Angular
Open source
November
Mon
Tue
Wed
Thu
Fri
Sat
Sun
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
+ - \ No newline at end of file + \ No newline at end of file diff --git a/main-JIEOFJ2G.js b/main-7P4N5VG3.js similarity index 99% rename from main-JIEOFJ2G.js rename to main-7P4N5VG3.js index 064ae3b7..9714a281 100644 --- a/main-JIEOFJ2G.js +++ b/main-7P4N5VG3.js @@ -1 +1 @@ -import{$ as k,$a as $,Aa as F,B as y,Ba as T,Bc as te,Ca as jt,Cb as U,Cc as N,Da as b,Dc as G,Ea as Ft,Ec as ee,F as ft,Fc as Z,G as m,Gc as ie,Hc as oe,I as R,Ia as D,Ic as ne,Ja as wt,Jc as W,Je as De,K as g,Ka as xt,L as d,M as gt,Ma as w,Mb as Zt,Na as L,Nc as re,Ne as Oe,Oa as Pt,Oc as Y,P as ot,Pc as se,Q as nt,Qb as Wt,R as j,Sb as Yt,Sc as h,Va as Rt,W as vt,Wa as Nt,Wd as he,X as ht,Xa as O,Y as Tt,Ya as Et,Z as _t,Za as I,Zb as Kt,_ as rt,_a as x,_b as qt,a as mt,ab as _,ac as Jt,ba as st,bb as kt,ca as yt,cb as Bt,cd as le,da as Ct,db as Lt,dd as ae,ea as Mt,eb as $t,ed as K,fa as v,fb as Ut,fd as ce,ga as r,gb as Vt,gd as q,ha as C,hb as zt,id as pe,j as E,ja as Dt,jd as ue,k as P,kd as me,l as A,la as Ot,ld as J,ma as s,md as de,me as Te,na as It,nd as fe,oa as B,pd as ge,pe as _e,qa as a,qb as Gt,qd as ve,qe as ye,ra as p,rb as lt,s as dt,sa as c,sb as at,sc as Xt,se as Ce,ta as f,tb as ct,ua as bt,ub as pt,va as Ht,vc as V,wa as M,wc as z,xa as St,ya as At,zc as Qt,ze as Me}from"./chunk-B52ZPIL7.js";function Ue(t,i){if(t&1&&(M(0,3),w(1,"tuiMapper")),t&2){let e=i.$implicit,o=T(2);s("ngComponentOutlet",e.component.component)("ngComponentOutletInjector",Pt(1,2,e,o.mapper))}}function Ve(t,i){if(t&1&&(p(0,"div",1),a(1,Ue,2,5,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0),v(1),s("ngForOf",e)}}var Ie=(()=>{class t{constructor(e,o,n,l){this.allAlerts=e,this.injector=o,this.destroy$=n,this.cdr=l,this.alerts=[],this.trackBy=u=>u,this.mapper=u=>Tt.create({providers:[{provide:Xt,useValue:u}],parent:this.injector})}ngOnInit(){A(this.allAlerts).pipe(y(this.destroy$)).subscribe(e=>{this.alerts=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(ne),r(vt),r(h,2),r(C))},t.\u0275cmp=g({type:t,selectors:[["tui-alert-host"]],features:[D([h])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(e,o){e&1&&a(0,Ve,2,2,"div",0),e&2&&s("ngForOf",o.alerts)("ngForTrackBy",o.trackBy)},dependencies:[I,Et,le],styles:["tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\n"],encapsulation:2,data:{animation:[U]}}),t})(),be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,ae]]}),t})();var He=(()=>{class t{constructor(e,o,n){this.doc=e,this.el=o,this.renderer=n,this.activeElement=Kt(this.doc),Promise.resolve().then(()=>{this.el.nativeElement.focus()})}onBlur(){this.renderer.removeAttribute(this.el.nativeElement,"tabIndex")}onFocusIn(e){let{nativeElement:o}=this.el;if(Wt(o,e))return;let n=Jt({initial:o,root:o});n&&n.focus()}ngOnDestroy(){qt(this.doc),Promise.resolve().then(()=>{Yt(this.activeElement)&&this.activeElement.focus()})}}return t.\u0275fac=function(e){return new(e||t)(r(O),r(yt),r(Mt))},t.\u0275dir=gt({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(e,o){e&1&&F("blur",function(){return o.onBlur()})("focusin.silent",function(l){return o.onFocusIn(l.target)},!1,k)}}),t})(),Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({}),t})();function Ge(t,i){t&1&&M(0)}function Ze(t,i){t&1&&f(0,"tui-scroll-controls",5)}function We(t,i){if(t&1&&(p(0,"section",2),a(1,Ge,1,0,"ng-container",3)(2,Ze,1,0,"tui-scroll-controls",4),c()),t&2){let e=i.$implicit,o=T();s("@host",void 0),Ot("aria-labelledby",e.id),v(1),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",e),v(1),s("ngIf",!o.isMobile)}}function Ye(t,i){if(t&1){let e=St();p(0,"div",6),F("transitionend",function(n){let u=ot(e).tuiLet,S=T();return nt(S.onDialog(n,!!S.dialogs.length,!!u))})("popstate",function(){let l=ot(e).tuiLet,u=T();return nt(u.closeLast(u.dialogs,!!l))},!1,k),c()}if(t&2){let e=T();B("t-overlay_visible",e.dialogs.length)}}var Ke=Zt(E(!1)),ut={label:"ignoreMe"},qe=t=>(t==null?void 0:t.label)===ut.label,Ae=(()=>{class t{constructor(e,o,n,l,u,S,tt,et){this.isMobile=e,this.isDialogClosesOnBack$=o,this.dialogsByType=n,this.historyRef=l,this.titleService=u,this.destroy$=S,this.cdr=tt,this.doc=et,this.dialogs=[]}ngOnInit(){A(this.dialogsByType).pipe(P(e=>[].concat(...e).sort((o,n)=>o.createdAt-n.createdAt)),y(this.destroy$)).subscribe(e=>{this.dialogs=e,this.cdr.markForCheck(),this.doc.documentElement.classList.toggle("t-overscroll-none",!!e.length)})}closeLast(e,o){if(!o)return;let[n]=e.slice(-1);n&&(e.length>1&&this.historyRef.pushState(ut,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:e},o,n){!n||e!=="letter-spacing"||(o?this.historyRef.pushState(ut,this.titleService.getTitle()):qe(this.historyRef.state)&&this.historyRef.back())}}return t.\u0275fac=function(e){return new(e||t)(r(Y),r(Ke),r(W),r(Qt),r($t),r(h,2),r(C),r(O))},t.\u0275cmp=g({type:t,selectors:[["tui-dialog-host"]],features:[D([h])],decls:3,vars:4,consts:[["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","transitionend","popstate",4,"tuiLet"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["class","t-scrollbars",4,"ngIf"],[1,"t-scrollbars"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(e,o){e&1&&(a(0,We,3,5,"section",0)(1,Ye,1,2,"div",1),w(2,"async")),e&2&&(s("ngForOf",o.dialogs),v(1),s("tuiLet",L(2,2,o.isDialogClosesOnBack$)))},dependencies:[K,I,He,de,ce,V,x,me,$],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:none;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.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{background:transparent;width:0;height:0}.t-dialog[_ngcontent-%COMP%]{bottom:auto;height:100%}.t-overlay[_ngcontent-%COMP%]{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration, .3s),letter-spacing .01s;background:rgba(0,0,0,.75);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}"],data:{animation:[Gt("host",[at(":enter",[lt({overflow:"clip"}),pt(":scope > *",[ct()],{optional:!0})]),at(":leave",[lt({overflow:"clip"}),pt(":scope > *",[ct()],{optional:!0})])])]}}),t})(),je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,z,fe,Se,J,q]]}),t})();function Xe(t,i){t&1&&M(0)}var Qe=t=>({$implicit:t});function ti(t,i){if(t&1&&(p(0,"div",1),a(1,Xe,1,0,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0)("tuiActiveZoneParent",e.activeZone||null),v(1),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",xt(4,Qe,e))}}var Fe=(()=>{class t{constructor(e,o,n){this.hints$=e,this.destroy$=o,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe(y(this.destroy$)).subscribe(e=>{this.hints=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(ye),r(h,2),r(C))},t.\u0275cmp=g({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[D([h])],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(e,o){e&1&&a(0,ti,2,6,"div",0),e&2&&s("ngForOf",o.hints)},dependencies:[I,pe,V],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[U]}}),t})(),we=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,z,ue]]}),t})();function ii(t,i){if(t&1&&(j(),f(0,"defs",4)),t&2){let e=i.$implicit;s("innerHTML",e,st)}}function oi(t,i){if(t&1&&(j(),bt(0),a(1,ii,1,1,"defs",3),Ht()),t&2){let e=T();v(1),s("ngForOf",e.items)}}function ni(t,i){if(t&1&&(j(),p(0,"defs"),f(1,"svg",6),c()),t&2){let e=i.$implicit;v(1),s("outerHTML",e,st)}}function ri(t,i){if(t&1&&(j(),a(0,ni,2,1,"defs",5)),t&2){let e=T();s("ngForOf",e.items)}}var xe=(()=>{class t{constructor(e,o,n,l){this.svgService=e,this.cdr=o,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!kt(l)}ngOnInit(){this.svgService.items$.pipe(y(this.destroy$)).subscribe(e=>{this.items=e.values(),this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(Ce),r(C),r(h,2),r(_t))},t.\u0275cmp=g({type:t,selectors:[["tui-svg-defs-host"]],features:[D([h])],decls:4,vars:2,consts:[["version","1.1",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(e,o){if(e&1&&(j(),p(0,"svg",0),a(1,oi,2,1,"ng-container",1)(2,ri,1,1,"ng-template",null,2,Rt),c()),e&2){let n=Ft(3);v(1),s("ngIf",o.isBrowser)("ngIfElse",n)}},dependencies:[x,I],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,J]]}),t})();function li(t,i){t&1&&f(0,"tui-scroll-controls",2)}var ai=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],ci=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"],Re=(()=>{class t{constructor(e,o,n,l,u,S,{body:tt},et){this.duration=e,this.dialogs=o,this.isMobile=n,this.breakpoint=l,this.isIOS=u,this.isAndroid=S,this.isMobileRes$=this.breakpoint.pipe(P(it=>it==="mobile")),this.scrollbars$=this.dialogs.length&&!this.isMobile?A([...this.dialogs]).pipe(P(it=>!it.some(({length:$e})=>$e)),dt(0)):E(!this.isMobile),tt.setAttribute("data-tui-theme",et.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(r(he),r(W),r(Y),r(_e),r(re),r(se),r(O),r(Te))},t.\u0275cmp=g({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.53.0"],hostVars:7,hostBindings:function(e,o){e&1&&F("$.class._mobile",function(){return o.isMobileRes$}),e&2&&(At("$.class._mobile",o.isMobileRes$),It("--tui-duration",o.duration,"ms"),B("_ios",o.isIOS)("_android",o.isAndroid))},ngContentSelectors:ci,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(e,o){e&1&&(jt(ai),a(0,li,1,0,"tui-scroll-controls",0),w(1,"async"),f(2,"tui-svg-defs-host"),p(3,"tui-dropdown-host")(4,"div",1),b(5),c(),b(6,1),f(7,"tui-dialog-host"),b(8,2),f(9,"tui-alert-host"),b(10,3),c(),b(11,4),f(12,"tui-hints-host"),b(13,5)),e&2&&s("ngIf",L(1,1,o.scrollbars$))},dependencies:[K,xe,ge,Ae,Ie,Fe,x,$],styles:['@keyframes tuiPresent{to{content:"1"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none;overflow:hidden}\n'],encapsulation:2}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,Me,ve,Pe,we,je,be,q]]}),t})();var Ne=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=g({type:i,selectors:[["app"]],standalone:!0,features:[wt],decls:7,vars:0,consts:[["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(n,l){n&1&&(p(0,"tui-root"),f(1,"router-outlet"),M(2,0)(3,1)(4,2)(5,3)(6,4),c())},dependencies:[Q,Re,Vt],encapsulation:2,changeDetection:0});let t=i;return t})();var pi=(()=>{let i=class i extends Z{constructor(o,n,l,u){super(o,n,l)}ngOnDestroy(){this.flush()}};i.\u0275fac=function(n){return new(n||i)(R(O),R(N),R(G),R(Nt))},i.\u0275prov=ft({token:i,factory:i.\u0275fac});let t=i;return t})();function ui(){return new ee}function mi(t,i,e){return new oe(t,i,e)}var Ee=[{provide:G,useFactory:ui},{provide:Z,useClass:pi},{provide:Ct,useFactory:mi,deps:[Bt,Z,Dt]}],di=[{provide:N,useFactory:()=>new ie},{provide:rt,useValue:"BrowserAnimations"},...Ee],Qo=[{provide:N,useClass:te},{provide:rt,useValue:"NoopAnimations"},...Ee];function ke(){return[...di]}var Be=[{path:"",loadComponent:()=>mt(void 0,null,function*(){return(yield import("./chunk-CJJRYHRM.js")).HomeComponent})}];var Le={providers:[ke(),zt(Be),Ut(),ht(Q,De,Oe)]};Lt(Ne,Le).catch(t=>console.error(t)); +import{$ as k,$a as $,Aa as F,B as y,Ba as T,Bc as te,Ca as jt,Cb as U,Cc as N,Da as b,Dc as G,Ea as Ft,Ec as ee,F as ft,Fc as Z,G as m,Gc as ie,Hc as oe,I as R,Ia as D,Ic as ne,Ja as wt,Jc as W,Je as De,K as g,Ka as xt,L as d,M as gt,Ma as w,Mb as Zt,Na as L,Nc as re,Ne as Oe,Oa as Pt,Oc as Y,P as ot,Pc as se,Q as nt,Qb as Wt,R as j,Sb as Yt,Sc as h,Va as Rt,W as vt,Wa as Nt,Wd as he,X as ht,Xa as O,Y as Tt,Ya as Et,Z as _t,Za as I,Zb as Kt,_ as rt,_a as x,_b as qt,a as mt,ab as _,ac as Jt,ba as st,bb as kt,ca as yt,cb as Bt,cd as le,da as Ct,db as Lt,dd as ae,ea as Mt,eb as $t,ed as K,fa as v,fb as Ut,fd as ce,ga as r,gb as Vt,gd as q,ha as C,hb as zt,id as pe,j as E,ja as Dt,jd as ue,k as P,kd as me,l as A,la as Ot,ld as J,ma as s,md as de,me as Te,na as It,nd as fe,oa as B,pd as ge,pe as _e,qa as a,qb as Gt,qd as ve,qe as ye,ra as p,rb as lt,s as dt,sa as c,sb as at,sc as Xt,se as Ce,ta as f,tb as ct,ua as bt,ub as pt,va as Ht,vc as V,wa as M,wc as z,xa as St,ya as At,zc as Qt,ze as Me}from"./chunk-B52ZPIL7.js";function Ue(t,i){if(t&1&&(M(0,3),w(1,"tuiMapper")),t&2){let e=i.$implicit,o=T(2);s("ngComponentOutlet",e.component.component)("ngComponentOutletInjector",Pt(1,2,e,o.mapper))}}function Ve(t,i){if(t&1&&(p(0,"div",1),a(1,Ue,2,5,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0),v(1),s("ngForOf",e)}}var Ie=(()=>{class t{constructor(e,o,n,l){this.allAlerts=e,this.injector=o,this.destroy$=n,this.cdr=l,this.alerts=[],this.trackBy=u=>u,this.mapper=u=>Tt.create({providers:[{provide:Xt,useValue:u}],parent:this.injector})}ngOnInit(){A(this.allAlerts).pipe(y(this.destroy$)).subscribe(e=>{this.alerts=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(ne),r(vt),r(h,2),r(C))},t.\u0275cmp=g({type:t,selectors:[["tui-alert-host"]],features:[D([h])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(e,o){e&1&&a(0,Ve,2,2,"div",0),e&2&&s("ngForOf",o.alerts)("ngForTrackBy",o.trackBy)},dependencies:[I,Et,le],styles:["tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\n"],encapsulation:2,data:{animation:[U]}}),t})(),be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,ae]]}),t})();var He=(()=>{class t{constructor(e,o,n){this.doc=e,this.el=o,this.renderer=n,this.activeElement=Kt(this.doc),Promise.resolve().then(()=>{this.el.nativeElement.focus()})}onBlur(){this.renderer.removeAttribute(this.el.nativeElement,"tabIndex")}onFocusIn(e){let{nativeElement:o}=this.el;if(Wt(o,e))return;let n=Jt({initial:o,root:o});n&&n.focus()}ngOnDestroy(){qt(this.doc),Promise.resolve().then(()=>{Yt(this.activeElement)&&this.activeElement.focus()})}}return t.\u0275fac=function(e){return new(e||t)(r(O),r(yt),r(Mt))},t.\u0275dir=gt({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(e,o){e&1&&F("blur",function(){return o.onBlur()})("focusin.silent",function(l){return o.onFocusIn(l.target)},!1,k)}}),t})(),Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({}),t})();function Ge(t,i){t&1&&M(0)}function Ze(t,i){t&1&&f(0,"tui-scroll-controls",5)}function We(t,i){if(t&1&&(p(0,"section",2),a(1,Ge,1,0,"ng-container",3)(2,Ze,1,0,"tui-scroll-controls",4),c()),t&2){let e=i.$implicit,o=T();s("@host",void 0),Ot("aria-labelledby",e.id),v(1),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",e),v(1),s("ngIf",!o.isMobile)}}function Ye(t,i){if(t&1){let e=St();p(0,"div",6),F("transitionend",function(n){let u=ot(e).tuiLet,S=T();return nt(S.onDialog(n,!!S.dialogs.length,!!u))})("popstate",function(){let l=ot(e).tuiLet,u=T();return nt(u.closeLast(u.dialogs,!!l))},!1,k),c()}if(t&2){let e=T();B("t-overlay_visible",e.dialogs.length)}}var Ke=Zt(E(!1)),ut={label:"ignoreMe"},qe=t=>(t==null?void 0:t.label)===ut.label,Ae=(()=>{class t{constructor(e,o,n,l,u,S,tt,et){this.isMobile=e,this.isDialogClosesOnBack$=o,this.dialogsByType=n,this.historyRef=l,this.titleService=u,this.destroy$=S,this.cdr=tt,this.doc=et,this.dialogs=[]}ngOnInit(){A(this.dialogsByType).pipe(P(e=>[].concat(...e).sort((o,n)=>o.createdAt-n.createdAt)),y(this.destroy$)).subscribe(e=>{this.dialogs=e,this.cdr.markForCheck(),this.doc.documentElement.classList.toggle("t-overscroll-none",!!e.length)})}closeLast(e,o){if(!o)return;let[n]=e.slice(-1);n&&(e.length>1&&this.historyRef.pushState(ut,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:e},o,n){!n||e!=="letter-spacing"||(o?this.historyRef.pushState(ut,this.titleService.getTitle()):qe(this.historyRef.state)&&this.historyRef.back())}}return t.\u0275fac=function(e){return new(e||t)(r(Y),r(Ke),r(W),r(Qt),r($t),r(h,2),r(C),r(O))},t.\u0275cmp=g({type:t,selectors:[["tui-dialog-host"]],features:[D([h])],decls:3,vars:4,consts:[["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","transitionend","popstate",4,"tuiLet"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["class","t-scrollbars",4,"ngIf"],[1,"t-scrollbars"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(e,o){e&1&&(a(0,We,3,5,"section",0)(1,Ye,1,2,"div",1),w(2,"async")),e&2&&(s("ngForOf",o.dialogs),v(1),s("tuiLet",L(2,2,o.isDialogClosesOnBack$)))},dependencies:[K,I,He,de,ce,V,x,me,$],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:none;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.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{background:transparent;width:0;height:0}.t-dialog[_ngcontent-%COMP%]{bottom:auto;height:100%}.t-overlay[_ngcontent-%COMP%]{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration, .3s),letter-spacing .01s;background:rgba(0,0,0,.75);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}"],data:{animation:[Gt("host",[at(":enter",[lt({overflow:"clip"}),pt(":scope > *",[ct()],{optional:!0})]),at(":leave",[lt({overflow:"clip"}),pt(":scope > *",[ct()],{optional:!0})])])]}}),t})(),je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,z,fe,Se,J,q]]}),t})();function Xe(t,i){t&1&&M(0)}var Qe=t=>({$implicit:t});function ti(t,i){if(t&1&&(p(0,"div",1),a(1,Xe,1,0,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0)("tuiActiveZoneParent",e.activeZone||null),v(1),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",xt(4,Qe,e))}}var Fe=(()=>{class t{constructor(e,o,n){this.hints$=e,this.destroy$=o,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe(y(this.destroy$)).subscribe(e=>{this.hints=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(ye),r(h,2),r(C))},t.\u0275cmp=g({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[D([h])],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(e,o){e&1&&a(0,ti,2,6,"div",0),e&2&&s("ngForOf",o.hints)},dependencies:[I,pe,V],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[U]}}),t})(),we=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,z,ue]]}),t})();function ii(t,i){if(t&1&&(j(),f(0,"defs",4)),t&2){let e=i.$implicit;s("innerHTML",e,st)}}function oi(t,i){if(t&1&&(j(),bt(0),a(1,ii,1,1,"defs",3),Ht()),t&2){let e=T();v(1),s("ngForOf",e.items)}}function ni(t,i){if(t&1&&(j(),p(0,"defs"),f(1,"svg",6),c()),t&2){let e=i.$implicit;v(1),s("outerHTML",e,st)}}function ri(t,i){if(t&1&&(j(),a(0,ni,2,1,"defs",5)),t&2){let e=T();s("ngForOf",e.items)}}var xe=(()=>{class t{constructor(e,o,n,l){this.svgService=e,this.cdr=o,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!kt(l)}ngOnInit(){this.svgService.items$.pipe(y(this.destroy$)).subscribe(e=>{this.items=e.values(),this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(Ce),r(C),r(h,2),r(_t))},t.\u0275cmp=g({type:t,selectors:[["tui-svg-defs-host"]],features:[D([h])],decls:4,vars:2,consts:[["version","1.1",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(e,o){if(e&1&&(j(),p(0,"svg",0),a(1,oi,2,1,"ng-container",1)(2,ri,1,1,"ng-template",null,2,Rt),c()),e&2){let n=Ft(3);v(1),s("ngIf",o.isBrowser)("ngIfElse",n)}},dependencies:[x,I],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,J]]}),t})();function li(t,i){t&1&&f(0,"tui-scroll-controls",2)}var ai=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],ci=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"],Re=(()=>{class t{constructor(e,o,n,l,u,S,{body:tt},et){this.duration=e,this.dialogs=o,this.isMobile=n,this.breakpoint=l,this.isIOS=u,this.isAndroid=S,this.isMobileRes$=this.breakpoint.pipe(P(it=>it==="mobile")),this.scrollbars$=this.dialogs.length&&!this.isMobile?A([...this.dialogs]).pipe(P(it=>!it.some(({length:$e})=>$e)),dt(0)):E(!this.isMobile),tt.setAttribute("data-tui-theme",et.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(r(he),r(W),r(Y),r(_e),r(re),r(se),r(O),r(Te))},t.\u0275cmp=g({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.53.0"],hostVars:7,hostBindings:function(e,o){e&1&&F("$.class._mobile",function(){return o.isMobileRes$}),e&2&&(At("$.class._mobile",o.isMobileRes$),It("--tui-duration",o.duration,"ms"),B("_ios",o.isIOS)("_android",o.isAndroid))},ngContentSelectors:ci,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(e,o){e&1&&(jt(ai),a(0,li,1,0,"tui-scroll-controls",0),w(1,"async"),f(2,"tui-svg-defs-host"),p(3,"tui-dropdown-host")(4,"div",1),b(5),c(),b(6,1),f(7,"tui-dialog-host"),b(8,2),f(9,"tui-alert-host"),b(10,3),c(),b(11,4),f(12,"tui-hints-host"),b(13,5)),e&2&&s("ngIf",L(1,1,o.scrollbars$))},dependencies:[K,xe,ge,Ae,Ie,Fe,x,$],styles:['@keyframes tuiPresent{to{content:"1"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none;overflow:hidden}\n'],encapsulation:2}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d({type:t}),t.\u0275inj=m({imports:[[_,Me,ve,Pe,we,je,be,q]]}),t})();var Ne=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=g({type:i,selectors:[["app"]],standalone:!0,features:[wt],decls:7,vars:0,consts:[["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(n,l){n&1&&(p(0,"tui-root"),f(1,"router-outlet"),M(2,0)(3,1)(4,2)(5,3)(6,4),c())},dependencies:[Q,Re,Vt],encapsulation:2,changeDetection:0});let t=i;return t})();var pi=(()=>{let i=class i extends Z{constructor(o,n,l,u){super(o,n,l)}ngOnDestroy(){this.flush()}};i.\u0275fac=function(n){return new(n||i)(R(O),R(N),R(G),R(Nt))},i.\u0275prov=ft({token:i,factory:i.\u0275fac});let t=i;return t})();function ui(){return new ee}function mi(t,i,e){return new oe(t,i,e)}var Ee=[{provide:G,useFactory:ui},{provide:Z,useClass:pi},{provide:Ct,useFactory:mi,deps:[Bt,Z,Dt]}],di=[{provide:N,useFactory:()=>new ie},{provide:rt,useValue:"BrowserAnimations"},...Ee],Qo=[{provide:N,useClass:te},{provide:rt,useValue:"NoopAnimations"},...Ee];function ke(){return[...di]}var Be=[{path:"",loadComponent:()=>mt(void 0,null,function*(){return(yield import("./chunk-7TV72ZZQ.js")).HomeComponent})}];var Le={providers:[ke(),zt(Be),Ut(),ht(Q,De,Oe)]};Lt(Ne,Le).catch(t=>console.error(t));