From 2ab4469e5c4dffec2103abdc19a495cb65becdea Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 13 Nov 2023 07:18:46 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20taiga-fa?= =?UTF-8?q?mily/preview-landing-components@f2f576032092c20efe2f2834d74a3cb?= =?UTF-8?q?5baaf35a0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chunk-7TV72ZZQ.js | 1 - chunk-B52ZPIL7.js | 1 - chunk-SPKX7EYJ.js | 1 + chunk-UB3CG7HU.js | 1 + index.html | 6 +++--- main-7P4N5VG3.js | 1 - main-OURZMYTW.js | 1 + 7 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 chunk-7TV72ZZQ.js delete mode 100644 chunk-B52ZPIL7.js create mode 100644 chunk-SPKX7EYJ.js create mode 100644 chunk-UB3CG7HU.js delete mode 100644 main-7P4N5VG3.js create mode 100644 main-OURZMYTW.js diff --git a/chunk-7TV72ZZQ.js b/chunk-7TV72ZZQ.js deleted file mode 100644 index 877644f4..00000000 --- a/chunk-7TV72ZZQ.js +++ /dev/null @@ -1 +0,0 @@ -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/chunk-B52ZPIL7.js b/chunk-B52ZPIL7.js deleted file mode 100644 index c6c58c49..00000000 --- a/chunk-B52ZPIL7.js +++ /dev/null @@ -1 +0,0 @@ -var SE=Object.defineProperty,ME=Object.defineProperties;var TE=Object.getOwnPropertyDescriptors;var js=Object.getOwnPropertySymbols;var Tp=Object.prototype.hasOwnProperty,Ap=Object.prototype.propertyIsEnumerable;var Mp=(e,t,n)=>t in e?SE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))Tp.call(t,n)&&Mp(e,n,t[n]);if(js)for(var n of js(t))Ap.call(t,n)&&Mp(e,n,t[n]);return e},Me=(e,t)=>ME(e,TE(t));var Op=(e,t)=>{var n={};for(var r in e)Tp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&js)for(var r of js(e))t.indexOf(r)<0&&Ap.call(e,r)&&(n[r]=e[r]);return n};var AE=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(u){i(u)}},s=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});var xp=null;var $u=1;function ct(e){let t=xp;return xp=e,t}var Np={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function OE(e){if(!(Gu(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===$u)){if(!e.producerMustRecompute(e)&&!Hu(e)){e.dirty=!1,e.lastCleanEpoch=$u;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=$u}}function Pp(e){return e&&(e.nextProducerIndex=0),ct(e)}function Rp(e,t){if(ct(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Gu(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Hu(e){Vs(e);for(let t=0;t0}function Vs(e){var t,n,r;(t=e.producerNode)!=null||(e.producerNode=[]),(n=e.producerIndexOfThis)!=null||(e.producerIndexOfThis=[]),(r=e.producerLastReadVersion)!=null||(e.producerLastReadVersion=[])}function xE(e){var t,n;(t=e.liveConsumerNode)!=null||(e.liveConsumerNode=[]),(n=e.liveConsumerIndexOfThis)!=null||(e.liveConsumerIndexOfThis=[])}function NE(){throw new Error}var PE=NE;function kp(e){PE=e}function k(e){return typeof e=="function"}function ri(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Us=ri(e=>function(n){e(this),this.message=n?"".concat(n.length," errors occurred during unsubscription:\n").concat(n.map((r,i)=>"".concat(i+1,") ").concat(r.toString())).join("\n ")):"",this.name="UnsubscriptionError",this.errors=n});function Dr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ge=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(k(r))try{r()}catch(o){t=o instanceof Us?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Lp(o)}catch(s){t=t!=null?t:[],s instanceof Us?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Us(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Lp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Dr(n,t)}remove(t){let{_finalizers:n}=this;n&&Dr(n,t),t instanceof e&&t._removeParent(this)}};Ge.EMPTY=(()=>{let e=new Ge;return e.closed=!0,e})();var Wu=Ge.EMPTY;function Bs(e){return e instanceof Ge||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function Lp(e){k(e)?e():e.unsubscribe()}var zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ii={setTimeout(e,t,...n){let{delegate:r}=ii;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ii;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function $s(e){ii.setTimeout(()=>{let{onUnhandledError:t}=zt;if(t)t(e);else throw e})}function bt(){}var jp=(()=>qu("C",void 0,void 0))();function Vp(e){return qu("E",void 0,e)}function Up(e){return qu("N",e,void 0)}function qu(e,t,n){return{kind:e,value:t,error:n}}var _r=null;function oi(e){if(zt.useDeprecatedSynchronousErrorHandling){let t=!_r;if(t&&(_r={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=_r;if(_r=null,n)throw r}}else e()}function Bp(e){zt.useDeprecatedSynchronousErrorHandling&&_r&&(_r.errorThrown=!0,_r.error=e)}var Er=class extends Ge{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Bs(t)&&t.add(this)):this.destination=kE}static create(t,n,r){return new Sn(t,n,r)}next(t){this.isStopped?Zu(Up(t),this):this._next(t)}error(t){this.isStopped?Zu(Vp(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zu(jp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},RE=Function.prototype.bind;function Yu(e,t){return RE.call(e,t)}var Ku=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hs(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hs(r)}else Hs(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hs(n)}}},Sn=class extends Er{constructor(t,n,r){super();let i;if(k(t)||!t)i={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:r!=null?r:void 0};else{let o;this&&zt.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Yu(t.next,o),error:t.error&&Yu(t.error,o),complete:t.complete&&Yu(t.complete,o)}):i=t}this.destination=new Ku(i)}};function Hs(e){zt.useDeprecatedSynchronousErrorHandling?Bp(e):$s(e)}function FE(e){throw e}function Zu(e,t){let{onStoppedNotification:n}=zt;n&&ii.setTimeout(()=>n(e,t))}var kE={closed:!0,next:bt,error:FE,complete:bt};var si=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function Ve(e){return e}function wr(...e){return Qu(e)}function Qu(e){return e.length===0?Ve:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var M=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=jE(n)?n:new Sn(n,r,i);return oi(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=$p(r),new r((i,o)=>{let s=new Sn({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[si](){return this}pipe(...n){return Qu(n)(this)}toPromise(n){return n=$p(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function $p(e){var t;return(t=e!=null?e:zt.Promise)!==null&&t!==void 0?t:Promise}function LE(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function jE(e){return e&&e instanceof Er||LE(e)&&Bs(e)}function Xu(e){return k(e==null?void 0:e.lift)}function N(e){return t=>{if(Xu(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,t,n,r,i){return new Ju(e,t,n,r,i)}var Ju=class extends Er{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ai(){return N((e,t)=>{let n=null;e._refCount++;let r=T(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ci=class extends M{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Xu(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t==null||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ge;let n=this.getSubject();t.add(this.source.subscribe(T(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ge.EMPTY)}return t}refCount(){return ai()(this)}};var Hp=ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class e extends M{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Hp}next(n){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Wu:(this.currentObservers=null,o.push(n),new Ge(()=>{this.currentObservers=null,Dr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new M;return n.source=this,n}}return e.create=(t,n)=>new zs(t,n),e})(),zs=class extends ye{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Wu}};var Re=class extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var uo={now(){return(uo.delegate||Date).now()},delegate:void 0};var Mn=class extends ye{constructor(t=1/0,n=1/0,r=uo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;se.complete());function Ys(e){return e&&k(e.schedule)}function el(e){return e[e.length-1]}function li(e){return k(el(e))?e.pop():void 0}function nn(e){return Ys(el(e))?e.pop():void 0}function Gp(e,t){return typeof el(e)=="number"?e.pop():t}function qp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Ks(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Wp(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cr(e){return this instanceof Cr?(this.v=e,this):new Cr(e)}function Yp(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(p){return new Promise(function(m,y){o.push([f,p,m,y])>1||a(f,p)})})}function a(f,p){try{c(r[f](p))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof Cr?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Zp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Wp=="function"?Wp(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var di=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qs(e){return k(e==null?void 0:e.then)}function Xs(e){return k(e[si])}function Js(e){return Symbol.asyncIterator&&k(e==null?void 0:e[Symbol.asyncIterator])}function ea(e){return new TypeError("You provided ".concat(e!==null&&typeof e=="object"?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}function VE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ta=VE();function na(e){return k(e==null?void 0:e[ta])}function ra(e){return Yp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Cr(n.read());if(i)return yield Cr(void 0);yield yield Cr(r)}}finally{n.releaseLock()}})}function ia(e){return k(e==null?void 0:e.getReader)}function U(e){if(e instanceof M)return e;if(e!=null){if(Xs(e))return UE(e);if(di(e))return BE(e);if(Qs(e))return $E(e);if(Js(e))return Kp(e);if(na(e))return HE(e);if(ia(e))return zE(e)}throw ea(e)}function UE(e){return new M(t=>{let n=e[si]();if(k(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function BE(e){return new M(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$s)})}function HE(e){return new M(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Kp(e){return new M(t=>{GE(e,t).catch(n=>t.error(n))})}function zE(e){return Kp(ra(e))}function GE(e,t){var n,r,i,o;return Ks(this,void 0,void 0,function*(){try{for(n=Zp(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function pt(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function oa(e,t=0){return N((n,r)=>{n.subscribe(T(r,i=>pt(r,e,()=>r.next(i),t),()=>pt(r,e,()=>r.complete(),t),i=>pt(r,e,()=>r.error(i),t)))})}function sa(e,t=0){return N((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qp(e,t){return U(e).pipe(sa(t),oa(t))}function Xp(e,t){return U(e).pipe(sa(t),oa(t))}function Jp(e,t){return new M(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function em(e,t){return new M(n=>{let r;return pt(n,t,()=>{r=e[ta](),pt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>k(r==null?void 0:r.return)&&r.return()})}function aa(e,t){if(!e)throw new Error("Iterable cannot be null");return new M(n=>{pt(n,t,()=>{let r=e[Symbol.asyncIterator]();pt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function tm(e,t){return aa(ra(e),t)}function nm(e,t){if(e!=null){if(Xs(e))return Qp(e,t);if(di(e))return Jp(e,t);if(Qs(e))return Xp(e,t);if(Js(e))return aa(e,t);if(na(e))return em(e,t);if(ia(e))return tm(e,t)}throw ea(e)}function _e(e,t){return t?nm(e,t):U(e)}function I(...e){let t=nn(e);return _e(e,t)}function fi(e,t){let n=k(e)?e:()=>e,r=i=>i.error(n());return new M(t?i=>t.schedule(r,0,i):r)}function Ir(e){return!!e&&(e instanceof M||k(e.lift)&&k(e.subscribe))}var Tn=ri(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function rm(e){return e instanceof Date&&!isNaN(e)}function E(e,t){return N((n,r)=>{let i=0;n.subscribe(T(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:WE}=Array;function qE(e,t){return WE(t)?e(...t):e(t)}function hi(e){return E(t=>qE(e,t))}var{isArray:YE}=Array,{getPrototypeOf:ZE,prototype:KE,keys:QE}=Object;function ca(e){if(e.length===1){let t=e[0];if(YE(t))return{args:t,keys:null};if(XE(t)){let n=QE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function XE(e){return e&&typeof e=="object"&&ZE(e)===KE}function ua(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function la(...e){let t=nn(e),n=li(e),{args:r,keys:i}=ca(e);if(r.length===0)return _e([],t);let o=new M(JE(r,t,i?s=>ua(i,s):Ve));return n?o.pipe(hi(n)):o}function JE(e,t,n=Ve){return r=>{im(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let u=_e(e[c],t),l=!1;u.subscribe(T(r,d=>{o[c]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function im(e,t,n){e?pt(n,e,t):t()}function om(e,t,n,r,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=y=>u{o&&t.next(y),u++;let A=!1;U(n(y,l++)).subscribe(T(t,S=>{i==null||i(S),o?p(S):t.next(S)},()=>{A=!0},void 0,()=>{if(A)try{for(u--;c.length&&um(S)):m(S)}f()}catch(S){t.error(S)}}))};return e.subscribe(T(t,p,()=>{d=!0,f()})),()=>{a==null||a()}}function Le(e,t,n=1/0){return k(t)?Le((r,i)=>E((o,s)=>t(r,o,i,s))(U(e(r,i))),n):(typeof t=="number"&&(n=t),N((r,i)=>om(r,i,e,n)))}function fo(e=1/0){return Le(Ve,e)}function sm(){return fo(1)}function mt(...e){return sm()(_e(e,nn(e)))}function rn(e){return new M(t=>{U(e()).subscribe(t)})}function tl(...e){let t=li(e),{args:n,keys:r}=ca(e),i=new M(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(r?ua(r,a):a),o.complete())}))}});return t?i.pipe(hi(t)):i}var ew=["addListener","removeListener"],tw=["addEventListener","removeEventListener"],nw=["on","off"];function on(e,t,n,r){if(k(n)&&(r=n,n=void 0),r)return on(e,t,n).pipe(hi(r));let[i,o]=ow(e)?tw.map(s=>a=>e[s](t,a,n)):rw(e)?ew.map(am(e,t)):iw(e)?nw.map(am(e,t)):[];if(!i&&di(e))return Le(s=>on(s,t,n))(U(e));if(!i)throw new TypeError("Invalid event target");return new M(s=>{let a=(...c)=>s.next(1o(a)})}function am(e,t){return n=>r=>e[n](t,r)}function rw(e){return k(e.addListener)&&k(e.removeListener)}function iw(e){return k(e.on)&&k(e.off)}function ow(e){return k(e.addEventListener)&&k(e.removeEventListener)}function Xe(e=0,t,n=zp){let r=-1;return t!=null&&(Ys(t)?n=t:r=t),new M(i=>{let o=rm(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Ee(...e){let t=nn(e),n=Gp(e,1/0),r=e;return r.length?r.length===1?U(r[0]):fo(n)(_e(r,t)):De}var sw=new M(bt);var{isArray:aw}=Array;function cm(e){return e.length===1&&aw(e[0])?e[0]:e}function fe(e,t){return N((n,r)=>{let i=0;n.subscribe(T(r,o=>e.call(t,o,i++)&&r.next(o)))})}function nl(...e){return e=cm(e),e.length===1?U(e[0]):new M(cw(e))}function cw(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r{if(n){for(let o=0;o{let r=null,i=!1,o;r=t.subscribe(T(n,void 0,void 0,s=>{o=U(e(s,Gt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function um(e,t,n,r,i){return(o,s)=>{let a=n,c=t,u=0;o.subscribe(T(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Sr(e,t){return k(t)?Le(e,t,1):Le(e,1)}function uw(e){return N((t,n)=>{let r=!1,i=null,o=null,s=()=>{if(o==null||o.unsubscribe(),o=null,r){r=!1;let a=i;i=null,n.next(a)}};t.subscribe(T(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=T(n,s,bt),U(e(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function lm(e,t=br){return N((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{o=u,s=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Zn(e){return N((t,n)=>{let r=!1;t.subscribe(T(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function je(e){return e<=0?()=>De:N((t,n)=>{let r=0;t.subscribe(T(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function pi(){return N((e,t)=>{e.subscribe(T(t,bt))})}function ho(e){return E(()=>e)}function rl(e,t){return t?n=>mt(t.pipe(je(1),pi()),n.pipe(rl(e))):Le((n,r)=>U(e(n,r)).pipe(je(1),ho(n)))}function po(e,t=br){let n=Xe(e,t);return rl(()=>n)}function Te(e,t=Ve){return e=e!=null?e:lw,N((n,r)=>{let i,o=!0;n.subscribe(T(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function lw(e,t){return e===t}function da(e=dw){return N((t,n)=>{let r=!1;t.subscribe(T(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function dw(){return new Tn}function mo(...e){return t=>mt(t,I(...e))}function Kn(e){return N((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Wt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?fe((i,o)=>e(i,o,r)):Ve,je(1),n?Zn(t):da(()=>new Tn))}function mi(e){return e<=0?()=>De:N((t,n)=>{let r=[];t.subscribe(T(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function il(e,t){let n=arguments.length>=2;return r=>r.pipe(e?fe((i,o)=>e(i,o,r)):Ve,mi(1),n?Zn(t):da(()=>new Tn))}function fa(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>De:N((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let u=typeof n=="number"?Xe(n):U(n(o)),l=T(i,()=>{l.unsubscribe(),c()});u.subscribe(l)}else c()},c=()=>{let u=!1;s=r.subscribe(T(i,void 0,()=>{++o{let r,i=!1,o,s=!1,a=!1,c=()=>a&&s&&(n.complete(),!0),u=()=>(o||(o=new ye,U(e(o)).subscribe(T(n,()=>{r?l():i=!0},()=>{s=!0,c()}))),o),l=()=>{a=!1,r=t.subscribe(T(n,void 0,()=>{a=!0,!c()&&u().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}function ha(e,t){return N(um(e,t,arguments.length>=2,!0))}function tt(e={}){let{connector:t=()=>new ye,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a==null||a.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,l=d=!1},m=()=>{let y=s;p(),y==null||y.unsubscribe()};return N((y,A)=>{u++,!d&&!l&&f();let S=c=c!=null?c:t();A.add(()=>{u--,u===0&&!d&&!l&&(a=sl(m,i))}),S.subscribe(A),!s&&u>0&&(s=new Sn({next:H=>S.next(H),error:H=>{d=!0,f(),a=sl(p,n,H),S.error(H)},complete:()=>{l=!0,f(),a=sl(p,r),S.complete()}}),U(y).subscribe(s))})(o)}}function sl(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Sn({next:()=>{r.unsubscribe(),e()}});return U(t(...n)).subscribe(r)}function Ct(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e!=null?e:1/0,tt({connector:()=>new Mn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function al(e){return fe((t,n)=>e<=n)}function cl(e){return N((t,n)=>{let r=!1,i=0;t.subscribe(T(n,o=>(r||(r=!e(o,i++)))&&n.next(o)))})}function le(...e){let t=nn(e);return N((n,r)=>{(t?mt(e,n,t):mt(e,n)).subscribe(r)})}function W(e,t){return N((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(T(r,c=>{i==null||i.unsubscribe();let u=0,l=o++;U(e(c,l)).subscribe(i=T(r,d=>r.next(t?t(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function pe(e){return N((t,n)=>{U(e).subscribe(T(n,()=>n.complete(),bt)),!n.closed&&t.subscribe(n)})}function pa(e,t=!1){return N((n,r)=>{let i=0;n.subscribe(T(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function we(e,t,n){let r=k(e)||t||n?{next:e,error:t,complete:n}:e;return r?N((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(T(o,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),o.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ve}function dm(e,t){return N((n,r)=>{let{leading:i=!0,trailing:o=!1}=t!=null?t:{},s=!1,a=null,c=null,u=!1,l=()=>{c==null||c.unsubscribe(),c=null,o&&(p(),u&&r.complete())},d=()=>{c=null,u&&r.complete()},f=m=>c=U(e(m)).subscribe(T(r,l,d)),p=()=>{if(s){s=!1;let m=a;a=null,r.next(m),!u&&f(m)}};n.subscribe(T(r,m=>{s=!0,a=m,!(c&&!c.closed)&&(i?p():f(m))},()=>{u=!0,!(o&&s&&c&&!c.closed)&&r.complete()}))})}function Qn(e,t=br,n){let r=Xe(e,t);return dm(()=>r,n)}function go(...e){let t=li(e);return N((n,r)=>{let i=e.length,o=new Array(i),s=e.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ve))&&(s=null))},bt));n.subscribe(T(r,c=>{if(a){let u=[c,...o];r.next(t?t(...u):u)}}))})}function be(e){for(let t in e)if(e[t]===be)return t;throw Error("Could not find renamed property on target object.")}function ma(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ot(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ot).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);let t=e.toString();if(t==null)return""+t;let n=t.indexOf("\n");return n===-1?t:t.substring(0,n)}function fm(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var fw=be({__forward_ref__:be});function jn(e){return e.__forward_ref__=jn,e.toString=function(){return ot(this())},e}function ut(e){return Jm(e)?e():e}function Jm(e){return typeof e=="function"&&e.hasOwnProperty(fw)&&e.__forward_ref__===jn}function eg(e){return e&&!!e.\u0275providers}var tg="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(ec(t,n)),this.code=t}};function ec(e,t){let n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}var hw=be({\u0275cmp:be}),pw=be({\u0275dir:be}),mw=be({\u0275pipe:be}),gw=be({\u0275mod:be}),Oa=be({\u0275fac:be}),vo=be({__NG_ELEMENT_ID__:be}),hm=be({__NG_ENV_ID__:be});function Ao(e){return typeof e=="string"?e:e==null?"":String(e)}function vw(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ao(e)}function yw(e,t){let n=t?". Dependency path: ".concat(t.join(" > ")," > ").concat(e):"";throw new w(-200,"Circular dependency in DI detected for ".concat(e).concat(n))}function wd(e,t){let n=t?" in ".concat(t):"";throw new w(-201,!1)}function Dw(e,t){e==null&&_w(t,e,null,"!=")}function _w(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+(r==null?"":" [Expected=> ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function b(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function z(e){return{providers:e.providers||[],imports:e.imports||[]}}function tc(e){return pm(e,rg)||pm(e,ig)}function ng(e){return tc(e)!==null}function pm(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ew(e){let t=e&&(e[rg]||e[ig]);return t||null}function mm(e){return e&&(e.hasOwnProperty(gm)||e.hasOwnProperty(ww))?e[gm]:null}var rg=be({\u0275prov:be}),gm=be({\u0275inj:be}),ig=be({ngInjectableDef:be}),ww=be({ngInjectorDef:be}),J=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(J||{}),Sl;function bw(){return Sl}function Ft(e){let t=Sl;return Sl=e,t}function og(e,t,n){let r=tc(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&J.Optional)return null;if(t!==void 0)return t;wd(ot(e),"Injector")}var An=globalThis;var _=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=b({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return"InjectionToken ".concat(this._desc)}};var Cw={},_o=Cw,Ml="__NG_DI_FLAG__",xa="ngTempTokenPath",Iw="ngTokenPath",Sw=/\n/gm,Mw="\u0275",vm="__source",yo;function gi(e){let t=yo;return yo=e,t}function Tw(e,t=J.Default){if(yo===void 0)throw new w(-203,!1);return yo===null?og(e,void 0,t):yo.get(e,t&J.Optional?null:void 0,t)}function C(e,t=J.Default){return(bw()||Tw)(ut(e),t)}function g(e,t=J.Default){return C(e,nc(t))}function nc(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Tl(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ot(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Sw,"\n "))}function Oo(e){return{toString:e}.toString()}var sg=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(sg||{}),ln=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ln||{}),Ei={},It=[];function ag(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Al(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let p=r&8?f:null;if(p&&ag(p,u,0)!==-1||r&2&&u!==f){if(qt(r))return!1;s=!0}}}}return qt(r)||s}function qt(e){return(e&1)===0}function Lw(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!qt(s)&&(t+=Dm(o,i),i=""),r=s,o=o||!qt(r);n++}return i!==""&&(t+=Dm(o,i)),t}function Hw(e){return e.map($w).join(",")}function zw(e){let t=[],n=[],r=1,i=2;for(;r{var i;let t=mg(e),n=Me(x({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===sg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:(i=e.signals)!=null?i:!1,data:e.data||{},encapsulation:e.encapsulation||ln.Emulated,styles:e.styles||It,_:null,schemas:e.schemas||null,tView:null,id:""});gg(n);let r=e.dependencies;return n.directiveDefs=Em(r,!1),n.pipeDefs=Em(r,!0),n.id=qw(n),n})}function Gw(e){return Tr(e)||dg(e)}function Ww(e){return e!==null}function G(e){return Oo(()=>({type:e.type,bootstrap:e.bootstrap||It,declarations:e.declarations||It,imports:e.imports||It,exports:e.exports||It,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function _m(e,t){if(e==null)return Ei;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function L(e){return Oo(()=>{let t=mg(e);return gg(t),t})}function Ti(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Tr(e){return e[hw]||null}function dg(e){return e[pw]||null}function fg(e){return e[mw]||null}function hg(e){let t=Tr(e)||dg(e)||fg(e);return t!==null?t.standalone:!1}function pg(e,t){let n=e[gw]||null;if(!n&&t===!0)throw new Error("Type ".concat(ot(e)," does not have '\u0275mod' property."));return n}function mg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ei,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||It,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_m(e.inputs,t),outputs:_m(e.outputs),debugInfo:null}}function gg(e){var t;(t=e.features)==null||t.forEach(n=>n(e))}function Em(e,t){if(!e)return null;let n=t?fg:Gw;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ww)}function qw(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483647+1,"c"+t}var vt=0,q=1,Z=2,He=3,Yt=4,Mt=5,On=6,wo=7,Zt=8,wi=9,bi=10,Ae=11,bo=12,wm=13,Ai=14,St=15,xo=16,vi=17,cn=18,rc=19,vg=20,Do=21,ul=22,Ar=23,We=25,Cd=1,yg=2,Ol=6,xn=7,Na=8,Ci=9,Co=10,gt=11;function un(e){return Array.isArray(e)&&typeof e[Cd]=="object"}function kt(e){return Array.isArray(e)&&e[Cd]===!0}function Id(e){return(e.flags&4)!==0}function No(e){return e.componentOffset>-1}function ic(e){return(e.flags&1)===1}function Nn(e){return!!e.template}function Dg(e){return(e[Z]&512)!==0}function Or(e,t){let n=e.hasOwnProperty(Oa);return n?e[Oa]:null}var xl=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function jt(){return _g}function _g(e){return e.type.prototype.ngOnChanges&&(e.setInput=Zw),Yw}jt.ngInherit=!0;function Yw(){let e=wg(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===Ei)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Zw(e,t,n,r){let i=this.declaredInputs[n],o=wg(e)||Kw(e,{previous:Ei,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new xl(c&&c.currentValue,t,a===Ei),e[r]=t}var Eg="__ngSimpleChanges__";function wg(e){return e[Eg]||null}function Kw(e,t){return e[Eg]=t}var bm=null;var sn=function(e,t,n){bm!=null&&bm(e,t,n)},bg="svg",Qw="math";function Kt(e){for(;Array.isArray(e);)e=e[vt];return e}function Xw(e){for(;Array.isArray(e);){if(typeof e[Cd]=="object")return e;e=e[vt]}return null}function Cg(e,t){return Kt(t[e])}function Tt(e,t){return Kt(t[e.index])}function Ig(e,t){return e.data[t]}function oc(e,t){return e[t]}function er(e,t){let n=t[e];return un(n)?n:n[vt]}function Jw(e){return(e[Z]&4)===4}function Sd(e){return(e[Z]&128)===128}function eb(e){return kt(e[He])}function Ii(e,t){return t==null?null:e[t]}function Sg(e){e[vi]=0}function tb(e){e[Z]&1024||(e[Z]|=1024,Sd(e)&&sc(e))}function nb(e,t){for(;e>0;)t=t[Ai],e--;return t}function Mg(e){e[Z]&9216&&sc(e)}function sc(e){let t=e[He];for(;t!==null&&!(kt(t)&&t[Ol]||un(t)&&t[Z]&8192);){if(kt(t))t[Ol]=!0;else if(t[Z]|=8192,!Sd(t))break;t=t[He]}}function rb(e,t){if((e[Z]&256)===256)throw new w(911,!1);e[Do]===null&&(e[Do]=[]),e[Do].push(t)}var Y={lFrame:Rg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ib(){return Y.lFrame.elementDepthCount}function ob(){Y.lFrame.elementDepthCount++}function sb(){Y.lFrame.elementDepthCount--}function Tg(){return Y.bindingsEnabled}function Oi(){return Y.skipHydrationRootTNode!==null}function ab(e){return Y.skipHydrationRootTNode===e}function cb(e){Y.skipHydrationRootTNode=e}function ub(){Y.skipHydrationRootTNode=null}function ie(){return Y.lFrame.lView}function qe(){return Y.lFrame.tView}function dn(e){return Y.lFrame.contextLView=e,e[Zt]}function fn(e){return Y.lFrame.contextLView=null,e}function yt(){let e=Ag();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ag(){return Y.lFrame.currentTNode}function lb(){let e=Y.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function jr(e,t){let n=Y.lFrame;n.currentTNode=e,n.isParent=t}function Md(){return Y.lFrame.isParent}function Td(){Y.lFrame.isParent=!1}function db(){return Y.lFrame.contextLView}function Po(){let e=Y.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function fb(e){return Y.lFrame.bindingIndex=e}function Ro(){return Y.lFrame.bindingIndex++}function hb(e){let t=Y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function pb(){return Y.lFrame.inI18n}function mb(e,t){let n=Y.lFrame;n.bindingIndex=n.bindingRootIndex=e,Nl(t)}function gb(){return Y.lFrame.currentDirectiveIndex}function Nl(e){Y.lFrame.currentDirectiveIndex=e}function Og(e){let t=Y.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function xg(){return Y.lFrame.currentQueryIndex}function Ad(e){Y.lFrame.currentQueryIndex=e}function vb(e){let t=e[q];return t.type===2?t.declTNode:t.type===1?e[Mt]:null}function Ng(e,t,n){if(n&J.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&J.Host);)if(i=vb(o),i===null||(o=o[Ai],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=Y.lFrame=Pg();return r.currentTNode=t,r.lView=e,!0}function Od(e){let t=Pg(),n=e[q];Y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pg(){let e=Y.lFrame,t=e===null?null:e.child;return t===null?Rg(e):t}function Rg(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Fg(){let e=Y.lFrame;return Y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kg=Fg;function xd(){let e=Fg();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yb(e){return(Y.lFrame.contextLView=nb(e,Y.lFrame.contextLView))[Zt]}function xi(){return Y.lFrame.selectedIndex}function xr(e){Y.lFrame.selectedIndex=e}function ac(){let e=Y.lFrame;return Ig(e.tView,e.selectedIndex)}function Fo(){Y.lFrame.currentNamespace=bg}function Lg(){Db()}function Db(){Y.lFrame.currentNamespace=null}function jg(){return Y.lFrame.currentNamespace}var Vg=!0;function cc(){return Vg}function tr(e){Vg=e}function _b(e,t,n){var s,a,c,u,l;let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let d=_g(t);((s=n.preOrderHooks)!=null?s:n.preOrderHooks=[]).push(e,d),((a=n.preOrderCheckHooks)!=null?a:n.preOrderCheckHooks=[]).push(e,d)}i&&((c=n.preOrderHooks)!=null?c:n.preOrderHooks=[]).push(0-e,i),o&&(((u=n.preOrderHooks)!=null?u:n.preOrderHooks=[]).push(e,o),((l=n.preOrderCheckHooks)!=null?l:n.preOrderCheckHooks=[]).push(e,o))}function uc(e,t){var n,r,i,o,s,a,c;for(let u=t.directiveStart,l=t.directiveEnd;u=r)break}else t[c]<0&&(e[vi]+=65536),(a>14>16&&(e[Z]&3)===t&&(e[Z]+=16384,Cm(a,o)):Cm(a,o)}var _i=-1,Nr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function wb(e){return e instanceof Nr}function bb(e){return(e.flags&8)!==0}function Cb(e){return(e.flags&16)!==0}function Bg(e){return e!==_i}function Pa(e){let t=e&32767;return e&32767}function Ib(e){return e>>16}function Ra(e,t){let n=Ib(e),r=t;for(;n>0;)r=r[Ai],n--;return r}var Pl=!0;function Fa(e){let t=Pl;return Pl=e,t}var Sb=256,$g=Sb-1,Hg=5,Mb=0,an={};function Tb(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vo)&&(r=n[vo]),r==null&&(r=n[vo]=Mb++);let i=r&$g,o=1<>Hg)]|=o}function ka(e,t){let n=zg(e,t);if(n!==-1)return n;let r=t[q];r.firstCreatePass&&(e.injectorIndex=t.length,dl(r.data,e),dl(t,null),dl(r.blueprint,null));let i=Nd(e,t),o=e.injectorIndex;if(Bg(i)){let s=Pa(i),a=Ra(i,t),c=a[q].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function dl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function zg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Nd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Zg(i),r===null)return _i;if(n++,i=i[Ai],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _i}function Rl(e,t,n){Tb(e,t,n)}function Gg(e,t,n){if(n&J.Optional||e!==void 0)return e;wd(t,"NodeInjector")}function Wg(e,t,n,r){if(n&J.Optional&&r===void 0&&(r=null),!(n&(J.Self|J.Host))){let i=e[wi],o=Ft(void 0);try{return i?i.get(t,r,n&J.Optional):og(t,r,n&J.Optional)}finally{Ft(o)}}return Gg(r,t,n)}function qg(e,t,n,r=J.Default,i){if(e!==null){if(t[Z]&2048&&!(r&J.Self)){let s=Nb(e,t,n,r,an);if(s!==an)return s}let o=Yg(e,t,n,r,an);if(o!==an)return o}return Wg(t,n,r,i)}function Yg(e,t,n,r,i){let o=Ob(n);if(typeof o=="function"){if(!Ng(t,e,r))return r&J.Host?Gg(i,n,r):Wg(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&J.Optional))wd(n);else return s}finally{kg()}}else if(typeof o=="number"){let s=null,a=zg(e,t),c=_i,u=r&J.Host?t[St][Mt]:null;for((a===-1||r&J.SkipSelf)&&(c=a===-1?Nd(e,t):t[a+8],c===_i||!Sm(r,!1)?a=-1:(s=t[q],a=Pa(c),t=Ra(c,t)));a!==-1;){let l=t[q];if(Im(o,a,l.data)){let d=Ab(a,t,n,s,r,u);if(d!==an)return d}c=t[a+8],c!==_i&&Sm(r,t[q].data[a+8]===u)&&Im(o,a,t)?(s=l,a=Pa(c),t=Ra(c,t)):a=-1}}return i}function Ab(e,t,n,r,i,o){let s=t[q],a=s.data[e+8],c=r==null?No(a)&&Pl:r!=s&&(a.type&3)!==0,u=i&J.Host&&o===a,l=Sa(a,s,n,c,u);return l!==null?Pr(t,s,l,a):an}function Sa(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,u=e.directiveEnd,l=o>>20,d=r?a:a+l,f=i?a+l:u;for(let p=d;p=c&&m.type===n)return p}if(i){let p=s[c];if(p&&Nn(p)&&p.type===n)return c}return null}function Pr(e,t,n,r){let i=e[n],o=t.data;if(wb(i)){let s=i;s.resolving&&yw(vw(o[n]));let a=Fa(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ft(s.injectImpl):null,l=Ng(e,r,J.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&_b(n,o[n],t)}finally{u!==null&&Ft(u),Fa(a),s.resolving=!1,kg()}}return i}function Ob(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vo)?e[vo]:void 0;return typeof t=="number"?t>=0?t&$g:xb:t}function Im(e,t,n){let r=1<>Hg)]&r)}function Sm(e,t){return!(e&J.Self)&&!(e&J.Host&&t)}var Mr=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return qg(this._tNode,this._lView,t,nc(r),n)}};function xb(){return new Mr(yt(),ie())}function Ce(e){return Oo(()=>{let t=e.prototype.constructor,n=t[Oa]||Fl(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Oa]||Fl(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Fl(e){return Jm(e)?()=>{let t=Fl(ut(e));return t&&t()}:Or(e)}function Nb(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[Z]&2048&&!(s[Z]&512);){let a=Yg(o,s,n,r|J.Self,an);if(a!==an)return a;let c=o.parent;if(!c){let u=s[vg];if(u){let l=u.get(n,an,r);if(l!==an)return l}c=Zg(s),s=s[Ai]}o=c}return i}function Zg(e){let t=e[q],n=t.type;return n===2?t.declTNode:n===1?e[Mt]:null}var ga="__parameters__";function Pb(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function Pd(e,t,n){return Oo(()=>{let r=Pb(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(ga)?c[ga]:Object.defineProperty(c,ga,{value:[]})[ga];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Rb(e){return typeof e=="function"}function Fb(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Rd(n,t):t(n))}function Kg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function La(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qg(e,t){let n=[];for(let r=0;rt;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function jb(e,t,n){let r=ko(e,t);return r>=0?e[r|1]=n:(r=~r,Lb(e,r,t,n)),r}function fl(e,t){let n=ko(e,t);if(n>=0)return e[n|1]}function ko(e,t){return Vb(e,t,1)}function Vb(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<{n.push(s)};return Rd(t,s=>{let a=s;kl(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&tv(i,o),n}function tv(e,t){for(let n=0;n{t(o,r)})}}function kl(e,t,n,r){if(e=ut(e),!e)return!1;let i=null,o=mm(e),s=!o&&Tr(e);if(!o&&!s){let c=e.ngModule;if(o=mm(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)kl(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{Rd(o.imports,l=>{kl(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}u!==void 0&&tv(u,t)}if(!a){let u=Or(i)||(()=>new i);t({provide:i,useFactory:u,deps:It},i),t({provide:Jg,useValue:i,multi:!0},i),t({provide:Ni,useValue:()=>C(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;Fd(c,l=>{t(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function Fd(e,t){for(let n of e)eg(n)&&(n=n.\u0275providers),Array.isArray(n)?Fd(n,t):t(n)}var Bb=be({provide:String,useValue:be});function nv(e){return e!==null&&typeof e=="object"&&Bb in e}function $b(e){return!!(e&&e.useExisting)}function Hb(e){return!!(e&&e.useFactory)}function Si(e){return typeof e=="function"}function zb(e){return!!e.useClass}var lc=new _("Set Injector scope."),Ma={},Gb={},hl;function kd(){return hl===void 0&&(hl=new ja),hl}var Lt=class{},Va=class extends Lt{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,jl(t,s=>this.processProvider(s)),this.records.set(Pi,yi(void 0,this)),i.has("environment")&&this.records.set(Lt,yi(void 0,this));let o=this.records.get(lc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Jg,It,J.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=gi(this),r=Ft(void 0),i;try{return t()}finally{gi(n),Ft(r)}}get(t,n=_o,r=J.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(hm))return t[hm](this);r=nc(r);let i,o=gi(this),s=Ft(void 0);try{if(!(r&J.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Kb(t)&&tc(t);u&&this.injectableDefInScope(u)?c=yi(Ll(t),Ma):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&J.Self?kd():this.parent;return n=r&J.Optional&&n===_o?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[xa]=a[xa]||[]).unshift(ot(t)),o)throw a;return Ow(a,t,"R3InjectorError",this.source)}else throw a}finally{Ft(s),gi(o)}}resolveInjectorInitializers(){let t=gi(this),n=Ft(void 0),r;try{let i=this.get(Ni,It,J.Self);for(let o of i)o()}finally{gi(t),Ft(n)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ot(r));return"R3Injector[".concat(t.join(", "),"]")}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){t=ut(t);let n=Si(t)?t:ut(t&&t.provide),r=qb(t);if(!Si(t)&&t.multi===!0){let i=this.records.get(n);i||(i=yi(void 0,Ma,!0),i.factory=()=>Tl(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}else{let i=this.records.get(n)}this.records.set(n,r)}hydrate(t,n){return n.value===Ma&&(n.value=Gb,n.value=n.factory()),typeof n.value=="object"&&n.value&&Zb(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ut(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ll(e){let t=tc(e),n=t!==null?t.factory:Or(e);if(n!==null)return n;if(e instanceof _)throw new w(204,!1);if(e instanceof Function)return Wb(e);throw new w(204,!1)}function Wb(e){let t=e.length;if(t>0){let r=Qg(t,"?");throw new w(204,!1)}let n=Ew(e);return n!==null?()=>n.factory(e):()=>new e}function qb(e){if(nv(e))return yi(void 0,e.useValue);{let t=rv(e);return yi(t,Ma)}}function rv(e,t,n){let r;if(Si(e)){let i=ut(e);return Or(i)||Ll(i)}else if(nv(e))r=()=>ut(e.useValue);else if(Hb(e))r=()=>e.useFactory(...Tl(e.deps||[]));else if($b(e))r=()=>C(ut(e.useExisting));else{let i=ut(e&&(e.useClass||e.provide));if(Yb(e))r=()=>new i(...Tl(e.deps));else return Or(i)||Ll(i)}return r}function yi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Yb(e){return!!e.deps}function Zb(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Kb(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function jl(e,t){for(let n of e)Array.isArray(n)?jl(n,t):n&&eg(n)?jl(n.\u0275providers,t):t(n)}function Mm(e,t=null,n=null,r){let i=iv(e,t,n,r);return i.resolveInjectorInitializers(),i}function iv(e,t=null,n=null,r,i=new Set){let o=[n||It,Ub(e)];return r=r||(typeof e=="object"?void 0:ot(e)),new Va(o,t||kd(),r||null,i)}var st=(()=>{let t=class t{static create(r,i){var o;if(Array.isArray(r))return Mm({name:""},i,r,"");{let s=(o=r.name)!=null?o:"";return Mm({name:s},r.parent,r.providers,s)}}};t.THROW_IF_NOT_FOUND=_o,t.NULL=new ja,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>C(Pi)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Vl;function ov(e){Vl=e}function Lo(){if(Vl!==void 0)return Vl;if(typeof document<"u")return document;throw new w(210,!1)}var dc=new _("AppId",{providedIn:"root",factory:()=>Qb}),Qb="ng",Ld=new _("Platform Initializer"),At=new _("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var e2=new _("AnimationModuleType"),jd=new _("CSP nonce",{providedIn:"root",factory:()=>{var e,t;return((t=(e=Lo().body)==null?void 0:e.querySelector("[ngCspNonce]"))==null?void 0:t.getAttribute("ngCspNonce"))||null}});function t2(e){return e.ownerDocument.defaultView}function n2(e){return e.ownerDocument}function Xb(e){return e.ownerDocument.body}function sv(e){return e instanceof Function?e():e}function va(e){return(e!=null?e:g(st)).get(At)==="browser"}var Jb="ngSkipHydration",eC="ngskiphydration";function av(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;n|^->||--!>|)/g,iC="\u200B$1\u200B";function oC(e){return e.replace(nC,t=>t.replace(rC,iC))}var uv=new Map,sC=0;function aC(){return sC++}function cC(e){uv.set(e[rc],e)}function uC(e){uv.delete(e[rc])}var Tm="__ngContext__";function Jn(e,t){un(t)?(e[Tm]=t[rc],cC(t)):e[Tm]=t}var lC;function Vd(e,t){return lC(e,t)}function Ud(e){let t=e[He];return kt(t)?t[He]:t}function lv(e){return fv(e[bo])}function dv(e){return fv(e[Yt])}function fv(e){for(;e!==null&&!kt(e);)e=e[Yt];return e}function Di(e,t,n,r,i){if(r!=null){let o,s=!1;kt(r)?o=r:un(r)&&(s=!0,r=r[vt]);let a=Kt(r);e===0&&n!==null?i==null?yv(t,n,a):Ba(t,n,a,i||null,!0):e===1&&n!==null?Ba(t,n,a,i||null,!0):e===2?Ev(t,a,s):e===3&&t.destroyNode(a),o!=null&&SC(t,e,o,n,i)}}function hv(e,t){return e.createText(t)}function dC(e,t,n){e.setValue(t,n)}function pv(e,t){return e.createComment(oC(t))}function Bd(e,t,n){return e.createElement(t,n)}function fC(e,t){let n=t[Ae];jo(e,t,n,2,null,null),t[vt]=null,t[Mt]=null}function hC(e,t,n,r,i,o){r[vt]=i,r[Mt]=t,jo(e,r,n,1,i,o)}function pC(e,t){jo(e,t,t[Ae],2,null,null)}function mC(e){let t=e[bo];if(!t)return pl(e[q],e);for(;t;){let n=null;if(un(t))n=t[bo];else{let r=t[gt];r&&(n=r)}if(!n){for(;t&&!t[Yt]&&t!==e;)un(t)&&pl(t[q],t),t=t[He];t===null&&(t=e),un(t)&&pl(t[q],t),n=t&&t[Yt]}t=n}}function gC(e,t,n,r){let i=gt+r,o=n.length;r>0&&(n[i-1][Yt]=t),r0&&(e[n-1][Yt]=r[Yt]);let o=La(e,gt+t);fC(r[q],r);let s=o[cn];s!==null&&s.detachView(o[q]),r[He]=null,r[Yt]=null,r[Z]&=-129}return r}function gv(e,t){if(!(t[Z]&256)){let n=t[Ae];t[Ar]&&Fp(t[Ar]),n.destroyNode&&jo(e,t,n,3,null,null),mC(t)}}function pl(e,t){if(!(t[Z]&256)){t[Z]&=-129,t[Z]|=256,DC(e,t),yC(e,t),t[q].type===1&&t[Ae].destroy();let n=t[xo];if(n!==null&&kt(t[He])){n!==t[He]&&mv(n,t);let r=t[cn];r!==null&&r.detachView(e)}uC(t)}}function yC(e,t){let n=e.cleanup,r=t[wo];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[wo]=null);let i=t[Do];if(i!==null){t[Do]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===ln.None||o===ln.Emulated)return null}return Tt(r,n)}}function Ba(e,t,n,r,i){e.insertBefore(t,n,r,i)}function yv(e,t,n){e.appendChild(t,n)}function Am(e,t,n,r,i){r!==null?Ba(e,t,n,r,i):yv(e,t,n)}function EC(e,t,n,r){e.removeChild(t,n,r)}function $d(e,t){return e.parentNode(t)}function wC(e,t){return e.nextSibling(t)}function Dv(e,t,n){return CC(e,t,n)}function bC(e,t,n){return e.type&40?Tt(e,n):null}var CC=bC,Om;function fc(e,t,n,r){let i=vv(e,r,t),o=t[Ae],s=r.parent||t[Mt],a=Dv(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;ce,createScript:e=>e,createScriptURL:e=>e})}catch{}return ya}function hc(e){var t;return((t=AC())==null?void 0:t.createHTML(e))||e}var Da;function OC(){if(Da===void 0&&(Da=null,An.trustedTypes))try{Da=An.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Da}function xm(e){var t;return((t=OC())==null?void 0:t.createHTML(e))||e}var Rn=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(tg,")")}},$l=class extends Rn{getTypeName(){return"HTML"}},Hl=class extends Rn{getTypeName(){return"Style"}},zl=class extends Rn{getTypeName(){return"Script"}},Gl=class extends Rn{getTypeName(){return"URL"}},Wl=class extends Rn{getTypeName(){return"ResourceURL"}};function hn(e){return e instanceof Rn?e.changingThisBreaksApplicationSecurity:e}function nr(e,t){let n=xC(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see ").concat(tg,")"))}return n===t}function xC(e){return e instanceof Rn&&e.getTypeName()||null}function Sv(e){return new $l(e)}function Mv(e){return new Hl(e)}function Tv(e){return new zl(e)}function Av(e){return new Gl(e)}function Ov(e){return new Wl(e)}function NC(e){let t=new Yl(e);return PC()?new ql(t):t}var ql=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(hc(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},Yl=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=hc(t),n}};function PC(){try{return!!new window.DOMParser().parseFromString(hc(""),"text/html")}catch{return!1}}var RC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function pc(e){return e=String(e),e.match(RC)?e:"unsafe:"+e}function Bn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Vo(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var xv=Bn("area,br,col,hr,img,wbr"),Nv=Bn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pv=Bn("rp,rt"),FC=Vo(Pv,Nv),kC=Vo(Nv,Bn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),LC=Vo(Pv,Bn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Nm=Vo(xv,kC,LC,FC),Rv=Bn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jC=Bn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),VC=Bn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),UC=Vo(Rv,jC,VC),BC=Bn("script,style,template"),Zl=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){n=n.firstChild;continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}}return this.buf.join("")}startElement(t){let n=t.nodeName.toLowerCase();if(!Nm.hasOwnProperty(n))return this.sanitizedSomething=!0,!BC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i"),!0}endElement(t){let n=t.nodeName.toLowerCase();Nm.hasOwnProperty(n)&&!xv.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Pm(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}},$C=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,HC=/([^\#-~ |!])/g;function Pm(e){return e.replace(/&/g,"&").replace($C,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(HC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var _a;function zd(e,t){let n=null;try{_a=_a||NC(e);let r=t?String(t):"";n=_a.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=_a.getInertBodyElement(r)}while(r!==o);let a=new Zl().sanitizeChildren(Rm(n)||n);return hc(a)}finally{if(n){let r=Rm(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Rm(e){return"content"in e&&zC(e)?e.content:null}function zC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var lt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(lt||{});function Ri(e){let t=kv();return t?xm(t.sanitize(lt.HTML,e)||""):nr(e,"HTML")?xm(hn(e)):zd(Lo(),Ao(e))}function Fv(e){let t=kv();return t?t.sanitize(lt.URL,e)||"":nr(e,"URL")?hn(e):pc(Ao(e))}function kv(){let e=ie();return e&&e[bi].sanitizer}function GC(){let e=new Ur;return g(At)==="browser"&&(e.store=WC(Lo(),g(dc))),e}var Ur=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,i){return this.store[r]!==void 0?this.store[r]:i}set(r,i){this.store[r]=i}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,i){this.onSerializeCallbacks[r]=i}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function eI(e,t,n=!1){var u;let r=e.getAttribute(ml);if(r==null)return null;let[i,o]=r.split("|");if(r=n?o:i,!r)return null;let s=n?i:o?"|".concat(o):"",a={};if(r!==""){let l=t.get(Ur,null,{optional:!0});l!==null&&(a=l.get(Uv,[])[Number(r)])}let c={data:a,firstChild:(u=e.firstChild)!=null?u:null};return n&&(c.firstChild=e,mc(c,0,e.nextSibling)),s?e.setAttribute(ml,s):e.removeAttribute(ml),c}function tI(){Bv=eI}function Wd(e,t,n=!1){return Bv(e,t,n)}function nI(e){let t=e._lView;return t[q].type===2?null:(Dg(t)&&(t=t[We]),t)}function rI(e){var t;return(t=e.textContent)==null?void 0:t.replace(/\s/gm,"")}function iI(e){let t=Lo(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=rI(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,i=[];for(;r=n.nextNode();)i.push(r);for(let o of i)o.textContent==="ngetn"?o.replaceWith(t.createTextNode("")):o.remove()}function mc(e,t,n){var r;(r=e.segmentHeads)!=null||(e.segmentHeads={}),e.segmentHeads[t]=n}function Ql(e,t){var n,r;return(r=(n=e.segmentHeads)==null?void 0:n[t])!=null?r:null}function oI(e,t){var i,o,s;let n=e.data,r=(o=(i=n[qC])==null?void 0:i[t])!=null?o:null;return r===null&&((s=n[Gd])!=null&&s[t])&&(r=qd(e,t)),r}function $v(e,t){var n,r;return(r=(n=e.data[Gd])==null?void 0:n[t])!=null?r:null}function qd(e,t){var i,o;let n=(i=$v(e,t))!=null?i:[],r=0;for(let s of n)r+=s[$a]*((o=s[Vv])!=null?o:1);return r}function gc(e,t){var n;if(typeof e.disconnectedNodes>"u"){let r=e.data[QC];e.disconnectedNodes=r?new Set(r):null}return!!((n=e.disconnectedNodes)!=null&&n.has(t))}var Xl=class{},Ha=class{};function sI(e){let t=Error("No component factory found for ".concat(ot(e),"."));return t[aI]=e,t}var aI="ngComponent";var Jl=class{resolveComponentFactory(t){throw sI(t)}},pn=(()=>{let t=class t{};t.NULL=new Jl;let e=t;return e})();function cI(){return Fi(yt(),ie())}function Fi(e,t){return new B(Tt(e,t))}var B=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=cI;let e=t;return e})();function uI(e){return e instanceof B?e.nativeElement:e}var Rr=class{},$n=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>lI();let e=t;return e})();function lI(){let e=ie(),t=yt(),n=er(t.index,e);return(un(n)?n:e)[Ae]}var dI=(()=>{let t=class t{};t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Fr=class{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}},fI=new Fr("17.0.2"),gl={};function Yd(e){let t=ct(null);try{return e()}finally{ct(t)}}function Hv(e){return pI(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function hI(e,t){if(Array.isArray(e))for(let n=0;nt,td=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||mI}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new nd(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},nd=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},rd=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},za=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new rd,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Fm(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||km()),deps:[[t,new Un,new Vn]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new w(901,!1)}};t.\u0275prov=b({token:t,providedIn:"root",factory:km});let e=t;return e})();function Ga(e,t,n,r,i=!1){for(;n!==null;){let o=t[n.index];o!==null&&r.push(Kt(o)),kt(o)&&gI(o,r);let s=n.type;if(s&8)Ga(e,t,n.child,r);else if(s&32){let a=Vd(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=_v(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ud(t[St]);Ga(c[q],c,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function gI(e,t){for(let n=gt;n{sc(e.lView)},consumerOnSignalRead(){this.lView[Ar]=this}}),EI="ngOriginalError";function vl(e){return e[EI]}var Fn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&vl(t);for(;n&&vl(n);)n=vl(n);return n||null}},Ea=new _(""),Gv=!1,Wv=new _("",{providedIn:"root",factory:()=>Gv});var Br={};function K(e){qv(qe(),ie(),xi()+e,!1)}function qv(e,t,n,r){if(!r)if((t[Z]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Ca(t,o,n)}else{let o=e.preOrderHooks;o!==null&&Ia(t,o,0,n)}xr(n)}function v(e,t=J.Default){let n=ie();if(n===null)return C(e,t);let r=yt();return qg(r,n,ut(e),t)}function Kd(){let e="invalid";throw new Error(e)}function wI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;rWe&&qv(e,t,We,!1),sn(s?2:0,i),n(r,i)}finally{xr(o),sn(s?3:1,i)}}function Qd(e,t,n){if(Id(t)){let r=ct(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function MI(e){cv(e)?wv(e):iI(e)}function TI(){Qv=MI}function AI(e,t,n,r){let i=ry(t);i.push(n),e.firstCreatePass&&iy(e).push(r,i.length-1)}function OI(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Oi()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Lm(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=n===null?{}:n;let o=e[i];r===null?jm(n,t,i,o):r.hasOwnProperty(i)&&jm(n,t,r[i],o)}return n}function jm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function xI(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function kI(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;No(n)&&HI(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||ka(n,t),Jn(r,t);let s=n.initialInputs;for(let a=i;a-1&&(Ul(t,r),La(n,r))}this._attachedToViewContainer=!1}gv(this._lView[q],this._lView)}onDestroy(t){rb(this._lView,t)}markForCheck(){of(this._cdRefInjectingView||this._lView)}detach(){this._lView[Z]&=-129}reattach(){Mg(this._lView),this._lView[Z]|=128}detectChanges(){QI(this._lView[q],this._lView,this.context,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,pC(this._lView[q],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}},et=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=nS;let e=t;return e})();function nS(e){return rS(yt(),ie(),(e&16)===16)}function rS(e,t,n){if(No(e)&&!n){let r=er(e.index,t);return new kr(r,r)}else if(e.type&47){let r=t[St];return new kr(r,t)}return null}var Vm=new Set;function Uo(e){var t;Vm.has(e)||(Vm.add(e),(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_use_counter",{detail:{feature:e}}))}var sd=class extends ye{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var c,u,l;let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let d=t;i=(c=d.next)==null?void 0:c.bind(d),o=(u=d.error)==null?void 0:u.bind(d),s=(l=d.complete)==null?void 0:l.bind(d)}this.__isAsync&&(o=yl(o),i&&(i=yl(i)),s&&(s=yl(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof Ge&&t.add(a),a}};function yl(e){return t=>{setTimeout(e,void 0,t)}}var $e=sd;function Um(...e){}function iS(){let e=typeof An.requestAnimationFrame=="function",t=An[e?"requestAnimationFrame":"setTimeout"],n=An[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var te=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=iS().nativeRequestAnimationFrame,aS(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,oS,Um,Um);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},oS={};function sf(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function sS(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(An,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ad(e),e.isCheckStableRunning=!0,sf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ad(e))}function aS(e){let t=()=>{sS(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(cS(a))return n.invokeTask(i,o,s,a);try{return Bm(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),$m(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return Bm(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),$m(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,ad(e),sf(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function ad(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Bm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $m(e){e._nesting--,sf(e)}var dy=new _("",{providedIn:"root",factory:fy});function fy(){let e=g(te),t=!0,n=new M(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),r=new M(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});let s=e.onUnstable.subscribe(()=>{te.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}});return Ee(n,r.pipe(tt()))}function cS(e){var t;return!Array.isArray(e)||e.length!==1?!1:((t=e[0].data)==null?void 0:t.__ignore_ng_zone__)===!0}var uS=(()=>{let t=class t{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){var r;(r=this.handler)==null||r.validateBegin(),this.renderDepth++}end(){var r;if(this.renderDepth--,this.renderDepth===0){for(let i of this.internalCallbacks)i();this.internalCallbacks.length=0,(r=this.handler)==null||r.execute()}}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function lS(e,t){let n=er(t,e),r=n[q];dS(r,n);let i=n[vt];i!==null&&n[On]===null&&(n[On]=Wd(i,n[wi])),af(r,n,n[Zt])}function dS(e,t){for(let n=t.length;n0&&Cv(e,n,o.join(" "))}}function DS(e,t,n){let r=e.projection=[];for(let i=0;i=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Eo(i.hostAttrs,n=Eo(n,i.hostAttrs))}}function wa(e){return e===Ei?{}:e===It?[]:e}function bS(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function CS(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function IS(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function cf(e,t,n){return e[t]=n}function kn(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ld(e,t,n,r){let i=kn(e,t,n);return kn(e,t+1,r)||i}function SS(e,t,n,r,i,o){let s=ld(e,t,n,r);return ld(e,t+2,i,o)||s}function Ke(e,t,n,r){let i=ie(),o=Ro();if(kn(i,o,t)){let s=qe(),a=ac();zI(a,i,e,t,n,r)}return Ke}function MS(e,t,n,r){return kn(e,Ro(),n)?t+Ao(n)+r:Br}function ba(e,t){return e<<17|t<<2}function Lr(e){return e>>17&32767}function TS(e){return(e&2)==2}function AS(e,t){return e&131071|t<<17}function dd(e){return e|2}function Mi(e){return(e&131068)>>2}function Dl(e,t){return e&-131069|t<<2}function OS(e){return(e&1)===1}function fd(e){return e|1}function xS(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Lr(s),c=Mi(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ko(d,l)>0)&&(u=!0)}else l=n;if(i)if(c!==0){let f=Lr(e[a+1]);e[r+1]=ba(f,a),f!==0&&(e[f+1]=Dl(e[f+1],r)),e[a+1]=AS(e[a+1],r)}else e[r+1]=ba(a,0),a!==0&&(e[a+1]=Dl(e[a+1],r)),a=r;else e[r+1]=ba(c,0),a===0?a=r:e[c+1]=Dl(e[c+1],r),c=r;u&&(e[r+1]=dd(e[r+1])),zm(e,l,r,!0,o),zm(e,l,r,!1,o),NS(t,l,e,r,o),s=ba(a,c),o?t.classBindings=s:t.styleBindings=s}function NS(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&ko(o,t)>=0&&(n[r+1]=fd(n[r+1]))}function zm(e,t,n,r,i){let o=e[n+1],s=t===null,a=r?Lr(o):Mi(o),c=!1;for(;a!==0&&(c===!1||s);){let u=e[a],l=e[a+1];PS(u,t)&&(c=!0,e[a+1]=r?fd(l):dd(l)),a=r?Lr(l):Mi(l)}c&&(e[n+1]=r?dd(o):fd(o))}function PS(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ko(e,t)>=0:!1}function R(e,t,n){let r=ie(),i=Ro();if(kn(r,i,t)){let o=qe(),s=ac();tf(o,s,r,e,t,r[Ae],n,!1)}return R}function Gm(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";rf(e,n,o[s],s,r)}function Li(e,t,n){return hy(e,t,n,!1),Li}function Ue(e,t){return hy(e,t,null,!0),Ue}function hy(e,t,n,r){let i=ie(),o=qe(),s=hb(2);if(o.firstUpdatePass&&FS(o,e,s,r),t!==Br&&kn(i,s,t)){let a=o.data[xi()];US(o,a,i,i[Ae],e,i[s+1]=BS(t,n),r,s)}}function RS(e,t){return t>=e.expandoStartIndex}function FS(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[xi()],s=RS(e,n);$S(o,r)&&t===null&&!s&&(t=!1),t=kS(i,o,t,r),xS(i,o,t,n,s,r)}}function kS(e,t,n,r){let i=Og(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=_l(null,e,t,n,r),n=So(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=_l(i,e,t,n,r),o===null){let c=LS(e,t,r);c!==void 0&&Array.isArray(c)&&(c=_l(null,e,t,c[1],r),c=So(c,t.attrs,r),jS(e,t,r,c))}else o=VS(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function LS(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Mi(r)!==0)return e[Lr(r)]}function jS(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Lr(i)]=r}function VS(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let c=e[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[i+1];f===Br&&(f=d?It:void 0);let p=d?fl(f,r):l===r?f:void 0;if(u&&!Ya(p)&&(p=fl(c,r)),Ya(p)&&(a=p,s))return a;let m=e[i+1];i=s?Lr(m):Mi(m)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=fl(c,r))}return a}function Ya(e){return e!==void 0}function BS(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ot(hn(e)))),e}function $S(e,t){return(e.flags&(t?8:16))!==0}function py(e){var i;let t=(i=e[Co])!=null?i:[],r=e[He][Ae];for(let o of t)HS(o,r);e[Co]=It}function HS(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[$a];for(;n0&&(s.firstChild=e,e=_c(i[$a],e)),n.push(s)}return[e,n]}var gy=(e,t)=>null;function QS(e,t){let n=e[Co];return!t||n===null||n.length===0?null:n[0].data[ZC]===t?n.shift():(py(e),null)}function XS(){gy=QS}function qm(e,t){return gy(e,t)}function JS(e,t,n,r){var l,d;let i=t.tView,s=e[Z]&4096?4096:16,a=vc(e,i,n,s,null,t,null,null,null,(l=r==null?void 0:r.injector)!=null?l:null,(d=r==null?void 0:r.dehydratedView)!=null?d:null),c=e[t.index];a[xo]=c;let u=e[cn];return u!==null&&(a[cn]=u.createEmbeddedView(i)),af(i,a,n),a}function Ym(e,t){return!t||Ua(e)}function eM(e,t,n,r=!0){let i=t[q];if(gC(i,t,e,n),r){let o=Bl(n,e),s=t[Ae],a=$d(s,e[xn]);a!==null&&hC(i,e[Mt],s,t,a,o)}}var dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=tM;let e=t;return e})();function tM(){let e=yt();return yy(e,ie())}var nM=dt,vy=class extends nM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Fi(this._hostTNode,this._hostLView)}get injector(){return new Mr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Nd(this._hostTNode,this._hostLView);if(Bg(t)){let n=Ra(t,this._hostLView),r=Pa(t),i=n[q].data[r+8];return new Mr(i,n)}else return new Mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Zm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-gt}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=qm(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Ym(this._hostTNode,s)),a}createComponent(t,n,r,i,o){var m,y,A;let s=t&&!Rb(t),a;if(s)a=n;else{let S=n||{};a=S.index,r=S.injector,i=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}let c=s?t:new Io(Tr(t)),u=r||this.parentInjector;if(!o&&c.ngModule==null){let H=(s?u:this.parentInjector).get(Lt,null);H&&(o=H)}let l=Tr((m=c.componentType)!=null?m:{}),d=qm(this._lContainer,(y=l==null?void 0:l.id)!=null?y:null),f=(A=d==null?void 0:d.firstChild)!=null?A:null,p=c.create(u,i,f,o);return this.insertImpl(p.hostView,a,Ym(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(eb(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[He],u=new vy(c,c[Mt],c[He]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return eM(s,i,o,r),t.attachToViewContainerRef(),Kg(wl(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Zm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ul(this._lContainer,n);r&&(La(wl(this._lContainer),n),gv(r[q],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ul(this._lContainer,n);return r&&La(wl(this._lContainer),n)!=null?new kr(r):null}_adjustIndex(t,n=0){return t==null?this.length+n:t}};function Zm(e){return e[Na]}function wl(e){return e[Na]||(e[Na]=[])}function yy(e,t){let n,r=t[e.index];return kt(r)?n=r:(n=ty(r,t,null,e),t[e.index]=n,yc(t,n)),Dy(n,t,e,r),new vy(n,e,t)}function rM(e,t){let n=e[Ae],r=n.createComment(""),i=Tt(t,e),o=$d(n,i);return Ba(n,o,r,wC(n,i),!1),r}var Dy=_y,uf=(e,t,n)=>!1;function iM(e,t,n){return uf(e,t,n)}function _y(e,t,n,r){if(e[xn])return;let i;n.type&8?i=Kt(r):i=rM(t,n),e[xn]=i}function oM(e,t,n){var l;if(e[xn]&&e[Co])return!0;let r=n[On],i=t.index-We;if(!r||tC(t)||gc(r,i))return!1;let s=Ql(r,i),a=(l=r.data[Gd])==null?void 0:l[i],[c,u]=KS(s,a);return e[xn]=c,e[Co]=u,!0}function sM(e,t,n,r){uf(e,n,t)||_y(e,t,n,r)}function aM(){Dy=sM,uf=oM}function cM(e,t,n,r,i,o,s,a,c){let u=t.consts,l=ki(t,e,4,s||null,Ii(u,a));nf(t,n,l,Ii(u,c)),uc(t,l);let d=l.tView=ef(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function me(e,t,n,r,i,o,s,a){let c=ie(),u=qe(),l=e+We,d=u.firstCreatePass?cM(l,u,c,t,n,r,i,o,s):u.data[l];jr(d,!1);let f=Ey(u,c,d,e);cc()&&fc(u,c,f,d),Jn(f,c);let p=ty(f,c,f,d);return c[l]=p,yc(c,p),iM(p,d,c),ic(d)&&Xd(u,c,d),s!=null&&Jd(c,d,a),me}var Ey=wy;function wy(e,t,n,r){return tr(!0),t[Ae].createComment("")}function uM(e,t,n,r){var l,d;let i=t[On],o=!i||Oi()||gc(i,r);if(tr(o),o)return wy(e,t,n,r);let s=(d=(l=i.data[YC])==null?void 0:l[r])!=null?d:null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=Dc(i,e,t,n);mc(i,r,a);let c=qd(i,r);return _c(c,a)}function lM(){Ey=uM}function dM(e,t,n,r,i,o){let s=t.consts,a=Ii(s,i),c=ki(t,e,2,r,a);return nf(t,n,c,Ii(s,o)),c.attrs!==null&&Wa(c,c.attrs,!1),c.mergedAttrs!==null&&Wa(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function ue(e,t,n,r){let i=ie(),o=qe(),s=We+e,a=i[Ae],c=o.firstCreatePass?dM(s,o,i,t,n,r):o.data[s],u=by(o,i,c,a,t,e);i[s]=u;let l=ic(c);return jr(c,!0),Iv(a,u,c),(c.flags&32)!==32&&cc()&&fc(o,i,u,c),ib()===0&&Jn(u,i),ob(),l&&(Xd(o,i,c),Qd(o,c,i)),r!==null&&Jd(i,c),ue}function ae(){let e=yt();Md()?Td():(e=e.parent,jr(e,!1));let t=e;ab(t)&&ub(),sb();let n=qe();return n.firstCreatePass&&(uc(n,e),Id(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&bb(t)&&Gm(n,t,ie(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Cb(t)&&Gm(n,t,ie(),t.stylesWithoutHost,!1),ae}function Ie(e,t,n,r){return ue(e,t,n,r),ae(),Ie}var by=(e,t,n,r,i,o)=>(tr(!0),Bd(r,i,jg()));function fM(e,t,n,r,i,o){let s=t[On],a=!s||Oi()||gc(s,o);if(tr(a),a)return Bd(r,i,jg());let c=Dc(s,e,t,n);return $v(s,o)&&mc(s,o,c.nextSibling),s&&(av(n)||cv(c))&&No(n)&&(cb(n),wv(c)),c}function hM(){by=fM}function pM(e,t,n,r,i){let o=t.consts,s=Ii(o,r),a=ki(t,e,8,"ng-container",s);s!==null&&Wa(a,s,!0);let c=Ii(o,i);return nf(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function Qt(e,t,n){let r=ie(),i=qe(),o=e+We,s=i.firstCreatePass?pM(o,i,r,t,n):i.data[o];jr(s,!0);let a=Cy(i,r,s,e);return r[o]=a,cc()&&fc(i,r,a,s),Jn(a,r),ic(s)&&(Xd(i,r,s),Qd(i,s,r)),n!=null&&Jd(r,s),Qt}function Xt(){let e=yt(),t=qe();return Md()?Td():(e=e.parent,jr(e,!1)),t.firstCreatePass&&(uc(t,e),Id(e)&&t.queries.elementEnd(e)),Xt}function Bo(e,t,n){return Qt(e,t,n),Xt(),Bo}var Cy=(e,t,n,r)=>(tr(!0),pv(t[Ae],""));function mM(e,t,n,r){let i,o=t[On],s=!o||Oi();if(tr(s),s)return pv(t[Ae],"");let a=Dc(o,e,t,n),c=oI(o,r);return mc(o,r,a),i=_c(c,a),i}function gM(){Cy=mM}function mn(){return ie()}function lf(e,t,n){let r=ie(),i=Ro();if(kn(r,i,t)){let o=qe(),s=ac();tf(o,s,r,e,t,r[Ae],n,!0)}return lf}function $o(e,t,n){let r=ie(),i=Ro();if(kn(r,i,t)){let o=qe(),s=ac(),a=Og(o.data),c=YI(a,s,r);tf(o,s,r,e,t,c,n,!0)}return $o}var Ka="en-US";var vM=Ka;function yM(e){Dw(e,"Expected localeId to be defined"),typeof e=="string"&&(vM=e.toLowerCase().replace(/_/g,"-"))}function rr(e){return!!e&&typeof e.then=="function"}function df(e){return!!e&&typeof e.subscribe=="function"}function ze(e,t,n,r){let i=ie(),o=qe(),s=yt();return _M(o,i,i[Ae],s,e,t,r),ze}function DM(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function _M(e,t,n,r,i,o,s){let a=ic(r),u=e.firstCreatePass&&iy(e),l=t[Zt],d=ry(t),f=!0;if(r.type&3||s){let y=Tt(r,t),A=s?s(y):y,S=d.length,H=s?ge=>s(Kt(ge[r.index])):r.index,re=null;if(!s&&a&&(re=DM(e,t,i,r.index)),re!==null){let ge=re.__ngLastListenerFn__||re;ge.__ngNextListenerFn__=o,re.__ngLastListenerFn__=o,f=!1}else{o=Qm(r,t,l,o,!1);let ge=n.listen(A,i,o);d.push(o,ge),u&&u.push(i,H,S,S+1)}}else o=Qm(r,t,l,o,!1);let p=r.outputs,m;if(f&&p!==null&&(m=p[i])){let y=m.length;if(y)for(let A=0;A-1?er(e.index,t):t;of(a);let c=Km(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=Km(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function ce(e=1){return yb(e)}function EM(e,t){let n=null,r=jw(e);for(let i=0;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Iy(e){let t=db();return oc(t,We+e)}function vn(e,t=""){let n=ie(),r=qe(),i=e+We,o=r.firstCreatePass?ki(r,i,1,t,null):r.data[i],s=Sy(r,n,o,t,e);n[i]=s,cc()&&fc(r,n,s,o),jr(o,!1)}var Sy=(e,t,n,r,i)=>(tr(!0),hv(t[Ae],r));function bM(e,t,n,r,i){let o=t[On],s=!o||Oi()||gc(o,i);return tr(s),s?hv(t[Ae],r):Dc(o,e,t,n)}function CM(){Sy=bM}function IM(e){return Vt("",e,""),IM}function Vt(e,t,n){let r=ie(),i=MS(r,e,t,n);return i!==Br&&ZI(r,xi(),i),Vt}function SM(e,t,n){let r=qe();if(r.firstCreatePass){let i=Nn(e);hd(n,r.data,r.blueprint,i,!0),hd(t,r.data,r.blueprint,i,!1)}}function hd(e,t,n,r,i){if(e=ut(e),Array.isArray(e))for(let o=0;o>20;if(Si(e)||!e.multi){let p=new Nr(u,i,v),m=Cl(c,t,i?l:l+f,d);m===-1?(Rl(ka(a,s),o,c),bl(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{let p=Cl(c,t,l+f,d),m=Cl(c,t,l,l+f),y=p>=0&&n[p],A=m>=0&&n[m];if(i&&!A||!i&&!y){Rl(ka(a,s),o,c);let S=AM(i?TM:MM,n.length,i,r,u);!i&&A&&(n[m].providerFactory=S),bl(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(S),s.push(S)}else{let S=My(n[i?m:p],u,!i&&r);bl(o,e,p>-1?p:m,S)}!i&&r&&A&&n[m].componentProviders++}}}function bl(e,t,n,r){let i=Si(t),o=zb(t);if(i||o){let c=(o?ut(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function My(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Cl(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>SM(r,i?i(e):e,t)}}var Ln=class{},Mo=class{};function Ty(e,t){return new Qa(e,t!=null?t:null,[])}var Qa=class extends Ln{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qa(this);let i=pg(t);this._bootstrapComponents=sv(i.bootstrap),this._r3Injector=iv(t,n,[{provide:Ln,useValue:this},{provide:pn,useValue:this.componentFactoryResolver},...r],ot(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},md=class extends Mo{constructor(t){super(),this.moduleType=t}create(t){return new Qa(this.moduleType,t,[])}};var Xa=class extends Ln{constructor(t){super(),this.componentFactoryResolver=new qa(this),this.instance=null;let n=new Va([...t.providers,{provide:Ln,useValue:this},{provide:pn,useValue:this.componentFactoryResolver}],t.parent||kd(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ff(e,t,n=null){return new Xa({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var OM=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=ev(!1,r.type),o=i.length>0?ff([i],this._injector,"Standalone[".concat(r.type.name,"]")):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=b({token:t,providedIn:"environment",factory:()=>new t(C(Lt))});let e=t;return e})();function Ay(e){Uo("NgStandalone"),e.getStandaloneInjector=t=>t.get(OM).getOrCreateStandaloneInjector(e)}function i2(e,t,n,r){return Oy(ie(),Po(),e,t,n,r)}function o2(e,t,n,r,i){return xy(ie(),Po(),e,t,n,r,i)}function hf(e,t){let n=e[t];return n===Br?void 0:n}function Oy(e,t,n,r,i,o){let s=t+n;return kn(e,s,i)?cf(e,s+1,o?r.call(o,i):r(i)):hf(e,s+1)}function xy(e,t,n,r,i,o,s){let a=t+n;return ld(e,a,i,o)?cf(e,a+2,s?r.call(s,i,o):r(i,o)):hf(e,a+2)}function xM(e,t,n,r,i,o,s,a,c){let u=t+n;return SS(e,u,i,o,s,a)?cf(e,u+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):hf(e,u+4)}function Ut(e,t){var c;let n=qe(),r,i=e+We;n.firstCreatePass?(r=NM(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&((c=n.destroyHooks)!=null?c:n.destroyHooks=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Or(r.type,!0)),s,a=Ft(v);try{let u=Fa(!1),l=o();return Fa(u),wM(n,ie(),i,l),l}finally{Ft(a)}}function NM(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Bt(e,t,n){let r=e+We,i=ie(),o=oc(i,r);return pf(i,r)?Oy(i,Po(),t,o.transform,n,o):o.transform(n)}function s2(e,t,n,r){let i=e+We,o=ie(),s=oc(o,i);return pf(o,i)?xy(o,Po(),t,s.transform,n,r,s):s.transform(n,r)}function a2(e,t,n,r,i,o){let s=e+We,a=ie(),c=oc(a,s);return pf(a,s)?xM(a,Po(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function pf(e,t){return e[q].data[t].pure}function PM(){return this._results[Symbol.iterator]()}var To=class e{get changes(){return this._changes||(this._changes=new $e)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=PM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=kb(t);(this._changesDetected=!Fb(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},Je=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=kM;let e=t;return e})(),RM=Je,FM=class extends RM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return((t=this._declarationTContainer.tView)==null?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=JS(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new kr(i)}};function kM(){return Ec(yt(),ie())}function Ec(e,t){return e.type&4?new FM(t,e,Fi(e,t)):null}var gd=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},vd=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let u=o[a+1],l=t[-c];for(let d=gt;d{let t=class t{constructor(){var r;this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=(r=g(jy,{optional:!0}))!=null?r:[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(rr(s))r.push(s);else if(df(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),wc=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function zM(){return typeof $localize<"u"&&$localize.locale||Ka}var Ho=new _("LocaleId",{providedIn:"root",factory:()=>g(Ho,J.Optional|J.SkipSelf)||zM()});var bc=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Re(!1)}add(){this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ed=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},vf=(()=>{let t=class t{compileModuleSync(r){return new md(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=pg(r),s=sv(o.declarations).reduce((a,c)=>{let u=Tr(c);return u&&a.push(new Io(u)),a},[]);return new Ed(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Uy=new _("");var Aa=null;var By=new _("PlatformDestroyListeners"),ji=new _("appBootstrapListener");function GM(){kp(()=>{throw new w(600,!1)})}function WM(e){return e.isBoundToModule}function qM(e=[]){if(Aa)return Aa;let t=ZM(e);return Aa=t,GM(),YM(t),t}function YM(e){let t=e.get(Ld,null);t==null||t.forEach(n=>n())}function $y(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=qM(r),o=[tT(),...n||[]],a=new Xa({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(te);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Fn,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:p=>{u.handleError(p)}})});let d=()=>a.destroy(),f=i.get(By);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),QM(u,c,()=>{let p=a.get(Vy);return p.runInitializers(),p.donePromise.then(()=>{let m=a.get(Ho,Ka);yM(m||Ka);let y=a.get(ir);return t!==void 0&&y.bootstrap(t),y})})})}catch(t){return Promise.reject(t)}}function ZM(e=[],t){return st.create({name:t,providers:[{provide:lc,useValue:"platform"},{provide:By,useValue:new Set([()=>Aa=null])},...e]})}function KM(e){var t,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(t=e==null?void 0:e.eventCoalescing)!=null?t:!1,shouldCoalesceRunChangeDetection:(n=e==null?void 0:e.runCoalescing)!=null?n:!1}}function QM(e,t,n){try{let r=n();return rr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var ir=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Hy),this.zoneIsStable=g(dy),this.componentTypes=[],this.components=[],this.isStable=g(bc).hasPendingTasks.pipe(W(r=>r?I(!1):this.zoneIsStable),Te(),tt()),this._injector=g(Lt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Ha;if(!this._injector.get(Vy).done){let m="Cannot bootstrap as there are still asynchronous initializers running."+(!o&&hg(r)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new w(405,!1)}let a;o?a=r:a=this._injector.get(pn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=WM(a)?void 0:this._injector.get(Ln),u=i||a.selector,l=a.create(st.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(Uy,null);return f==null||f.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Il(this.components,l),f==null||f.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Il(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(ji,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Il(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new w(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Il(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Hy=new _("",{providedIn:"root",factory:()=>g(Fn).handleError.bind(void 0)});function XM(){let e=g(te),t=g(Fn);return n=>e.runOutsideAngular(()=>t.handleError(n))}var JM=(()=>{let t=class t{constructor(){this.zone=g(te),this.applicationRef=g(ir)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function eT(e){return[{provide:te,useFactory:e},{provide:Ni,multi:!0,useFactory:()=>{let t=g(JM,{optional:!0});return()=>t.initialize()}},{provide:Hy,useFactory:XM},{provide:dy,useFactory:fy}]}function tT(e){let t=eT(()=>new te(KM(e)));return Vr([[],t])}var Xn;function yf(e){Xn!=null||(Xn=new WeakMap);let t=Xn.get(e);if(t)return t;let n=e.isStable.pipe(Wt(r=>r)).toPromise().then(()=>{});return Xn.set(e,n),e.onDestroy(()=>Xn==null?void 0:Xn.delete(e)),n}function zy(){return!1}var Xm=!1;function nT(){Xm||(Xm=!0,tI(),hM(),CM(),gM(),lM(),aM(),XS(),TI())}function rT(e,t){return yf(e)}function Gy(){return Vr([{provide:Ea,useFactory:()=>{let e=!0;if(va()){let t=g(Ur,{optional:!0});e=!!(t!=null&&t.get(Uv,null))}return e&&Uo("NgHydration"),e}},{provide:Ni,useValue:()=>{va()&&g(Ea)&&(iT(),nT())},multi:!0},{provide:Wv,useFactory:()=>va()&&g(Ea)},{provide:ji,useFactory:()=>{if(va()&&g(Ea)){let e=g(ir),t=g(st);return()=>{rT(e,t).then(()=>{te.assertInAngularZone(),zS(e)})}}return()=>{}},multi:!0}])}function iT(){var n;let e=Lo(),t;for(let r of e.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&((n=r.textContent)==null?void 0:n.trim())===JC){t=r;break}if(!t)throw new w(-507,!1)}function zo(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Df=null;function Hn(){return Df}function Qy(e){Df||(Df=e)}var Cc=class{},oe=new _("DocumentToken"),Xy=(()=>{let t=class t{historyGo(r){throw new Error("Not implemented")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(aT))(),providedIn:"platform"});let e=t;return e})();var aT=(()=>{let t=class t extends Xy{constructor(){super(),this._doc=g(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Hn().getBaseHref(this._doc)}onPopState(r){let i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>new t)(),providedIn:"platform"});let e=t;return e})();function Jy(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Wy(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function $r(e){return e&&e[0]!=="?"?"?"+e:e}var Sc=(()=>{let t=class t{historyGo(r){throw new Error("Not implemented")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(eD))(),providedIn:"root"});let e=t;return e})(),cT=new _("appBaseHref"),eD=(()=>{let t=class t extends Sc{constructor(r,i){var o,s,a;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=(a=(s=i!=null?i:this._platformLocation.getBaseHrefFromDOM())!=null?s:(o=g(oe).location)==null?void 0:o.origin)!=null?a:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return Jy(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+$r(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?"".concat(i).concat(o):i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+$r(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+$r(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){var i,o;(o=(i=this._platformLocation).historyGo)==null||o.call(i,r)}};t.\u0275fac=function(i){return new(i||t)(C(Xy),C(cT,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Go=(()=>{let t=class t{constructor(r){this._subject=new $e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=dT(Wy(qy(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var r;(r=this._urlChangeSubscription)==null||r.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+$r(i))}normalize(r){return t.stripTrailingSlash(lT(this._basePath,qy(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+$r(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+$r(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){var i,o;(o=(i=this._locationStrategy).historyGo)==null||o.call(i,r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var o;let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&((o=this._urlChangeSubscription)==null||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};t.normalizeQueryParams=$r,t.joinWithSlash=Jy,t.stripTrailingSlash=Wy,t.\u0275fac=function(i){return new(i||t)(C(Sc))},t.\u0275prov=b({token:t,factory:()=>uT(),providedIn:"root"});let e=t;return e})();function uT(){return new Go(C(Sc))}function lT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function qy(e){return e.replace(/\/index.html$/,"")}function dT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function tD(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var O2=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(r){return r.ngComponentOutletNgModule!==void 0||r.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(r){return r.ngComponentOutlet!==void 0||r.ngComponentOutletContent!==void 0||r.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(r)}ngOnChanges(r){var i;if(this._needToReCreateComponentInstance(r)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let o=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(r)&&((i=this._moduleRef)==null||i.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Ty(this.ngComponentOutletNgModule,Yy(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Yy(o)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:o,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let r of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(r,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){var r;(r=this._moduleRef)==null||r.destroy()}_applyInputStateDiff(r){for(let[i,o]of this._inputsUsed)o?(r.setInput(i,this.ngComponentOutletInputs[i]),this._inputsUsed.set(i,!1)):(r.setInput(i,void 0),this._inputsUsed.delete(i))}};t.\u0275fac=function(i){return new(i||t)(v(dt))},t.\u0275dir=L({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[jt]});let e=t;return e})();function Yy(e){return e.get(Ln).injector}var _f=class{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},x2=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(!1)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new _f(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),Zy(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Zy(s,o)})}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(v(dt),v(Je),v(Zd))},t.\u0275dir=L({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Zy(e,t){e.context.$implicit=t.item}var ft=(()=>{let t=class t{constructor(r,i){this._viewContainer=r,this._context=new Ef,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Ky("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Ky("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(v(dt),v(Je))},t.\u0275dir=L({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Ef=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ky(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error("".concat(e," must be a TemplateRef, but received '").concat(ot(t),"'."))}function fT(e,t){return new w(2100,!1)}var wf=class{createSubscription(t,n){return Yd(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Yd(()=>t.unsubscribe())}},bf=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},hT=new bf,pT=new wf,yn=(()=>{let t=class t{constructor(r){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){return this._obj?r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue:(r&&this._subscribe(r),this._latestValue)}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(rr(r))return hT;if(df(r))return pT;throw fT(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){r===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};t.\u0275fac=function(i){return new(i||t)(v(et,16))},t.\u0275pipe=Ti({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var ht=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({});let e=t;return e})(),Cf="browser",mT="server";function nD(e){return e===Cf}function Wo(e){return e===mT}var Ic=class{};var Tc=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var uD=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(uD||{}),If=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new Tc,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}};var Ac=class e extends If{constructor(t={}){super(t),this.type=uD.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var vT=new _("");var rD="b",iD="h",oD="s",sD="st",aD="u",cD="rt",Mc=new _(""),yT=["GET","HEAD"];function DT(e,t){var d;let l=g(Mc),{isCacheActive:n}=l,r=Op(l,["isCacheActive"]),{transferCache:i,method:o}=e;if(!n||o==="POST"&&!r.includePostRequests&&!i||o!=="POST"&&!yT.includes(o)||i===!1||((d=r.filter)==null?void 0:d.call(r,e))===!1)return t(e);let s=g(Ur),a=ET(e),c=s.get(a,null),u=r.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(u=i.includeHeaders),c){let{[rD]:f,[cD]:p,[iD]:m,[oD]:y,[sD]:A,[aD]:S}=c,H=f;switch(p){case"arraybuffer":H=new TextEncoder().encode(f).buffer;break;case"blob":H=new Blob([f]);break}let re=new Tc(m);return I(new Ac({body:H,headers:re,status:y,statusText:A,url:S}))}return t(e).pipe(we(f=>{f instanceof Ac&&s.set(a,{[rD]:f.body,[iD]:_T(f.headers,u),[oD]:f.status,[sD]:f.statusText,[aD]:f.url||"",[cD]:e.responseType})}))}function _T(e,t){if(!t)return{};let n={};for(let r of t){let i=e.getAll(r);i!==null&&(n[r]=i)}return n}function ET(e){let{params:t,method:n,responseType:r,url:i}=e,o=t.keys().sort().map(c=>"".concat(c,"=").concat(t.getAll(c))).join("&"),s=n+"."+r+"."+i+"?"+o,a=wT(s);return a}function wT(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483647+1,t.toString()}function lD(e){return[{provide:Mc,useFactory:()=>(Uo("NgHttpTransferCache"),x({isCacheActive:!0},e))},{provide:vT,useValue:DT,multi:!0,deps:[Ur,Mc]},{provide:ji,multi:!0,useFactory:()=>{let t=g(ir),n=g(Mc);return()=>{yf(t).then(()=>{n.isCacheActive=!1})}}}]}var Tf=class extends Cc{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Af=class e extends Tf{static makeCurrent(){Qy(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=bT();return n==null?null:CT(n)}resetBaseElement(){qo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return tD(document.cookie,t)}},qo=null;function bT(){return qo=qo||document.querySelector("base"),qo?qo.getAttribute("href"):null}var Oc;function CT(e){Oc=Oc||document.createElement("a"),Oc.setAttribute("href",e);let t=Oc.pathname;return t.charAt(0)==="/"?t:"/".concat(t)}var IT=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),Vi=new _("EventManagerPlugins"),pD=(()=>{let t=class t{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new w(5101,!1);return this._eventNameToPlugin.set(r,i),i}};t.\u0275fac=function(i){return new(i||t)(C(Vi),C(te))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),xc=class{constructor(t){this._doc=t}},Sf="ng-app-id",mD=(()=>{let t=class t{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wo(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var o,s;let i=this.styleRef;(s=(o=i.get(r))==null?void 0:o.elements)==null||s.forEach(a=>a.remove()),i.delete(r)}collectServerRenderedStyles(){var i;let r=(i=this.doc.head)==null?void 0:i.querySelectorAll("style[".concat(Sf,'="').concat(this.appId,'"]'));if(r!=null&&r.length){let o=new Map;return r.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o==null?void 0:o.get(i);if((s==null?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(Sf),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Sf,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){var c;let o=this.getStyleElement(r,i),s=this.styleRef,a=(c=s.get(i))==null?void 0:c.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(C(oe),C(dc),C(jd,8),C(At))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),Mf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},xf=/%COMP%/g,gD="%COMP%",ST="_nghost-".concat(gD),MT="_ngcontent-".concat(gD),TT=!0,AT=new _("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>TT});function OT(e){return MT.replace(xf,e)}function xT(e){return ST.replace(xf,e)}function vD(e,t){return t.map(n=>n.replace(xf,e))}var dD=(()=>{let t=class t{constructor(r,i,o,s,a,c,u,l=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wo(c),this.defaultRenderer=new Yo(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ln.ShadowDom&&(i=Me(x({},i),{encapsulation:ln.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Nc?o.applyToHost(r):o instanceof Zo&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case ln.Emulated:s=new Nc(u,l,i,this.appId,d,a,c,f);break;case ln.ShadowDom:return new Of(u,l,r,i,a,c,this.nonce,f);default:s=new Zo(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(C(pD),C(mD),C(dc),C(AT),C(oe),C(At),C(te),C(jd))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),Yo=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Mf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(fD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(fD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Mf[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Mf[r];i?t.removeAttributeNS(i,n):t.removeAttribute("".concat(r,":").concat(n))}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Pn.DashCase|Pn.Important)?t.style.setProperty(n,r,i&Pn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Pn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Hn().getGlobalEventTarget(this.doc,t),!t))throw new Error("Unsupported event target ".concat(t," for event ").concat(n));return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function fD(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Of=class extends Yo{constructor(t,n,r,i,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=vD(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Zo=class extends Yo{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?vD(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nc=class extends Zo{constructor(t,n,r,i,o,s,a,c){let u=i+"-"+r.id;super(t,n,r,o,s,a,c,u),this.contentAttr=OT(u),this.hostAttr=xT(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},NT=(()=>{let t=class t extends xc{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),hD=["alt","control","meta","shift"],PT={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},RT={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},FT=(()=>{let t=class t extends xc{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Hn().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),hD.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(r,i){let o=PT[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),hD.forEach(a=>{if(a!==o){let c=RT[a];c(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{t.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})();function iH(e,t){return $y(x({rootComponent:e},kT(t)))}function kT(e){var t;return{appProviders:[...BT,...(t=e==null?void 0:e.providers)!=null?t:[]],platformProviders:UT}}function LT(){Af.makeCurrent()}function jT(){return new Fn}function VT(){return ov(document),document}var UT=[{provide:At,useValue:Cf},{provide:Ld,useValue:LT,multi:!0},{provide:oe,useFactory:VT,deps:[]}];var BT=[{provide:lc,useValue:"root"},{provide:Fn,useFactory:jT,deps:[]},{provide:Vi,useClass:NT,multi:!0,deps:[oe,te,At]},{provide:Vi,useClass:FT,multi:!0,deps:[oe]},dD,mD,pD,{provide:Rr,useExisting:dD},{provide:Ic,useClass:IT,deps:[]},[]];function $T(){return new Nf(C(oe))}var Nf=(()=>{let t=class t{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new i:o=$T(),o},providedIn:"root"});let e=t;return e})();var Ko=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=C(yD),o},providedIn:"root"});let e=t;return e})();function HT(e){return new yD(e.get(oe))}var yD=(()=>{let t=class t extends Ko{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case lt.NONE:return i;case lt.HTML:return nr(i,"HTML")?hn(i):zd(this._doc,String(i)).toString();case lt.STYLE:return nr(i,"Style")?hn(i):i;case lt.SCRIPT:if(nr(i,"Script"))return hn(i);throw new w(5200,!1);case lt.URL:return nr(i,"URL")?hn(i):pc(String(i));case lt.RESOURCE_URL:if(nr(i,"ResourceURL"))return hn(i);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(r){return Sv(r)}bypassSecurityTrustStyle(r){return Mv(r)}bypassSecurityTrustScript(r){return Tv(r)}bypassSecurityTrustUrl(r){return Av(r)}bypassSecurityTrustResourceUrl(r){return Ov(r)}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new i:o=HT(C(st)),o},providedIn:"root"});let e=t;return e})();function oH(...e){let t=[],n=new Set,r=n.has(1);for(let{\u0275providers:i,\u0275kind:o}of e)n.add(o),i.length&&t.push(i);return Vr([[],Gy(),n.has(0)||r?[]:lD({}),t])}var MD=(()=>{let t=class t{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};t.\u0275fac=function(i){return new(i||t)(v($n),v(B))},t.\u0275dir=L({type:t});let e=t;return e})(),TD=(()=>{let t=class t extends MD{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275dir=L({type:t,features:[Oe]});let e=t;return e})(),Lf=new _("NgValueAccessor");var GT={provide:Lf,useExisting:jn(()=>AD),multi:!0};function WT(){let e=Hn()?Hn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var qT=new _("CompositionEventMode"),AD=(()=>{let t=class t extends MD{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!WT())}writeValue(r){let i=r==null?"":r;this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};t.\u0275fac=function(i){return new(i||t)(v($n),v(B),v(qT,8))},t.\u0275dir=L({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&ze("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[xe([GT]),Oe]});let e=t;return e})();function YT(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var OD=new _("NgValidators"),ZT=new _("NgAsyncValidators");function KT(e){return YT(e.value)?{required:!0}:null}function DD(e){return null}function xD(e){return e!=null}function ND(e){return rr(e)?_e(e):e}function PD(e){let t={};return e.forEach(n=>{t=n!=null?x(x({},t),n):t}),Object.keys(t).length===0?null:t}function RD(e,t){return t.map(n=>n(e))}function QT(e){return!e.validate}function FD(e){return e.map(t=>QT(t)?t:n=>t.validate(n))}function XT(e){if(!e)return null;let t=e.filter(xD);return t.length==0?null:function(n){return PD(RD(n,t))}}function kD(e){return e!=null?XT(FD(e)):null}function JT(e){if(!e)return null;let t=e.filter(xD);return t.length==0?null:function(n){let r=RD(n,t).map(ND);return tl(r).pipe(E(PD))}}function LD(e){return e!=null?JT(FD(e)):null}function _D(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function eA(e){return e._rawValidators}function tA(e){return e._rawAsyncValidators}function Pf(e){return e?Array.isArray(e)?e:[e]:[]}function Rc(e,t){return Array.isArray(e)?e.includes(t):e===t}function ED(e,t){let n=Pf(t);return Pf(e).forEach(i=>{Rc(n,i)||n.push(i)}),n}function wD(e,t){return Pf(t).filter(n=>!Rc(e,n))}var Fc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=kD(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=LD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Rf=class extends Fc{get formDirective(){return null}get path(){return null}},zr=class extends Fc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ff=class{constructor(t){this._cd=t}get isTouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.touched)}get isUntouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.untouched)}get isPristine(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pristine)}get isDirty(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.dirty)}get isValid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.valid)}get isInvalid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.invalid)}get isPending(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pending)}get isSubmitted(){var t;return!!((t=this._cd)!=null&&t.submitted)}},nA={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wH=Me(x({},nA),{"[class.ng-submitted]":"isSubmitted"}),bH=(()=>{let t=class t extends Ff{constructor(r){super(r)}};t.\u0275fac=function(i){return new(i||t)(v(zr,2))},t.\u0275dir=L({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ue("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Oe]});let e=t;return e})();var Qo="VALID",Pc="INVALID",Ui="PENDING",Xo="DISABLED";function rA(e){return(kc(e)?e.validators:e)||null}function iA(e){return Array.isArray(e)?kD(e):e||null}function oA(e,t){return(kc(t)?t.asyncValidators:e)||null}function sA(e){return Array.isArray(e)?LD(e):e||null}function kc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var kf=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Qo}get invalid(){return this.status===Pc}get pending(){return this.status==Ui}get disabled(){return this.status===Xo}get enabled(){return this.status!==Xo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ED(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ED(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(wD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(wD(t,this._rawAsyncValidators))}hasValidator(t){return Rc(this._rawValidators,t)}hasAsyncValidator(t){return Rc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ui,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Xo,this.errors=null,this._forEachChild(r=>{r.disable(Me(x({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Me(x({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Qo,this._forEachChild(r=>{r.enable(Me(x({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Me(x({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qo||this.status===Ui)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xo:Qo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ui,this._hasOwnPendingAsyncValidator=!0;let n=ND(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new $e,this.statusChanges=new $e}_calculateStatus(){return this._allControlsDisabled()?Xo:this.errors?Pc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ui)?Ui:this._anyControlsHaveStatus(Pc)?Pc:Qo}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){kc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=iA(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=sA(this._rawAsyncValidators)}};var jD=new _("CallSetDisabledState",{providedIn:"root",factory:()=>jf}),jf="always";function aA(e,t){return[...t.path,e]}function cA(e,t,n=jf){var r,i;lA(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&((i=(r=t.valueAccessor).setDisabledState)==null||i.call(r,e.disabled)),dA(e,t),hA(e,t),fA(e,t),uA(e,t)}function bD(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function uA(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function lA(e,t){let n=eA(e);t.validator!==null?e.setValidators(_D(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=tA(e);t.asyncValidator!==null?e.setAsyncValidators(_D(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();bD(t._rawValidators,i),bD(t._rawAsyncValidators,i)}function dA(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&VD(e,t)})}function fA(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&VD(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function VD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function hA(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function pA(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function mA(e){return Object.getPrototypeOf(e.constructor)===TD}function gA(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===AD?n=o:mA(o)?r=o:i=o}),i||r||n||null}function CD(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ID(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var vA=class extends kf{constructor(t=null,n,r){super(rA(n),oA(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(ID(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){CD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){CD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){ID(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var yA={provide:zr,useExisting:jn(()=>Lc)},SD=(()=>Promise.resolve())(),Lc=(()=>{let t=class t extends zr{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new vA,this._registered=!1,this.name="",this.update=new $e,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=gA(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),pA(r,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){cA(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){SD.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),(i=this._changeDetectorRef)==null||i.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&zo(i);SD.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(s=this._changeDetectorRef)==null||s.markForCheck()})}_getPath(r){return this._parent?aA(r,this._parent):[r]}};t.\u0275fac=function(i){return new(i||t)(v(Rf,9),v(OD,10),v(ZT,10),v(Lf,10),v(et,8),v(jD,8))},t.\u0275dir=L({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[xe([yA]),Oe,jt]});let e=t;return e})();var DA=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({});let e=t;return e})();var _A={provide:Lf,useExisting:jn(()=>EA),multi:!0},EA=(()=>{let t=class t extends TD{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275dir=L({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&ze("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[xe([_A]),Oe]});let e=t;return e})();var wA=(()=>{let t=class t{constructor(){this._validator=DD}ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):DD,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=L({type:t,features:[jt]});let e=t;return e})();var bA={provide:OD,useExisting:jn(()=>CA),multi:!0};var CA=(()=>{let t=class t extends wA{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=zo,this.createValidator=r=>KT}enabled(r){return r}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275dir=L({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&&Ke("required",o._enabled?"":null)},inputs:{required:"required"},features:[xe([bA]),Oe]});let e=t;return e})();var IA=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({imports:[DA]});let e=t;return e})();var IH=(()=>{let t=class t{static withConfig(r){var i;return{ngModule:t,providers:[{provide:jD,useValue:(i=r.callSetDisabledState)!=null?i:jf}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({imports:[IA]});let e=t;return e})();var ne=new _("An abstraction over global window object",{factory:()=>{let{defaultView:e}=g(oe);if(!e)throw new Error("Window is not available");return e}}),Jt=new _("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{let{requestAnimationFrame:e,cancelAnimationFrame:t}=g(ne);return new M(r=>{let i=NaN,o=s=>{r.next(s),i=e(o)};return i=e(o),()=>{t(i)}}).pipe(tt())}}),xH=new _("An abstraction over window.caches object",{factory:()=>g(ne).caches}),NH=new _("An abstraction over window.crypto object",{factory:()=>g(ne).crypto}),PH=new _("An abstraction over window.CSS object",{factory:()=>g(ne).CSS||{escape:e=>e,supports:()=>!1}}),RH=new _("An abstraction over window.history object",{factory:()=>g(ne).history}),FH=new _("An abstraction over window.localStorage object",{factory:()=>g(ne).localStorage}),kH=new _("An abstraction over window.location object",{factory:()=>g(ne).location}),Bi=new _("An abstraction over window.navigator object",{factory:()=>g(ne).navigator}),LH=new _("An abstraction over window.navigator.mediaDevices object",{factory:()=>g(Bi).mediaDevices}),jH=new _("An abstraction over window.navigator.connection object",{factory:()=>g(Bi).connection||null}),VH=new _("Shared Observable based on `document visibility changed`",{factory:()=>{let e=g(oe);return on(e,"visibilitychange").pipe(le(0),E(()=>e.visibilityState!=="hidden"),Te(),Ct({refCount:!1,bufferSize:1}))}}),UD=new _("An abstraction over window.performance object",{factory:()=>g(ne).performance}),UH=new _("An abstraction over window.screen object",{factory:()=>g(ne).screen}),BH=new _("An abstraction over window.sessionStorage object",{factory:()=>g(ne).sessionStorage}),$H=new _("An abstraction over SpeechRecognition class",{factory:()=>{let e=g(ne);return e.speechRecognition||e.webkitSpeechRecognition||null}}),HH=new _("An abstraction over window.speechSynthesis object",{factory:()=>g(ne).speechSynthesis}),Vf=new _("An abstraction over window.navigator.userAgent object",{factory:()=>g(Bi).userAgent});var Dn="*";function Ne(e,t){return{type:7,name:e,definitions:t,options:{}}}function j(e,t=null){return{type:4,styles:t,timings:e}}function BD(e,t=null){return{type:2,steps:e,options:t}}function D(e){return{type:6,styles:e,offset:null}}function ee(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function $D(e=null){return{type:9,options:e}}function Qe(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function nt(e,t){return{type:12,timings:e,animation:t}}var or=class{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Jo=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},jc="!";var sr=()=>!1,$i=()=>!0,YH=79,ZH=new To,Uf=[],Bf=()=>{},HD={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},zD=Object.assign(Object.assign({},HD),{toJSON(){return HD}}),KH=e=>String(e);var QH=(e,t)=>e===t||MA(e,t);function MA(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}var XH=Ne("tuiParentAnimation",[ee(":leave",[Qe(":scope > *",[$D()],{optional:!0})])]),JH=Ne("tuiParentStop",[ee(":enter",[])]),Hi=1e3/15,GD=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,WD="\xA0",ez="\u2013";var qD="3.53.0";var YD="edge/";function nz(e,t){return parseInt(t.slice(t.toLowerCase().indexOf(YD)+YD.length),10)=t&&e=n?n:Math.round(e)}var TA=292;function az(e,t=0){return AA(e,t,Math.round)}function AA(e,t,n){if(e===1/0)return e;t=Math.min(t,TA);let r="".concat(e,"e").split("e"),i=n(Number("".concat(r[0],"e").concat(Number(r[1])+t))),o="".concat(i,"e").split("e");return Number("".concat(o[0],"e").concat(Number(o[1])-t))}function KD(e,t){return e.slice(0,Math.max(t,0)).concat(e.slice(Math.max(t+1,0)))}function Gn(e){return typeof e=="string"}function he(e){return Q(()=>e)}function Q(e){return new _("",{factory:e})}function QD(e){return e<.5?2*e*e:-1+(4-2*e)*e}function XD(e){let t=[];return e.find((n,r,i)=>(t=i,!0)),t}function JD(e){return!e}function ar(e){return e!=null}function lz(e,t,n){return e===null?t===null:t===null?!1:n(e,t)}function es(e,t,n,r){return n?OA(e,t,r):xA(e,t,r)}function OA(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollTop)>0&&!n||Math.ceil(r.scrollTop+r.clientHeight)0&&!n||Math.ceil(r.scrollLeft+r.clientWidth)!e.contains(y));return m.length===4?m:null}function mz(e,t){let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;for(;zi(i)&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Bc(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:Bc(e.parentElement,t)}function gz(e){return RA(e)&&!e.readOnly||!!e.isContentEditable}function vz(e=0,t=0){let n={x:e,y:t,left:e,right:e,top:t,bottom:t,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON(){return n}})}function yz(e){return"explicitOriginalTarget"in e?(e==null?void 0:e.explicitOriginalTarget)!==e.target:"pointerId"in e?e.pointerId===-1:"detail"in e&&"webkitForce"in e?(e==null?void 0:e.detail)===0:!1}function $f({activeElement:e}){if(!(e!=null&&e.shadowRoot))return e;let t=e.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function n_(e){let t=$f(e);zi(t)&&t.blur()}function r_(e){if(e.hasAttribute("disabled")||e.getAttribute("tabIndex")==="-1")return!1;if(zi(e)&&e.isContentEditable||e.getAttribute("tabIndex")==="0")return!0;switch(e.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return e.hasAttribute("controls");case"INPUT":return e.getAttribute("type")!=="hidden";case"A":case"LINK":return e.hasAttribute("href");default:return!1}}function FA(e){return!e.hasAttribute("disabled")&&(e.getAttribute("tabIndex")==="-1"||r_(e))}function wz({initial:e,root:t,previous:n=!1,keyboard:r=!0}){if(!t.ownerDocument)return null;let i=r?r_:FA,o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,GD);for(o.currentNode=e;n?o.previousNode():o.nextNode();)if(zi(o.currentNode)&&(e=o.currentNode),zi(e)&&i(e))return e;return null}function Gr(e){return!!(e!=null&&e.ownerDocument)&&$f(e.ownerDocument)===e}function i_(e){if(!e.ownerDocument||!e.contains)return!1;let t=$f(e.ownerDocument);return t!==null&&e.contains(t)}function bz(e,t,n){for(e+=n;e>=0&&e1}var jA=/^((?!chrome|android).)*safari/i;function o_(e){return Hf(e)||jA.test(e.userAgent.toLowerCase())}function $c(e,t=VA(),n="rgba(0, 0, 0, 0.7)"){if(Gn(e)){let i=BA(e).reduce((o,s)=>{let a=UA(s),c="id_".concat(t,"_").concat(s);return o.replace(new RegExp('"'.concat(a,'"'),"g"),'"'.concat(c,'"')).replace(new RegExp("'".concat(a,"'"),"g"),"'".concat(c,"'")).replace(new RegExp("url\\('#".concat(a,"'\\)"),"g"),"url('#".concat(c,"')")).replace(new RegExp('url\\("#'.concat(a,'"\\)'),"g"),'url("#'.concat(c,'")')).replace(new RegExp("url\\(#".concat(a,"\\)"),"g"),"url(#".concat(c,")"))},e);return $A(i,n)}return e}function VA(){return Math.floor(Math.random()*Date.now())}function UA(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function BA(e){var t;let n=((t=e.match(/url\(("?)('*)#(.*?)('*)\)/g))!==null&&t!==void 0?t:[]).map(r=>r.slice(4,r.length-1).replace(/['"#]+/g,""));return Array.from(new Set(n))}function $A(e,t){try{let n=new DOMParser().parseFromString(e,"text/html");return n.body.querySelectorAll("[fill^=url]").forEach(r=>r.setAttribute("fill","".concat(r.getAttribute("fill")," ").concat(t).trim())),n.body.innerHTML.trim()}catch{return e}}var s_=class extends Error{constructor(t){super("")}},a_=class extends Error{constructor(t){super("")}},c_=class extends Error{constructor(t){super("")}},Hc=class extends Error{constructor(){super("")}},ts=class extends Error{constructor(){super("")}},ns=class extends Error{constructor(){super("")}};var zc=class extends Error{constructor(){super("")}};function Vz(e){return new M(t=>{if(!e.valueChanges)throw new zc;e.valueChanges.pipe(le(e.value)).subscribe(t)})}function $(e,t,n={}){return on(e,t,n)}function HA(e){return Ee($(e,"mouseup"),$(e,"dragend"))}function u_(e=0){return wr(W(()=>Xe(e).pipe(E(sr),le(!0))),Te())}var zf,Gf;function l_(e){let t=$(e,"blur"),{ownerDocument:n}=e;if(!n)throw new ts;return(!Gf||!zf)&&(zf=$(n,"mouseup",{capture:!0}).pipe(u_(),le(!1),Ct({bufferSize:1,refCount:!0})),Gf=$(n,"mousedown",{capture:!0}).pipe(u_(),le(!1),Ct({bufferSize:1,refCount:!0}))),Ee(mt($(e,"focus").pipe(je(1)),t.pipe(fe(()=>!Gr(e)),je(1),pi())).pipe(fa(),go(Gf,zf,(r,i,o)=>i||o),fe(JD))).pipe(W(()=>t.pipe(E(sr),je(1),le(!0))),Te())}function d_(e,t=Boolean){return wr(W(n=>t(n)?e(n):De))}function f_(e){var t,n;return"observed"in e?e.observed:!!(!((n=(t=e)===null||t===void 0?void 0:t.observers)===null||n===void 0)&&n.length)}function Uz(e){return e.changes.pipe(le(null),E(()=>XD(e)))}function Bz(e,{onlyTrusted:t}={onlyTrusted:!0}){let{ownerDocument:n}=e;if(!n)throw new ts;return $(e,"mousedown").pipe(fe(({isTrusted:r})=>r||!t),W(()=>HA(n).pipe(E(sr),je(1),le(!0))))}function zA(){return we(e=>e.preventDefault())}function h_(e){return $(e===e.ownerDocument.documentElement?e.ownerDocument:e,"scroll")}function p_(){return we(e=>{e.stopPropagation()})}function m_(e){return we(()=>{e.markForCheck()})}function GA(e){return t=>new M(n=>t.subscribe({next:r=>e.run(()=>n.next(r)),error:r=>e.run(()=>n.error(r)),complete:()=>e.run(()=>n.complete())}))}function _n(e){return t=>new M(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function En(e){return wr(_n(e),GA(e))}var rs=new _("POLYMORPHEUS_CONTEXT"),Wr=class{constructor(t,n){this.component=t,this.i=n}createInjector(t,n){return st.create({parent:this.i||t,providers:[{provide:rs,useValue:n}]})}},qf=(()=>{class e{constructor(n,r){this.template=n,this.cdr=r,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(Je,2),v(et))},e.\u0275dir=L({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),Gc=class{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var ur=(()=>{class e{constructor(n,r,i){this.vcr=n,this.i=r,this.t=i,this.content=""}get template(){return Wf(this.content)?this.content.template:this.content instanceof Je?this.content:this.t}ngOnChanges({content:n}){var r;let i=this.getContext();this.v&&(this.v.context=i),(r=this.c)===null||r===void 0||r.injector.get(et).markForCheck(),n&&(this.vcr.clear(),g_(this.content)?this.process(this.content):(i instanceof Gc&&i.$implicit)!=null&&(this.v=this.vcr.createEmbeddedView(this.template,i)))}ngDoCheck(){Wf(this.content)&&this.content.check()}static ngTemplateContextGuard(n,r){return!0}getContext(){return WA(this.content)||g_(this.content)?this.context:new Gc(typeof this.content=="function"?this.content(this.context):this.content)}process(n){let r=n.createInjector(this.i,this.context&&new Proxy(this.context,{get:(i,o)=>{var s;return(s=this.context)===null||s===void 0?void 0:s[o]}}));this.c=this.vcr.createComponent(r.get(pn).resolveComponentFactory(n.component),0,r)}}return e.\u0275fac=function(n){return new(n||e)(v(dt),v(st),v(Je))},e.\u0275dir=L({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:["polymorpheusOutlet","content"],context:["polymorpheusOutletContext","context"]},features:[jt]}),e})();function Wf(e){return e instanceof qf}function g_(e){return e instanceof Wr}function WA(e){return Wf(e)||e instanceof Je}var lr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function Yf(e,t={}){let{selector:n}=t,r=qp(t,["selector"]);return new M(i=>{let o=new AbortController,{signal:s}=o,a=!0,{signal:c}=r;if(c)if(c.aborted)o.abort();else{let d=()=>{s.aborted||o.abort()};c.addEventListener("abort",d),i.add(()=>c.removeEventListener("abort",d))}let u=Object.assign(Object.assign({},r),{signal:s}),l=d=>{a=!1,i.error(d)};return fetch(e,u).then(d=>{n?U(n(d)).subscribe(T(i,void 0,()=>{a=!1,i.complete()},l)):(a=!1,i.next(d),i.complete())}).catch(l),()=>{a&&o.abort()}})}function v_(e){return new w(3e3,!1)}function qA(){return new w(3100,!1)}function YA(){return new w(3101,!1)}function ZA(e){return new w(3001,!1)}function KA(e){return new w(3003,!1)}function QA(e){return new w(3004,!1)}function XA(e,t){return new w(3005,!1)}function JA(){return new w(3006,!1)}function eO(){return new w(3007,!1)}function tO(e,t){return new w(3008,!1)}function nO(e){return new w(3002,!1)}function rO(e,t,n,r,i){return new w(3010,!1)}function iO(){return new w(3011,!1)}function oO(){return new w(3012,!1)}function sO(){return new w(3200,!1)}function aO(){return new w(3202,!1)}function cO(){return new w(3013,!1)}function uO(e){return new w(3014,!1)}function lO(e){return new w(3015,!1)}function dO(e){return new w(3016,!1)}function fO(e,t){return new w(3404,!1)}function hO(e){return new w(3502,!1)}function pO(e){return new w(3503,!1)}function mO(){return new w(3300,!1)}function gO(e){return new w(3504,!1)}function vO(e){return new w(3301,!1)}function yO(e,t){return new w(3302,!1)}function DO(e){return new w(3303,!1)}function _O(e,t){return new w(3400,!1)}function EO(e){return new w(3401,!1)}function wO(e){return new w(3402,!1)}function bO(e,t){return new w(3505,!1)}function dr(e){switch(e.length){case 0:return new or;case 1:return e[0];default:return new Jo(e)}}function R_(e,t,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(t.forEach(c=>{let u=c.get("offset"),l=u==s,d=l&&a||new Map;c.forEach((f,p)=>{let m=p,y=f;if(p!=="offset")switch(m=e.normalizePropertyName(m,i),y){case jc:y=n.get(p);break;case Dn:y=r.get(p);break;default:y=e.normalizeStyleValue(p,m,y,i);break}d.set(m,y)}),l||o.push(d),a=d,s=u}),i.length)throw hO(i);return o}function vh(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Zf(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Zf(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Zf(n,"destroy",e)));break}}function Zf(e,t,n){let r=n.totalTime,i=!!n.disabled,o=yh(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,r==null?e.totalTime:r,i),s=e._data;return s!=null&&(o._data=s),o}function yh(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function xt(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function y_(e){let t=e.indexOf(":"),n=e.substring(1,t),r=e.slice(t+1);return[n,r]}var CO=(()=>typeof document>"u"?null:document.documentElement)();function Dh(e){let t=e.parentNode||e.host||null;return t===CO?null:t}function IO(e){return e.substring(1,6)=="ebkit"}var qr=null,D_=!1;function SO(e){qr||(qr=MO()||{},D_=qr.style?"WebkitAppearance"in qr.style:!1);let t=!0;return qr.style&&!IO(e)&&(t=e in qr.style,!t&&D_&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in qr.style)),t}function MO(){return typeof document<"u"?document.body:null}function F_(e,t){for(;t;){if(t===e)return!0;t=Dh(t)}return!1}function k_(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let r=e.querySelector(t);return r?[r]:[]}var TO=(()=>{let t=class t{validateStyleProperty(r){return SO(r)}matchesElement(r,i){return!1}containsElement(r,i){return F_(r,i)}getParentElement(r){return Dh(r)}query(r,i,o){return k_(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,c=[],u){return new or(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),rG=(()=>{let t=class t{};t.NOOP=new TO;let e=t;return e})(),th=class{};var AO=1e3,L_="{{",OO="}}",j_="ng-enter",nh="ng-leave",qc="ng-trigger",Xc=".ng-trigger",__="ng-animating",rh=".ng-animating";function Wn(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ih(parseFloat(t[1]),t[2])}function ih(e,t){switch(t){case"s":return e*AO;default:return e}}function Jc(e,t,n){return e.hasOwnProperty("duration")?e:xO(e,t,n)}function xO(e,t,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof e=="string"){let a=e.match(r);if(a===null)return t.push(v_(e)),{duration:0,delay:0,easing:""};i=ih(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=ih(parseFloat(c),a[4]));let u=a[5];u&&(s=u)}else i=e;if(!n){let a=!1,c=t.length;i<0&&(t.push(qA()),a=!0),o<0&&(t.push(YA()),a=!0),a&&t.splice(c,0,v_(e))}return{duration:i,delay:o,easing:s}}function ls(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function V_(e){let t=new Map;return Object.keys(e).forEach(n=>{let r=e[n];t.set(n,r)}),t}function NO(e){return e.length?e[0]instanceof Map?e:e.map(t=>V_(t)):[]}function Yi(e,t=new Map,n){if(n)for(let[r,i]of n)t.set(r,i);for(let[r,i]of e)t.set(r,i);return t}function wn(e,t,n){t.forEach((r,i)=>{let o=_h(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function Zr(e,t){t.forEach((n,r)=>{let i=_h(r);e.style[i]=""})}function is(e){return Array.isArray(e)?e.length==1?e[0]:BD(e):e}function PO(e,t,n){let r=t.params||{},i=U_(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(ZA(o))})}var oh=new RegExp("".concat(L_,"\\s*(.+?)\\s*").concat(OO),"g");function U_(e){let t=[];if(typeof e=="string"){let n;for(;n=oh.exec(e);)t.push(n[1]);oh.lastIndex=0}return t}function ss(e,t,n){let r=e.toString(),i=r.replace(oh,(o,s)=>{let a=t[s];return a==null&&(n.push(KA(s)),a=""),a.toString()});return i==r?e:i}function eu(e){let t=[],n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}var RO=/-+([a-z0-9])/g;function _h(e){return e.replace(RO,(...t)=>t[1].toUpperCase())}function FO(e,t){return e===0||t===0}function kO(e,t,n){if(n.size&&t.length){let r=t[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,B_(e,a)))}}return t}function Ot(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw QA(t.type)}}function B_(e,t){return window.getComputedStyle(e)[t]}var LO=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),E_=class extends th{normalizePropertyName(t,n){return _h(t)}normalizeStyleValue(t,n,r,i){let o="",s=r.toString().trim();if(LO.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(XA(t,r))}return s+o}};var tu="*";function jO(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(r=>VO(r,n,t)):n.push(e),n}function VO(e,t,n){if(e[0]==":"){let c=UO(e,n);if(typeof c=="function"){t.push(c);return}e=c}let r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(lO(e)),t;let i=r[1],o=r[2],s=r[3];t.push(w_(i,s));let a=i==tu&&s==tu;o[0]=="<"&&!a&&t.push(w_(s,i))}function UO(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}var Yc=new Set(["true","1"]),Zc=new Set(["false","0"]);function w_(e,t){let n=Yc.has(e)||Zc.has(e),r=Yc.has(t)||Zc.has(t);return(i,o)=>{let s=e==tu||e==i,a=t==tu||t==o;return!s&&n&&typeof i=="boolean"&&(s=i?Yc.has(e):Zc.has(e)),!a&&r&&typeof o=="boolean"&&(a=o?Yc.has(t):Zc.has(t)),s&&a}}var $_=":self",BO=new RegExp("s*".concat($_,"s*,?"),"g");function H_(e,t,n,r){return new sh(e).build(t,n,r)}var b_="",sh=class{constructor(t){this._driver=t}build(t,n,r){let i=new ah(n);return this._resetContextStyleTimingState(i),Ot(this,is(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=b_,t.collectedStyles=new Map,t.collectedStyles.set(b_,new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&n.errors.push(JA()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==0){let c=a,u=c.name;u.toString().split(/\s*,\s*/).forEach(l=>{c.name=l,o.push(this.visitState(c,n))}),c.name=u}else if(a.type==1){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(eO())}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,n){let r=this.visitStyle(t.styles,n),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};if(r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{U_(c).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size){let a=eu(o.values());n.errors.push(tO(t.name,a))}}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;let r=Ot(this,is(t.animation),n);return{type:1,matchers:jO(t.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Yr(t.options)}}visitSequence(t,n){return{type:2,steps:t.steps.map(r=>Ot(this,r,n)),options:Yr(t.options)}}visitGroup(t,n){let r=n.currentTime,i=0,o=t.steps.map(s=>{n.currentTime=r;let a=Ot(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:3,steps:o,options:Yr(t.options)}}visitAnimate(t,n){let r=GO(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:D({});if(o.type==5)i=this.visitKeyframes(o,n);else{let s=t.styles,a=!1;if(!s){a=!0;let u={};r.easing&&(u.easing=r.easing),s=D(u)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,n){let r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){let r=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===Dn?r.push(a):n.errors.push(nO(a)):r.push(V_(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(L_)>=0){o=!0;break}}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let u=n.collectedStyles.get(n.currentQuerySelector),l=u.get(c),d=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(n.errors.push(rO(c,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&u.set(c,{startTime:o,endTime:i}),n.options&&PO(a,n.options,n.errors)})})}visitKeyframes(t,n){let r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(iO()),r;let i=1,o=0,s=[],a=!1,c=!1,u=0,l=t.steps.map(S=>{let H=this._makeStyleAst(S,n),re=H.offset!=null?H.offset:zO(H.styles),ge=0;return re!=null&&(o++,ge=H.offset=re),c=c||ge<0||ge>1,a=a||ge0&&o{let re=f>0?H==p?1:f*H:s[H],ge=re*A;n.currentTime=m+y.delay+ge,y.duration=ge,this._validateStyleAst(S,n),S.offset=re,r.styles.push(S)}),r}visitReference(t,n){return{type:8,animation:Ot(this,is(t.animation),n),options:Yr(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:9,options:Yr(t.options)}}visitAnimateRef(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Yr(t.options)}}visitQuery(t,n){let r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;let[o,s]=$O(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,xt(n.collectedStyles,n.currentQuerySelector,new Map);let a=Ot(this,is(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Yr(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(cO());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Jc(t.timings,n.errors,!0);return{type:12,animation:Ot(this,is(t.animation),n),timings:r,options:null}}};function $O(e){let t=!!e.split(/\s*,\s*/).find(n=>n==$_);return t&&(e=e.replace(BO,"")),e=e.replace(/@\*/g,Xc).replace(/@\w+/g,n=>Xc+"-"+n.slice(1)).replace(/:animating/g,rh),[e,t]}function HO(e){return e?ls(e):null}var ah=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function zO(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}function GO(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=Jc(e,t).duration;return Kf(o,0,"")}let n=e;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Kf(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=Jc(n,t);return Kf(i.duration,i.delay,i.easing)}function Yr(e){return e?(e=ls(e),e.params&&(e.params=HO(e.params))):e={},e}function Kf(e,t,n){return{duration:e,delay:t,easing:n}}function Eh(e,t,n,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var as=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}},WO=1,qO=":enter",YO=new RegExp(qO,"g"),ZO=":leave",KO=new RegExp(ZO,"g");function z_(e,t,n,r,i,o=new Map,s=new Map,a,c,u=[]){return new ch().buildKeyframes(e,t,n,r,i,o,s,a,c,u)}var ch=class{buildKeyframes(t,n,r,i,o,s,a,c,u,l=[]){u=u||new as;let d=new uh(t,n,u,i,o,l,[]);d.options=c;let f=c.delay?Wn(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),Ot(this,r,d);let p=d.timelines.filter(m=>m.containsAnimation());if(p.length&&a.size){let m;for(let y=p.length-1;y>=0;y--){let A=p[y];if(A.element===n){m=A;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,c)}return p.length?p.map(m=>m.buildKeyframes()):[Eh(n,[],[],[],0,f,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){let r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){var i;for(let o of t){let s=o==null?void 0:o.delay;if(s){let a=typeof s=="number"?s:Wn(ss(s,(i=o==null?void 0:o.params)!=null?i:{},n.errors));r.delayNextStep(a)}}}_visitSubInstructions(t,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Wn(r.duration):null,a=r.delay!=null?Wn(r.delay):null;return s!==0&&t.forEach(c=>{let u=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,n){n.updateOptions(t.options,!0),Ot(this,t.animation,n),n.previousNode=t}visitSequence(t,n){let r=n.subContextCount,i=n,o=t.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==6&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=nu);let s=Wn(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Ot(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){let r=[],i=n.currentTimeline.currentTime,o=t.options&&t.options.delay?Wn(t.options.delay):0;t.steps.forEach(s=>{let a=n.createSubContext(t.options);o&&a.delayNextStep(o),Ot(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){let r=t.strValue,i=n.params?ss(r,n.params,n.errors):r;return Jc(i,n.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){let r=n.currentAnimateTimings=this._visitTiming(t.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=t.style;o.type==5?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(c=>{let u=c.offset||0;a.forwardTime(u*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=t}visitQuery(t,n){let r=n.currentTimeline.currentTime,i=t.options||{},o=i.delay?Wn(i.delay):0;o&&(n.previousNode.type===6||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=nu);let s=r,a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((u,l)=>{n.currentQueryIndex=l;let d=n.createSubContext(t.options,u);o&&d.delayNextStep(o),u===n.element&&(c=d.currentTimeline),Ot(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;s=Math.max(s,f)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){let r=n.parentContext,i=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let l=n.currentTimeline;c&&l.delayNextStep(c);let d=l.currentTime;Ot(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},nu={},uh=class e{constructor(t,n,r,i,o,s,a,c){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new ru(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;let r=t,i=this.options;r.duration!=null&&(i.duration=Wn(r.duration)),r.delay!=null&&(i.delay=Wn(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=ss(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let n=this.options.params;if(n){let r=t.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return t}createSubContext(t=null,n,r){let i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=nu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){let i={duration:n!=null?n:t.duration,delay:this.currentTimeline.currentTime+(r!=null?r:0)+t.delay,easing:""},o=new lh(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(YO,"."+this._enterClassName),t=t.replace(KO,"."+this._leaveClassName);let c=r!=1,u=this._driver.query(this.element,t,c);r!==0&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&a.length==0&&s.push(uO(n)),a}},ru=class e{constructor(t,n,r,i){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=WO,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Dn),this._currentKeyframe.set(n,Dn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){var a;n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=QO(t,this._globalTimelineStyles);for(let[c,u]of s){let l=ss(u,o,r);this._pendingStyles.set(c,l),this._localTimelineStyles.has(c)||this._backFill.set(c,(a=this._globalTimelineStyles.get(c))!=null?a:Dn),this._updateStyle(c,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let u=Yi(a,new Map,this._backFill);u.forEach((l,d)=>{l===jc?t.add(d):l===Dn&&n.add(d)}),r||u.set("offset",c/this.duration),i.push(u)});let o=t.size?eu(t.values()):[],s=n.size?eu(n.values()):[];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return Eh(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},lh=class extends ru{constructor(t,n,r,i,o,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,c=Yi(t[0]);c.set("offset",0),o.push(c);let u=Yi(t[0]);u.set("offset",C_(a)),o.push(u);let l=t.length-1;for(let d=1;d<=l;d++){let f=Yi(t[d]),p=f.get("offset"),m=n+p*r;f.set("offset",C_(m/s)),o.push(f)}r=s,n=0,i="",t=o}return Eh(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function C_(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function QO(e,t){let n=new Map,r;return e.forEach(i=>{if(i==="*"){r=r||t.keys();for(let o of r)n.set(o,Dn)}else Yi(i,n)}),n}function I_(e,t,n,r,i,o,s,a,c,u,l,d,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:f}}var Qf={},iu=class{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return XO(this.ast.matchers,t,n,r,i)}buildStyles(t,n,r){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t==null?void 0:t.toString())||i),i?i.buildStyles(n,r):new Map}build(t,n,r,i,o,s,a,c,u,l){var In;let d=[],f=this.ast.options&&this.ast.options.params||Qf,p=a&&a.params||Qf,m=this.buildStyles(r,p,d),y=c&&c.params||Qf,A=this.buildStyles(i,y,d),S=new Set,H=new Map,re=new Map,ge=i==="void",Ye={params:JO(y,f),delay:(In=this.ast.options)==null?void 0:In.delay},_t=l?[]:z_(t,n,this.ast.animation,o,s,m,A,Ye,u,d),Pe=0;if(_t.forEach(Et=>{Pe=Math.max(Et.duration+Et.delay,Pe)}),d.length)return I_(n,this._triggerName,r,i,ge,m,A,[],[],H,re,Pe,d);_t.forEach(Et=>{let vr=Et.element,ao=xt(H,vr,new Set);Et.preStyleProps.forEach(ni=>ao.add(ni));let co=xt(re,vr,new Set);Et.postStyleProps.forEach(ni=>co.add(ni)),vr!==n&&S.add(vr)});let rt=eu(S.values());return I_(n,this._triggerName,r,i,ge,m,A,_t,rt,H,re,Pe)}};function XO(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}function JO(e,t){let n=ls(t);for(let r in e)e.hasOwnProperty(r)&&e[r]!=null&&(n[r]=e[r]);return n}var dh=class{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){let r=new Map,i=ls(this.defaultParams);return Object.keys(t).forEach(o=>{let s=t[o];s!==null&&(i[o]=s)}),this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ss(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function ex(e,t,n){return new fh(e,t,n)}var fh=class{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new dh(i.style,o,r))}),S_(this.states,"true","1"),S_(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new iu(t,i,this.states))}),this.fallbackTransition=tx(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,i){return this.transitionFactories.find(s=>s.match(t,n,r,i))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}};function tx(e,t,n){let o={type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0};return new iu(e,o,t)}function S_(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}var nx=new as,hh=class{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){let r=[],i=[],o=H_(this._driver,n,r,i);if(r.length)throw pO(r);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,n,r){let i=t.element,o=R_(this._normalizer,t.keyframes,n,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){let i=[],o=this._animations.get(t),s,a=new Map;if(o?(s=z_(this._driver,n,o,j_,nh,new Map,new Map,r,nx,i),s.forEach(l=>{let d=xt(a,l.element,new Map);l.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(mO()),s=[]),i.length)throw gO(i);a.forEach((l,d)=>{l.forEach((f,p)=>{l.set(p,this._driver.computeStyle(d,p,Dn))})});let c=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),u=dr(c);return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){let n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){let n=this._playersById.get(t);if(!n)throw vO(t);return n}listen(t,n,r,i){let o=yh(n,"","","");return vh(this._getPlayer(t),r,o,i),()=>{}}command(t,n,r,i){if(r=="register"){this.register(t,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(t,n,s);return}let o=this._getPlayer(t);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},M_="ng-animate-queued",rx=".ng-animate-queued",Xf="ng-animate-disabled",ix=".ng-animate-disabled",ox="ng-star-inserted",sx=".ng-star-inserted",ax=[],G_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},cx={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},en="__ng_removed",cs=class{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;let r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=lx(i),r){let o=ls(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let n=t.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},os="void",Jf=new cs(os),ph=class{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$t(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw yO(r,n);if(r==null||r.length==0)throw DO(n);if(!dx(r))throw _O(r,n);let o=xt(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);let a=xt(this._engine.statesByElement,t,new Map);return a.has(n)||($t(t,qc),$t(t,qc+"-"+n),a.set(n,Jf)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return this._triggers.has(t)?!1:(this._triggers.set(t,n),!0)}_getTrigger(t){let n=this._triggers.get(t);if(!n)throw EO(t);return n}trigger(t,n,r,i=!0){let o=this._getTrigger(n),s=new us(this.id,n,t),a=this._engine.statesByElement.get(t);a||($t(t,qc),$t(t,qc+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n),u=new cs(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),a.set(n,u),c||(c=Jf),!(u.value===os)&&c.value===u.value){if(!px(c.params,u.params)){let y=[],A=o.matchStyles(c.value,c.params,y),S=o.matchStyles(u.value,u.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Zr(t,A),wn(t,S)})}return}let f=xt(this._engine.playersByElement,t,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==n&&y.queued&&y.destroy()});let p=o.matchTransition(c.value,u.value,t,u.params),m=!1;if(!p){if(!i)return;p=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:p,fromState:c,toState:u,player:s,isFallbackTransition:m}),m||($t(t,M_),s.onStart(()=>{qi(t,M_)})),s.onDone(()=>{let y=this.players.indexOf(s);y>=0&&this.players.splice(y,1);let A=this._engine.playersByElement.get(t);if(A){let S=A.indexOf(s);S>=0&&A.splice(S,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){let r=this._engine.driver.query(t,Xc,!0);r.forEach(i=>{if(i[en])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,n,r,i){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((c,u)=>{if(s.set(u,c.value),this._triggers.has(u)){let l=this.trigger(t,u,os,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&dr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,u=r.get(s)||Jf,l=new cs(os),d=new us(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:u,toState:l,player:d,isFallbackTransition:!0})})}}removeNode(t,n){let r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,n);else{let o=t[en];(!o||o===G_)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){$t(t,this._hostClassName)}drainQueuedTransitions(t){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=yh(o,r.triggerName,r.fromState.value,r.toState.value);c._data=t,vh(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},mh=class{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r){this.bodyNode=t,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){let r=new ph(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=i.get(a);if(c){let u=r.indexOf(c);r.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return i.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let i=this._namespaceLookup[t];i&&i.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let n=new Set,r=this.statesByElement.get(t);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(t,n,r,i){if(Kc(n)){let o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!Kc(n))return;let o=n[en];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$t(t,Xf)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),qi(t,Xf))}removeNode(t,n,r){if(Kc(n)){let i=t?this._fetchNamespace(t):null;i?i.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);let o=this.namespacesByHostElement.get(n);o&&o.id!==t&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[en]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return Kc(n)?this._fetchNamespace(t).listen(n,r,i,o):()=>{}}_buildInstruction(t,n,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,n,o)}destroyInnerAnimations(t){let n=this.driver.query(t,Xc,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(t,rh,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){let n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){let n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return dr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var r;let n=t[en];if(n&&n.setForRemoval){if(t[en]=G_,n.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}(r=t.classList)!=null&&r.contains(Xf)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ix,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?dr(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw wO(t)}_flushAnimations(t,n){let r=new as,i=[],o=new Map,s=[],a=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(O=>{l.add(O);let P=this.driver.query(O,rx,!0);for(let F=0;F{let F=j_+y++;m.set(P,F),O.forEach(se=>$t(se,F))});let A=[],S=new Set,H=new Set;for(let O=0;OS.add(se)):H.add(P))}let re=new Map,ge=O_(f,Array.from(S));ge.forEach((O,P)=>{let F=nh+y++;re.set(P,F),O.forEach(se=>$t(se,F))}),t.push(()=>{p.forEach((O,P)=>{let F=m.get(P);O.forEach(se=>qi(se,F))}),ge.forEach((O,P)=>{let F=re.get(P);O.forEach(se=>qi(se,F))}),A.forEach(O=>{this.processLeaveNode(O)})});let Ye=[],_t=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(n).forEach(F=>{let se=F.player,Be=F.element;if(Ye.push(se),this.collectedEnterElements.length){let it=Be[en];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(F.triggerName)){let yr=it.previousTriggersValues.get(F.triggerName),Rt=this.statesByElement.get(F.element);if(Rt&&Rt.has(F.triggerName)){let Ls=Rt.get(F.triggerName);Ls.value=yr,Rt.set(F.triggerName,Ls)}}se.destroy();return}}let tn=!d||!this.driver.containsElement(d,Be),wt=re.get(Be),Yn=m.get(Be),ke=this._buildInstruction(F,r,Yn,wt,tn);if(ke.errors&&ke.errors.length){_t.push(ke);return}if(tn){se.onStart(()=>Zr(Be,ke.fromStyles)),se.onDestroy(()=>wn(Be,ke.toStyles)),i.push(se);return}if(F.isFallbackTransition){se.onStart(()=>Zr(Be,ke.fromStyles)),se.onDestroy(()=>wn(Be,ke.toStyles)),i.push(se);return}let Sp=[];ke.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||Sp.push(it)}),ke.timelines=Sp,r.append(Be,ke.timelines);let IE={instruction:ke,player:se,element:Be};s.push(IE),ke.queriedElements.forEach(it=>xt(a,it,[]).push(se)),ke.preStyleProps.forEach((it,yr)=>{if(it.size){let Rt=c.get(yr);Rt||c.set(yr,Rt=new Set),it.forEach((Ls,Bu)=>Rt.add(Bu))}}),ke.postStyleProps.forEach((it,yr)=>{let Rt=u.get(yr);Rt||u.set(yr,Rt=new Set),it.forEach((Ls,Bu)=>Rt.add(Bu))})});if(_t.length){let O=[];_t.forEach(P=>{O.push(bO(P.triggerName,P.errors))}),Ye.forEach(P=>P.destroy()),this.reportError(O)}let Pe=new Map,rt=new Map;s.forEach(O=>{let P=O.element;r.has(P)&&(rt.set(P,P),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,Pe))}),i.forEach(O=>{let P=O.element;this._getPreviousPlayers(P,!1,O.namespaceId,O.triggerName,null).forEach(se=>{xt(Pe,P,[]).push(se),se.destroy()})});let In=A.filter(O=>x_(O,c,u)),Et=new Map;A_(Et,this.driver,H,u,Dn).forEach(O=>{x_(O,c,u)&&In.push(O)});let ao=new Map;p.forEach((O,P)=>{A_(ao,this.driver,new Set(O),c,jc)}),In.forEach(O=>{var se,Be;let P=Et.get(O),F=ao.get(O);Et.set(O,new Map([...(se=P==null?void 0:P.entries())!=null?se:[],...(Be=F==null?void 0:F.entries())!=null?Be:[]]))});let co=[],ni=[],Ip={};s.forEach(O=>{let{element:P,player:F,instruction:se}=O;if(r.has(P)){if(l.has(P)){F.onDestroy(()=>wn(P,se.toStyles)),F.disabled=!0,F.overrideTotalTime(se.totalTime),i.push(F);return}let Be=Ip;if(rt.size>1){let wt=P,Yn=[];for(;wt=wt.parentNode;){let ke=rt.get(wt);if(ke){Be=ke;break}Yn.push(wt)}Yn.forEach(ke=>rt.set(ke,Be))}let tn=this._buildAnimation(F.namespaceId,se,Pe,o,ao,Et);if(F.setRealPlayer(tn),Be===Ip)co.push(F);else{let wt=this.playersByElement.get(Be);wt&&wt.length&&(F.parentPlayer=dr(wt)),i.push(F)}}else Zr(P,se.fromStyles),F.onDestroy(()=>wn(P,se.toStyles)),ni.push(F),l.has(P)&&i.push(F)}),ni.forEach(O=>{let P=o.get(O.element);if(P&&P.length){let F=dr(P);O.setRealPlayer(F)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O!tn.destroyed);Be.length?fx(this,P,Be):this.processLeaveNode(P)}return A.length=0,co.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();let P=this.players.indexOf(O);this.players.splice(P,1)}),O.play()}),co}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let c=!o||o==os;a.forEach(u=>{u.queued||!c&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:i;for(let c of n.timelines){let u=c.element,l=u!==o,d=xt(r,u,[]);this._getPreviousPlayers(u,l,s,a,n.toState).forEach(p=>{let m=p.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),p.destroy(),d.push(p)})}Zr(o,n.fromStyles)}_buildAnimation(t,n,r,i,o,s){let a=n.triggerName,c=n.element,u=[],l=new Set,d=new Set,f=n.timelines.map(m=>{let y=m.element;l.add(y);let A=y[en];if(A&&A.removedBeforeQueried)return new or(m.duration,m.delay);let S=y!==c,H=hx((r.get(y)||ax).map(Pe=>Pe.getRealPlayer())).filter(Pe=>{let rt=Pe;return rt.element?rt.element===y:!1}),re=o.get(y),ge=s.get(y),Ye=R_(this._normalizer,m.keyframes,re,ge),_t=this._buildPlayer(m,Ye,H);if(m.subTimeline&&i&&d.add(y),S){let Pe=new us(t,a,y);Pe.setRealPlayer(_t),u.push(Pe)}return _t});u.forEach(m=>{xt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>ux(this.playersByQueriedElement,m.element,m))}),l.forEach(m=>$t(m,__));let p=dr(f);return p.onDestroy(()=>{l.forEach(m=>qi(m,__)),wn(c,n.toStyles)}),d.forEach(m=>{xt(i,m,[]).push(p)}),p}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new or(t.duration,t.delay)}},us=class{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new or,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>vh(t,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){xt(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let n=this._player;n.triggerCallback&&n.triggerCallback(t)}};function ux(e,t,n){let r=e.get(t);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&e.delete(t)}return r}function lx(e){return e!=null?e:null}function Kc(e){return e&&e.nodeType===1}function dx(e){return e=="start"||e=="done"}function T_(e,t){let n=e.style.display;return e.style.display=t!=null?t:"none",n}function A_(e,t,n,r,i){let o=[];n.forEach(c=>o.push(T_(c)));let s=[];r.forEach((c,u)=>{let l=new Map;c.forEach(d=>{let f=t.computeStyle(u,d,i);l.set(d,f),(!f||f.length==0)&&(u[en]=cx,s.push(u))}),e.set(u,l)});let a=0;return n.forEach(c=>T_(c,o[a++])),s}function O_(e,t){let n=new Map;if(e.forEach(a=>n.set(a,[])),t.length==0)return n;let r=1,i=new Set(t),o=new Map;function s(a){if(!a)return r;let c=o.get(a);if(c)return c;let u=a.parentNode;return n.has(u)?c=u:i.has(u)?c=r:c=s(u),o.set(a,c),c}return t.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function $t(e,t){var n;(n=e.classList)==null||n.add(t)}function qi(e,t){var n;(n=e.classList)==null||n.remove(t)}function fx(e,t,n){dr(n).onDone(()=>e.processLeaveNode(t))}function hx(e){let t=[];return W_(e,t),t}function W_(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}var ou=class{constructor(t,n,r){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new mh(t.body,n,r),this._timelineEngine=new hh(t.body,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(t,n,r,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let c=[],u=[],l=H_(this._driver,o,c,u);if(c.length)throw fO(i,c);u.length&&void 0,a=ex(i,l,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,i){this._transitionEngine.insertNode(t,n,r,i)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,i){if(r.charAt(0)=="@"){let[o,s]=y_(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(t,n,r,i)}listen(t,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=y_(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(t,n,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function mx(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=eh(t[0]),t.length>1&&(r=eh(t[t.length-1]))):t instanceof Map&&(n=eh(t)),n||r?new gx(e,n,r):null}var gx=(()=>{let t=class t{constructor(r,i,o){this._element=r,this._startStyles=i,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(r);s||t.initialStylesByElement.set(r,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wn(this._element,this._initialStyles),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zr(this._element,this._endStyles),this._endStyles=null),wn(this._element,this._initialStyles),this._state=3)}};t.initialStylesByElement=new WeakMap;let e=t;return e})();function eh(e){let t=null;return e.forEach((n,r)=>{vx(r)&&(t=t||new Map,t.set(r,n))}),t}function vx(e){return e==="display"||e==="position"}var su=class{constructor(t,n,r,i){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){var t;return+((t=this.domPlayer.currentTime)!=null?t:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&t.set(i,this._finished?r:B_(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let n=t==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},N_=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return F_(t,n)}getParentElement(t){return Dh(t)}query(t,n,r){return k_(t,n,r)}computeStyle(t,n,r){return window.getComputedStyle(t)[n]}animate(t,n,r,i,o,s=[]){let a=i==0?"both":"forwards",c={duration:r,delay:i,fill:a};o&&(c.easing=o);let u=new Map,l=s.filter(p=>p instanceof su);FO(r,i)&&l.forEach(p=>{p.currentSnapshot.forEach((m,y)=>u.set(y,m))});let d=NO(n).map(p=>Yi(p));d=kO(t,d,u);let f=mx(t,d);return new su(t,d,c,f)}};var Qc="@",q_="@.disabled",au=class{constructor(t,n,r,i){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var n,r;(r=(n=this.delegate).destroyNode)==null||r.call(n,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,i=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,i)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,i){this.delegate.setAttribute(t,n,r,i)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,i){this.delegate.setStyle(t,n,r,i)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){n.charAt(0)==Qc&&n==q_?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}},gh=class extends au{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){n.charAt(0)==Qc?n.charAt(1)=="."&&n==q_?(r=r===void 0?!0:!!r,this.disableAnimations(t,r)):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if(n.charAt(0)==Qc){let i=yx(t),o=n.slice(1),s="";return o.charAt(0)!=Qc&&([o,s]=Dx(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,r,a)})}return this.delegate.listen(t,n,r)}};function yx(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Dx(e){let t=e.indexOf("."),n=e.substring(0,t),r=e.slice(t+1);return[n,r]}var P_=class{constructor(t,n,r){this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(i,o)=>{let s=o==null?void 0:o.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(t,n){var u;let r="",i=this.delegate.createRenderer(t,n);if(!t||!((u=n==null?void 0:n.data)!=null&&u.animation)){let l=this._rendererCache,d=l.get(i);if(!d){let f=()=>l.delete(i);d=new au(r,i,this.engine,f),l.set(i,d)}return d}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,t,l.name,l)};return n.data.animation.forEach(a),new gh(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){if(t>=0&&tn(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var _x=Q(()=>{let e={onRemovalComplete:()=>{}},t=new Re(null),n=g(ou,J.Optional)||e,{onRemovalComplete:r=e.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{t.next(i),r.call(n,i,o)},t.pipe(W(i=>Xe(0).pipe(E(()=>null),le(i))),tt())}),Y_=Q(()=>{let e=g(_x),t=g(ne),n=g(oe),r=$(t,"focusout"),i=$(t,"focusin"),o=$(t,"blur"),s=$(t,"mousedown"),a=$(t,"mouseup");return Ee(r.pipe(pe(s),ol(()=>a),go(e),fe(([c,u])=>Z_(cr(c),u)),E(([{relatedTarget:c}])=>c)),o.pipe(E(()=>n.activeElement),fe(c=>!!(c!=null&&c.matches("iframe")))),i.pipe(W(c=>{let u=cr(c),l=Gi(u);return l===n?I(u):Ex(l).pipe(le(u))})),s.pipe(W(c=>{let u=cr(c);return!n.activeElement||n.activeElement===n.body?I(u):r.pipe(je(1),E(()=>u),pe(Xe(0)))}))).pipe(Te(),tt())});function Z_(e,t=null){return Gi(e).activeElement!==e&&!e.matches(":disabled")&&!(t!=null&&t.contains(e))}function Ex(e){return Ee($(e,"focusin").pipe(E(({target:t})=>t)),$(e,"focusout").pipe(fe(({target:t,relatedTarget:n})=>!!n&&Z_(t)),E(({relatedTarget:t})=>t)))}var K_=he([]);var Q_=Q(()=>{var e,t;return(t=(e=g(oe).querySelector("base"))===null||e===void 0?void 0:e.href)!==null&&t!==void 0?t:""}),pG=Q(()=>g(Rr).createRenderer(null,null)),wx=he([]);function X_(e){return{provide:wx,multi:!0,useExisting:e}}var mG=Q(()=>{var e;let t=(e=g(oe).querySelector("base"))===null||e===void 0?void 0:e.href;if(t)return t;let n=g(oe).createElement("a");return n.href="",n.pathname}),ds=new _("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function cu(e){return{provide:ds,useExisting:e}}var gG=new _("[TUI_FONTS_READY]",{factory:()=>{var e;return _e(((e=g(oe).fonts)===null||e===void 0?void 0:e.ready)||De).pipe(Ct({bufferSize:1,refCount:!1}))}}),fs=Q(()=>Hf(g(Bi))),bx=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,Cx=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,wh=Q(()=>bx.test(g(Vf).toLowerCase())||Cx.test(g(Vf).slice(0,4).toLowerCase())),vG=Q(()=>g(wh)&&!g(fs)),yG=Q(()=>o_(g(Bi))),DG=Q(()=>!!g(ne).chrome),Ix=Q(()=>!!g(ne).Cypress),Sx=Q(sr),_G=Q(()=>g(Ix)||g(Sx)),EG=Q(()=>{var e;return typeof((e=g(ne))===null||e===void 0?void 0:e.mozCancelFullScreen)<"u"}),wG=Q(()=>g(ne).location.host.endsWith("stackblitz.io")),J_=Q(()=>{var e;return!!(!((e=g(ne))===null||e===void 0)&&e.webkitConvertPointFromNodeToPage)}),bG=he("web");var CG=Q(()=>nD(g(At))?new Range:{}),hs=Q(()=>new B(g(oe).documentElement)),IG=he({timeout:500,threshold:30}),SG=Q($i),MG=Q(()=>g(ne).matchMedia("(any-pointer: coarse)").matches),bh=new _("[TUI_WINDOW_SIZE]",{factory:()=>{let e=g(ne);return $(e,"resize").pipe(le(null),E(()=>{var t,n;let r=Math.max(e.innerWidth,((t=e.visualViewport)===null||t===void 0?void 0:t.width)||0),i=Math.max(e.innerHeight,((n=e.visualViewport)===null||n===void 0?void 0:n.height)||0);return{width:r,height:i,top:0,left:0,right:r,bottom:i}}),Ct({bufferSize:1,refCount:!0}))}}),TG=Q(()=>g(bh).pipe(E(({height:e})=>e))),AG=he({wheelSensitivity:.01});var Fe=(()=>{class e extends Mn{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),YG=(()=>{class e{constructor(n,r){this.resolver=n,this.injector=r,this.map=new Map}addComponent(n){this.map.has(n)||this.map.set(n,this.resolver.resolveComponentFactory(n).create(this.injector))}}return e.\u0275fac=function(n){return new(n||e)(C(pn),C(Pi))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ch=(()=>{class e extends M{constructor({nativeElement:n},r,i){super(o=>this.focusVisible$.subscribe(o)),this.focusVisible$=l_(n).pipe(m_(r),pe(i))}}return e.\u0275fac=function(n){return new(n||e)(C(B),C(et),C(Fe,2))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),Mx="tui_",t0=(()=>{class e{generate(){return"".concat(Mx).concat(e.autoId++).concat(Date.now())}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Tx=(()=>{class e extends M{constructor(n,r){super(i=>this.callback$.subscribe(i)),this.callback$=rn(()=>{let{nativeElement:i}=n,o=[r,i];for(;i.parentElement;)i=i.parentElement,o.push(i);return Ee(...o.map(s=>$(s,"scroll")))})}}return e.\u0275fac=function(n){return new(n||e)(C(B),C(ne))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),ZG=(()=>{class e extends M{constructor(n,{nativeElement:r},i,o,s,a){super(c=>this.obscured$.subscribe(c)),this.obscured$=Ee(Ee(n,on(o,"resize")).pipe(po(0)),a.pipe(Qn(Hi))).pipe(E(()=>Uc(r)),le(null),Te(),En(i),pe(s))}}return e.\u0275fac=function(n){return new(n||e)(C(Tx,2),C(B),C(te),C(ne),C(Fe,2),C(Jt))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})();var Ax=300,KG=(()=>{class e{constructor(n,r){this.performanceRef=n,this.animationFrame$=r}scroll$(n,r,i=e0(n),o=Ax){let s=Ox(n),a=e0(n),c=r-s,u=i-a;return(o?rn(()=>I(this.performanceRef.now())).pipe(W(d=>this.animationFrame$.pipe(E(f=>f-d))),E(d=>QD(zn(d/o,0,1))),E(d=>[s+c*d,a+u*d]),mo([r,i]),pe(Xe(o))):I([r,i])).pipe(we(([d,f])=>{var p;(p=n.scrollTo)===null||p===void 0||p.call(n,f,d)}))}}return e.\u0275fac=function(n){return new(n||e)(C(UD),C(Jt))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function e0(e){return"scrollX"in e?e.scrollX:e.scrollLeft}function Ox(e){return"scrollY"in e?e.scrollY:e.scrollTop}var n0=(()=>{class e{constructor(n,r){this.win=n,this.platformId=r,this.cache=new Map}request(n){let r=this.cache.get(n);if(r)return r;let o=("AbortController"in this.win||Wo(this.platformId)?Yf(n):rn(()=>_e(fetch(n)))).pipe(W(s=>Ks(this,void 0,void 0,function*(){if(s.ok)return s.text();throw new Error("Failed to load ".concat(n," (").concat(s.statusText,")"))})),Ct({bufferSize:1,refCount:!1}));return this.cache.set(n,o),o}}return e.\u0275fac=function(n){return new(n||e)(C(ne),C(At))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var xx=["viewContainer"],Nx="tui_interactive_",Sh=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new $e,this.focusVisibleChange=new $e,this.focusVisible=!1,this.autoIdString="".concat(Nx).concat(e.autoId++).concat(Date.now())}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focused)}get computedFocusVisible(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(n){this.focusedChange.emit(n)}updateFocusVisible(n){this.focusVisible!==n&&(this.focusVisible=n,this.focusVisibleChange.emit(n))}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,hostVars:7,hostBindings:function(n,r){n&2&&(Ke("data-focused",r.pseudoFocus),Ue("_disabled",r.computedDisabled)("_focused",r.computedFocused)("_focus-visible",r.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),e})(),Ih=class{},ps=(()=>{class e extends Sh{constructor(n,r,i){super(),this.ngControl=n,this.cdr=r,this.valueTransformer=i,this.refresh$=new ye,this.onTouched=Bf,this.onChange=Bf,this.fallbackValue=this.getFallbackValue(),this.destroy$=new ye,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var n;return(n=this.previousInternalValue)!==null&&n!==void 0?n:this.fallbackValue}set value(n){this.updateValue(n)}get safeCurrentValue(){var n;return(n=this.rawValue)!==null&&n!==void 0?n:this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:n})=>n,!1)}get valid(){return this.safeNgControlData(({valid:n})=>n,!1)}get touched(){return this.safeNgControlData(({touched:n})=>n,!1)}get disabled(){return this.safeNgControlData(({disabled:n})=>n,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:n})=>n,null)}get computedName(){var n,r;return(r=(n=this.controlName)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:null}get controlName(){var n,r,i;return(i=(r=(n=this.ngControl)===null||n===void 0?void 0:n.name)===null||r===void 0?void 0:r.toString())!==null&&i!==void 0?i:null}get rawValue(){let{ngControl:n}=this;if(n===null)return;let r=n instanceof Lc&&this.previousInternalValue===void 0?n.viewModel:n.value;return this.fromControlValue(r)}ngOnInit(){this.refresh$.pipe(po(0),le(null),E(()=>{var n;return(n=this.ngControl)===null||n===void 0?void 0:n.control}),fe(ar),Te(),W(n=>Ee(n.valueChanges,n.statusChanges)),pe(this.destroy$)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(n){this.onChange=r=>{n(this.toControlValue(r))},this.refresh$.next()}registerOnTouched(n){this.onTouched=n}setDisabledState(){this.checkControlUpdate()}writeValue(n){let r=this.ngControl instanceof Lc&&this.previousInternalValue===void 0?this.ngControl.model:n;this.refreshLocalValue(this.fromControlValue(r))}updateFocused(n){n||this.controlMarkAsTouched(),super.updateFocused(n)}updateValue(n){this.disabled||this.valueIdenticalComparator(this.value,n)||(this.previousInternalValue=n,this.controlSetValue(n))}valueIdenticalComparator(n,r){return n===r}safeNgControlData(n,r){var i;return(i=this.ngControl&&n(this.ngControl))!==null&&i!==void 0?i:r}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(n){this.onChange(n),this.checkControlUpdate()}refreshLocalValue(n){this.previousInternalValue=n,this.checkControlUpdate()}fromControlValue(n){return this.valueTransformer?this.valueTransformer.fromControlValue(n):n}toControlValue(n){return this.valueTransformer?this.valueTransformer.toControlValue(n):n}}return e.\u0275fac=function(n){return new(n||e)(v(zr,8),v(et),v(Ih,8))},e.\u0275dir=L({type:e,hostVars:4,hostBindings:function(n,r){n&2&&Ue("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[Oe]}),e})();function p3(e){return{provide:ps,useExisting:e}}var r0=(()=>{class e{constructor(){this.change$=new ye}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,features:[jt]}),e})(),uu=(()=>{class e extends M{constructor(n){super(r=>this.dialogs$.subscribe(r)),this.idService=n,this.dialogs$=new Re([])}open(n,r={}){return new M(i=>{let o=a=>{i.next(a),i.complete()},s=Object.assign(Object.assign(Object.assign({},this.defaultOptions),r),{content:n,completeWith:o,$implicit:i,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,s]),()=>{this.dialogs$.next(this.dialogs$.value.filter(a=>a!==s))}})}}return e.\u0275fac=function(n){return new(n||e)(C(t0))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})();var m3=(()=>{class e extends ps{clear(){this.value=[]}getFallbackValue(){return[]}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275dir=L({type:e,features:[Oe]}),e})(),g3=(()=>{class e extends ps{getFallbackValue(){return null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275dir=L({type:e,features:[Oe]}),e})(),lu=(()=>{class e{get safeHost(){if(!this.host)throw new Hc;return this.host}attach(n){this.host=n}add(n){return this.safeHost.addComponentChild(n)}remove({hostView:n}){n.destroy()}addTemplate(n,r){return this.safeHost.addTemplateChild(n,r)}removeTemplate(n){n.destroy()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),Mh=(()=>{class e{constructor(n,r,i){this.injector=n,this.el=r,i.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(n){let r=n.createInjector(this.injector),o=r.get(pn).resolveComponentFactory(n.component),s=[{provide:e,useValue:this}],a=st.create({parent:r,providers:s}),c=this.vcr.createComponent(o,void 0,a);return c.changeDetectorRef.detectChanges(),c}addTemplateChild(n,r){return this.vcr.createEmbeddedView(n,r)}}return e.\u0275fac=function(n){return new(n||e)(v(Pi),v(B),v(lu))},e.\u0275dir=L({type:e,viewQuery:function(n,r){if(n&1&&Py(xx,5,dt),n&2){let i;mf(i=gf())&&(r.vcr=i.first)}}}),e})();function i0(e){return e!==null&&typeof e<"u"&&"".concat(e)!=="false"}var D3=(()=>{class e{transform(n,r,...i){return r(n,...i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Ti({name:"tuiMapper",type:e,pure:!0}),e})(),_3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function Px(e,t){if(e&1&&(ue(0,"div",3),Ie(1,"div",4),ae()),e&2){let n=ce().ngIf;Ue("t-bar_has-horizontal",n[1])}}function Rx(e,t){if(e&1&&(ue(0,"div",5),Ie(1,"div",6),ae()),e&2){let n=ce().ngIf;Ue("t-bar_has-vertical",n[0])}}function Fx(e,t){if(e&1&&(Qt(0),me(1,Px,2,2,"div",1)(2,Rx,2,2,"div",2),Xt()),e&2){let n=t.ngIf;K(1),R("ngIf",n[0]),K(1),R("ngIf",n[1])}}var du=24,kx=(()=>{class e{constructor(n,r,i,o,s,a){this.container=o,this.doc=s,this.el=a,this.tuiScrollbar="vertical";let{nativeElement:c}=this.el,u=$(c,"mousedown"),l=$(this.doc,"mousemove"),d=$(this.doc,"mouseup"),f=$(this.wrapper,"mousedown");Ee(f.pipe(E(p=>this.getScrolled(p,.5,.5))),u.pipe(p_(),W(p=>{let m=c.getBoundingClientRect(),y=Lx(p,m),A=jx(p,m);return l.pipe(E(S=>this.getScrolled(S,y,A)),pe(d))}))).pipe(_n(n),pe(r)).subscribe(([p,m])=>{this.tuiScrollbar==="vertical"?this.element.scrollTop=p:this.element.scrollLeft=m}),Ee(i.pipe(Qn(Hi)),h_(this.element)).pipe(_n(n),pe(r)).subscribe(()=>{this.tuiScrollbar==="vertical"?(c.style.top="".concat(this.thumb*100,"%"),c.style.height="".concat(this.view*100,"%")):(c.style.left="".concat(this.thumb*100,"%"),c.style.width="".concat(this.view*100,"%"))})}get wrapper(){return this.el.nativeElement.parentElement}get scrolled(){let{scrollTop:n,scrollHeight:r,clientHeight:i,scrollLeft:o,scrollWidth:s,clientWidth:a}=this.element;return this.tuiScrollbar==="vertical"?n/(r-i):o/(s-a)}get compensation(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return n*n/r>du&&this.tuiScrollbar==="vertical"||i*i/o>du&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?du/n:du/i}get thumb(){let n=this.compensation||this.view;return this.scrolled*(1-n)}get view(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return this.tuiScrollbar==="vertical"?Math.ceil(n/r*100)/100:Math.ceil(i/o*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:n,clientX:r},i,o){let{offsetHeight:s,offsetWidth:a}=this.el.nativeElement,{top:c,left:u,width:l,height:d}=this.wrapper.getBoundingClientRect(),f=this.element.scrollHeight-d,p=this.element.scrollWidth-l,m=(n-c-s*i)/(d-s),y=(r-u-a*o)/(l-a);return[f*m,p*y]}}return e.\u0275fac=function(n){return new(n||e)(v(te),v(Fe,2),v(Jt),v(hs),v(oe),v(B))},e.\u0275dir=L({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[xe([Fe])]}),e})();function Lx({clientY:e},{top:t,height:n}){return(e-t)/n}function jx({clientX:e},{left:t,width:n}){return(e-t)/n}var j3=(()=>{class e{constructor(n,r,i){this.zone=n,this.scrollRef=r,this.animationFrame$=i,this.refresh$=this.animationFrame$.pipe(Qn(300),E(()=>this.scrollbars),le([!1,!1]),Te((o,s)=>o[0]===s[0]&&o[1]===s[1]),En(this.zone))}get scrollbars(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.scrollRef.nativeElement;return[Math.ceil(n/r*100)<100,Math.ceil(i/o*100)<100]}}return e.\u0275fac=function(n){return new(n||e)(v(te),v(hs),v(Jt))},e.\u0275cmp=Ze({type:e,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(n,r){n&1&&(me(0,Fx,3,2,"ng-container",0),Ut(1,"async")),n&2&&R("ngIf",Bt(1,1,r.refresh$))},dependencies:[ft,kx,yn],styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],changeDetection:0}),e})();var V3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","tuiScrollRef",""]],features:[xe([{provide:hs,useExisting:B}])]}),e})(),U3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht]]}),e})();function Vx(e){let t=[],n=!1,r;return function(...o){return n&&t.length===o.length&&o.every((a,c)=>a===t[c])||(t=o,r=e.apply(this,o),n=!0),r}}function o0(e,t,n=!0){return function(){let i=e.call(this);return Object.defineProperty(this,t,{enumerable:n,value:i}),i}}function fu(e,t,n){if(typeof e=="function"){let c=t;if(c.kind==="getter")return o0(e,c.name);if(c.kind==="method")return Vx(e);throw new ns}let{get:r,enumerable:i,value:o}=n,s=t;if(r)return{configurable:!0,enumerable:i,get:o0(r,s,i)};if(typeof o!="function")throw new ns;let a=o;return{configurable:!0,enumerable:i,get(){let c=[],u=!1,l,d=(...f)=>(u&&c.length===f.length&&f.every((m,y)=>m===c[y])||(c=f,l=a.apply(this,f),u=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var fr=class{constructor(t,n,r,i){var o;this.active$=t,this.zone=n,this.el=r,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(E(s=>!!s&&this.contains(s)),le(!1),Te(),al(1),En(this.zone)),(o=this.directParentActiveZone)===null||o===void 0||o.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){var t,n;(t=this.directParentActiveZone)===null||t===void 0||t.removeSubActiveZone(this),(n=this.tuiActiveZoneParent)===null||n===void 0||n.removeSubActiveZone(this)}contains(t){return this.el.nativeElement.contains(t)||this.subActiveZones.some((n,r,i)=>i.indexOf(n)===r&&n.contains(t))}setZone(t){var n;(n=this.tuiActiveZoneParent)===null||n===void 0||n.removeSubActiveZone(this),t==null||t.addSubActiveZone(this),this.tuiActiveZoneParent=t}addSubActiveZone(t){this.subActiveZones=[...this.subActiveZones,t]}removeSubActiveZone(t){this.subActiveZones=KD(this.subActiveZones,this.subActiveZones.indexOf(t))}};fr.\u0275fac=function(t){return new(t||fr)(v(Y_),v(te),v(B),v(fr,12))};fr.\u0275dir=L({type:fr,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]});Zs([fu],fr.prototype,"setZone",null);var iW=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var s0=(()=>{class e{constructor(n,r){this.focusable=n,this.el=r}get element(){var n;return((n=this.focusable)===null||n===void 0?void 0:n.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return e.\u0275fac=function(n){Kd()},e.\u0275dir=L({type:e}),e})(),Ux=1e3,Bx=".ng-animating",$x=(()=>{class e extends s0{constructor(n,r,i){super(n,r),this.animationFrame$=i}setFocus(){this.isTextFieldElement?nl(Xe(Ux),this.animationFrame$.pipe(Qn(Hi),E(()=>this.element.closest(Bx)),cl(Boolean),je(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return e.\u0275fac=function(n){return new(n||e)(v(ds,10),v(B),v(Jt))},e.\u0275dir=L({type:e,features:[Oe]}),e})(),Hx=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],zx=(()=>{class e extends s0{constructor(n,r,i,o,s){super(n,r),this.renderer=i,this.zone=o,this.win=s,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var n;let r=this.makeFakeInput(),i=this.getDurationTimeBeforeFocus(),o=0,s=0,a=()=>r.focus({preventScroll:!0}),c=()=>{clearTimeout(o),o=this.win.setTimeout(()=>{clearTimeout(s),r.removeEventListener("blur",a),r.removeEventListener("focus",c),s=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),r.remove()},i)})};r.addEventListener("blur",a,{once:!0}),r.addEventListener("focus",c),this.insideDialog()?this.win.document.body.appendChild(r):(n=this.element.parentElement)===null||n===void 0||n.appendChild(r),r.focus({preventScroll:!0})}makeFakeInput(){let n=this.renderer.createElement("input"),r=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(n),n.style.height=Wi(r.height),n.style.width=Wi(r.width/2),n.style.position="fixed",n.style.zIndex="-99999999",n.style.caretColor="transparent",n.style.border="none",n.style.outline="none",n.style.color="transparent",n.style.background="transparent",n.style.cursor="none",n.style.fontSize=Wi(16),n.style.top=Wi(r.top),n.style.left=Wi(r.left),n}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){let n=this.win.document;for(let r of[n.documentElement,n.body])r.style.setProperty("overflow","auto"),r.style.setProperty("height","100%")}patchFakeInputFromFocusableElement(n){Hx.forEach(r=>{let i=this.element.getAttribute(r);ar(i)&&n.setAttribute(r,i)})}}return e.\u0275fac=function(n){return new(n||e)(v(ds,10),v(B),v($n),v(te),v(ne))},e.\u0275dir=L({type:e,features:[Oe]}),e})(),Gx={delay:NaN},Wx=he(Gx);var a0=new _("[TUI_AUTOFOCUS_HANDLER]"),qx=[{provide:a0,useFactory:(e,t,n,r,i,o,s)=>s?new zx(e,t,r,i,o):new $x(e,t,n),deps:[[new Vn,new Xg,ds],B,Jt,$n,te,ne,fs]},Fe],c0=(()=>{class e{constructor(n,r,i){this.handler=n,this.options=r,this.destroy$=i,this.autoFocus=!0}ngAfterViewInit(){i0(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):Xe(this.options.delay).pipe(pe(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return e.\u0275fac=function(n){return new(n||e)(v(a0),v(Wx),v(Fe,2))},e.\u0275dir=L({type:e,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[xe(qx)]}),e})(),u0=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var Th=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},l0=(()=>{class e{constructor(n,r){n.createEmbeddedView(r,new Th(this))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(dt),v(Je))},e.\u0275dir=L({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),d0=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var jW=(()=>{class e{constructor({nativeElement:n},r,i){this.mode="scroll",$(n,"wheel",{passive:!1}).pipe(fe(()=>this.enabled),_n(r),pe(i)).subscribe(o=>{this.processEvent(o,!!o.deltaY,o.deltaY?o.deltaY<0:o.deltaX<0)}),$(n,"touchstart",{passive:!0}).pipe(W(({touches:o})=>{let{clientX:s,clientY:a}=o[0],c=0,u=0,l;return $(n,"touchmove",{passive:!1}).pipe(fe(()=>this.enabled),we(d=>{let f=d.changedTouches[0];c=s-f.clientX,u=a-f.clientY,s=f.clientX,a=f.clientY,l===void 0&&(l=Math.abs(u)>Math.abs(c)),this.processEvent(d,l,l?u<0:c<0)}))}),_n(r),pe(i)).subscribe()}get enabled(){return this.mode!=="none"}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(n,r,i){var o;let{target:s,currentTarget:a,cancelable:c}=n;if(!(!c||!Vc(s)||((o=s)===null||o===void 0?void 0:o.type)==="range")){if(this.mode==="all"&&(r&&!a.contains(Bc(s))||!r&&!a.contains(Bc(s,!1)))){n.preventDefault();return}if(r&&(i&&!es(s,a,!0,!1)||!i&&!es(s,a,!0,!0))){n.preventDefault();return}!r&&(i&&!es(s,a,!1,!1)||!i&&!es(s,a,!1,!0))&&n.preventDefault()}}}return e.\u0275fac=function(n){return new(n||e)(v(B),v(te),v(Fe,2))},e.\u0275dir=L({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(n,r){n&2&&Li("overscroll-behavior",r.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[xe([Fe])]}),e})(),VW=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var Yx=["*"],Zx=(()=>{class e extends lu{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$W=(()=>{class e extends Mh{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275cmp=Ze({type:e,selectors:[["tui-dropdown-host"]],features:[xe([{provide:lu,useExisting:Zx},{provide:Mh,useExisting:e}]),Oe],ngContentSelectors:Yx,decls:3,vars:0,consts:[["viewContainer",""]],template:function(n,r){n&1&&(gn(),Dt(0),Bo(1,null,0))},styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;height:100%}[_nghost-%COMP%]:before{content:"";display:block;overflow:hidden}.t-position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}'],changeDetection:0}),e})(),HW=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var Ah=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(Ah||{}),Kx=function(e){return e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December",e}(Kx||{});var gs="?v=".concat(qD);var f0=e=>e.includes(".svg#")?e:"#".concat(e),qW=()=>Uf,Oh={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:WD,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},h0=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];var YW="tui-scroll-into-view";var p0="tui-icon-error",ZW=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"];var h=function(e){return e.AD="AD",e.AE="AE",e.AF="AF",e.AG="AG",e.AI="AI",e.AL="AL",e.AM="AM",e.AO="AO",e.AR="AR",e.AT="AT",e.AU="AU",e.AW="AW",e.AZ="AZ",e.BA="BA",e.BB="BB",e.BD="BD",e.BE="BE",e.BF="BF",e.BG="BG",e.BH="BH",e.BI="BI",e.BJ="BJ",e.BL="BL",e.BM="BM",e.BN="BN",e.BO="BO",e.BQ="BQ",e.BR="BR",e.BS="BS",e.BT="BT",e.BW="BW",e.BY="BY",e.BZ="BZ",e.CA="CA",e.CD="CD",e.CF="CF",e.CG="CG",e.CH="CH",e.CI="CI",e.CL="CL",e.CM="CM",e.CN="CN",e.CO="CO",e.CR="CR",e.CU="CU",e.CV="CV",e.CW="CW",e.CY="CY",e.CZ="CZ",e.DE="DE",e.DJ="DJ",e.DK="DK",e.DM="DM",e.DO="DO",e.DZ="DZ",e.EC="EC",e.EE="EE",e.EG="EG",e.ER="ER",e.ES="ES",e.ET="ET",e.FI="FI",e.FJ="FJ",e.FK="FK",e.FM="FM",e.FR="FR",e.GA="GA",e.GB="GB",e.GD="GD",e.GE="GE",e.GF="GF",e.GH="GH",e.GI="GI",e.GL="GL",e.GM="GM",e.GN="GN",e.GP="GP",e.GQ="GQ",e.GR="GR",e.GT="GT",e.GW="GW",e.GY="GY",e.HK="HK",e.HN="HN",e.HR="HR",e.HT="HT",e.HU="HU",e.ID="ID",e.IE="IE",e.IL="IL",e.IN="IN",e.IQ="IQ",e.IR="IR",e.IS="IS",e.IT="IT",e.JM="JM",e.JO="JO",e.JP="JP",e.KE="KE",e.KG="KG",e.KH="KH",e.KM="KM",e.KN="KN",e.KP="KP",e.KR="KR",e.KW="KW",e.KY="KY",e.KZ="KZ",e.LA="LA",e.LB="LB",e.LC="LC",e.LI="LI",e.LK="LK",e.LR="LR",e.LS="LS",e.LT="LT",e.LU="LU",e.LV="LV",e.LY="LY",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MF="MF",e.MG="MG",e.MK="MK",e.ML="ML",e.MM="MM",e.MN="MN",e.MO="MO",e.MQ="MQ",e.MR="MR",e.MS="MS",e.MT="MT",e.MU="MU",e.MV="MV",e.MW="MW",e.MX="MX",e.MY="MY",e.MZ="MZ",e.NA="NA",e.NC="NC",e.NE="NE",e.NG="NG",e.NI="NI",e.NL="NL",e.NO="NO",e.NP="NP",e.NZ="NZ",e.OM="OM",e.PA="PA",e.PE="PE",e.PF="PF",e.PG="PG",e.PH="PH",e.PK="PK",e.PL="PL",e.PT="PT",e.PW="PW",e.PY="PY",e.QA="QA",e.RE="RE",e.RO="RO",e.RS="RS",e.RU="RU",e.RW="RW",e.SA="SA",e.SB="SB",e.SC="SC",e.SD="SD",e.SE="SE",e.SG="SG",e.SH="SH",e.SI="SI",e.SK="SK",e.SL="SL",e.SM="SM",e.SN="SN",e.SO="SO",e.SR="SR",e.ST="ST",e.SV="SV",e.SX="SX",e.SY="SY",e.SZ="SZ",e.TC="TC",e.TD="TD",e.TG="TG",e.TH="TH",e.TJ="TJ",e.TL="TL",e.TM="TM",e.TN="TN",e.TO="TO",e.TR="TR",e.TT="TT",e.TW="TW",e.TZ="TZ",e.UA="UA",e.UG="UG",e.US="US",e.UY="UY",e.UZ="UZ",e.VC="VC",e.VE="VE",e.VG="VG",e.VN="VN",e.VU="VU",e.WS="WS",e.XK="XK",e.YE="YE",e.YT="YT",e.ZA="ZA",e.ZM="ZM",e.ZW="ZW",e}(h||{});var Qx={cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]},Xx={colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Font",fontStyle:"Font style",fontSize:"Font size",bold:"Bold",italic:"Italic",underline:"Underline",strikeThrough:"Strike through",justify:"Justify",justifyLeft:"Justify left",justifyCenter:"Justify center",justifyRight:"Justify right",justifyFull:"Justify full",list:"List",indent:"Indent",outdent:"Outdent",unorderedList:"Unordered list",orderedList:"Ordered list",quote:"Quote",foreColor:"Color",backColor:"Background color",hiliteColor:"Highlight color",clear:"Clear",link:"Link",attach:"Attach file",tex:"Insert TeX",code:"Code",image:"Insert image",insertHorizontalRule:"Insert horizontal rule",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Merge cells",splitCells:"Split cells",rowsColumnsManaging:"Managing rows and columns",cellColor:"Cell color",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Insert column before","Insert column after"],["Insert row before","Insert row after"],["Delete column","Delete row"]],editorCodeOptions:["Code in the text","Code in block"],editorFontOptions:{small:"Small",large:"Large",normal:"Normal",title:"Title",subtitle:"Subtitle"}},Jx={previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}},eN={showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}},tN={[h.AD]:"Andorra",[h.AE]:"United Arab Emirates",[h.AF]:"Afghanistan",[h.AG]:"Antigua and Barbuda",[h.BL]:"Saint Barth\xE9lemy",[h.AI]:"Anguilla",[h.AL]:"Albania",[h.AM]:"Armenia",[h.AO]:"Angola",[h.AR]:"Argentina",[h.AT]:"Austria",[h.AU]:"Australia",[h.AW]:"Aruba",[h.AZ]:"Azerbaijan",[h.BA]:"Bosnia and Herzegovina",[h.BB]:"Barbados",[h.BD]:"Bangladesh",[h.BE]:"Belgium",[h.BF]:"Burkina Faso",[h.BG]:"Bulgaria",[h.BH]:"Bahrain",[h.BI]:"Burundi",[h.BJ]:"Benin",[h.GF]:"Guyana",[h.BM]:"Bermuda",[h.BN]:"Brunei Darussalam",[h.BO]:"Bolivia",[h.BQ]:"Bonaire, Sint Eustatius and Saba",[h.BR]:"Brazil",[h.BS]:"Bahamas",[h.BT]:"Bhutan",[h.BW]:"Botswana",[h.BY]:"Belarus",[h.BZ]:"Belize",[h.CA]:"Canada",[h.CD]:"Dem. Rep. Congo (Kinshasa)",[h.CF]:"Central African Republic",[h.CG]:"Congo (Brazzaville)",[h.CH]:"Switzerland",[h.CI]:"Ivory Coast",[h.CL]:"Chile",[h.CM]:"Cameroon",[h.CN]:"China",[h.CO]:"Colombia",[h.CR]:"Costa Rica",[h.CU]:"Cuba",[h.CV]:"Cape Verde",[h.CW]:"Cura\xE7ao",[h.CY]:"Cyprus",[h.CZ]:"Czech Republic",[h.DE]:"Germany",[h.DJ]:"Djibouti",[h.DK]:"Denmark",[h.DM]:"Dominica",[h.DO]:"Dominican Republic",[h.DZ]:"Algeria",[h.EC]:"Ecuador",[h.EE]:"Estonia",[h.EG]:"Egypt",[h.ER]:"Eritrea",[h.ES]:"Spain",[h.ET]:"Ethiopia",[h.FI]:"Finland",[h.FJ]:"Fiji",[h.FK]:"Falkland Islands",[h.FM]:"F.S. of Micronesia",[h.FR]:"France",[h.GA]:"Gabon",[h.GB]:"United Kingdom",[h.GD]:"Grenada",[h.GE]:"Georgia",[h.GP]:"Guadeloupe",[h.GH]:"Ghana",[h.GI]:"Gibraltar",[h.GL]:"Greenland",[h.GM]:"Gambia",[h.GN]:"Guinea",[h.MF]:"Saint-Martin",[h.GQ]:"Equatorial Guinea",[h.GR]:"Greece",[h.GT]:"Guatemala",[h.GW]:"Guinea-Bissau",[h.GY]:"Guyana",[h.HK]:"Hong Kong",[h.HN]:"Honduras",[h.HR]:"Croatia",[h.HT]:"Haiti",[h.HU]:"Hungary",[h.ID]:"Indonesia",[h.IE]:"Ireland",[h.IL]:"Israel",[h.IN]:"India",[h.IQ]:"Iraq",[h.IR]:"Iran",[h.IS]:"Iceland",[h.IT]:"Italy",[h.JM]:"Jamaica",[h.JO]:"Jordan",[h.JP]:"Japan",[h.KE]:"Kenya",[h.KG]:"Kyrgyzstan",[h.KH]:"Cambodia",[h.KM]:"Comoros",[h.KN]:"Saint Kitts and Nevis",[h.KP]:"Korean PDR",[h.KR]:"Rep. Korea",[h.KW]:"Kuwait",[h.KY]:"Cayman Islands",[h.KZ]:"Kazakhstan",[h.LA]:"Laos",[h.LB]:"Lebanon",[h.LC]:"Saint Lucia",[h.LI]:"Liechtenstein",[h.LK]:"Sri Lanka",[h.LR]:"Liberia",[h.LS]:"Lesotho",[h.LT]:"Lithuania",[h.LU]:"Luxembourg",[h.LV]:"Latvia",[h.LY]:"Libya",[h.MA]:"Morocco",[h.MC]:"Monaco",[h.MD]:"Moldova",[h.ME]:"Montenegro",[h.MQ]:"Martinique",[h.MG]:"Madagascar",[h.MK]:"Rep. of North Macedonia",[h.ML]:"Mali",[h.MM]:"Burma (Myanmar)",[h.MN]:"Mongolia",[h.MO]:"Macau",[h.RE]:"R\xE9union",[h.MR]:"Mauritania",[h.MS]:"Montserrat",[h.MT]:"Malta",[h.MU]:"Mauritius",[h.MV]:"Maldives",[h.MW]:"Malawi",[h.MX]:"Mexico",[h.MY]:"Malaysia",[h.MZ]:"Mozambique",[h.NA]:"Namibia",[h.NC]:"New Caledonia",[h.NE]:"Niger",[h.NG]:"Nigeria",[h.NI]:"Nicaragua",[h.NL]:"Netherlands",[h.NO]:"Norway",[h.NP]:"Nepal",[h.NZ]:"New Zealand",[h.OM]:"Oman",[h.PA]:"Panama",[h.PE]:"Peru",[h.PF]:"French Polynesia (Tahiti)",[h.PG]:"Papua New Guinea",[h.PH]:"Philippines",[h.PK]:"Pakistan",[h.PL]:"Poland",[h.PT]:"Portugal",[h.PW]:"Palau",[h.PY]:"Paraguay",[h.QA]:"Qatar",[h.YT]:"Mayotte",[h.RO]:"Romania",[h.RS]:"Serbia",[h.RU]:"Russia",[h.RW]:"Rwanda",[h.SA]:"Saudi Arabia",[h.SB]:"Solomon Islands",[h.SC]:"Seychelles",[h.SD]:"Sudan",[h.SE]:"Sweden",[h.SG]:"Singapore",[h.SH]:"Saint Helena",[h.SI]:"Slovenia",[h.SK]:"Slovakia",[h.SL]:"Sierra Leone",[h.SM]:"San Marino",[h.SN]:"Senegal",[h.SO]:"Somalia",[h.SR]:"Suriname",[h.ST]:"Sao Tome and Principe",[h.SV]:"El Salvador",[h.SX]:"Sint Maarten",[h.SY]:"Syrian Arab Republic",[h.SZ]:"Swaziland",[h.TC]:"Turks and Caicos",[h.TD]:"Chad",[h.TG]:"Togo",[h.TH]:"Thailand",[h.TJ]:"Tajikistan",[h.TL]:"East Timor",[h.TM]:"Turkmenistan",[h.TN]:"Tunisia",[h.TO]:"Tonga",[h.TR]:"Turkey",[h.TT]:"Trinidad and Tobago",[h.TW]:"Taiwan",[h.TZ]:"Tanzania",[h.UA]:"Ukraine",[h.UG]:"Uganda",[h.US]:"USA",[h.UY]:"Uruguay",[h.UZ]:"Uzbekistan",[h.VC]:"Saint Vincent and the Grenadines",[h.VE]:"Venezuela",[h.VG]:"British Virgin Islands",[h.VN]:"Vietnam",[h.VU]:"Vanuatu",[h.WS]:"Samoa",[h.XK]:"Kosovo",[h.YE]:"Yemen",[h.ZA]:"South Africa",[h.ZM]:"Zambia",[h.ZW]:"Zimbabwe"},nN={months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invalid",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:tN},rN={cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Upload failed",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drop\xA0it\xA0here",defaultLabelMultiple:"or drop\xA0them\xA0here",defaultLinkSingle:"Choose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File is too large ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}},m0=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},nN),rN),eN),Qx),Xx),Jx);var iN=new _("[TUI_DEFAULT_LANGUAGE]",{factory:()=>m0}),g0=new _("[TUI_LANGUAGE]",{factory:()=>I(g(iN))}),r8=new _("[TUI_LANGUAGE_LOADER]"),i8=new _("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});function Kr(e){return()=>g(g0).pipe(W(t=>Ir(t)?t:I(t)),E(t=>t[e]))}function oN(e){return!e||typeof getComputedStyle>"u"?!1:getComputedStyle(e).getPropertyValue("position")==="fixed"||oN(e.parentElement)}function hu({document:e,innerWidth:t}){return Math.max(e.documentElement.clientWidth||0,t||0)}var xh='width="',Nh='height="',Ph="")));if(!(r!=null&&r.includes(xh))||!r.includes(Nh))return"".concat(n.replace(Ph,'");let i=r.indexOf(xh),o=r.indexOf(Nh),s=i+xh.length,a=o+Nh.length,c=r.slice(s,r.indexOf('"',s)),u=r.slice(a,r.indexOf('"',a));if(!u||!c||c.includes("%")||u.includes("%")||c.includes("em")||u.includes("em"))return n.replace(Ph,'').concat(n,"")}var Rh=1.5,sN=2.5;function p8(e,t=!1,n=!1,r=!1,i="m"){let o=i==="s"?0:.25,s=0;return e&&(s+=Rh+o),t&&(s+=Rh+o),n&&(s+=Rh+o),r&&(s+=sN+o),s}function pu(e){let t=e.endsWith("/")?e:"".concat(e,"/");return n=>n.startsWith("tuiIcon")?"".concat(t).concat(n,".svg").concat(gs,"#").concat(n):f0(n)}function m8(e){return e.length===1||h0.includes(e)}function g8(e,t="tui-hints-host"){var n;return!!(!((n=Uc(e))===null||n===void 0)&&n.some(r=>!r.closest(t)))}function D0(e){let t=e.trim();return t.startsWith("<")&&t.endsWith(">")}function v8(e,t){return(n,r)=>{let i=n||Object.assign({},r||t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}var y0={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function _0(e,t="s"){return y0[e]>y0[t]}function E0(e,{mobile:t}){return hu(e){var e,t,n;return(n=(t=(e=g(oe).defaultView)===null||e===void 0?void 0:e.matchMedia)===null||t===void 0?void 0:t.call(e,"(prefers-reduced-motion: reduce)").matches)!==null&&n!==void 0?n:!1}),uN=300,Fh=Q(()=>g(cN)?0:uN),w0=Q(()=>({value:"",params:{duration:g(Fh)}})),N8=Q(()=>zy()),lN={check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"},mu=he(lN);var dN=new _("[TUI_DATA_LIST_ACCESSOR]");function P8(e){return{provide:dN,useExisting:e}}var fN=new _("[TUI_DATA_LIST_HOST]");function R8(e){return{provide:fN,useExisting:e}}var F8=he(e=>e.isWeekend?"weekend":"weekday"),k8=new _("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),L8=new _("[TUI_ELEMENT_REF]"),hN=he(Ah.Monday),j8=Q(Kr("months")),gu=Q(Kr("close")),V8=Q(Kr("nothingFoundMessage")),U8=Q(Kr("defaultErrorMessage")),B8=Q(Kr("spinTexts")),pN=Q(Kr("shortWeekDays")),vu="assets/taiga-ui/icons",kh=he(vu),b0=he({}),C0=Q(()=>pu(g(kh))),Lh=he({mobile:768,desktopSmall:1024,desktopLarge:1280}),jh=Q(()=>{let e=g(ne),t=g(Lh);return $(e,"resize").pipe(tt(),le(null),E(()=>E0(e,t)),Te(),En(g(te)))}),$8=new _("[TUI_LEGACY_MASK]"),Ki=new _("[TUI_MODE]"),mN={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},gN={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:e})=>mN[e],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},H8=he(gN);var z8=he(Oh);var G8=he(I(Object.assign(Object.assign({},Oh),{decimalLimit:NaN}))),W8=new _("[TUI_OPTION_CONTENT]");var vN=e=>{let t=e.length-1;return[e[t],...e.slice(0,t)]},q8=Q(()=>{let e=g(hN);return g(pN).pipe(E(vN),E(t=>[...t.slice(e),...t.slice(0,e)]))}),yu=new _("[TUI_SANITIZER]");var Y8=Q(()=>{let e=g(oe);return Ee($(e,"selectionchange"),$(e,"mouseup"),$(e,"mousedown").pipe(W(()=>$(e,"mousemove").pipe(pe($(e,"mouseup"))))),$(e,"keydown"),$(e,"keyup")).pipe(tt())}),Z8=he({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),I0=he($c),S0=he(Ve),K8=he(vs.Textfield),yN=new _("[TUI_TEXTFIELD_HOST]");function Q8(e){return{provide:yN,useExisting:e}}var X8=he("Taiga"),J8=new _("[TUI_VALUE_ACCESSOR]"),e4=Q(()=>{let e=g(ne);return{type:"viewport",getClientRect(){return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight}}}});var Du=class extends M{};function u4(e){return{provide:Du,multi:!0,useExisting:e}}var _u=class{};function l4(e){return{provide:_u,multi:!0,useExisting:e}}var d4=(()=>{class e{constructor(n,r,i){this.destroy$=n,this.drivers=r,this.vehicles=i}ngOnInit(){let n=this.vehicles.find(({type:r})=>r===this.type);Ee(...this.drivers.filter(({type:r})=>r===this.type)).pipe(Te(),pe(this.destroy$)).subscribe(r=>{n==null||n.toggle(r)})}}return e.\u0275fac=function(n){return new(n||e)(v(Fe,2),v(Du),v(_u))},e.\u0275dir=L({type:e}),e})(),f4=(()=>{class e{constructor(n){this.host=n}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var n;return((n=this.host.value)===null||n===void 0?void 0:n.toString())||""}process(n){}}return e.\u0275fac=function(n){return new(n||e)(v(ps))},e.\u0275dir=L({type:e}),e})(),Qr=class{};function h4(e){return{provide:Qr,deps:[[new Un,Qr]],useFactory:t=>t.find(n=>n.type===e)}}function p4(e){return{provide:Qr,multi:!0,useExisting:e}}var ys=class{};function m4(e,t){return{provide:ys,deps:[[new Un,ys],t],useFactory:DN(e)}}function DN(e){return(t,n)=>t.find(r=>r!==n&&r.type===e)||n}function g4(e){return{provide:ys,multi:!0,useExisting:e}}var X="primary",Ps=Symbol("RouteTitle"),Hh=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function to(e){return new Hh(e)}function _N(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function R0(e){return e.length>0?e[e.length-1]:null}function mr(e){return Ir(e)?e:rr(e)?_e(Promise.resolve(e)):I(e)}var wN={exact:k0,subset:L0},F0={exact:bN,subset:CN,ignored:()=>!0};function M0(e,t,n){return wN[n.paths](e.root,t.root,n.matrixParams)&&F0[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function bN(e,t){return bn(e,t)}function k0(e,t,n){if(!Jr(e.segments,t.segments)||!bu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!k0(e.children[r],t.children[r],n))return!1;return!0}function CN(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>P0(e[n],t[n]))}function L0(e,t,n){return j0(e,t,t.segments,n)}function j0(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Jr(i,n)||t.hasChildren()||!bu(i,n,r))}else if(e.segments.length===n.length){if(!Jr(e.segments,n)||!bu(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!L0(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!Jr(e.segments,i)||!bu(e.segments,i,r)||!e.children[X]?!1:j0(e.children[X],t,o,r)}}function bu(e,t,n){return t.every((r,i)=>F0[n](e[i].parameters,r.parameters))}var hr=class{constructor(t=new ve([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){return MN.serialize(this)}},ve=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cu(this)}},Xr=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=to(this.parameters)),this._parameterMap}toString(){return U0(this)}};function IN(e,t){return Jr(e,t)&&e.every((n,r)=>bn(n.parameters,t[r].parameters))}function Jr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function SN(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===X&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==X&&(n=n.concat(t(i,r)))}),n}var mp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>new Su)(),providedIn:"root"});let e=t;return e})(),Su=class{parse(t){let n=new Wh(t);return new hr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n="/".concat(Ds(t.root,!0)),r=ON(t.queryParams),i=typeof t.fragment=="string"?"#".concat(TN(t.fragment)):"";return"".concat(n).concat(r).concat(i)}},MN=new Su;function Cu(e){return e.segments.map(t=>U0(t)).join("/")}function Ds(e,t){if(!e.hasChildren())return Cu(e);if(t){let n=e.children[X]?Ds(e.children[X],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==X&&r.push("".concat(i,":").concat(Ds(o,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}else{let n=SN(e,(r,i)=>i===X?[Ds(e.children[X],!1)]:["".concat(i,":").concat(Ds(r,!1))]);return Object.keys(e.children).length===1&&e.children[X]!=null?"".concat(Cu(e),"/").concat(n[0]):"".concat(Cu(e),"/(").concat(n.join("//"),")")}}function V0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eu(e){return V0(e).replace(/%3B/gi,";")}function TN(e){return encodeURI(e)}function Gh(e){return V0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Iu(e){return decodeURIComponent(e)}function T0(e){return Iu(e.replace(/\+/g,"%20"))}function U0(e){return"".concat(Gh(e.path)).concat(AN(e.parameters))}function AN(e){return Object.keys(e).map(t=>";".concat(Gh(t),"=").concat(Gh(e[t]))).join("")}function ON(e){let t=Object.keys(e).map(n=>{let r=e[n];return Array.isArray(r)?r.map(i=>"".concat(Eu(n),"=").concat(Eu(i))).join("&"):"".concat(Eu(n),"=").concat(Eu(r))}).filter(n=>!!n);return t.length?"?".concat(t.join("&")):""}var xN=/^[^\/()?;#]+/;function Vh(e){let t=e.match(xN);return t?t[0]:""}var NN=/^[^\/()?;=#]+/;function PN(e){let t=e.match(NN);return t?t[0]:""}var RN=/^[^=?&#]+/;function FN(e){let t=e.match(RN);return t?t[0]:""}var kN=/^[^&#]+/;function LN(e){let t=e.match(kN);return t?t[0]:""}var Wh=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[X]=new ve(t,n)),r}parseSegment(){let t=Vh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Xr(Iu(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=PN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Vh(this.remaining);i&&(r=i,this.capture(r))}t[Iu(n)]=Iu(r)}parseQueryParam(t){let n=FN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=LN(this.remaining);s&&(r=s,this.capture(r))}let i=T0(n),o=T0(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Vh(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=X);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[X]:new ve([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};function B0(e){return e.segments.length>0?new ve([],{[X]:e}):e}function $0(e){let t={};for(let r of Object.keys(e.children)){let i=e.children[r],o=$0(i);if(r===X&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new ve(e.segments,t);return jN(n)}function jN(e){if(e.numberOfChildren===1&&e.children[X]){let t=e.children[X];return new ve(e.segments.concat(t.segments),t.children)}return e}function no(e){return e instanceof hr}function VN(e,t,n=null,r=null){let i=H0(e);return z0(i,t,n,r)}function H0(e){let t;function n(o){let s={};for(let c of o.children){let u=n(c);s[c.outlet]=u}let a=new ve(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=B0(r);return t!=null?t:i}function z0(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Uh(i,i,i,n,r);let o=UN(t);if(o.toRoot())return Uh(i,i,new ve([],{}),n,r);let s=BN(o,i,e),a=s.processChildren?ws(s.segmentGroup,s.index,o.commands):W0(s.segmentGroup,s.index,o.commands);return Uh(i,s.segmentGroup,a,n,r)}function Mu(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Is(e){return typeof e=="object"&&e!=null&&e.outlets}function Uh(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>"".concat(l)):"".concat(u)});let s;e===t?s=n:s=G0(e,t,n);let a=B0($0(s));return new hr(a,o,i)}function G0(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=G0(o,t,n)}),new ve(e.segments,r)}var Tu=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Mu(r[0]))throw new w(4003,!1);let i=r.find(Is);if(i&&i!==R0(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function UN(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Tu(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Tu(n,t,r)}var Ji=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function BN(e,t,n){if(e.isAbsolute)return new Ji(t,!0,0);if(!n)return new Ji(t,!1,NaN);if(n.parent===null)return new Ji(n,!0,0);let r=Mu(e.commands[0])?0:1,i=n.segments.length-1+r;return $N(n,i,e.numberOfDoubleDots)}function $N(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Ji(r,!1,i-o)}function HN(e){return Is(e[0])?e[0].outlets:{[X]:e}}function W0(e,t,n){if(e||(e=new ve([],{})),e.segments.length===0&&e.hasChildren())return ws(e,t,n);let r=zN(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==X)&&e.children[X]&&e.numberOfChildren===1&&e.children[X].segments.length===0){let o=ws(e.children[X],t,n);return new ve(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=W0(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new ve(e.segments,i)}}function zN(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(Is(a))break;let c="".concat(a),u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!O0(c,u,s))return o;r+=2}else{if(!O0(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function qh(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=qh(new ve([],{}),0,r))}),t}function A0(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]="".concat(r)),t}function O0(e,t,n){return e==n.path&&bn(t,n.parameters)}var bs="imperative",Ht=class{constructor(t,n){this.id=t,this.url=n}},Ss=class extends Ht{constructor(t,n,r="imperative",i=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}},ei=class extends Ht{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}},pr=class extends Ht{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=2}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}},ti=class extends Ht{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=16}},Ms=class extends Ht{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=3}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}},Au=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Yh=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Zh=class extends Ht{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}},Kh=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Qh=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Xh=class{constructor(t){this.route=t,this.type=9}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}},Jh=class{constructor(t){this.route=t,this.type=10}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}},ep=class{constructor(t){this.snapshot=t,this.type=11}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(t,"')")}},tp=class{constructor(t){this.snapshot=t,this.type=12}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(t,"')")}},np=class{constructor(t){this.snapshot=t,this.type=13}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(t,"')")}},rp=class{constructor(t){this.snapshot=t,this.type=14}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(t,"')")}};var Ts=class{},As=class{constructor(t){this.url=t}};var ip=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Fu,this.attachRef=null}},Fu=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new ip,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ou=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=op(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=op(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=sp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return sp(t,this._root).map(n=>n.value)}};function op(e,t){if(e===t.value)return t;for(let n of t.children){let r=op(e,n);if(r)return r}return null}function sp(e,t){if(e===t.value)return[t];for(let n of t.children){let r=sp(e,n);if(r.length)return r.unshift(t),r}return[]}var Nt=class{constructor(t,n){this.value=t,this.children=n}toString(){return"TreeNode(".concat(this.value,")")}};function Xi(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var xu=class extends Ou{constructor(t,n){super(t),this.snapshot=n,vp(this,t)}toString(){return this.snapshot.toString()}};function q0(e,t){let n=WN(e,t),r=new Re([new Xr("",{})]),i=new Re({}),o=new Re({}),s=new Re({}),a=new Re(""),c=new ro(r,i,s,a,o,X,t,n.root);return c.snapshot=n.root,new xu(new Nt(c,[]),n)}function WN(e,t){let n={},r={},i={},o="",s=new Os([],n,i,o,r,X,t,null,{});return new Nu("",new Nt(s,[]))}var ro=class{constructor(t,n,r,i,o,s,a,c){var u,l;this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=(l=(u=this.dataSubject)==null?void 0:u.pipe(E(d=>d[Ps])))!=null?l:I(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(t=>to(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(t=>to(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}};function gp(e,t,n="emptyOnly"){var o,s;let r,{routeConfig:i}=e;return t!==null&&(n==="always"||(i==null?void 0:i.path)===""||!t.component&&!((o=t.routeConfig)!=null&&o.loadComponent))?r={params:x(x({},t.params),e.params),data:x(x({},t.data),e.data),resolve:x(x(x(x({},e.data),t.data),i==null?void 0:i.data),e._resolvedData)}:r={params:e.params,data:e.data,resolve:x(x({},e.data),(s=e._resolvedData)!=null?s:{})},i&&Z0(i)&&(r.resolve[Ps]=i.title),r}var Os=class{get title(){var t;return(t=this.data)==null?void 0:t[Ps]}constructor(t,n,r,i,o,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=to(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}},Nu=class extends Ou{constructor(t,n){super(n),this.url=t,vp(this,n)}toString(){return Y0(this._root)}};function vp(e,t){t.value._routerState=e,t.children.forEach(n=>vp(e,n))}function Y0(e){let t=e.children.length>0?" { ".concat(e.children.map(Y0).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Bh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),bn(t.params,n.params)||e.paramsSubject.next(n.params),EN(t.url,n.url)||e.urlSubject.next(n.url),bn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ap(e,t){let n=bn(e.params,t.params)&&IN(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||ap(e.parent,t.parent))}function Z0(e){return typeof e.title=="string"||e.title===null}var qN=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=X,this.activateEvents=new $e,this.deactivateEvents=new $e,this.attachEvents=new $e,this.detachEvents=new $e,this.parentContexts=g(Fu),this.location=g(dt),this.changeDetector=g(et),this.environmentInjector=g(Lt),this.inputBinder=g(yp,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var i;return((i=this.parentContexts.getContext(r))==null?void 0:i.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){var o;this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),(o=this.inputBinder)==null||o.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){var l;if(this.isActivated)throw new w(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new cp(r,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i!=null?i:this.environmentInjector}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=L({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[jt]});let e=t;return e})(),cp=class{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ro?this.route:t===Fu?this.childContexts:this.parent.get(t,n)}},yp=new _("");function YN(e,t,n){let r=xs(e,t._root,n?n._root:void 0);return new xu(r,t)}function xs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=ZN(e,t,n);return new Nt(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>xs(e,a)),s}}let r=KN(t.value),i=t.children.map(o=>xs(e,o));return new Nt(r,i)}}function ZN(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return xs(e,r,i);return xs(e,r)})}function KN(e){return new ro(new Re(e.url),new Re(e.params),new Re(e.queryParams),new Re(e.fragment),new Re(e.data),e.outlet,e.component,e)}var K0="ngNavigationCancelingError";function Q0(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=no(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=X0(!1,0,t);return i.url=n,i.navigationBehaviorOptions=r,i}function X0(e,t,n){let r=new Error("NavigationCancelingError: "+(e||""));return r[K0]=!0,r.cancellationCode=t,n&&(r.url=n),r}function QN(e){return J0(e)&&no(e.url)}function J0(e){return e&&e[K0]}var XN=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Ze({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ay],decls:1,vars:0,template:function(i,o){i&1&&Ie(0,"router-outlet")},dependencies:[qN],encapsulation:2});let e=t;return e})();function JN(e,t){var n;return e.providers&&!e._injector&&(e._injector=ff(e.providers,t,"Route: ".concat(e.path))),(n=e._injector)!=null?n:t}function Dp(e){let t=e.children&&e.children.map(Dp),n=t?Me(x({},e),{children:t}):x({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==X&&(n.component=XN),n}function Cn(e){return e.outlet||X}function eP(e,t){let n=e.filter(r=>Cn(r)===t);return n.push(...e.filter(r=>Cn(r)!==t)),n}function Rs(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let r=n.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var tP=(e,t,n,r)=>E(i=>(new up(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),up=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Bh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Xi(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Xi(t);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Xi(t);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Xi(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new rp(o.value.snapshot))}),t.children.length&&this.forwardEvent(new tp(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Bh(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Bh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Rs(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}},Pu=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},eo=class{constructor(t,n){this.component=t,this.route=n}};function nP(e,t,n){let r=e._root,i=t?t._root:null;return _s(r,i,n,[r.value])}function rP(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function oo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!ng(e)?e:t.get(e):r}function _s(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Xi(t);return e.children.forEach(s=>{iP(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Cs(a,n.getContext(s),i)),i}function iP(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=oP(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Pu(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?_s(e,t,a?a.children:null,r,i):_s(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new eo(a.outlet.component,s))}else s&&Cs(t,a,i),i.canActivateChecks.push(new Pu(r)),o.component?_s(e,null,a?a.children:null,r,i):_s(e,null,n,r,i);return i}function oP(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Jr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Jr(e.url,t.url)||!bn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ap(e,t)||!bn(e.queryParams,t.queryParams);case"paramsChange":default:return!ap(e,t)}}function Cs(e,t,n){let r=Xi(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Cs(s,t.children.getContext(o),n):Cs(s,null,n):Cs(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new eo(t.outlet.component,i)):n.canDeactivateChecks.push(new eo(null,i)):n.canDeactivateChecks.push(new eo(null,i))}function Fs(e){return typeof e=="function"}function sP(e){return typeof e=="boolean"}function aP(e){return e&&Fs(e.canLoad)}function cP(e){return e&&Fs(e.canActivate)}function uP(e){return e&&Fs(e.canActivateChild)}function lP(e){return e&&Fs(e.canDeactivate)}function dP(e){return e&&Fs(e.canMatch)}function eE(e){return e instanceof Tn||(e==null?void 0:e.name)==="EmptyError"}var wu=Symbol("INITIAL_VALUE");function io(){return W(e=>la(e.map(t=>t.pipe(je(1),le(wu)))).pipe(E(t=>{for(let n of t)if(n!==!0){if(n===wu)return wu;if(n===!1||n instanceof hr)return n}return!0}),fe(t=>t!==wu),je(1)))}function fP(e,t){return Le(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?I(Me(x({},n),{guardsResult:!0})):hP(s,r,i,e).pipe(Le(a=>a&&sP(a)?pP(r,o,e,t):I(a)),E(a=>Me(x({},n),{guardsResult:a})))})}function hP(e,t,n,r){return _e(e).pipe(Le(i=>DP(i.component,i.route,n,t,r)),Wt(i=>i!==!0,!0))}function pP(e,t,n,r){return _e(t).pipe(Sr(i=>mt(gP(i.route.parent,r),mP(i.route,r),yP(e,i.path,n),vP(e,i.route,n))),Wt(i=>i!==!0,!0))}function mP(e,t){return e!==null&&t&&t(new np(e)),I(!0)}function gP(e,t){return e!==null&&t&&t(new ep(e)),I(!0)}function vP(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return I(!0);let i=r.map(o=>rn(()=>{var u;let s=(u=Rs(t))!=null?u:n,a=oo(o,s),c=cP(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e));return mr(c).pipe(Wt())}));return I(i).pipe(io())}function yP(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>rP(s)).filter(s=>s!==null).map(s=>rn(()=>{let a=s.guards.map(c=>{var f;let u=(f=Rs(s.node))!=null?f:n,l=oo(c,u),d=uP(l)?l.canActivateChild(r,e):u.runInContext(()=>l(r,e));return mr(d).pipe(Wt())});return I(a).pipe(io())}));return I(o).pipe(io())}function DP(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{var d;let c=(d=Rs(t))!=null?d:i,u=oo(a,c),l=lP(u)?u.canDeactivate(e,t,n,r):c.runInContext(()=>u(e,t,n,r));return mr(l).pipe(Wt())});return I(s).pipe(io())}function _P(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=oo(s,e),c=aP(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n));return mr(c)});return I(o).pipe(io(),tE(r))}function tE(e){return wr(we(t=>{if(no(t))throw Q0(e,t)}),E(t=>t===!0))}function EP(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=oo(s,e),c=dP(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n));return mr(c)});return I(o).pipe(io(),tE(r))}var Ns=class{constructor(t){this.segmentGroup=t||null}},Ru=class extends Error{constructor(t){super(),this.urlTree=t}};function Qi(e){return fi(new Ns(e))}function wP(e){return fi(new w(4e3,!1))}function bP(e){return fi(X0(!1,3))}var lp=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new w(4002,!1)}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return I(r);if(i.numberOfChildren>1||!i.children[X])return wP(t.redirectTo);i=i.children[X]}}applyRedirectCommands(t,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Ru(i);return i}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new hr(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new ve(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},dp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function CP(e,t,n,r,i){let o=_p(e,t,n);return o.matched?(r=JN(t,r),EP(r,t,n,i).pipe(E(s=>s===!0?o:x({},dp)))):I(o)}function _p(e,t,n){var a,c;if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?x({},dp):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||_N)(n,e,t);if(!i)return x({},dp);let o={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([u,l])=>{o[u]=l.path});let s=i.consumed.length>0?x(x({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:(c=i.posParams)!=null?c:{}}}function x0(e,t,n,r){return n.length>0&&MP(e,n,r)?{segmentGroup:new ve(t,SP(r,new ve(n,e.children))),slicedSegments:[]}:n.length===0&&TP(e,n,r)?{segmentGroup:new ve(e.segments,IP(e,t,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ve(e.segments,e.children),slicedSegments:n}}function IP(e,t,n,r,i){let o={};for(let s of r)if(ku(e,n,s)&&!i[Cn(s)]){let a=new ve([],{});o[Cn(s)]=a}return x(x({},i),o)}function SP(e,t){let n={};n[X]=t;for(let r of e)if(r.path===""&&Cn(r)!==X){let i=new ve([],{});n[Cn(r)]=i}return n}function MP(e,t,n){return n.some(r=>ku(e,t,r)&&Cn(r)!==X)}function TP(e,t,n){return n.some(r=>ku(e,t,r))}function ku(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function AP(e,t,n,r){return Cn(e)!==r&&(r===X||!ku(t,n,e))?!1:e.path==="**"?!0:_p(t,e,n).matched}function OP(e,t,n){return t.length===0&&!e.children[n]}var fp=class{};function xP(e,t,n,r,i,o,s="emptyOnly"){return new hp(e,t,n,r,i,s,o).recognize()}var NP=31,hp=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new lp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,!1)}recognize(){let t=x0(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(E(n=>{let r=new Os([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,{},X,this.rootComponentType,null,{}),i=new Nt(r,n),o=new Nu("",i),s=VN(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,X).pipe(Gt(r=>{if(r instanceof Ru)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ns?this.noMatchError(r):r}))}inheritParamsAndData(t,n){let r=t.value,i=gp(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(t,n,r,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i,!0).pipe(E(o=>o instanceof Nt?[o]:[]))}processChildren(t,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return _e(i).pipe(Sr(o=>{let s=r.children[o],a=eP(n,o);return this.processSegmentGroup(t,a,s,o)}),ha((o,s)=>(o.push(...s),o)),Zn(null),il(),Le(o=>{if(o===null)return Qi(r);let s=nE(o);return PP(s),I(s)}))}processSegment(t,n,r,i,o,s){return _e(n).pipe(Sr(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:t,n,a,r,i,o,s).pipe(Gt(u=>{if(u instanceof Ns)return I(null);throw u}))}),Wt(a=>!!a),Gt(a=>{if(eE(a))return OP(r,i,o)?I(new fp):Qi(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return AP(r,i,o,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):Qi(i):Qi(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=i.path==="**"?N0(o):_p(n,i,o);if(!a)return Qi(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>NP&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(Le(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){let s;return r.path==="**"?(s=I(N0(i)),n.children={}):s=CP(n,r,i,t,this.urlSerializer),s.pipe(W(a=>{var c;return a.matched?(t=(c=r._injector)!=null?c:t,this.getChildConfig(t,r,i).pipe(W(({routes:u})=>{var H,re,ge;let l=(H=r._loadedInjector)!=null?H:t,{consumedSegments:d,remainingSegments:f,parameters:p}=a,m=new Os(d,p,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,FP(r),Cn(r),(ge=(re=r.component)!=null?re:r._loadedComponent)!=null?ge:null,r,kP(r)),{segmentGroup:y,slicedSegments:A}=x0(n,d,f,u);if(A.length===0&&y.hasChildren())return this.processChildren(l,u,y).pipe(E(Ye=>Ye===null?null:new Nt(m,Ye)));if(u.length===0&&A.length===0)return I(new Nt(m,[]));let S=Cn(r)===o;return this.processSegment(l,u,y,A,S?X:o,!0).pipe(E(Ye=>new Nt(m,Ye instanceof Nt?[Ye]:[])))}))):Qi(n)}))}getChildConfig(t,n,r){return n.children?I({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?I({routes:n._loadedRoutes,injector:n._loadedInjector}):_P(t,n,r,this.urlSerializer).pipe(Le(i=>i?this.configLoader.loadChildren(t,n).pipe(we(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):bP(n))):I({routes:[],injector:t})}};function PP(e){e.sort((t,n)=>t.value.outlet===X?-1:n.value.outlet===X?1:t.value.outlet.localeCompare(n.value.outlet))}function RP(e){let t=e.value.routeConfig;return t&&t.path===""}function nE(e){let t=[],n=new Set;for(let r of e){if(!RP(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=nE(r.children);t.push(new Nt(r.value,i))}return t.filter(r=>!n.has(r))}function FP(e){return e.data||{}}function kP(e){return e.resolve||{}}function N0(e){return{matched:!0,parameters:e.length>0?R0(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function LP(e,t,n,r,i,o){return Le(s=>xP(e,t,n,r,s.extractedUrl,i,o).pipe(E(({state:a,tree:c})=>Me(x({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function jP(e,t){return Le(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return I(n);let o=i.map(u=>u.route),s=new Set(o),a=rE(o[0].parent).slice(1),c=0;return _e(a).pipe(Sr(u=>s.has(u)?VP(u,r,e,t):(u.data=gp(u,u.parent,e).resolve,I(void 0))),we(()=>c++),mi(1),Le(u=>c===a.length?I(n):De))})}function rE(e){let t=e.children.map(n=>rE(n)).flat();return[e,...t]}function VP(e,t,n,r){let i=e.routeConfig,o=e._resolve;return(i==null?void 0:i.title)!==void 0&&!Z0(i)&&(o[Ps]=i.title),UP(o,e,t,r).pipe(E(s=>(e._resolvedData=s,e.data=gp(e,e.parent,n).resolve,null)))}function UP(e,t,n,r){let i=zh(e);if(i.length===0)return I({});let o={};return _e(i).pipe(Le(s=>BP(e[s],t,n,r).pipe(Wt(),we(a=>{o[s]=a}))),mi(1),ho(o),Gt(s=>eE(s)?De:fi(s)))}function BP(e,t,n,r){var a;let i=(a=Rs(t))!=null?a:r,o=oo(e,i),s=o.resolve?o.resolve(t,n):i.runInContext(()=>o(t,n));return mr(s)}function $h(e){return W(t=>{let n=e(t);return n?_e(n).pipe(E(()=>t)):I(t)})}var iE=(()=>{let t=class t{buildTitle(r){var s;let i,o=r.root;for(;o!==void 0;)i=(s=this.getResolvedTitleForRoute(o))!=null?s:i,o=o.children.find(a=>a.outlet===X);return i}getResolvedTitleForRoute(r){return r.data[Ps]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g($P))(),providedIn:"root"});let e=t;return e})(),$P=(()=>{let t=class t extends iE{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(C(Nf))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ep=new _("",{providedIn:"root",factory:()=>({})}),wp=new _("ROUTES"),HP=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(vf)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return I(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=mr(r.loadComponent()).pipe(E(oE),we(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Kn(()=>{this.componentLoaders.delete(r)})),o=new ci(i,()=>new ye).pipe(ai());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=zP(i,this.compiler,r,this.onLoadEndListener).pipe(Kn(()=>{this.childrenLoaders.delete(i)})),a=new ci(s,()=>new ye).pipe(ai());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function zP(e,t,n,r){return mr(e.loadChildren()).pipe(E(oE),Le(i=>i instanceof Mo||Array.isArray(i)?I(i):_e(t.compileModuleAsync(i))),E(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(wp,[],{optional:!0,self:!0}).flat()),{routes:s.map(Dp),injector:o}}))}function GP(e){return e&&typeof e=="object"&&"default"in e}function oE(e){return GP(e)?e.default:e}var bp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(WP))(),providedIn:"root"});let e=t;return e})(),WP=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qP=new _("");var YP=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=g(HP),this.environmentInjector=g(Lt),this.urlSerializer=g(mp),this.rootContexts=g(Fu),this.location=g(Go),this.inputBindingEnabled=g(yp,{optional:!0})!==null,this.titleStrategy=g(iE),this.options=g(Ep,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(bp),this.createViewTransition=g(qP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let r=o=>this.events.next(new Xh(o)),i=o=>this.events.next(new Jh(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var o;let i=++this.navigationId;(o=this.transitions)==null||o.next(Me(x(x({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new Re({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bs,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fe(s=>s.id!==0),E(s=>Me(x({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),W(s=>{this.currentTransition=s;let a=!1,c=!1;return I(s).pipe(we(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Me(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),W(u=>{var f;let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=(f=u.extras.onSameUrlNavigation)!=null?f:r.onSameUrlNavigation;if(!l&&d!=="reload"){let p="";return this.events.next(new ti(u.id,this.urlSerializer.serialize(u.rawUrl),p,0)),u.resolve(null),De}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(W(p=>{var y,A;let m=(y=this.transitions)==null?void 0:y.getValue();return this.events.next(new Ss(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),m!==((A=this.transitions)==null?void 0:A.getValue())?De:Promise.resolve(p)}),LP(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),we(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=Me(x({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let m=new Au(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(m)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:p,extractedUrl:m,source:y,restoredState:A,extras:S}=u,H=new Ss(p,this.urlSerializer.serialize(m),y,A);this.events.next(H);let re=q0(m,this.rootComponentType).snapshot;return this.currentTransition=s=Me(x({},u),{targetSnapshot:re,urlAfterRedirects:m,extras:Me(x({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,I(s)}else{let p="";return this.events.next(new ti(u.id,this.urlSerializer.serialize(u.extractedUrl),p,1)),u.resolve(null),De}}),we(u=>{let l=new Yh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),E(u=>(this.currentTransition=s=Me(x({},u),{guards:nP(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),fP(this.environmentInjector,u=>this.events.next(u)),we(u=>{if(s.guardsResult=u.guardsResult,no(u.guardsResult))throw Q0(this.urlSerializer,u.guardsResult);let l=new Zh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),fe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",3),!1)),$h(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(we(l=>{let d=new Kh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),W(l=>{let d=!1;return I(l).pipe(jP(this.paramsInheritanceStrategy,this.environmentInjector),we({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),we(l=>{let d=new Qh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),$h(u=>{let l=d=>{var p;let f=[];(p=d.routeConfig)!=null&&p.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(we(m=>{d.component=m}),E(()=>{})));for(let m of d.children)f.push(...l(m));return f};return la(l(u.targetSnapshot.root)).pipe(Zn(),je(1))}),$h(()=>this.afterPreactivation()),W(()=>{var f;let{currentSnapshot:u,targetSnapshot:l}=s,d=(f=this.createViewTransition)==null?void 0:f.call(this,this.environmentInjector,u.root,l.root);return d?_e(d).pipe(E(()=>s)):I(s)}),E(u=>{let l=YN(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Me(x({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),we(()=>{this.events.next(new Ts)}),tP(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),je(1),we({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ei(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),pe(this.transitionAbortSubject.pipe(we(u=>{throw u}))),Kn(()=>{var u;if(!a&&!c){let l="";this.cancelNavigationTransition(s,l,1)}((u=this.currentNavigation)==null?void 0:u.id)===s.id&&(this.currentNavigation=null)}),Gt(u=>{var l;if(c=!0,J0(u))this.events.next(new pr(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),QN(u)?this.events.next(new As(u.url)):s.resolve(!1);else{this.events.next(new Ms(s.id,this.urlSerializer.serialize(s.extractedUrl),u,(l=s.targetSnapshot)!=null?l:void 0));try{s.resolve(r.errorHandler(u))}catch(d){s.reject(d)}}return De}))}))}cancelNavigationTransition(r,i,o){let s=new pr(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){var r,i;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((i=this.currentTransition)==null?void 0:i.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,o;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==((i=this.currentTransition)==null?void 0:i.extractedUrl.toString())&&!((o=this.currentTransition)!=null&&o.extras.skipLocationChange)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ZP(e){return e!==bs}var KP=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(QP))(),providedIn:"root"});let e=t;return e})(),pp=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},QP=(()=>{let t=class t extends pp{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),sE=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(XP))(),providedIn:"root"});let e=t;return e})(),XP=(()=>{let t=class t extends sE{constructor(){super(...arguments),this.location=g(Go),this.urlSerializer=g(mp),this.options=g(Ep,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(bp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new hr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=q0(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r,i;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(i=(r=this.restoredState())==null?void 0:r.\u0275routerPageId)!=null?i:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof Ss)this.stateMemento=this.createStateMemento();else if(r instanceof ti)this.rawUrlTree=i.initialUrl;else if(r instanceof Au){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof Ts?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):r instanceof pr&&(r.code===3||r.code===2)?this.restoreHistory(i):r instanceof Ms?this.restoreHistory(i,!0):r instanceof ei&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=x(x({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=x(x({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){var i;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(i=r.finalUrl)!=null?i:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Es=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Es||{});function JP(e,t){e.events.pipe(fe(n=>n instanceof ei||n instanceof pr||n instanceof Ms||n instanceof ti),E(n=>n instanceof ei||n instanceof ti?Es.COMPLETE:(n instanceof pr?n.code===0||n.code===1:!1)?Es.REDIRECTING:Es.FAILED),fe(n=>n!==Es.REDIRECTING),je(1)).subscribe(()=>{t()})}function eR(e){throw e}var tR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},nR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},aE=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r,i;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(wc),this.stateManager=g(sE),this.options=g(Ep,{optional:!0})||{},this.pendingTasks=g(bc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(YP),this.urlSerializer=g(mp),this.location=g(Go),this.urlHandlingStrategy=g(bp),this._events=new ye,this.errorHandler=this.options.errorHandler||eR,this.navigated=!1,this.routeReuseStrategy=g(KP),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(i=(r=g(wp,{optional:!0}))==null?void 0:r.flat())!=null?i:[],this.componentInputBindingEnabled=!!g(yp,{optional:!0}),this.eventsSubscription=new Ge,this.isNgZoneEnabled=g(te)instanceof te&&te.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:o=>{this.console.warn(o)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof pr&&i.code!==0&&i.code!==1)this.navigated=!0;else if(i instanceof ei)this.navigated=!0;else if(i instanceof As){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ZP(o.source)};this.scheduleNavigation(a,bs,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}iR(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)}))}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let u=x({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(Dp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=x(x({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let p=o?o.snapshot:this.routerState.snapshot.root;f=H0(p)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),f=this.currentUrlTree.root}return z0(f,r,d,l!=null?l:null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=no(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,bs,null,i)}navigate(r,i={skipLocationChange:!1}){return rR(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=x({},tR):i===!1?o=x({},nR):o=i,no(r))return M0(this.currentUrlTree,r,o);let s=this.parseUrl(r);return M0(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.keys(r).reduce((i,o)=>{let s=r[o];return s!=null&&(i[o]=s),i},{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,p)=>{c=f,u=p});let d=this.pendingTasks.add();return JP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function rR(e){for(let t=0;tn.\u0275providers)])}function sR(e){return e.routerState.root}function aR(){let e=g(st);return t=>{var o,s;let n=e.get(ir);if(t!==n.components[0])return;let r=e.get(aE),i=e.get(cR);e.get(uR)===1&&r.initialNavigation(),(o=e.get(lR,null,J.Optional))==null||o.setUpPreloading(),(s=e.get(oR,null,J.Optional))==null||s.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var cR=new _("",{factory:()=>new ye}),uR=new _("",{providedIn:"root",factory:()=>1});var lR=new _("");var i5=(()=>{class e extends M{constructor(n,r,i){super(o=>this.stream$.subscribe(o)),this.media=n,this.ngZone=r,this.size$=i,this.sorted=Object.values(this.media).sort((o,s)=>o-s),this.invert=Object.keys(this.media).reduce((o,s)=>Object.assign(Object.assign({},o),{[this.media[s]]:s}),{}),this.stream$=this.size$.pipe(E(({width:o})=>this.sorted.find(s=>s>o)),E(o=>this.invert[o||this.sorted[this.sorted.length-1]]),Te(),En(this.ngZone),Ct({bufferSize:1,refCount:!0}))}}return e.\u0275fac=function(n){return new(n||e)(C(Lh),C(te),C(bh))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cE=(()=>{class e{constructor(n){this.locale=n}format(n){return I(new Date(n).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}}return e.\u0275fac=function(n){return new(n||e)(C(Ho))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),o5=(()=>{class e extends Re{constructor(){super([])}add(n){this.next(this.value.concat(n))}remove(n){this.value.includes(n)&&this.next(this.value.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var s5=(()=>{class e extends M{constructor(n,r,i,o){super(s=>r.pipe(E(()=>n.nativeElement.getBoundingClientRect()),E(a=>o.getPosition(a)),_n(i),Kn(()=>o.getPosition(zD))).subscribe(s))}}return e.\u0275fac=function(n){return new(n||e)(C(B),C(Jt),C(te),C(Qr))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})();var uE=(()=>{class e{constructor(n,r,i){this.tuiSanitizer=n,this.sanitizer=r,this.originals={},this.items$=new Re(new Map),this.define(i)}define(n){let{value:r}=this.items$;Object.keys(n).forEach(i=>{this.defineIcon(i,n[i],r)}),this.items$.next(r)}getOriginal(n){return this.originals[n]||null}defineIcon(n,r,i){if(i.has(n))return;let o=this.parseSrc(n,r);o&&(i.set(n,o),this.originals=Object.assign(Object.assign({},this.originals),{[n]:r}))}parseSrc(n,r){return this.sanitize(v0(r,n))}sanitize(n){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(lt.HTML,n):this.sanitizer.sanitize(lt.HTML,n))||"")}}return e.\u0275fac=function(n){return new(n||e)(C(yu,8),C(Ko),C(b0))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),a5=(()=>{class e{constructor(n,r){this.win=n,this.isWebkit=r}correct(n){var r,i,o,s;return this.isWebkit?[n[0]+((i=(r=this.win.visualViewport)===null||r===void 0?void 0:r.offsetTop)!==null&&i!==void 0?i:0),n[1]+((s=(o=this.win.visualViewport)===null||o===void 0?void 0:o.offsetLeft)!==null&&s!==void 0?s:0)]:n}}return e.\u0275fac=function(n){return new(n||e)(C(ne),C(J_))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function fR(e,t){if(e&1&&Ie(0,"div",3),e&2){let n=ce().tuiLet;R("innerHTML",n,Ri)}}function hR(e,t){if(e&1){let n=mn();Fo(),ue(0,"svg",4),ze("error",function(){dn(n);let i=ce(2);return fn(i.onError())}),Ie(1,"use"),ae()}if(e&2){let n=ce(2);K(1),Ke("href",n.use,null,"xlink")}}function pR(e,t){if(e&1&&(Qt(0),me(1,fR,1,1,"div",1)(2,hR,2,1,"ng-template",null,2,Ly),Xt()),e&2){let n=Iy(3),r=ce();K(1),R("ngIf",r.isInnerHTML)("ngIfElse",n)}}var mR={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},gR={iconsPlace:vu,path:pu(vu),srcProcessor:Ve,contentProcessor:$c,deprecated:e=>{let t=e.replace("Large","").replace("Outline",""),n=mR[t];return n?"".concat(t,"/(Large|Outline) is deprecated, use ").concat(n,"/(Large|Outline) instead"):""}},vR=Q(()=>({iconsPlace:g(kh),path:g(C0),deprecated:gR.deprecated,srcProcessor:g(S0),contentProcessor:g(I0)})),yR=new _("[TUI_SVG_SRC_INTERCEPTORS]");var DR="Attempted to use undefined named icon",_R="External icon is missing on the given URL",ER="Failed to load external SVG",Pt=class{constructor(t,n,r,i,o,s,a,c,u,l){this.doc=t,this.win=n,this.options=r,this.srcInterceptors=i,this.tuiSanitizer=o,this.svgService=s,this.staticRequestService=a,this.sanitizer=c,this.el=u,this.baseHref=l,this.src$=new Mn(1),this.icon="",this.innerHTML$=this.src$.pipe(W(()=>Gn(this.icon)?this.isExternal?this.getExternalIcon(this.icon):I(this.getSafeHtml(this.icon)):I(this.icon)),le(""))}set src(t){var n;let r=this.options.deprecated(String(t));this.icon=((n=this.srcInterceptors)!==null&&n!==void 0?n:[]).reduce((i,o)=>o(i,this.options),this.options.srcProcessor(t||"")),this.src$.next()}get src(){return this.icon}get use(){return Gn(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!Gn(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return Gi(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(gs,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Gn(this.icon)&&this.icon.replace(gs,"").endsWith(".svg")}get isSrc(){return Gn(this.icon)&&D0(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:t,isUse:n,win:r}=this;return n&&t.startsWith("http")&&!!r.origin&&!t.startsWith(r.origin)}onError(t=_R){let{icon:n}=this,r=new CustomEvent(p0,{bubbles:!0,detail:{message:t,icon:n}});this.el.nativeElement.dispatchEvent(r)}resolveName(t,n){return n(t,this.baseHref)}getSafeHtml(t){return this.isSrc?this.sanitize(t):this.process(t)}process(t){let n=this.svgService.getOriginal(t);return this.isName&&!n&&t&&this.onError(DR),!this.isShadowDOM||!this.isName?"":this.sanitize(n||"")}sanitize(t){return t=this.options.contentProcessor(t),this.tuiSanitizer&&Gn(t)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(lt.HTML,t)||""):t}getExternalIcon(t){let n=t.includes(".svg")?t:this.use;return this.staticRequestService.request(n).pipe(Gt(()=>(this.onError(ER),I(""))),E(r=>this.sanitize(r.replace("{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,d0]]}),e})();var V="{{duration}}ms ease-in-out",de={params:{duration:300}},at=300,dE=Ne("tuiHeightCollapse",[ee(":enter",[D({height:0}),j(V,D({height:"*"}))],de),ee(":leave",[D({height:"*"}),j(V,D({height:0}))],de)]),A5=Ne("tuiHeightCollapseList",[ee("* => *",[Qe(":enter",[D({height:0}),nt(at,[j(V,D({height:"*"}))])],{optional:!0}),Qe(":leave",[D({height:"*"}),nt(at,[j(V,D({height:0}))])],{optional:!0})],de)]),O5=Ne("tuiWidthCollapse",[ee(":enter",[D({width:0}),j(V,D({width:"*"}))],de),ee(":leave",[D({width:"*"}),j(V,D({width:0}))],de)]),x5=Ne("tuiWidthCollapseList",[ee("* => *",[Qe(":enter",[D({width:0}),nt(at,[j(V,D({width:"*"}))])],{optional:!0}),Qe(":leave",[D({width:"*"}),nt(at,[j(V,D({width:0}))])],{optional:!0})],de)]),Lu=Ne("tuiFadeIn",[ee(":enter",[D({opacity:0}),j(V,D({opacity:1}))],de),ee(":leave",[D({opacity:1}),j(V,D({opacity:0}))],de)]),N5=Ne("tuiFadeInList",[ee("* => *",[Qe(":enter",[D({opacity:0}),nt(at,[j(V,D({opacity:1}))])],{optional:!0}),Qe(":leave",[D({opacity:1}),nt(at,[j(V,D({opacity:0}))])],{optional:!0})],de)]),P5=Ne("tuiFadeInTop",[ee(":enter",[D({transform:"translateY(-10px)",opacity:0}),j(V,D({transform:"translateY(0)",opacity:1}))],de),ee(":leave",[D({transform:"translateY(0)",opacity:1}),j(V,D({transform:"translateY(-10px)",opacity:0}))],de)]),R5=Ne("tuiFadeInBottom",[ee(":enter",[D({transform:"translateY(10px)",opacity:0}),j(V,D({transform:"translateY(0)",opacity:1}))],de),ee(":leave",[D({transform:"translateY(0)",opacity:1}),j(V,D({transform:"translateY(10px)",opacity:0}))],de)]),F5=Ne("tuiDropdownAnimation",[ee(":enter",[D({transform:"translateY(-10px)",opacity:0}),j(V,D({transform:"translateY(0)",opacity:1}))],de),ee(":leave",[D({transform:"translateY(0)",opacity:1}),j(V,D({transform:"translateY(-10px)",opacity:0}))],de)]),k5=Ne("tuiScaleIn",[ee(":enter",[D({transform:"scale(0)"}),j(V,D({transform:"scale(1)"}))],de),ee(":leave",[D({transform:"scale(1)"}),j(V,D({transform:"scale(0)"}))],de)]),L5=Ne("tuiPop",[ee(":enter",[D({transform:"scale(0)"}),j(V,D({transform:"scale(1.1)"})),j(V,D({transform:"scale(1)"}))],de),ee(":leave",[D({transform:"scale(1)"}),j(V,D({transform:"scale(1.1)"})),j(V,D({transform:"scale(0)"}))],de)]),j5=Ne("tuiScaleInList",[ee("* => *",[Qe(":enter",[D({transform:"scale(0)"}),nt(at,[j(V,D({transform:"scale(1)"}))])],{optional:!0}),Qe(":leave",[D({transform:"scale(1)"}),nt(at,[j(V,D({transform:"scale(0)"}))])],{optional:!0})],de)]),V5=Ne("tuiSlideIn",[ee("* => left",[D({transform:"translateX(-100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee("left => *",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(-100%)"}))],de),ee("* => right",[D({transform:"translateX(100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee("right => *",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(100%)"}))],de)]),U5=Ne("tuiSlideInLeft",[ee(":enter",[D({transform:"translateX(-100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee(":leave",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(-100%)"}))],de)]),B5=Ne("tuiSlideInLeftList",[ee("* => *",[Qe(":enter",[D({transform:"translateX(-100%)"}),nt(at,[j(V,D({transform:"translateX(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateX(0)"}),nt(at,[j(V,D({transform:"translateX(-100%)"}))])],{optional:!0})],de)]),fE=Ne("tuiSlideInRight",[ee(":enter",[D({transform:"translateX(100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee(":leave",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(100%)"}))],de)]),$5=Ne("tuiSlideInRightList",[ee("* => *",[Qe(":enter",[D({transform:"translateX(100%)"}),nt(at,[j(V,D({transform:"translateX(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateX(0)"}),nt(at,[j(V,D({transform:"translateX(100%)"}))])],{optional:!0})],de)]),hE=Ne("tuiSlideInTop",[ee(":enter",[D({transform:"translate3d(0,{{start}},0)"}),j(V,D({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),ee(":leave",[D({transform:"translate3d(0,{{end}},0)"}),j(V,D({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),H5=Ne("tuiSlideInTopList",[ee("* => *",[Qe(":enter",[D({transform:"translateY(100%)"}),nt(at,[j(V,D({transform:"translateY(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateY(0)"}),nt(at,[j(V,D({transform:"translateY(100%)"}))])],{optional:!0})],de)]),z5=Ne("tuiSlideInBottom",[ee(":enter",[D({transform:"translateY(-100%)"}),j(V,D({transform:"translateY(0)"}))],de),ee(":leave",[D({transform:"translateY(0)"}),j(V,D({transform:"translateY(-100%)"}))],de)]),G5=Ne("tuiSlideInBottomList",[ee("* => *",[Qe(":enter",[D({transform:"translateY(-100%)"}),nt(at,[j(V,D({transform:"translateY(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateY(0)"}),nt(at,[j(V,D({transform:"translateY(-100%)"}))])],{optional:!0})],de)]);var gr=(()=>{class e extends r0{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275dir=L({type:e,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[Oe]}),e})();var eq={provide:jh,deps:[[new Un,jh],B],useFactory:(e,{nativeElement:t})=>(t["$.class._mobile"]=e,e)},ju={provide:Ki,deps:[[new Vn,gr],B],useFactory:(e,{nativeElement:t})=>{let n=e?e.change$.pipe(le(null),E(()=>e.mode)):I(null);return t["$.data-mode.attr"]=n,n}};function wR(e){return e.replace(/[a-z][A-Z]/g,t=>"".concat(t[0],"-").concat(t[1].toLowerCase()))}var qn=class{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(n=>!this.modifier.includes(n)).join(".")}},bR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier="$"}addEventListener(n,r){n[r]=n[r]||De;let i=this.getMethod(n,r),o=this.manager.getZone().onStable,s=mt(o.pipe(pa(()=>n[r]===De)),rn(()=>n[r])).subscribe(i);return()=>s.unsubscribe()}getMethod(n,r){let[,i,o,s=""]=r.split(".");return r.endsWith(".attr")?a=>a===null?n.removeAttribute(i):n.setAttribute(i,String(a)):i==="class"?a=>n.classList.toggle(o,!!a):i==="style"?a=>n.style.setProperty(wR(o),"".concat(a).concat(s)):a=>n[i]=a}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),CR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(n){return n.includes(".")&&!this.unwrap(n).includes(".")}addEventListener(n,r,i){return n.addEventListener(this.unwrap(r),i,{once:r.includes(".once"),passive:r.includes(".passive"),capture:r.includes(".capture")}),()=>n.removeEventListener(this.unwrap(r),i)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),IR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(n,r,i){let o=s=>{s.preventDefault(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),SR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".self"}addEventListener(n,r,i){let o=s=>{s.target===s.currentTarget&&i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),Vu=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(n,r,i){return e.ngZone=this.manager.getZone(),e.ngZone.runOutsideAngular(()=>this.manager.addEventListener(n,this.unwrap(r),i))}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),MR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(n,r,i){let o=s=>{s.stopPropagation(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),TR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),AR=[Vu,bR,CR,IR,SR,MR,TR],OR=AR.map(e=>({provide:Vi,multi:!0,useClass:e}));function oq(e){return(t,n,r)=>{let{value:i}=r;r.value=function(...o){e.apply(this,o)&&(Vu.ngZone?Vu.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var sq=(()=>{class e{constructor([n]){console.assert(!(n instanceof Vu)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(n){return new(n||e)(C(Vi))},e.\u0275mod=G({type:e}),e.\u0275inj=z({providers:OR}),e})();var pE=(()=>{class e{constructor(n){this.mode$=n,this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?Zi.Disabled:this.readOnly?Zi.Readonly:this.active?Zi.Active:this.hover?Zi.Hover:null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}}return e.\u0275fac=function(n){return new(n||e)(v(Ki))},e.\u0275dir=L({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(n,r){n&1&&ze("$.data-mode.attr",function(){return r.mode$}),n&2&&(Ke("data-appearance",r.appearance)("data-state",r.interactiveState),Ue("_invalid",r.computedInvalid)("_focused",r.computedFocused)("_no-hover",r.noHover)("_no-active",r.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[xe([ju])]}),e})(),mE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function NR(e,t){if(e&1&&(Qt(0),vn(1),Xt()),e&2){let n=t.polymorpheusOutlet;K(1),Vt(" ",n," ")}}function PR(e,t){if(e&1&&(Fo(),Lg(),ue(0,"div",6),me(1,NR,2,1,"ng-container",7),ae()),e&2){let n=ce(2);Ue("t-text_horizontal",n.isHorizontal),K(1),R("polymorpheusOutlet",n.textContent)}}function RR(e,t){if(e&1&&(ue(0,"div",2),Fo(),ue(1,"svg",3),Ie(2,"circle",4),ae(),me(3,PR,2,3,"div",5),ae()),e&2){let n=ce();Ue("t-loader_horizontal",n.isHorizontal)("t-loader_inherit-color",n.inheritColor),Ke("data-size",n.size),K(3),R("ngIf",n.hasText)}}var FR=["*"],kR={size:"m",inheritColor:!1,overlay:!1},LR=he(kR);var gE=(()=>{class e{constructor(n,r,i,o){this.doc=n,this.el=r,this.isIos=i,this.options=o,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=ZD(this.el.nativeElement)||this.isIos}set showLoader(n){n&&this.focused&&n_(this.doc),this.loading=n}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!_0(this.size)}get focused(){return i_(this.el.nativeElement)}}return e.\u0275fac=function(n){return new(n||e)(v(oe),v(B),v(fs),v(LR))},e.\u0275cmp=Ze({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(n,r){n&2&&Ue("_loading",r.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:FR,decls:3,vars:7,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"t-icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(n,r){n&1&&(gn(),ue(0,"fieldset",0),Dt(1),ae(),me(2,RR,4,6,"div",1)),n&2&&(Ue("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),R("disabled",r.loading&&!r.isApple),Ke("inert",r.loading||null),K(2),R("ngIf",r.loading))},dependencies:[ft,ur],styles:["@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem}._loading[_nghost-%COMP%]{overflow:hidden}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);animation:tuiFadeIn var(--tui-duration)}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-loader[data-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.t-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.t-icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scaleY(-1);animation:_ngcontent-%COMP%_tuiLoaderRotate 3s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:_ngcontent-%COMP%_tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),e})(),vE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,lr]]}),e})();var VR=["tuiButton",""];function UR(e,t){e&1&&Bo(0)}function BR(e,t){if(e&1&&Ie(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;R("src",n)}}function $R(e,t){if(e&1&&(ue(0,"span",6),me(1,BR,1,1,"tui-svg",7),ae()),e&2){let n=ce();K(1),R("polymorpheusOutlet",n.icon)}}function HR(e,t){if(e&1&&Ie(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;R("src",n)}}function zR(e,t){if(e&1&&(ue(0,"span",9),me(1,HR,1,1,"tui-svg",7),ae()),e&2){let n=ce();K(1),R("polymorpheusOutlet",n.iconRight)}}function GR(e,t){if(e&1&&Ie(0,"tui-loader",10),e&2){let n=ce();R("inheritColor",!0)("size",n.loaderSize)}}var WR=["*"],qR={size:"l",shape:null,appearance:vs.Primary},Cp=he(qR);var ks=(()=>{class e extends Sh{constructor(n,r,i){var o;super(),this.mode=n,this.el=r,this.options=i,this.mode$=((o=this.mode)===null||o===void 0?void 0:o.change$)||De,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(le(null),E(()=>this.computedAppearance),Te())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&Gr(this.el.nativeElement)}get loaderSize(){return this.size==="l"||this.size==="xl"?"m":"s"}get computedAppearance(){var n;return(n=this.appearance)!==null&&n!==void 0?n:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(n){this.updateFocused(n)}}return e.\u0275fac=function(n){return new(n||e)(v(gr,8),v(B),v(Cp))},e.\u0275cmp=Ze({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(n,r){n&1&&ze("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),n&2&&(lf("tabIndex",r.tabIndex),Ke("data-shape",r.shape)("data-size",r.size)("data-appearance",r.computedAppearance)("disabled",r.nativeDisabled),Ue("_loading",r.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[xe([cu(e),Fe]),Oe],attrs:VR,ngContentSelectors:WR,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","hover"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"inheritColor","size",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"inheritColor","size"]],template:function(n,r){n&1&&(gn(),me(0,UR,1,0,"ng-container",0),Ut(1,"async"),ue(2,"div",1)(3,"span",2),me(4,$R,2,1,"span",3),Dt(5),me(6,zR,2,1,"span",4),ae(),me(7,GR,1,2,"tui-loader",5),ae()),n&2&&(R("ngIf",Bt(1,8,r.appearance$)),K(2),R("active",r.pseudoActive)("appearance",r.computedAppearance)("disabled",r.computedDisabled)("hover",r.pseudoHover),K(2),R("ngIf",r.icon),K(2),R("ngIf",r.iconRight),K(1),R("ngIf",r.showLoader))},dependencies:[Pt,gE,ft,pE,ur,yn],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;outline:none;color:inherit}[data-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:normal}[data-size=xs][data-shape=square][_nghost-%COMP%], [data-size=xs][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:normal}[data-size=s][data-shape=square][_nghost-%COMP%], [data-size=s][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-m);font-weight:bold}[data-size=m][data-shape=square][_nghost-%COMP%], [data-size=m][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold}[data-size=l][data-shape=square][_nghost-%COMP%], [data-size=l][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-l)}[data-size=xl][_nghost-%COMP%]{height:3.75rem;font:var(--tui-font-text-m);font-weight:bold}[data-size=xl][data-shape=square][_nghost-%COMP%], [data-size=xl][tuiIconButton][_nghost-%COMP%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.375rem}[data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .375rem}[data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.125rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer;isolation:isolate}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .75rem)}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 1.5rem)}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.25rem)}[data-size=xl][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.5rem)}[data-shape=square][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),e})(),Uu=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,lr,mE,so,vE]]}),e})();var ZR=["tuiLink",""];function KR(e,t){if(e&1&&Ie(0,"tui-svg",3),e&2){let n=ce();R("src",n.icon||"")}}function QR(e,t){if(e&1&&Ie(0,"tui-svg",4),e&2){let n=ce();R("src",n.icon||"")}}var XR=["*"],yE=(()=>{class e{constructor(n,r,i){this.el=n,this.mode$=r,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=Ee($(this.el.nativeElement,"focusin").pipe(E($i)),$(this.el.nativeElement,"focusout").pipe(E(sr))),i.subscribe(o=>{this.focusVisible=o})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return Gr(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&this.iconAlign==="left"}get iconAlignRight(){return this.hasIcon&&this.iconAlign==="right"}}return e.\u0275fac=function(n){return new(n||e)(v(B),v(Ki),v(Ch))},e.\u0275cmp=Ze({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(n,r){n&1&&ze("$.data-mode.attr",function(){return r.mode$}),n&2&&(Ke("data-host-mode",r.mode),Ue("_pseudo",r.pseudo)("_icon-rotated",r.iconRotated)("_focus-visible",r.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[xe([cu(e),Ch,Fe,ju])],attrs:ZR,ngContentSelectors:XR,decls:4,vars:2,consts:[["class","t-icon t-icon_left",3,"src",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_right",3,"src",4,"ngIf"],[1,"t-icon","t-icon_left",3,"src"],[1,"t-icon","t-icon_right",3,"src"]],template:function(n,r){n&1&&(gn(),me(0,KR,1,1,"tui-svg",0),ue(1,"span",1),Dt(2),ae(),me(3,QR,1,1,"tui-svg",2)),n&2&&(R("ngIf",r.iconAlignLeft),K(3),R("ngIf",r.iconAlignRight))},dependencies:[Pt,ft],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:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:none}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(0,0,0,.48);text-decoration-color:#0000007a}[data-mode=onLight]._pseudo[_nghost-%COMP%]:hover, [data-mode=onLight]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%]{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark]._active[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(255,255,255,.48);text-decoration-color:#ffffff7a}[data-mode=onDark]._pseudo[_nghost-%COMP%]:hover, [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%]{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=negative]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(222,76,30,.48);text-decoration-color:#de4c1e7a}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}[data-host-mode=positive]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(58,169,129,.48);text-decoration-color:#3aa9817a}._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear);color:var(--tui-text-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01-night)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dashed rgba(51,111,238,.48);text-decoration:underline dashed rgba(51,111,238,.48);text-underline-offset:.2em;text-decoration-thickness:.7px}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),e})(),DE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,so]]}),e})();function JR(e,t){if(e&1&&(Qt(0),vn(1),Xt()),e&2){let n=t.polymorpheusOutlet;K(1),Vt(" ",n," ")}}function eF(e,t){if(e&1&&(ue(0,"header",6),me(1,JR,2,1,"ng-container",3),ae()),e&2){let n=ce();K(1),R("polymorpheusOutlet",n.header)("polymorpheusOutletContext",n.context)}}function tF(e,t){if(e&1){let n=mn();Qt(0),Ie(1,"div",7),ue(2,"div",8)(3,"button",9),ze("click",function(){dn(n);let i=ce();return fn(i.context.$implicit.complete())}),vn(4),ae()(),Xt()}if(e&2){let n=t.polymorpheusOutlet,r=ce(),i;K(1),R("innerHTML",n,Ri),K(3),Vt(" ",((i=r.context.data)==null?null:i.button)||"OK"," ")}}function nF(e,t){if(e&1){let n=mn();ue(0,"div",10)(1,"button",11),ze("click",function(){dn(n);let i=ce();return fn(i.close$.next())})("mousedown.prevent.silent",function(){return 0}),Ut(2,"async"),ae()()}if(e&2){let n=ce();K(1),R("appearance",n.fullscreen?"secondary":"")("icon",n.icons.close)("title",Bt(2,3,n.closeWord$))}}var rF={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},iF=he(De),oF=he(rF);var sF=17,_E=(()=>{class e extends M{constructor(n,r,i){super(o=>Ee(this.esc$,this.mousedown$).subscribe(o)),this.win=n,this.doc=r,this.el=i,this.esc$=$(this.doc,"keydown").pipe(fe(o=>{let s=cr(o);return o.key==="Escape"&&!o.defaultPrevented&&(this.element.contains(s)||this.isOutside(s))})),this.mousedown$=$(this.doc,"mousedown").pipe(fe(o=>hu(this.win)-o.clientX>sF&&this.isOutside(cr(o))),W(()=>$(this.doc,"mouseup").pipe(je(1),E(cr),fe(o=>this.isOutside(o)))))}get element(){return this.el.nativeElement}isOutside(n){return Vc(n)&&(!t_(this.element,n)||n===this.element)}}return e.\u0275fac=function(n){return new(n||e)(C(ne),C(oe),C(B))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),aF=new Error("Required dialog was dismissed"),cF=(()=>{class e{constructor(n,r,i,o,s,a,c,u){this.duration=n,this.isMobile=r,this.context=i,this.closeWord$=c,this.icons=u,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new ye,Ee(this.close$.pipe(W(()=>EE(i.closeable))),s.pipe(W(()=>EE(i.dismissible))),a.pipe(E($i))).pipe(fe(Boolean),pe(o)).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&(this.size==="fullscreen"||this.size==="page")}close(){this.context.required?this.context.$implicit.error(aF):this.context.$implicit.complete()}}return e.\u0275fac=function(n){return new(n||e)(v(Fh),v(wh),v(rs),v(Fe,2),v(_E),v(iF),v(gu),v(mu))},e.\u0275cmp=Ze({type:e,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&(Ke("data-appearance",r.context.appearance)("data-size",r.size),$o("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),Ue("_centered",r.header))},features:[xe([Fe,_E])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"appearance","icon","title","click","mousedown.prevent.silent"]],template:function(n,r){n&1&&(me(0,eF,2,2,"header",0),ue(1,"div",1),Ie(2,"h2",2),ue(3,"section"),me(4,tF,5,2,"ng-container",3),ae()(),Ie(5,"div",4),me(6,nF,3,5,"div",5)),n&2&&(R("ngIf",r.header),K(2),R("id",r.context.id)("textContent",r.context.label),K(2),R("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),K(2),R("ngIf",r.context.closeable))},dependencies:[ks,ft,ur,c0,yn],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem #0000007a;content:"";border-radius:inherit;pointer-events:none}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{min-width:100vw;min-height:100%;border-radius:0;border:none;background:var(--tui-elevation-01);box-shadow:0 4rem var(--tui-elevation-01)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - (45rem / 2))}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-elevation-01)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size="fullscreen"]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-text-01);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[hE,Lu]}}),e})();function EE(e){return Ir(e)?e:I(e)}var uF=new Wr(cF),lF=(()=>{class e extends uu{constructor(){super(...arguments),this.component=uF,this.defaultOptions=Object.assign(Object.assign({},g(oF)),{data:void 0})}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var w6=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({providers:[X_(lF)],imports:[[lr,Uu,ht,u0]]}),e})();var wE=(()=>{class e{constructor(n){this.service=n}transform(n){return this.service.format(n.valueOf())}}return e.\u0275fac=function(n){return new(n||e)(v(cE,16))},e.\u0275pipe=Ti({name:"tuiFormatDate",type:e,pure:!0}),e})(),bE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function dF(e,t){if(e&1){let n=mn();ue(0,"button",10),ze("click",function(){dn(n);let i=ce();return fn(i.close.emit())}),Ut(1,"async"),ae()}if(e&2){let n=ce();R("icon",n.icons.close)("title",Bt(1,2,n.closeWord$))}}function fF(e,t){if(e&1&&(Ie(0,"span",11),Ut(1,"async"),Ut(2,"tuiFormatDate")),e&2){let n=ce();R("textContent",Bt(1,1,Bt(2,3,n.timestamp)))}}var hF=[[["img"]],[["tui-svg"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],pF=["img","tui-svg","*","[tuiButton]","[tuiLink]"];function mF(e,t){if(e&1&&Ie(0,"img",7),e&2){let n=ce(2);R("src",n.context.image,Fv)}}function gF(e,t){if(e&1&&Ie(0,"tui-svg",8),e&2){let n=ce(2);Li("color",n.context.iconColor),R("src",n.context.icon)}}function vF(e,t){if(e&1&&Ie(0,"div",9),e&2){let n=t.polymorpheusOutlet;R("innerHTML",n,Ri)}}function yF(e,t){if(e&1){let n=mn();ue(0,"button",10),ze("click",function(){dn(n);let i=ce(2);return fn(i.context.$implicit.next(i.context.buttons[0]))}),vn(1),ae()}if(e&2){let n=ce(2);K(1),Vt(" ",n.context.buttons[0]," ")}}function DF(e,t){if(e&1){let n=mn();ue(0,"button",11),ze("click",function(){dn(n);let i=ce(2);return fn(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),vn(1),ae()}if(e&2){let n=ce(2);K(1),Vt(" ",n.context.buttons[n.context.buttons.length-1]," ")}}function _F(e,t){if(e&1){let n=mn();ue(0,"tui-push",1),ze("close",function(){dn(n);let i=ce();return fn(i.context.$implicit.complete())}),me(1,mF,1,1,"img",2)(2,gF,1,3,"tui-svg",3)(3,vF,1,1,"div",4)(4,yF,2,1,"button",5)(5,DF,2,1,"button",6),ae()}if(e&2){let n=ce();R("heading",n.context.heading)("timestamp",n.context.timestamp)("type",n.context.type),K(1),R("ngIf",n.context.image),K(1),R("ngIf",n.context.icon),K(1),R("polymorpheusOutlet",n.context.content),K(1),R("ngIf",n.context.buttons.length>1),K(1),R("ngIf",n.context.buttons.length)}}var EF=(()=>{class e{constructor(n,r){this.closeWord$=n,this.icons=r,this.heading="",this.type="",this.timestamp=0,this.close=new $e}get closeable(){return f_(this.close)}}return e.\u0275fac=function(n){return new(n||e)(v(gu),v(mu))},e.\u0275cmp=Ze({type:e,selectors:[["tui-push"]],inputs:{heading:"heading",type:"type",timestamp:"timestamp"},outputs:{close:"close"},ngContentSelectors:pF,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button","class","t-close",3,"icon","title","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"],[1,"t-time",3,"textContent"]],template:function(n,r){n&1&&(gn(hF),ue(0,"div",0),Dt(1),ae(),me(2,dF,2,4,"button",1),ue(3,"div",2)(4,"span",3),Dt(5,1),ae(),vn(6),me(7,fF,3,5,"span",4),ae(),ue(8,"h3",5),vn(9),ae(),ue(10,"div",6),Dt(11,2),ae(),ue(12,"div",7)(13,"span",8),Dt(14,3),ae(),ue(15,"span",9),Dt(16,4),ae()()),n&2&&(K(2),R("ngIf",r.closeable),K(4),Vt(" ",r.type," "),K(1),R("ngIf",r.timestamp),K(2),Vt(" ",r.heading,"\n"))},dependencies:[ks,ft,yn,wE],styles:['[_nghost-%COMP%]{box-shadow:0 .25rem 1.5rem #0000001f;position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-elevation-02)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:rgba(242,242,242,.32);-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-link)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:bold;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0}),e})(),wF=(()=>{class e extends gr{constructor(n){var r;super(),this.modeDirective=n,this.size="s",this.shape=null,this.change$=((r=this.modeDirective)===null||r===void 0?void 0:r.change$)||new ye}get appearance(){var n;return((n=this.modeDirective)===null||n===void 0?void 0:n.mode)==="onDark"?"accent":"secondary"}}return e.\u0275fac=function(n){return new(n||e)(v(gr,12))},e.\u0275dir=L({type:e,selectors:[["tui-push"]],features:[xe([{provide:gr,useExisting:e},{provide:Cp,useExisting:e}]),Oe]}),e})(),bF={heading:"",type:"",timestamp:0,image:"",icon:"",iconColor:"",buttons:[]},CF=he(bF);var IF=(()=>{class e extends qf{constructor(n,r,i,o){super(n,r),this.show$=new ye,this.show$.pipe(d_(()=>o.open(this)),pe(i)).subscribe()}set tuiPush(n){this.show$.next(n)}}return e.\u0275fac=function(n){return new(n||e)(v(Je),v(et),v(Fe,2),v(jn(()=>CE)))},e.\u0275dir=L({type:e,selectors:[["","tuiPush",""]],inputs:{tuiPush:"tuiPush"},features:[xe([Fe]),Oe]}),e})(),SF=(()=>{class e{constructor(n,r){this.animation=n,this.context=r}get isDirective(){return this.context.content instanceof IF}}return e.\u0275fac=function(n){return new(n||e)(v(w0),v(rs))},e.\u0275cmp=Ze({type:e,selectors:[["tui-push-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(n,r){n&2&&$o("@tuiFadeIn",r.animation)("@tuiSlideInRight",r.animation)("@tuiHeightCollapse",r.animation)},decls:1,vars:2,consts:[[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"heading","timestamp","type","close"],["alt","",3,"src",4,"ngIf"],[3,"src","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"src"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"]],template:function(n,r){n&1&&me(0,_F,6,8,"tui-push",0),n&2&&R("ngIf",!r.isDirective)("ngIfElse",r.context.content.template)},dependencies:[EF,Pt,ks,yE,ft,wF,ur],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[Lu,fE,dE]},changeDetection:0}),e})(),CE=(()=>{class e extends uu{constructor(){super(...arguments),this.component=new Wr(SF),this.defaultOptions=g(CF)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),G6=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({providers:[{provide:K_,useExisting:CE,multi:!0}],imports:[[ht,lr,Uu,DE,so,bE]]}),e})();export{AE as a,Ve as b,M as c,ye as d,Re as e,Mn as f,De as g,Zs as h,Ks as i,I as j,E as k,la as l,on as m,Xe as n,Ee as o,sw as p,fe as q,uw as r,lm as s,je as t,po as u,Te as v,fa as w,tt as x,al as y,le as z,W as A,pe as B,we as C,Qn as D,jn as E,b as F,z as G,_ as H,C as I,g as J,Ze as K,G as L,L as M,Ti as N,jt as O,dn as P,fn as Q,Fo as R,Ce as S,Vn as T,Xg as U,Un as V,Pi as W,Ub as X,st as Y,At as Z,e2 as _,t2 as $,n2 as aa,Ri as ba,B as ca,Rr as da,$n as ea,K as fa,v as ga,et as ha,$e as ia,te as ja,Oe as ka,Ke as la,R as ma,Li as na,Ue as oa,dt as pa,me as qa,ue as ra,ae as sa,Ie as ta,Qt as ua,Xt as va,Bo as wa,mn as xa,lf as ya,$o as za,ze as Aa,ce as Ba,gn as Ca,Dt as Da,Iy as Ea,vn as Fa,IM as Ga,Vt as Ha,xe as Ia,Ay as Ja,i2 as Ka,o2 as La,Ut as Ma,Bt as Na,s2 as Oa,a2 as Pa,Je as Qa,mf as Ra,Py as Sa,BM as Ta,gf as Ua,Ly as Va,ir as Wa,oe as Xa,O2 as Ya,x2 as Za,ft as _a,yn as $a,ht as ab,Wo as bb,dD as cb,iH as db,Nf as eb,oH as fb,qN as gb,B4 as hb,Lf as ib,AD as jb,zr as kb,bH as lb,Lc as mb,EA as nb,CA as ob,IH as pb,Ne as qb,D as rb,ee as sb,$D as tb,Qe as ub,sr as vb,$i as wb,YH as xb,ZH as yb,zD as zb,KH as Ab,QH as Bb,XH as Cb,WD as Db,ez as Eb,nz as Fb,rz as Gb,zn as Hb,oz as Ib,sz as Jb,az as Kb,KD as Lb,he as Mb,Q as Nb,ar as Ob,lz as Pb,t_ as Qb,Vc as Rb,zi as Sb,cr as Tb,pz as Ub,mz as Vb,gz as Wb,vz as Xb,yz as Yb,$f as Zb,n_ as _b,r_ as $b,wz as ac,Gr as bc,i_ as cc,bz as dc,Cz as ec,Wi as fc,s_ as gc,a_ as hc,c_ as ic,Vz as jc,$ as kc,d_ as lc,Uz as mc,Bz as nc,zA as oc,m_ as pc,_n as qc,En as rc,rs as sc,Wr as tc,qf as uc,ur as vc,lr as wc,ne as xc,PH as yc,RH as zc,Vf as Ac,TO as Bc,rG as Cc,th as Dc,E_ as Ec,ou as Fc,N_ as Gc,P_ as Hc,K_ as Ic,wx as Jc,ds as Kc,cu as Lc,gG as Mc,fs as Nc,wh as Oc,vG as Pc,hs as Qc,SG as Rc,Fe as Sc,YG as Tc,Ch as Uc,Tx as Vc,ZG as Wc,KG as Xc,Sh as Yc,ps as Zc,p3 as _c,r0 as $c,m3 as ad,g3 as bd,D3 as cd,_3 as dd,j3 as ed,V3 as fd,U3 as gd,fu as hd,fr as id,iW as jd,l0 as kd,d0 as ld,jW as md,VW as nd,Zx as od,$W as pd,HW as qd,Ah as rd,Kx as sd,Du as td,u4 as ud,_u as vd,l4 as wd,d4 as xd,f4 as yd,Qr as zd,h4 as Ad,p4 as Bd,ys as Cd,m4 as Dd,DN as Ed,g4 as Fd,Lu as Gd,F5 as Hd,h as Id,Kr as Jd,oN as Kd,qW as Ld,YW as Md,ZW as Nd,p8 as Od,m8 as Pd,g8 as Qd,v8 as Rd,_0 as Sd,vs as Td,Zi as Ud,aN as Vd,Fh as Wd,w0 as Xd,mu as Yd,P8 as Zd,fN as _d,R8 as $d,F8 as ae,hN as be,j8 as ce,V8 as de,B8 as ee,pN as fe,Ki as ge,W8 as he,Z8 as ie,K8 as je,yN as ke,Q8 as le,X8 as me,J8 as ne,e4 as oe,i5 as pe,o5 as qe,s5 as re,uE as se,a5 as te,Pt as ue,so as ve,gr as we,ju as xe,oq as ye,sq as ze,pE as Ae,mE as Be,gE as Ce,vE as De,ks as Ee,Uu as Fe,yE as Ge,DE as He,lF as Ie,w6 as Je,EF as Ke,wF as Le,IF as Me,G6 as Ne}; diff --git a/chunk-SPKX7EYJ.js b/chunk-SPKX7EYJ.js new file mode 100644 index 00000000..f9473f63 --- /dev/null +++ b/chunk-SPKX7EYJ.js @@ -0,0 +1 @@ +import{$a as Hi,$c as uo,$d as Zs,A as Fi,Aa as ft,Ab as Kn,Ac as Is,Ad as fo,Ae as Zi,B as zn,Ba as Bn,Bb as oi,Bd as Gt,C as ei,Ca as _,Cb as ls,Cc as ao,Cd as _o,Ce as mt,D as he,Da as g,Db as us,Dd as Cn,De as ht,E as _n,Ea as fe,Ed as $i,Ee as Do,F as ts,Fa as oe,Fb as Xn,Fd as vo,Fe as Po,G as Te,Ga as ce,Gb as cs,Gd as Co,Ge as wo,H as Ir,Ha as Z,Hb as ds,Hd as Wi,He as xo,I as b,Ia as $n,Ib as ps,Id as $s,Ie as qi,J as Ye,Ja as ye,Jb as ri,Jd as Ws,Je as Ji,K as Vn,Ka as O,Kb as _t,Kd as a,Ke as Io,L as Er,La as ns,Lb as Qn,Ld as pe,M as R,Ma as Oe,Mb as ms,Mc as Es,Md as Ys,Me as ul,N as y,Na as os,Nb as hs,Nc as it,Nd as Yi,Ne as cl,O as D,Oa as q,Ob as ae,Oc as Ss,Od as Gs,Oe as dl,P as ti,Pa as re,Pb as B,Pc as ks,Pd as Nr,Pe as pl,Q as ii,Qa as kr,Qb as Zn,Qc as so,Qd as Ks,R as k,Ra as Wn,Rb as zi,Rd as Xs,S as A,Sa as Yn,Sc as As,Sd as zr,Ta as Y,Tb as wt,Tc as Fs,Td as Vr,U as Ie,Ua as ie,Ub as qn,Uc as K,Ud as Qs,V as Je,Va as Wt,Vb as Jn,Vc as Rs,Vd as Kt,W as Ri,Wa as G,Wb as gs,Wc as Rr,Wd as ci,X as vn,Xa as Ne,Xb as fs,Xc as Ls,Xd as pt,Y as jn,Yb as eo,Yc as Lr,Za as Ar,Zb as to,Zc as Hs,Zd as To,_ as Un,_b as io,_c as lo,_d as Gi,a as $c,ab as de,ad as xt,ae as qs,b as Wc,bb as Ee,bc as _s,bd as at,be as Js,ca as ni,cb as W,cc as Vi,cd as Ns,ce as el,d as Ga,da as is,dc as et,dd as Ui,de as Mo,e as Ka,ea as L,ec as vt,ed as co,ee as tl,f as qt,fc as Fr,fd as po,fe as il,g as Jt,gc as vs,gd as zs,ge as nl,h as Xa,ha as p,hc as Ct,he as ol,i as Qa,ia as l,ic as Cs,id as Vs,ie as Et,j as Ce,ja as Fe,jc as Ts,jd as Ke,je as rl,k as Za,ka as te,kb as Gn,kc as Ms,kd as Xe,ke as al,l as dt,la as yt,lb as Ot,lc as bs,ld as Bi,le as sl,m as $,ma as F,mb as Ge,mc as tt,md as si,me as jr,n as wr,na as U,nb as Dt,nc as no,nd as li,ne as bo,o as Ln,oa as c,ob as rt,oc as ys,od as js,p as Hn,pa as ot,pb as rs,pc as Os,pd as Us,pe as yo,q as We,qa as N,qb as as,qc as Ds,qd as Bs,qe as Ki,r as qa,ra as Sr,rb as Pt,rc as oo,s as Bt,sa as T,sc as Ps,se as ll,t as Ja,ta as h,tc as ji,td as Hr,te as Xi,ua as f,uc as ws,ud as It,v as es,va as H,vc as ai,vd as Yt,ve as Oo,w as $t,wa as Me,wc as ro,wd as ui,we as Se,x as gt,xa as be,xb as Re,xc as se,xd as mo,xe as ze,y as xr,ya as Li,yb as Ni,yc as _e,yd as ho,ye as Qi,z as Nn,za as Q,zb as ss,zc as xs,zd as go,ze as St}from"./chunk-UB3CG7HU.js";var sc=$c((da,pa)=>{"use strict";(function(t,i){typeof da=="object"&&typeof pa<"u"?pa.exports=i():typeof define=="function"&&define.amd?define(i):(t=typeof globalThis<"u"?globalThis:t||self,t.DOMPurify=i())})(da,function(){"use strict";let{entries:t,setPrototypeOf:i,isFrozen:e,getPrototypeOf:n,getOwnPropertyDescriptor:o}=Object,{freeze:r,seal:s,create:d}=Object,{apply:m,construct:M}=typeof Reflect<"u"&&Reflect;r||(r=function(S){return S}),s||(s=function(S){return S}),m||(m=function(S,ee,X){return S.apply(ee,X)}),M||(M=function(S,ee){return new S(...ee)});let v=ct(Array.prototype.forEach),P=ct(Array.prototype.pop),I=ct(Array.prototype.push),E=ct(String.prototype.toLowerCase),j=ct(String.prototype.toString),Ae=ct(String.prototype.match),ue=ct(String.prototype.replace),Qe=ct(String.prototype.indexOf),dn=ct(String.prototype.trim),Ue=ct(RegExp.prototype.test),pn=uc(TypeError);function ct(J){return function(S){for(var ee=arguments.length,X=new Array(ee>1?ee-1:0),Be=1;Be2&&arguments[2]!==void 0?arguments[2]:E;i&&i(J,null);let X=S.length;for(;X--;){let Be=S[X];if(typeof Be=="string"){let Vt=ee(Be);Vt!==Be&&(e(S)||(S[X]=Vt),Be=Vt)}J[Be]=!0}return J}function Pi(J){let S=d(null);for(let[ee,X]of t(J))o(J,ee)!==void 0&&(S[ee]=X);return S}function wn(J,S){for(;J!==null;){let X=o(J,S);if(X){if(X.get)return ct(X.get);if(typeof X.value=="function")return ct(X.value)}J=n(J)}function ee(X){return console.warn("fallback value for",X),null}return ee}let ma=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),rr=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ar=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cc=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sr=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),dc=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ha=r(["#text"]),ga=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),lr=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fa=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xn=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pc=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mc=s(/<%[\w\W]*|[\w\W]*%>/gm),hc=s(/\${[\w\W]*}/gm),gc=s(/^data-[\-\w.\u00B7-\uFFFF]/),fc=s(/^aria-[\-\w]+$/),_a=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_c=s(/^(?:\w+script|data):/i),vc=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),va=s(/^html$/i);var Ca=Object.freeze({__proto__:null,MUSTACHE_EXPR:pc,ERB_EXPR:mc,TMPLIT_EXPR:hc,DATA_ATTR:gc,ARIA_ATTR:fc,IS_ALLOWED_URI:_a,IS_SCRIPT_OR_DATA:_c,ATTR_WHITESPACE:vc,DOCTYPE_NAME:va});let Cc=function(){return typeof window>"u"?null:window},Tc=function(S,ee){if(typeof S!="object"||typeof S.createPolicy!="function")return null;let X=null,Be="data-tt-policy-suffix";ee&&ee.hasAttribute(Be)&&(X=ee.getAttribute(Be));let Vt="dompurify"+(X?"#"+X:"");try{return S.createPolicy(Vt,{createHTML(wi){return wi},createScriptURL(wi){return wi}})}catch{return console.warn("TrustedTypes policy "+Vt+" could not be created."),null}};function Ta(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cc(),S=x=>Ta(x);if(S.version="3.0.6",S.removed=[],!J||!J.document||J.document.nodeType!==9)return S.isSupported=!1,S;let{document:ee}=J,X=ee,Be=X.currentScript,{DocumentFragment:Vt,HTMLTemplateElement:wi,Node:ur,Element:Ma,NodeFilter:cr,NamedNodeMap:bc=J.NamedNodeMap||J.MozNamedAttrMap,HTMLFormElement:yc,DOMParser:Oc,trustedTypes:In}=J,En=Ma.prototype,Dc=wn(En,"cloneNode"),Pc=wn(En,"nextSibling"),wc=wn(En,"childNodes"),dr=wn(En,"parentNode");if(typeof wi=="function"){let x=ee.createElement("template");x.content&&x.content.ownerDocument&&(ee=x.content.ownerDocument)}let $e,mn="",{implementation:pr,createNodeIterator:xc,createDocumentFragment:Ic,getElementsByTagName:Ec}=ee,{importNode:Sc}=X,bt={};S.isSupported=typeof t=="function"&&typeof dr=="function"&&pr&&pr.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:mr,ERB_EXPR:hr,TMPLIT_EXPR:gr,DATA_ATTR:kc,ARIA_ATTR:Ac,IS_SCRIPT_OR_DATA:Fc,ATTR_WHITESPACE:ba}=Ca,{IS_ALLOWED_URI:ya}=Ca,Pe=null,Oa=z({},[...ma,...rr,...ar,...sr,...ha]),we=null,Da=z({},[...ga,...lr,...fa,...xn]),me=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),hn=null,fr=null,Pa=!0,_r=!0,wa=!1,xa=!0,xi=!1,vi=!1,vr=!1,Cr=!1,Ii=!1,Sn=!1,kn=!1,Ia=!0,Ea=!1,Rc="user-content-",Tr=!0,gn=!1,Ei={},Si=null,Sa=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ka=null,Aa=z({},["audio","video","img","source","image","track"]),Mr=null,Fa=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),An="http://www.w3.org/1998/Math/MathML",Fn="http://www.w3.org/2000/svg",jt="http://www.w3.org/1999/xhtml",ki=jt,br=!1,yr=null,Lc=z({},[An,Fn,jt],j),Ci=null,Hc=["application/xhtml+xml","text/html"],Nc="text/html",xe=null,Ai=null,zc=ee.createElement("form"),Ra=function(u){return u instanceof RegExp||u instanceof Function},Or=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ai&&Ai===u)){if((!u||typeof u!="object")&&(u={}),u=Pi(u),Ci=Hc.indexOf(u.PARSER_MEDIA_TYPE)===-1?Ci=Nc:Ci=u.PARSER_MEDIA_TYPE,xe=Ci==="application/xhtml+xml"?j:E,Pe="ALLOWED_TAGS"in u?z({},u.ALLOWED_TAGS,xe):Oa,we="ALLOWED_ATTR"in u?z({},u.ALLOWED_ATTR,xe):Da,yr="ALLOWED_NAMESPACES"in u?z({},u.ALLOWED_NAMESPACES,j):Lc,Mr="ADD_URI_SAFE_ATTR"in u?z(Pi(Fa),u.ADD_URI_SAFE_ATTR,xe):Fa,ka="ADD_DATA_URI_TAGS"in u?z(Pi(Aa),u.ADD_DATA_URI_TAGS,xe):Aa,Si="FORBID_CONTENTS"in u?z({},u.FORBID_CONTENTS,xe):Sa,hn="FORBID_TAGS"in u?z({},u.FORBID_TAGS,xe):{},fr="FORBID_ATTR"in u?z({},u.FORBID_ATTR,xe):{},Ei="USE_PROFILES"in u?u.USE_PROFILES:!1,Pa=u.ALLOW_ARIA_ATTR!==!1,_r=u.ALLOW_DATA_ATTR!==!1,wa=u.ALLOW_UNKNOWN_PROTOCOLS||!1,xa=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xi=u.SAFE_FOR_TEMPLATES||!1,vi=u.WHOLE_DOCUMENT||!1,Ii=u.RETURN_DOM||!1,Sn=u.RETURN_DOM_FRAGMENT||!1,kn=u.RETURN_TRUSTED_TYPE||!1,Cr=u.FORCE_BODY||!1,Ia=u.SANITIZE_DOM!==!1,Ea=u.SANITIZE_NAMED_PROPS||!1,Tr=u.KEEP_CONTENT!==!1,gn=u.IN_PLACE||!1,ya=u.ALLOWED_URI_REGEXP||_a,ki=u.NAMESPACE||jt,me=u.CUSTOM_ELEMENT_HANDLING||{},u.CUSTOM_ELEMENT_HANDLING&&Ra(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=u.CUSTOM_ELEMENT_HANDLING.tagNameCheck),u.CUSTOM_ELEMENT_HANDLING&&Ra(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),u.CUSTOM_ELEMENT_HANDLING&&typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xi&&(_r=!1),Sn&&(Ii=!0),Ei&&(Pe=z({},[...ha]),we=[],Ei.html===!0&&(z(Pe,ma),z(we,ga)),Ei.svg===!0&&(z(Pe,rr),z(we,lr),z(we,xn)),Ei.svgFilters===!0&&(z(Pe,ar),z(we,lr),z(we,xn)),Ei.mathMl===!0&&(z(Pe,sr),z(we,fa),z(we,xn))),u.ADD_TAGS&&(Pe===Oa&&(Pe=Pi(Pe)),z(Pe,u.ADD_TAGS,xe)),u.ADD_ATTR&&(we===Da&&(we=Pi(we)),z(we,u.ADD_ATTR,xe)),u.ADD_URI_SAFE_ATTR&&z(Mr,u.ADD_URI_SAFE_ATTR,xe),u.FORBID_CONTENTS&&(Si===Sa&&(Si=Pi(Si)),z(Si,u.FORBID_CONTENTS,xe)),Tr&&(Pe["#text"]=!0),vi&&z(Pe,["html","head","body"]),Pe.table&&(z(Pe,["tbody"]),delete hn.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw pn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$e=u.TRUSTED_TYPES_POLICY,mn=$e.createHTML("")}else $e===void 0&&($e=Tc(In,Be)),$e!==null&&typeof mn=="string"&&(mn=$e.createHTML(""));r&&r(u),Ai=u}},La=z({},["mi","mo","mn","ms","mtext"]),Ha=z({},["foreignobject","desc","title","annotation-xml"]),Vc=z({},["title","style","font","a","script"]),Rn=z({},rr);z(Rn,ar),z(Rn,cc);let Dr=z({},sr);z(Dr,dc);let jc=function(u){let C=dr(u);(!C||!C.tagName)&&(C={namespaceURI:ki,tagName:"template"});let w=E(u.tagName),ne=E(C.tagName);return yr[u.namespaceURI]?u.namespaceURI===Fn?C.namespaceURI===jt?w==="svg":C.namespaceURI===An?w==="svg"&&(ne==="annotation-xml"||La[ne]):!!Rn[w]:u.namespaceURI===An?C.namespaceURI===jt?w==="math":C.namespaceURI===Fn?w==="math"&&Ha[ne]:!!Dr[w]:u.namespaceURI===jt?C.namespaceURI===Fn&&!Ha[ne]||C.namespaceURI===An&&!La[ne]?!1:!Dr[w]&&(Vc[w]||!Rn[w]):!!(Ci==="application/xhtml+xml"&&yr[u.namespaceURI]):!1},Ti=function(u){I(S.removed,{element:u});try{u.parentNode.removeChild(u)}catch{u.remove()}},Pr=function(u,C){try{I(S.removed,{attribute:C.getAttributeNode(u),from:C})}catch{I(S.removed,{attribute:null,from:C})}if(C.removeAttribute(u),u==="is"&&!we[u])if(Ii||Sn)try{Ti(C)}catch{}else try{C.setAttribute(u,"")}catch{}},Na=function(u){let C=null,w=null;if(Cr)u=""+u;else{let He=Ae(u,/^[\r\n\t ]+/);w=He&&He[0]}Ci==="application/xhtml+xml"&&ki===jt&&(u=''+u+"");let ne=$e?$e.createHTML(u):u;if(ki===jt)try{C=new Oc().parseFromString(ne,Ci)}catch{}if(!C||!C.documentElement){C=pr.createDocument(ki,"template",null);try{C.documentElement.innerHTML=br?mn:ne}catch{}}let Le=C.body||C.documentElement;return u&&w&&Le.insertBefore(ee.createTextNode(w),Le.childNodes[0]||null),ki===jt?Ec.call(C,vi?"html":"body")[0]:vi?C.documentElement:Le},za=function(u){return xc.call(u.ownerDocument||u,u,cr.SHOW_ELEMENT|cr.SHOW_COMMENT|cr.SHOW_TEXT,null)},Uc=function(u){return u instanceof yc&&(typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||!(u.attributes instanceof bc)||typeof u.removeAttribute!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function")},Va=function(u){return typeof ur=="function"&&u instanceof ur},Ut=function(u,C,w){bt[u]&&v(bt[u],ne=>{ne.call(S,C,w,Ai)})},ja=function(u){let C=null;if(Ut("beforeSanitizeElements",u,null),Uc(u))return Ti(u),!0;let w=xe(u.nodeName);if(Ut("uponSanitizeElement",u,{tagName:w,allowedTags:Pe}),u.hasChildNodes()&&!Va(u.firstElementChild)&&Ue(/<[/\w]/g,u.innerHTML)&&Ue(/<[/\w]/g,u.textContent))return Ti(u),!0;if(!Pe[w]||hn[w]){if(!hn[w]&&Ba(w)&&(me.tagNameCheck instanceof RegExp&&Ue(me.tagNameCheck,w)||me.tagNameCheck instanceof Function&&me.tagNameCheck(w)))return!1;if(Tr&&!Si[w]){let ne=dr(u)||u.parentNode,Le=wc(u)||u.childNodes;if(Le&&ne){let He=Le.length;for(let Ze=He-1;Ze>=0;--Ze)ne.insertBefore(Dc(Le[Ze],!0),Pc(u))}}return Ti(u),!0}return u instanceof Ma&&!jc(u)||(w==="noscript"||w==="noembed"||w==="noframes")&&Ue(/<\/no(script|embed|frames)/i,u.innerHTML)?(Ti(u),!0):(xi&&u.nodeType===3&&(C=u.textContent,v([mr,hr,gr],ne=>{C=ue(C,ne," ")}),u.textContent!==C&&(I(S.removed,{element:u.cloneNode()}),u.textContent=C)),Ut("afterSanitizeElements",u,null),!1)},Ua=function(u,C,w){if(Ia&&(C==="id"||C==="name")&&(w in ee||w in zc))return!1;if(!(_r&&!fr[C]&&Ue(kc,C))){if(!(Pa&&Ue(Ac,C))){if(!we[C]||fr[C]){if(!(Ba(u)&&(me.tagNameCheck instanceof RegExp&&Ue(me.tagNameCheck,u)||me.tagNameCheck instanceof Function&&me.tagNameCheck(u))&&(me.attributeNameCheck instanceof RegExp&&Ue(me.attributeNameCheck,C)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(C))||C==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&Ue(me.tagNameCheck,w)||me.tagNameCheck instanceof Function&&me.tagNameCheck(w))))return!1}else if(!Mr[C]){if(!Ue(ya,ue(w,ba,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&u!=="script"&&Qe(w,"data:")===0&&ka[u])){if(!(wa&&!Ue(Fc,ue(w,ba,"")))){if(w)return!1}}}}}}return!0},Ba=function(u){return u.indexOf("-")>0},$a=function(u){Ut("beforeSanitizeAttributes",u,null);let{attributes:C}=u;if(!C)return;let w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we},ne=C.length;for(;ne--;){let Le=C[ne],{name:He,namespaceURI:Ze,value:Mi}=Le,fn=xe(He),qe=He==="value"?Mi:dn(Mi);if(w.attrName=fn,w.attrValue=qe,w.keepAttr=!0,w.forceKeepAttr=void 0,Ut("uponSanitizeAttribute",u,w),qe=w.attrValue,w.forceKeepAttr||(Pr(He,u),!w.keepAttr))continue;if(!xa&&Ue(/\/>/i,qe)){Pr(He,u);continue}xi&&v([mr,hr,gr],Ya=>{qe=ue(qe,Ya," ")});let Wa=xe(u.nodeName);if(Ua(Wa,fn,qe)){if(Ea&&(fn==="id"||fn==="name")&&(Pr(He,u),qe=Rc+qe),$e&&typeof In=="object"&&typeof In.getAttributeType=="function"&&!Ze)switch(In.getAttributeType(Wa,fn)){case"TrustedHTML":{qe=$e.createHTML(qe);break}case"TrustedScriptURL":{qe=$e.createScriptURL(qe);break}}try{Ze?u.setAttributeNS(Ze,He,qe):u.setAttribute(He,qe),P(S.removed)}catch{}}}Ut("afterSanitizeAttributes",u,null)},Bc=function x(u){let C=null,w=za(u);for(Ut("beforeSanitizeShadowDOM",u,null);C=w.nextNode();)Ut("uponSanitizeShadowNode",C,null),!ja(C)&&(C.content instanceof Vt&&x(C.content),$a(C));Ut("afterSanitizeShadowDOM",u,null)};return S.sanitize=function(x){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,w=null,ne=null,Le=null;if(br=!x,br&&(x=""),typeof x!="string"&&!Va(x))if(typeof x.toString=="function"){if(x=x.toString(),typeof x!="string")throw pn("dirty is not a string, aborting")}else throw pn("toString is not a function");if(!S.isSupported)return x;if(vr||Or(u),S.removed=[],typeof x=="string"&&(gn=!1),gn){if(x.nodeName){let Mi=xe(x.nodeName);if(!Pe[Mi]||hn[Mi])throw pn("root node is forbidden and cannot be sanitized in-place")}}else if(x instanceof ur)C=Na(""),w=C.ownerDocument.importNode(x,!0),w.nodeType===1&&w.nodeName==="BODY"||w.nodeName==="HTML"?C=w:C.appendChild(w);else{if(!Ii&&!xi&&!vi&&x.indexOf("<")===-1)return $e&&kn?$e.createHTML(x):x;if(C=Na(x),!C)return Ii?null:kn?mn:""}C&&Cr&&Ti(C.firstChild);let He=za(gn?x:C);for(;ne=He.nextNode();)ja(ne)||(ne.content instanceof Vt&&Bc(ne.content),$a(ne));if(gn)return x;if(Ii){if(Sn)for(Le=Ic.call(C.ownerDocument);C.firstChild;)Le.appendChild(C.firstChild);else Le=C;return(we.shadowroot||we.shadowrootmode)&&(Le=Sc.call(X,Le,!0)),Le}let Ze=vi?C.outerHTML:C.innerHTML;return vi&&Pe["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Ue(va,C.ownerDocument.doctype.name)&&(Ze="\n"+Ze),xi&&v([mr,hr,gr],Mi=>{Ze=ue(Ze,Mi," ")}),$e&&kn?$e.createHTML(Ze):Ze},S.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Or(x),vr=!0},S.clearConfig=function(){Ai=null,vr=!1},S.isValidAttribute=function(x,u,C){Ai||Or({});let w=xe(x),ne=xe(u);return Ua(w,ne,C)},S.addHook=function(x,u){typeof u=="function"&&(bt[x]=bt[x]||[],I(bt[x],u))},S.removeHook=function(x){if(bt[x])return P(bt[x])},S.removeHooks=function(x){bt[x]&&(bt[x]=[])},S.removeAllHooks=function(){bt={}},S}var Mc=Ta();return Mc})});var Yc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=R({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})(),ml=(()=>{class t{constructor(e){this.autofilled=!1,this.tuiAutofilledChange=new te,e.addComponent(Yc)}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)(l(Rs))},t.\u0275dir=D({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(e,n){e&1&&_("transitionstart",function(r){return n.transitionStartHandler(r)}),e&2&&N("_autofilled",n.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),hl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Eo=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new te}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=D({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(e,n){e&1&&_("change",function(r){return n.onChange(r.target)}),e&2&&ft("checked",n.isChecked)("indeterminate",n.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),So=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var ko=(()=>{class t{constructor(e){this.tuiFocusVisibleChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(Rr))},t.\u0275dir=D({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[O([K,Rr])]}),t})(),Ao=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var kt=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=D({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,n){e&2&&ft("tabIndex",n.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),t})(),At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Fo=(()=>{class t{constructor({nativeElement:e},n){this.tuiFocusedChange=We(tt(e,"focusin"),tt(e,"focusout")).pipe($(()=>et(e)),zn(!1),gt(),Fi(1),ji(n))}}return t.\u0275fac=function(e){return new(e||t)(l(L),l(yt))},t.\u0275dir=D({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),Ro=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();function Gc({currentTarget:t,relatedTarget:i}){return!wt(i)||!wt(t)||!t.contains(i)}var Ft=(()=>{class t extends Ka{constructor(e,n){super(o=>this.stream$.subscribe(o)),this.el=e,this.zone=n,this.stream$=We(tt(this.el.nativeElement,"mouseenter").pipe($(Ni)),tt(this.el.nativeElement,"mouseleave").pipe($(Re)),tt(this.el.nativeElement,"mouseout").pipe(Bt(Gc),$(Re))).pipe(gt(),ji(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(Vn(L),Vn(yt))},t.\u0275prov=Ir({token:t,factory:t.\u0275fac}),t})(),en=(()=>{class t{constructor(e){this.tuiHoveredChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(Ft))},t.\u0275dir=D({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[O([Ft])]}),t})(),di=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var gl=(()=>{class t{constructor(e,n){this.enabled$=new qt;let o=n.pipe($(r=>!!r&&(!e||!r.length||r.every(s=>!e.contains(s)))));this.tuiObscured=this.enabled$.pipe(no(()=>o))}set tuiObscuredEnabled(e){this.enabled$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(Xe,8),l(Lr,2))},t.\u0275dir=D({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[O([Lr,Ls,K])]}),t})(),fl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Lo=(()=>{class t{constructor(e,n){this.el=e,this.takeOnlyTrustedEvents=n,this.tuiPressedChange=Os(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.\u0275fac=function(e){return new(e||t)(l(L),l(Fs))},t.\u0275dir=D({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var _l=(()=>{class t{constructor(e,n,o){this.el=e,this.zone=n,this.destroy$=o,this.eventName=""}ngOnInit(){Ln(this.el.nativeElement,this.eventName,{passive:!1}).pipe(Ps(this.zone),Ds(),he(this.destroy$)).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(l(L),l(yt),l(K,2))},t.\u0275dir=D({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:["tuiPreventDefault","eventName"]},features:[O([K])]}),t})(),vl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Kc=65536,Ur=class{constructor(i){this.$implicit=i}},Ho=(()=>{class t{constructor(e,n){this.viewContainer=e,this.templateRef=n}set tuiRepeatTimesOf(e){let n=Math.floor(ri(e,0,Kc)),{length:o}=this.viewContainer;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();function Tl(t,i,e){return e&&et?i:t}var Vo=7;var rn=12,zo=1,Br=0,$r=11,Wr=0,Yr=9999,Tn="".concat(Xn).concat(cs).concat(Xn),Xc=1e3,Ml=60,bl=60,Kr=24,nn=Xc*Ml,on=nn*bl,Cl=on*Kr,an=10,Qc=2*an+Tn.length,Xr=ae("DMY"),yl=ae("."),Ol=(t,i)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,i),Ve=class t{constructor(i){this.year=i}static isValidYear(i){return Number.isInteger(i)&&_t(i,Wr,Yr+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 Qn(i,Wr,Yr)}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}},le=class t extends Ve{constructor(i,e){super(i),this.month=e}static isValidMonth(i,e){return Ve.isValidYear(i)&&t.isValidMonthPart(e)}static getMonthDaysCount(i,e){switch(i){case It.February:return e?29:28;case It.April:case It.June:case It.September:case It.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 Qn(i,Br,$r)}static isValidMonthPart(i){return Number.isInteger(i)&&_t(i,Br,$r+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)*rn+this.month+e;return new t(Math.floor(n/rn),n%rn)}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))}},ke=class t extends le{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 le.isValidMonth(i,e)&&Number.isInteger(n)&&_t(n,zo,le.getMonthDaysCount(e,Ve.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=Ve.normalizeYearPart(i),r=le.normalizeMonthPart(e),s=t.normalizeDayPart(n,r,o);return new t(o,r,s)}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(!Ve.isValidYear(o))throw new Ms(o);if(!le.isValidMonth(o,n))throw new Ts(n);if(!Number.isInteger(e)||!_t(e,zo,le.getMonthDaysCount(n,Ve.isLeapYear(o))+1))throw new Cs(e);return new t(o,n,e)}static normalizeDayPart(i,e,n){let o=le.getMonthDaysCount(e,Ve.isLeapYear(n));return Qn(i,1,o)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let i=this.dayOfWeek(!1);return i===Hr.Saturday||i===Hr.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)*rn+this.month+e,r=Math.floor(o/rn),s=o%rn,d=Math.min(this.day,le.getMonthDaysCount(s,Ve.isLeapYear(r)))+n;for(;d>le.getMonthDaysCount(s,Ve.isLeapYear(r));)d-=le.getMonthDaysCount(s,Ve.isLeapYear(r)),s===It.December?(r++,s=It.January):s++;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*on+this.minutes*nn+this.seconds*1e3+this.ms}formatTime(i,e=2){return String(i).padStart(e,"0")}};function Zc(t,i){t&1&&H(0,"tui-scroll-controls",2)}var qc=["*"];var mi=(()=>{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")||ps(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new L(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:s}=fs(o,e),{clientHeight:d,clientWidth:m}=o,{offsetHeight:M,offsetWidth:v}=e,P=r+M/2-d/2,I=s+v/2-m/2;(n=o.scrollTo)===null||n===void 0||n.call(o,I,P)}}return t.\u0275fac=function(e){return new(e||t)(l(Is),l(L),l(ao),l(ks))},t.\u0275cmp=R({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(e,n){e&1&&_("tui-scrollable.stop",function(r){return n.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return n.scrollIntoView(r.detail)}),e&2&&N("_legacy",n.showNative)},inputs:{hidden:"hidden"},features:[O([{provide:As,deps:[t],useFactory:({browserScrollRef:i})=>i}])],ngContentSelectors:qc,decls:3,vars:1,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(e,n){e&1&&(fe(),T(0,Zc,1,0,"tui-scroll-controls",0),h(1,"div",1),oe(2),f()),e&2&&c("ngIf",n.showScrollbars)},dependencies:[zs,de],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})(),ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,Vs]]}),t})();function Jc(t,i){if(t&1&&(h(0,"div",4),Z(1),f()),t&2){let e=i.polymorpheusOutlet;p(1),ye(" ",e," ")}}var ed=t=>({$implicit:t}),td=B(()=>rd),Mn=(()=>{class t{constructor(){this.tuiDropdownOpenChange=new te}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=D({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"}}),t})(),ve=class{constructor(i,e,n,o,r,s){this.el=e,this.dropdown=n,this.injector=o,this.dropdownService=r,this.open=s,this.refresh$=new qt,this.dropdownBoxRef=null,this.type="dropdown",this.component=new ai(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe(ts(0),he(i)).subscribe(()=>{var d,m;(d=this.dropdownBoxRef)===null||d===void 0||d.changeDetectorRef.detectChanges(),(m=this.dropdownBoxRef)===null||m===void 0||m.changeDetectorRef.markForCheck()})}get position(){return Ys(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))}};ve.\u0275fac=function(i){return new(i||ve)(l(K,2),l(L),l(td),l(jn),l(Bs),l(Mn,8))};ve.\u0275dir=D({type:ve,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[O([K,Wi(ve),ho(ve)]),ii]});Ce([Ke],ve.prototype,"position",null);var id={showDelay:200,hideDelay:500},nd=ae(id);var Qr=(()=>{class t extends Yt{constructor(e,n,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=n,this.parentHover=o,this.toggle$=new qt,this.stream$=We(this.toggle$,this.hovered$).pipe(ei(r=>dt(r).pipe($t(r?this.showDelay:this.hideDelay))),_n(r=>{this.hovered=r}),Nn()),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)(l(Ft),l(nd),l(t,12))},t.\u0275dir=D({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[O([ui(t),Ft]),F]}),t})(),Pl={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},bi=ae(Pl),wl=t=>({provide:bi,deps:[[new Je,od],[new Je,new vn,bi]],useFactory:Vr(t,Pl)}),od=(()=>{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)(l(bi,4))},t.\u0275dir=D({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:[O([{provide:bi,useExisting:Te(()=>t)}])]}),t})(),rd=(()=>{class t{constructor(e,n,o,r,s,d,m,M,v,P,I){this.directive=r,this.animation=s,this.el=d,this.accessor=m,this.win=M,this.mode$=v,this.options=P,this.hoverDirective=I,n.pipe($(E=>this.directive.position==="fixed"?e.correct(E):E),he(o)).subscribe(([E,j])=>{this.update(E,j)}),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:s}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:d,offset:m}=this.options,{innerHeight:M}=this.win,v=(o=this.el.nativeElement.offsetParent)===null||o===void 0?void 0:o.getBoundingClientRect(),{position:P}=this.directive,I=this.accessor.getClientRect(),E=P==="fixed"?0:-((v==null?void 0:v.left)||0),j=P==="fixed"?0:-((v==null?void 0:v.top)||0);e+=j,n+=E;let ue=nI.left&&ethis.stream$.subscribe(e)),this.activeZone=i,this.stream$=new qt,this.currentRect=oi,this.type="dropdown"}onContextMenu(i,e){this.currentRect=to(i,e),this.stream$.next(!0)}closeDropdown(){this.stream$.next(!1)}getClientRect(){return this.currentRect}};Xt.\u0275fac=function(i){return new(i||Xt)(l(Xe))};Xt.\u0275dir=D({type:Xt,selectors:[["","tuiDropdown","","tuiDropdownContext",""]],hostBindings:function(i,e){i&1&&_("contextmenu.prevent.stop",function(o){return e.onContextMenu(o.clientX,o.clientY)})("click.silent",function(o){return e.closeDropdown(o.target)},!1,ni)("contextmenu.capture.silent",function(o){return e.closeDropdown(o.target)},!1,ni)("keydown.esc",function(o){return e.closeDropdown(o.currentTarget)},!1,ni)},features:[O([Xe,ui(Xt),Wi(Xt)]),F]});Ce([Zi(ad)],Xt.prototype,"closeDropdown",null);var xl=(()=>{class t extends go{constructor(e,n,o){super(e,n,o),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(l(K,2),l(Yt),l(mo))},t.\u0275dir=D({type:t,selectors:[["","tuiDropdown",""]],features:[O([K]),F]}),t})();var Il=(()=>{class t extends Yt{constructor(){super(e=>this.stream$.subscribe(e)),this.stream$=new Jt(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=D({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[O([ui(t)]),F,ii]}),t})(),Rt=class extends Gt{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:oi,s=this.viewport.getClientRect(),{minHeight:d,align:m,direction:M,offset:v}=this.options,P={top:s.top-v,bottom:s.bottom+v,right:s.right-v,left:s.left+v},I=this.previous||M||"bottom",E={top:r.top-2*v-P.top,bottom:P.bottom-r.bottom-2*v},j=Math.max(r.right-i,v),Ae=r.left+iE.bottom?"top":"bottom";return E[I]>d&&M||E[I]>e?[ue[I],ue[m]]:(this.previous=Qe,[ue[Qe],ue[m]])}get accessor(){return Co("dropdown")(this.accessors,this.directive)}};Rt.\u0275fac=function(i){return new(i||Rt)(l(bi),l(Ki),l($i),l(ve))};Rt.\u0275dir=D({type:Rt,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[O([Cn(Rt)]),F]});Ce([Ke],Rt.prototype,"accessor",null);var El=(()=>{class t extends Gt{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:s}=e,d=(o=(n=this.vertical.accessor)===null||n===void 0?void 0:n.getClientRect())!==null&&o!==void 0?o:oi,m=this.viewport.getClientRect(),{direction:M,minHeight:v,offset:P}=this.options,I=this.options.align==="center"?"left":this.options.align,E={top:d.bottom-m.top,left:d.left-P-m.left,right:m.right-d.right-P,bottom:m.bottom-d.top},j={top:d.bottom-r+this.tuiDropdownSidedOffset+1,left:d.left-s-P,right:d.right+P,bottom:d.top-this.tuiDropdownSidedOffset-1},Ae=E.top>E.bottom?"top":"bottom",ue=E.left>E.right?j.left:j.right,Qe=E[I]>s?j[I]:ue;return E[this.previous]>v&&M||this.previous===Ae?[j[this.previous],Qe]:(this.previous=Ae,[j[Ae],Qe])}}return t.\u0275fac=function(e){return new(e||t)(l(bi),l(Ki),l(Rt))},t.\u0275dir=D({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[O([Rt,Cn(t)]),F]}),t})();var jo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[_e,Bi,Us,ln,di]]}),t})();function ld(t,i){if(t&1&&H(0,"span",1),t&2){let e=i.polymorpheusOutlet;c("innerHTML",e,is)}}var ud=B(()=>gi),cd={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},Oi=ae(cd);var fi=(()=>{class t extends at{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)(l(Oi,4))},t.\u0275dir=D({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[O([{provide:Oi,useExisting:Te(()=>t)}]),F]}),t})(),Bo=(()=>{class t{constructor(e,n,o,r,s){this.el=e,this.component=n,this.hintService=o,this.options=r,this.activeZone=s,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)(l(L),l(ai),l(ll),l(Oi),l(Xe,8))},t.\u0275dir=D({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[O([Wi(t),ho(t),{provide:ai,deps:[ud,jn],useClass:ai}]),ii]}),t})(),un=(()=>{class t extends Yt{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 qt,this.stream$=We(this.toggle$.pipe(ei(r=>dt(r).pipe($t(r?0:this.hideDelay))),he(this.hovered$),xr()),this.hovered$.pipe(ei(r=>dt(r).pipe($t(r?this.showDelay:this.hideDelay))),he(this.toggle$),xr())).pipe(Bt(()=>this.enabled),$(r=>r&&!zr(this.el.nativeElement)),_n(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)(l(Ft),l(Oi),l(L))},t.\u0275dir=D({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[O([ui(t),Ft]),F]}),t})(),dd=(()=>{class t extends un{constructor(){super(...arguments),this.currentRect=oi}onMove({clientX:e,clientY:n}){this.currentRect=to(e,n)}getClientRect(){return this.currentRect}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(e,n){e&1&&_("mousemove.silent",function(r){return n.onMove(r)})},features:[O([Wi(t),ui(t)]),F]}),t})(),Sl=4,gi=class{constructor(i,e,n,o,r,s,d,m,M,v,P,I){var E;this.animation=o,this.pointer=r,this.accessor=s,this.el=d,this.polymorpheus=m,this.hover=M,this.mode=v,this.visualViewportService=P,this.viewport=I,this.appearance=this.polymorpheus.$implicit.appearance||((E=this.mode)===null||E===void 0?void 0:E.mode),e.pipe($(j=>this.visualViewportService.correct(j)),he(n)).subscribe(([j,Ae])=>{this.update(j,Ae)}),i.pipe(he(n)).subscribe(j=>this.hover.toggle(j))}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)||zr(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,s=this.accessor.getClientRect(),d=this.viewport.getClientRect();if(s===oi)return;let m=ri(e,Sl,d.width-o-Sl),[M,v]=this.visualViewportService.correct([s.top+s.height/2-i,s.left+s.width/2-m]);r.top=Ct(i),r.left=Ct(m),r.setProperty("--top",Ct(ri(M,.5,n-1))),r.setProperty("--left",Ct(ri(v,.5,o-1)))}};gi.\u0275fac=function(i){return new(i||gi)(l(Ft),l(Xi),l(K,2),l(To),l(dd,8),l($i),l(L),l(ws),l(un),l(Qi,8),l(Oo),l(Ki))};gi.\u0275cmp=R({type:gi,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(i,e){i&1&&_("click",function(o){return e.onClick(o.target)},!1,ni),i&2&&(U("data-appearance",e.appearance),Bn("@tuiFadeIn",e.animation),N("_untouchable",e.pointer))},features:[O([K,Xi,Ft,_o("hint"),vo("hint",Bo)])],decls:1,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(i,e){i&1&&T(0,ld,1,1,"span",0),i&2&&c("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context)},dependencies:[se],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:[$s]},changeDetection:0});Ce([Ke],gi.prototype,"update",null);var Ht=class extends Yt{constructor(i,e,n){super(o=>this.stream$.subscribe(o)),this.zone=i,this.doc=e,this.el=n,this.id$=new Xa(1),this.stream$=this.id$.pipe(no(()=>tt(this.doc,"keydown",{capture:!0}),Zn),ei(()=>this.focused?dt(!1):We(tt(this.doc,"keyup"),tt(this.element,"blur")).pipe($(()=>this.focused))),Ja(o=>o?Hn(1e3):dt(null)),zn(!1),gt(),Fi(1),ji(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return et(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}};Ht.\u0275fac=function(i){return new(i||Ht)(l(yt),l(Ar),l(L))};Ht.\u0275dir=D({type:Ht,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[O([ui(Ht)]),F,ii]});Ce([Ke],Ht.prototype,"element",null);var kl=(()=>{class t extends go{constructor(e,n,o){super(e,n,o),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(l(K,2),l(Yt),l(mo))},t.\u0275dir=D({type:t,selectors:[["","tuiHint",""]],features:[O([K]),F]}),t})();var hi=8,Uo=22,ge=0,De=1,Nt=class extends Gt{constructor(i,e,n,o){super(),this.options=i,this.viewport=e,this.directive=n,this.accessors=o,this.points=Nr.reduce((r,s)=>Object.assign(Object.assign({},r),{[s]:[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:oi,s=r.left+r.width/2,d=r.top+r.height/2;if(this.points["top-left"][ge]=r.top-e-hi,this.points["top-left"][De]=s-i+Uo,this.points.top[ge]=this.points["top-left"][ge],this.points.top[De]=s-i/2,this.points["top-right"][ge]=this.points["top-left"][ge],this.points["top-right"][De]=s-Uo,this.points["bottom-left"][ge]=r.bottom+hi,this.points["bottom-left"][De]=this.points["top-left"][De],this.points.bottom[ge]=this.points["bottom-left"][ge],this.points.bottom[De]=this.points.top[De],this.points["bottom-right"][ge]=this.points["bottom-left"][ge],this.points["bottom-right"][De]=this.points["top-right"][De],this.points["left-top"][ge]=d-e+Uo,this.points["left-top"][De]=r.left-i-hi,this.points.left[ge]=d-e/2,this.points.left[De]=this.points["left-top"][De],this.points["left-bottom"][ge]=d-Uo,this.points["left-bottom"][De]=this.points["left-top"][De],this.points["right-top"][ge]=this.points["left-top"][ge],this.points["right-top"][De]=r.right+hi,this.points.right[ge]=this.points.left[ge],this.points.right[De]=this.points["right-top"][De],this.points["right-bottom"][ge]=this.points["left-bottom"][ge],this.points["right-bottom"][De]=this.points["right-top"][De],this.checkPosition(this.points[this.direction],i,e))return this.points[this.direction];let m=Nr.find(M=>this.checkPosition(this.points[M],i,e));return this.points[m||this.fallback]}get accessor(){return Co("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[ge]>this.viewport.getClientRect().bottom-this.points.bottom[ge]?"top":"bottom"}checkPosition([i,e],n,o){let r=this.viewport.getClientRect();return i>hi&&e>hi&&i+o{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,_e]]}),t})();var Al=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=D({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[O([{provide:Gn,deps:[[new Je,yo],Ot],multi:!0,useFactory:(i,e)=>i?i[0]:e}])]}),t})(),Fl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Rl=(()=>{class t{constructor(e,n){this.el=e,this.destroy$=n}set tuiScrollIntoView(e){e&&Hn(0).pipe(he(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(Gs,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(l(L),l(K,2))},t.\u0275dir=D({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[O([K])]}),t})(),Ll=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Zr=class{constructor(i,e,n,o,r,s,d,m,M,v,P,I,E){this.change$=i,this.options=e,this.legacyAppearance=n,this.appearanceDirective=o,this.cleanerDirective=r,this.customContentDirective=s,this.iconDirective=d,this.iconLeftDirective=m,this.labelOutsideDirective=M,this.sizeDirective=v,this.prefixDirective=P,this.postfixDirective=I,this.fillerDirective=E}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get 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}},gd={iconCleaner:"tuiIconClose",hintOnDisabled:!1},qr=ae(gd);var Hl=B(()=>new fd),fd=(()=>{class t extends at{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[O([{provide:Hl,useExisting:Te(()=>t)}]),F]}),t})(),Nl=B(()=>new _d),_d=(()=>{class t extends at{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[O([{provide:Nl,useExisting:Te(()=>t)}]),F]}),t})(),zl=B(()=>new vd),vd=(()=>{class t extends at{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[O([{provide:zl,useExisting:Te(()=>t)}]),F]}),t})(),Vl=B(()=>new Jr),Jr=(()=>{class t extends at{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[O([{provide:Vl,useExisting:Te(()=>t)}]),F]}),t})(),jl=B(()=>new ea),ea=(()=>{class t extends at{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[O([{provide:jl,useExisting:Te(()=>t)}]),F]}),t})(),Ul=B(()=>new Cd),Cd=(()=>{class t extends at{}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[O([{provide:Ul,useExisting:Te(()=>t)}]),F]}),t})(),Bl=B(()=>new ta),ta=(()=>{class t extends at{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[O([{provide:Bl,useExisting:Te(()=>t)}]),F]}),t})(),$l=B(()=>new Td),Td=(()=>{class t extends at{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[O([{provide:$l,useExisting:Te(()=>t)}]),F]}),t})(),Wl=B(()=>new Md),Md=(()=>{class t extends at{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[O([{provide:Wl,useExisting:Te(()=>t)}]),F]}),t})(),Wo=B(()=>new bd),bd=(()=>{class t extends at{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[O([{provide:Wo,useExisting:Te(()=>t)}]),F]}),t})(),Yo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})(),Di=new Ye("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),cn=[K,{provide:Di,deps:[Fe,K,qr,sl,Hl,Nl,zl,jl,Ul,Bl,Wo,Wl,$l,Vl],useFactory:(t,i,e,n,...o)=>{let r=We(...o.map(({change$:s})=>s||qa)).pipe(oo(t),he(i));return r.subscribe(),new Zr(r,e,n,...o)}}];function yd(t,i){if(t&1){let e=Q();h(0,"div",4),_("click",function(){let r=k(e).tuiLet,s=g(3);return A(s.onItemClick(r))})("tuiHoveredChange",function(o){let s=k(e).tuiLet,d=g(3);return A(d.onItemHovered(o,s))})("tuiPressedChange",function(o){let s=k(e).tuiLet,d=g(3);return A(d.onItemPressed(o,s))}),h(1,"div",5),Z(2),f()()}if(t&2){let e=i.tuiLet,n=g(3);N("t-cell_interval",n.itemIsInterval(e))("t-cell_today",n.itemIsToday(e)),c("tuiScrollIntoView",n.scrollItemIntoView(e)),U("data-range",n.getItemRange(e))("data-state",n.getItemState(e)),p(2),$n(e)}}function Od(t,i){if(t&1&&(Me(0),T(1,yd,3,8,"div",3),be()),t&2){let e=i.$implicit,n=g().$implicit,o=g();p(1),c("tuiLet",o.getItem(n,e))}}function Dd(t,i){t&1&&(h(0,"div",1),T(1,Od,2,1,"ng-container",2),f()),t&2&&(p(1),c("tuiRepeatTimesOf",4))}var Yl=100,Gl=4,Kl=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=le.currentLocal().year,this.value=null,this.initialItem=le.currentLocal(),this.min=nt,this.max=st,this.disabledItemHandler=Re,this.yearClick=new te}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:nt}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:st}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/Gl)}get calculatedMin(){let e=this.initialItem.year-Yl,n=this.computedMin;return n.year>e?n.year:e}get calculatedMax(){let e=this.initialItem.year+Yl,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)?pt.End:n.from.yearSame(n.to)&&n.from.year===e?pt.Single:null:n.find(r=>r.year===e)?pt.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:_t(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 Ve(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=R({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,n){e&2&&N("_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&&T(0,Dd,2,1,"div",0),e&2&&c("tuiRepeatTimesOf",n.rows)},dependencies:[Ho,si,Rl,en,Lo],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})(),Xl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[di,tn,No,li,Ll]]}),t})();function wd(t,i){if(t&1){let e=Q();Me(0),h(1,"button",1),_("click",function(){k(e);let o=g();return A(o.onLeftClick())}),f(),h(2,"span",2),oe(3),f(),h(4,"button",3),_("click",function(){k(e);let o=g();return A(o.onRightClick())}),f(),be()}if(t&2){let e=i.ngIf,n=g();p(1),N("t-hidden",n.leftComputedDisabled),c("focusable",n.computedFocusable)("icon",n.icons.decrement)("title",e[0]),p(3),N("t-hidden",n.rightComputedDisabled),c("focusable",n.computedFocusable)("icon",n.icons.increment)("title",e[1])}}var xd=["*"],Ql=(()=>{class t extends lo{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 te,this.rightClick=new te}get focused(){return vt(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)(l(L),l(al),l(nl))},t.\u0275cmp=R({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(e,n){e&1&&_("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:[F],ngContentSelectors:xd,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&&(fe(),T(0,wd,5,10,"ng-container",0),q(1,"async")),e&2&&c("ngIf",re(1,1,n.spinTexts$))},dependencies:[wo,de,Ee],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})(),Zl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,xo]]}),t})();var Ed=(t,i)=>{let e=new Date(t.year,t.month,1).getDay();return e>=i?e-i:Vo-(i-e)},Sd=({month:t,rowIndex:i,colIndex:e,firstDayOfWeek:n})=>{let o=i*Vo+e-Ed(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 ke(t.year,t.month,o)},kd=6,ql=(()=>{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 s=0;sI.yearI.year>E.year||I.month>E.month;if(!(v(M)&&!n)){if(P(M)&&!n)break;d.push(M)}}r.push(d)}return this.currentSheet=r.filter(s=>s.length),this.currentMonth=e,this.currentSheet}}return t.\u0275fac=function(e){return new(e||t)(l(Mo,16))},t.\u0275pipe=ti({name:"tuiCalendarSheet",type:t,pure:!0}),t})(),Jl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var ia=(()=>{class t{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe($(n=>n[e]))}}return t.\u0275fac=function(e){return new(e||t)(l(tl,16))},t.\u0275pipe=ti({name:"tuiMonth",type:t,pure:!0}),t})(),eu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var tu=(()=>{class t{constructor(e){this.firstDayOfWeekIndex=e}transform(e){return e.pipe($(Ad),$(n=>[...n.slice(this.firstDayOfWeekIndex),...n.slice(0,this.firstDayOfWeekIndex)]))}}return t.\u0275fac=function(e){return new(e||t)(l(Mo,16))},t.\u0275pipe=ti({name:"tuiOrderWeekDays",type:t,pure:!0}),t})();function Ad(t){let i=t.length-1;return[t[i],...t.slice(0,i)]}var iu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();function Rd(t,i){if(t&1&&(Me(0),Z(1),be()),t&2){let e=g();p(1),ye(" ",e.value.formattedYear," ")}}function Ld(t,i){if(t&1){let e=Q();h(0,"button",3),_("click",function(){k(e);let o=g();return A(o.onYearClick())}),Z(1),f()}if(t&2){let e=g();c("tuiFocusable",!1),p(1),ye(" ",e.value.formattedYear," ")}}var nu=(()=>{class t{constructor(){this.value=le.currentLocal(),this.min=nt,this.max=st,this.valueChange=new te,this.yearClick=new te}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:nt}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:st}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=R({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&&(h(0,"tui-primitive-spin-button",0),_("leftClick",function(){return n.onPrevMonthClick()})("rightClick",function(){return n.onNextMonthClick()}),Z(1),q(2,"async"),q(3,"tuiMonth"),T(4,Rd,2,1,"ng-container",1)(5,Ld,2,2,"ng-template",null,2,Ne),f()),e&2){let o=ce(6);c("focusable",!1)("leftDisabled",n.prevMonthDisabled)("rightDisabled",n.nextMonthDisabled),p(1),ye(" ",re(2,6,re(3,8,n.value))," "),p(3),c("ngIf",n.oneYear)("ngIfElse",o)}},dependencies:[Ql,qi,de,kt,Ee,ia],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),ou=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,At,Zl,Ji,eu]]}),t})();function Nd(t,i){if(t&1&&H(0,"div",3),t&2){let e=i.$implicit;c("textContent",e)}}function zd(t,i){if(t&1&&H(0,"div",14),t&2){let e=g().ngIf;ot("background-color",(e==null?null:e[1])||"")}}function Vd(t,i){if(t&1&&(h(0,"div",13),H(1,"div",14),T(2,zd,1,2,"div",15),f()),t&2){let e=i.ngIf;p(1),ot("background-color",e==null?null:e[0]),p(1),c("ngIf",e.length>1)}}function jd(t,i){if(t&1){let e=Q();h(0,"div",10),_("click",function(){k(e);let o=g().tuiLet,r=g(4);return A(r.onItemClick(o))})("tuiHoveredChange",function(o){k(e);let r=g().tuiLet,s=g(4);return A(s.onItemHovered(o&&r))})("tuiPressedChange",function(o){k(e);let r=g().tuiLet,s=g(4);return A(s.onItemPressed(o&&r))}),h(1,"div",11),q(2,"tuiMapper"),Z(3),T(4,Vd,3,3,"div",12),q(5,"tuiMapper"),f()()}if(t&2){let e=g().tuiLet,n=g(4);N("t-cell_interval",n.itemIsInterval(e))("t-cell_today",n.itemIsToday(e))("t-cell_unavailable",n.itemIsUnavailable(e)),U("data-range",n.getItemRange(e))("data-state",n.getItemState(e)),p(1),N("t-item_unavailable",n.itemIsUnavailable(e)),U("data-type",kr(2,13,e,n.dayTypeHandler)),p(2),ye(" ",e.day," "),p(1),c("ngIf",Wn(5,16,e,n.toMarkers,n.itemIsToday(e),!!n.getItemRange(e)))}}function Ud(t,i){if(t&1&&(Me(0),T(1,jd,6,21,"div",9),be()),t&2){let e=i.tuiLet,n=g(4);p(1),c("ngIf",!n.itemIsUnavailable(e)||n.showAdjacent)}}function Bd(t,i){if(t&1&&(Me(0),T(1,Ud,2,1,"ng-container",8),be()),t&2){let e=i.$implicit,n=g().$implicit,o=g().tuiLet;p(1),c("tuiLet",o[n][e])}}function $d(t,i){if(t&1&&(h(0,"div",6),T(1,Bd,2,1,"ng-container",7),f()),t&2){let e=i.$implicit,n=g().tuiLet;p(1),c("tuiRepeatTimesOf",n[e].length)}}function Wd(t,i){if(t&1&&(h(0,"div",4),T(1,$d,2,1,"div",5),f()),t&2){let e=i.tuiLet;p(1),c("tuiRepeatTimesOf",e.length)}}var ru=(()=>{class t{constructor(e,n){this.unorderedWeekDays$=e,this.dayTypeHandler=n,this.pressedItem=null,this.today=ke.currentLocal(),this.month=le.currentLocal(),this.disabledItemHandler=Re,this.markerHandler=Yi,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new te,this.dayClick=new te,this.toMarkers=(o,r,s)=>{if(r||s)return null;let d=this.markerHandler(o);return d.length===0?null:d}}get isSingleDayRange(){return this.value instanceof pi&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(e){let{disabledItemHandler:n,pressedItem:o,hoveredItem:r}=this;return n(e)?ci.Disabled:o!=null&&o.daySame(e)?ci.Active:r!=null&&r.daySame(e)?ci.Hover:null}getItemRange(e){let{value:n,hoveredItem:o}=this;return n?n instanceof ke?n.daySame(e)?pt.Single:null:n instanceof pi?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?pt.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?pt.End:n.isSingleDay&&n.from.daySame(e)?pt.Single:null:n.find(r=>r.daySame(e))?pt.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 pi))return!1;if(!n.isSingleDay)return n.from.daySameOrBefore(e)&&n.to.dayAfter(e);if(o===null)return!1;let r=pi.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){zi(this.hoveredItem,e,(n,o)=>n.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(l(ol),l(el))},t.\u0275cmp=R({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,n){e&2&&N("_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&&(h(0,"div",0),T(1,Nd,1,1,"div",1),q(2,"async"),q(3,"tuiOrderWeekDays"),f(),T(4,Wd,2,1,"div",2),q(5,"tuiCalendarSheet")),e&2&&(p(1),c("ngForOf",re(2,2,re(3,4,n.unorderedWeekDays$))),p(3),c("tuiLet",kr(5,6,n.month,!0)))},dependencies:[Hi,si,Ho,de,en,Lo,Ee,tu,ql,co],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})(),au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,li,po,No,di,tn,Jl,iu]]}),t})();function Gd(t,i){if(t&1){let e=Q();h(0,"tui-scrollbar",2)(1,"tui-primitive-year-picker",3),_("yearClick",function(o){k(e);let r=g();return A(r.onPickerYearClick(o))}),f()()}if(t&2){let e=g();p(1),c("initialItem",e.year)("max",e.computedMax)("min",e.computedMin)("value",e.value)}}function Kd(t,i){if(t&1){let e=Q();h(0,"tui-primitive-year-month-pagination",4),_("valueChange",function(o){k(e);let r=g();return A(r.onPaginationValueChange(o))})("yearClick",function(o){k(e);let r=g();return A(r.onPaginationYearClick(o))}),f(),h(1,"tui-primitive-calendar",5),_("dayClick",function(o){k(e);let r=g();return A(r.onDayClick(o))})("hoveredItemChange",function(o){k(e);let r=g();return A(r.onHoveredItemChange(o))}),q(2,"tuiMapper"),f()}if(t&2){let e=g();c("max",e.computedMaxViewedMonth)("min",e.computedMinViewedMonth)("value",e.month),p(1),c("disabledItemHandler",Wn(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 Go=(()=>{class t{constructor(){this.day=null,this.month=le.currentLocal(),this.disabledItemHandler=Re,this.min=nt,this.max=st,this.minViewedMonth=nt,this.maxViewedMonth=st,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=Yi,this.dayClick=new te,this.monthChange=new te,this.hoveredItemChange=new te,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 ke&&(this.month=e)}get value(){return this.day}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:nt}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:st}get computedMinViewedMonth(){var e;let n=this.computedMin,o=(e=this.minViewedMonth)!==null&&e!==void 0?e:nt;return o.monthSameOrAfter(n)?o:n}get computedMaxViewedMonth(){var e;let n=this.computedMax,o=(e=this.maxViewedMonth)!==null&&e!==void 0?e:st;return o.monthSameOrBefore(n)?o:n}onPaginationYearClick(e){this.year=e}onPickerYearClick({year:e}){this.year=null,this.updateViewedMonth(new le(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){zi(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=R({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&&T(0,Gd,2,4,"tui-scrollbar",0)(1,Kd,3,14,"ng-template",null,1,Ne),e&2){let o=ce(2);c("ngIf",n.year)("ngIfElse",o)}},dependencies:[mi,Kl,nu,ru,de,co],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})(),Ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,ou,au,Xl,ln,po]]}),t})();var Xd=["tuiOption",""];function Qd(t,i){if(t&1&&(Me(0),Z(1),be()),t&2){let e=i.polymorpheusOutlet;p(1),ye(" ",e,"\n")}}function Zd(t,i){if(t&1&&H(0,"tui-svg",3),t&2){let e=g(2);c("src",e.icons.more)}}function qd(t,i){if(t&1&&(oe(0),T(1,Zd,1,1,"tui-svg",2)),t&2){let e=g();p(1),c("ngIf",e.dropdown)}}var Jd=t=>({$implicit:t}),su=["*"];function ep(t,i){if(t&1&&(Me(0),Z(1),be()),t&2){let e=i.polymorpheusOutlet;p(1),ye(" ",e," ")}}function tp(t,i){if(t&1&&(h(0,"div",2),T(1,ep,2,1,"ng-container",3),q(2,"async"),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.emptyContent||re(2,1,e.defaultEmptyContent$))}}function ip({currentTarget:t}){return!et(t)}var _i=class{constructor(i,e,n,o,r,s){this.content=i,this.dataList=e,this.el=n,this.host=o,this.dropdown=r,this.icons=s,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)}};_i.\u0275fac=function(i){return new(i||_i)(l(rl,8),l(Te(()=>Qt),8),l(L),l(qs,8),l(ve,10),l(Gi))};_i.\u0275cmp=R({type:_i,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(i,e){i&1&&_("click",function(){return e.onClick()})("mousemove.silent",function(o){return e.onMouseMove(o)}),i&2&&(U("disabled",e.disabled||null)("data-size",e.size)("role",e.role),N("_with-dropdown",e.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:Xd,ngContentSelectors:su,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&&(fe(),T(0,Qd,2,1,"ng-container",0)(1,qd,2,1,"ng-template",null,1,Ne)),i&2){let n=ce(2);c("polymorpheusOutlet",e.content||n)("polymorpheusOutletContext",Oe(2,Jd,n))}},dependencies:[Se,se,de],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});Ce([Zi(ip)],_i.prototype,"onMouseMove",null);var Qt=class{constructor(i,e,n){var o;this.controller=i,this.el=e,this.defaultEmptyContent$=n,this.options=Kn,this.role="listbox",this.size=((o=this.controller)===null||o===void 0?void 0:o.size)||"m"}get empty$(){return ys(this.options).pipe($(({length:i})=>!i))}onFocusIn(i,e){!e.contains(i)&&!this.origin&&(this.origin=i)}noop(){}onKeyDownArrow(i,e){let{elements:n}=this;Fr(n.indexOf(i),n,e)}handleFocusLossIfNecessary(i=this.el.nativeElement){this.origin&&vt(i)&&vs(this.origin,!0,!0)}getOptions(i=!1){return this.options.filter(({disabled:e})=>i||!e).map(({value:e})=>e).filter(Zn)}onFocus({target:i},e){if(!wt(i))return;let{elements:n}=this;Fr(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(i)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}};Qt.\u0275fac=function(i){return new(i||Qt)(l(Di,8),l(L),l(il))};Qt.\u0275cmp=R({type:Qt,selectors:[["tui-data-list"]],contentQueries:function(i,e,n){if(i&1&&Wt(n,_i,5),i&2){let o;Y(o=G())&&(e.options=o)}},hostVars:2,hostBindings:function(i,e){i&1&&_("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&&U("role",e.role)("data-list-size",e.size)},inputs:{role:"role",emptyContent:"emptyContent",size:"size"},features:[O([Zs(Qt),cn])],ngContentSelectors:su,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&&(fe(),h(0,"div",0),_("focusin",function(o){return e.onFocus(o,!0)}),f(),oe(1),T(2,tp,3,3,"div",1),q(3,"async"),h(4,"div",0),_("focusin",function(o){return e.onFocus(o,!1)}),f()),i&2&&(p(2),c("ngIf",re(3,1,e.empty$)))},dependencies:[de,se,Ee],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});Ce([Ke],Qt.prototype,"empty$",null);var lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=D({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})();var np=["wrapper"];function op(t,i){if(t&1&&(Me(0),Z(1),be()),t&2){let e=i.polymorpheusOutlet;p(1),ye(" ",e," ")}}var rp=(t,i)=>({$implicit:t,close:i});function ap(t,i){if(t&1){let e=Q();h(0,"div",5,6),_("keydown",function(o){k(e);let r=g(2);return A(r.onKeydown(o))}),T(2,op,2,1,"ng-container",7),f(),H(3,"div")}if(t&2){g();let e=ce(1),n=g();p(2),c("polymorpheusOutlet",n.content)("polymorpheusOutletContext",os(2,rp,e,n.close))}}function sp(t,i){if(t&1){let e=Q();h(0,"div",1,2),_("tuiActiveZoneChange",function(o){k(e);let r=g();return A(r.onActiveZone(o))})("tuiObscured",function(o){k(e);let r=g();return A(r.onHostObscured(o))}),oe(2),T(3,ap,4,5,"ng-template",3,4,Ne),f()}if(t&2){let e=i.tuiLet,n=ce(4),o=g();c("tuiDropdown",n)("tuiDropdownManual",e&&o.canOpen)("tuiDropdownSided",o.sided)("tuiObscuredEnabled",e),p(3),c("polymorpheus",o.context)}}var lp=["*"],uu=(()=>{class t extends Gt{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=(()=>{let i;return function(n){return(i||(i=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["","tuiAccessorProxy",""]],features:[O([{provide:Gt,multi:!0,deps:[[new Je,new vn,t],t],useFactory:(i,e)=>i||e}]),F]}),t})(),cu=new Ye("[TUI_HOSTED_DROPDOWN_COMPONENT]"),up=(()=>{class t{constructor(e,n,o,r){r==null||r.tuiDropdownOpenChange.pipe(Bt(s=>s&&r.dropdown===o&&!n.focused),he(e)).subscribe(()=>{var s;(s=n.nativeFocusableElement)===null||s===void 0||s.focus(),n.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(l(K,2),l(cu),l(ve,2),l(Mn,8))},t.\u0275dir=D({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[O([K])]}),t})(),cp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=D({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function dp(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 je=class{constructor(i,e){this.hover$=i,this.el=e,this.focus$=new Jt(!1),this.openChange=new Jt(!1),this.sided=!1,this.canOpen=!0,this.hostHover$=wr([tt(this.el.nativeElement,"mouseover").pipe($(n=>this.computedHost.contains(Jn(n))),ei(n=>{var o,r;return dt(n).pipe($t((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$||Qa]).pipe($(([n,o])=>n&&o)),this.open$=We(this.openChange,this.hostHover$).pipe(Fi(1),gt(),Nn()),this.focusedChange=new te,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 _s(this.host)?this.host:Vi({initial:this.host,root:this.el.nativeElement})}get focused(){return vt(this.host)||this.open&&!!this.wrapper&&vt(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&&Xs(i)&&this.hostEditable&&qn(e)&&!eo(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 eo(this.computedHost)}focusDropdown(i,e){let n=this.nativeFocusableElement;if(!n||!qn(n)||!wt(i.target)||!n.contains(i.target))return;if(!this.wrapper||!this.open||!this.dropdown||!qn(this.wrapper.nativeElement.nextElementSibling)){this.updateOpen(!0),eo(n)||i.preventDefault();return}let o=e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,r=Vi({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)}};je.\u0275fac=function(i){return new(i||je)(l(Qr,10),l(L))};je.\u0275cmp=R({type:je,selectors:[["tui-hosted-dropdown"]],contentQueries:function(i,e,n){if(i&1&&Wt(n,cp,5,L),i&2){let o;Y(o=G())&&(e.dropdownHost=o.first)}},viewQuery:function(i,e){if(i&1&&(ie(np,5,L),ie(ve,5),ie(Xe,5)),i&2){let n;Y(n=G())&&(e.wrapper=n.first),Y(n=G())&&(e.dropdownDirective=n.first),Y(n=G())&&(e.activeZone=n.first)}},hostVars:1,hostBindings:function(i,e){i&1&&_("$.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,ni)("keydown.arrowDown",function(o){return e.onArrow(o,!0)})("keydown.arrowUp",function(o){return e.onArrow(o,!1)}),i&2&&ft("$.class._hosted_dropdown_focused",e.focus$)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[O([it(je),{provide:uu,deps:[[new Je,new Ri,Gt]],useFactory:t=>t==null?void 0:t[0]},{provide:cu,useExisting:je}])],ngContentSelectors:lp,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&&(fe(),T(0,sp,5,5,"div",0),q(1,"async")),i&2){let n;c("tuiLet",(n=re(1,1,e.open$))!==null&&n!==void 0?n:e.openChange.value)}},dependencies:[si,uu,up,ve,xl,Il,El,Xe,gl,ro,se,Ee],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});Ce([Zi(dp)],je.prototype,"onKeyDownEsc",null);var Xo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,_e,li,fl,Bi,jo]]}),t})();function pp(t,i){if(t&1&&H(0,"tui-svg",2),t&2){let e=i.polymorpheusOutlet,n=g();N("t-mark_on",!n.empty),c("src",e)}}var mp=t=>({$implicit:t}),hp=["*"],gp={size:"m",appearances:{unchecked:Kt.Outline,checked:Kt.Primary,indeterminate:Kt.Primary},icons:{checked:({$implicit:t})=>t==="m"?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>t==="m"?"tuiIconMinus":"tuiIconMinusLarge"}},bn=ae(gp);var pu=(()=>{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)(l(bn))},t.\u0275cmp=R({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,n){e&2&&U("data-size",n.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:hp,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&&(fe(),h(0,"div",0),T(1,pp,1,3,"tui-svg",1),oe(2),f()),e&2&&(c("active",n.pressed)("appearance",n.appearance)("disabled",n.disabled)("focus",n.focused)("hover",n.hovered)("invalid",n.invalid),p(1),c("polymorpheusOutlet",n.icon)("polymorpheusOutletContext",Oe(8,mp,n.size)))},dependencies:[Se,mt,se],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})(),mu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[ze,ht,_e]]}),t})();function fp(t,i){if(t&1&&H(0,"tui-svg",3),t&2){let e=i.polymorpheusOutlet;c("src",e)}}var Qo=(()=>{class t extends fi{constructor(e,n,o,r){super(o),this.isMobile=r,this.mode=null,this.describeId="",n.pipe(he(e)).subscribe(s=>{this.mode=s})}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)(l(K,2),l(Et),l(Oi),l(so))},t.\u0275cmp=R({type:t,selectors:[["tui-tooltip"]],viewQuery:function(e,n){if(e&1&&ie(un,5),e&2){let o;Y(o=G())&&(n.driver$=o.first)}},hostVars:1,hostBindings:function(e,n){e&1&&_("mousedown",function(r){return n.stopOnMobile(r)}),e&2&&U("data-appearance",n.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[O([K,St]),F],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&&(h(0,"span",0,1),q(2,"async"),T(3,fp,1,1,"tui-svg",2),f()),e&2){let o=ce(1);c("hover",re(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),p(3),c("polymorpheusOutlet",n.icon)}},dependencies:[Se,mt,Bo,kl,un,Nt,Ht,se,Ee],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})(),Zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,ht,ze,$o,_e]]}),t})();var vp=["pre"],Cp=["focusableElement"];function Tp(t,i){t&1&&Li(0)}function Mp(t,i){t&1&&Li(0)}function bp(t,i){t&1&&(h(0,"div",17),oe(1,2),f())}function yp(t,i){if(t&1&&H(0,"tui-svg",20),t&2){let e=i.polymorpheusOutlet;c("src",e)}}var oa=t=>({$implicit:t});function Op(t,i){if(t&1&&(h(0,"div",18),T(1,yp,1,1,"tui-svg",19),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.iconLeftContent)("polymorpheusOutletContext",Oe(2,oa,e.size))}}function Dp(t,i){if(t&1&&(h(0,"label",21),oe(1,3),f()),t&2){let e=g();N("t-placeholder_raised",e.placeholderRaised),c("for",e.computedId)}}function Pp(t,i){if(t&1&&H(0,"tui-svg",24),t&2){let e=i.polymorpheusOutlet;c("src",e)}}function wp(t,i){if(t&1&&(h(0,"div",22),T(1,Pp,1,1,"tui-svg",23),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.controller.customContent)}}function xp(t,i){if(t&1&&H(0,"tui-svg",27),t&2){let e=i.polymorpheusOutlet;c("src",e)}}function Ip(t,i){if(t&1){let e=Q();h(0,"span",25),_("click.stop",function(){k(e);let o=g();return A(o.clear())}),T(1,xp,1,1,"tui-svg",26),f()}if(t&2){let e=g();p(1),c("polymorpheusOutlet",e.iconCleaner||e.controller.options.iconCleaner)("polymorpheusOutletContext",Oe(2,oa,e.size))}}function Ep(t,i){if(t&1&&H(0,"tui-tooltip",28),t&2){let e=g();c("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.computedId)}}function Sp(t,i){if(t&1&&H(0,"tui-svg",20),t&2){let e=i.polymorpheusOutlet;c("src",e)}}function kp(t,i){if(t&1&&(h(0,"div",29),T(1,Sp,1,1,"tui-svg",19),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.iconContent)("polymorpheusOutletContext",Oe(2,oa,e.size))}}var Ap=[[["input"]],[["select"]],[["tuiContent"]],"*"],Fp=["input","select","tuiContent","*"];var Rp=(()=>{class t{constructor(e,n){this.textfield=e,this.fontsReady$=n,this.prefix$=new Jt(""),this.pre$=We(this.fontsReady$,this.prefix$).pipe($t(0),Bt(()=>{var o;return!!(!((o=this.pre)===null||o===void 0)&&o.nativeElement.isConnected)}),$(()=>{var o;return((o=this.pre)===null||o===void 0?void 0:o.nativeElement.offsetWidth)||0}),gt())}get isContextTable(){return this.textfield.appearance===Kt.Table}get value(){return this.textfield.value}get filler(){let{focused:e,placeholder:n,exampleText:o,value:r,textfield:s}=this;return n&&o?"":e?o||s.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)(l(Es),l(Ss))},t.\u0275cmp=R({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(e,n){if(e&1&&ie(vp,7,L),e&2){let o;Y(o=G())&&(n.pre=o.first)}},hostVars:4,hostBindings:function(e,n){e&1&&_("animationstart",function(){return n.ngDoCheck()}),e&2&&N("_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&&H(0,"span",0,1)(2,"span",2)(3,"span",3)(4,"span",4),e&2&&(c("textContent",n.prefix),p(2),c("textContent",n.value),p(1),c("textContent",n.filler),p(1),c("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})(),Lp={s:1.25,m:1.75,l:2.25},ut=class extends lo{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 te,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 vt(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 Ks(!!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 Ln(i,"scroll").pipe($(()=>-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){io(i)&&i.stopImmediatePropagation()}get iconPaddingLeft(){return Lp[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)}};ut.\u0275fac=function(i){return new(i||ut)(l(Di),l(fi,8),l(qr),l(L))};ut.\u0275cmp=R({type:ut,selectors:[["tui-primitive-textfield"]],contentQueries:function(i,e,n){if(i&1&&Wt(n,se,5),i&2){let o;Y(o=G())&&(e.content=o)}},viewQuery:function(i,e){if(i&1&&ie(Cp,5),i&2){let n;Y(n=G())&&(e.focusableElement=n.first)}},hostVars:15,hostBindings:function(i,e){i&1&&_("focusin",function(){return e.onFocused(!0)})("focusout",function(){return e.onFocused(!1)}),i&2&&(U("data-size",e.size),ot("--border-start",e.borderStart,"rem")("--border-end",e.borderEnd,"rem"),N("_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:[O([it(ut),cn]),F],ngContentSelectors:Fp,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&&(fe(Ap),T(0,Tp,1,0,"ng-container",0),q(1,"async"),T(2,Mp,1,0,"ng-container",0),q(3,"async"),h(4,"div",1),_("click.prevent.silent",function(o){return e.detectRetargetFromLabel(o)})("mousedown",function(o){return e.onMouseDown(o)})("tuiAutofilledChange",function(o){return e.onAutofilled(o)}),q(5,"async"),oe(6),oe(7,1),h(8,"input",2,3),_("ngModelChange",function(o){return e.onModelChange(o)}),f(),T(10,bp,2,0,"div",4),h(11,"div",5),T(12,Op,2,4,"div",6),h(13,"div",7),T(14,Dp,2,3,"label",8),h(15,"div",9)(16,"tui-value-decoration",10,11),q(18,"async"),f()()(),h(19,"div",12),T(20,wp,2,1,"div",13)(21,Ip,2,4,"span",14)(22,Ep,1,2,"tui-tooltip",15)(23,kp,2,4,"div",16),f()()()),i&2){let n=ce(9),o=ce(17);c("ngIf",re(1,29,e.content==null?null:e.content.changes)),p(2),c("ngIf",re(3,31,e.hintOptions==null?null:e.hintOptions.change$)),p(2),ot("--text-indent",re(5,33,o.pre$),"px"),c("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),p(4),c("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly||!e.editable)("tuiFocusable",e.computedFocusable),U("aria-invalid",e.computedInvalid)("name",e.name),p(2),c("ngIf",e.inputHidden),p(2),c("ngIf",e.iconLeftContent),p(2),c("ngIf",e.hasPlaceholder),p(2),ot("text-indent",re(18,35,e.getIndent$(n)),"px"),N("t-has-value",e.value),p(4),c("ngIf",e.hasCustomContent),p(1),c("ngIf",e.hasCleaner),p(1),c("ngIf",e.showHint),p(1),c("ngIf",e.iconContent)}},dependencies:[Se,Rp,Qo,de,mt,ml,Al,Ot,Dt,rt,kt,se,Ee],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});Ce([Ke],ut.prototype,"getIndent$",null);var hu=(()=>{class t extends fo{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)(l(ut))},t.\u0275dir=D({type:t,selectors:[["tui-primitive-textfield"]],features:[O([bo(t)]),F]}),t})();var gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,Pt,_e,Fl,At,ht,ze,Zo,hl]]}),t})();function fu(t){if(t==="")return"";let i=0;for(let r=0;rs&&i(r)),n=t[e-1]||t[0],o=t[e]||t[t.length-1];return[n,o]}function Tu(t,i){let[[e,n],[o,r]]=Cu(i,([m,M])=>t<=m),s=(t-e)/(o-e),d=(r-n)*s+n;return ms(d,vu)}function Mu(t,i){let[[e,n],[o,r]]=Cu(i,([d,m])=>t<=m),s=(t-n)/(r-n)||0;return(o-e)*s+e}function bu(t,i){return t?bs(t).pipe($(e=>i?i.fromControlValue(e):e)):dt(null)}var Hp=new Ye("[TUI_CALENDAR_DATE_STREAM]");function yu(t){return{provide:Hp,deps:[[new Je,new Ri,Ge],[new Je,t]],useFactory:bu}}var cT=ae({[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#-######"}),ra=new Ye("[TUI_DATE_VALUE_TRANSFORMER]"),dT=new Ye("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),pT=new Ye("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),mT=B(pe("prompt")),hT=B(pe("cancel")),gT=B(pe("done")),fT=B(pe("more")),_T=B(pe("hide")),vT=B(pe("showAll")),CT=B(pe("otherDate")),TT=B(pe("mobileCalendarTexts")),MT=B(pe("range")),bT=B(pe("countTexts")),yT=B(pe("time")),Ou=B(pe("dateTexts")),OT=B(pe("digitalInformationUnits")),DT=B(pe("copyTexts")),PT=B(pe("passwordTexts")),wT=B(pe("shortCalendarMonths")),xT=B(pe("fileTexts")),IT=B(pe("pagination")),ET=B(pe("inputFileTexts")),ST=B(pe("multiSelectTexts")),kT=B(pe("countries")),Np={icon:({$implicit:t})=>t==="s"?"tuiIconCalendar":"tuiIconCalendarLarge",min:nt,max:st,nativePicker:!1},Du=ae(Np);var zp={stringify:ls,identityMatcher:us,disabledItemHandler:Re},AT=ae(zp);var Pu=new Ye("[TUI_MOBILE_CALENDAR]"),FT=new Ye("[TUI_MONTH_FORMATTER]"),RT=ae(24),LT=ae({});var Au=t=>t.querySelector("input,textarea")||t,Zt={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},aa=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 Vp(t,...i){return i.every(({value:e})=>e===t.value)}function jp(t,...i){return i.every(({value:e,selection:n})=>e===t.value&&n[0]===t.selection[0]&&n[1]===t.selection[1])}function Up({value:t,selection:i},e,n){let[o,r]=i,s=typeof n=="function"?n({value:t,selection:i}):n;return{value:t,selection:s==="replace"?[o,o+e.length]:[o,r]}}function ir(t){return typeof t=="string"}function wu(t,i,e,n){let o="";for(let r=i.length;r{let o=i[n];return ir(o)?e===o:e.match(o)}):i.test(t)}function Bp(t,i,e){let n=null,o=null,r=Array.from(t.value).reduce((d,m,M)=>{let v=wu(i,d,m,e),P=d+v,I=i[P.length];return ir(I)?P+I:m.match(I)?(n===null&&M>=t.selection[0]&&(n=P.length),o===null&&M>=t.selection[1]&&(o=P.length),P+m):P},""),s=wu(i,r,"",e);return{value:Fu(r+s,i)?r+s:r,selection:[n!=null?n:r.length,o!=null?o:r.length]}}function $p({value:t,selection:i},e){let[n,o]=i,r=n,s=o;return{value:Array.from(t).reduce((m,M,v)=>{let P=m+M;return n===v&&(r=m.length),o===v&&(s=m.length),P.match(e)?P:m},""),selection:[r,s]}}function Jo(t,i,e=null){if(Fu(t.value,i))return t;let{value:n,selection:o}=Array.isArray(i)?Bp(t,i,e):$p(t,i);return{selection:o,value:Array.isArray(i)?n.slice(0,i.length):n}}function xu(t,i){if(!Array.isArray(i))return t;let[e,n]=t.selection,o=[],r=Array.from(t.value).reduce((s,d,m)=>{let M=i[m];return m===e&&o.push(s.length),m===n&&o.push(s.length),ir(M)&&M===d?s:s+d},"");return o.length<2&&o.push(...new Array(2-o.length).fill(r.length)),{value:r,selection:[o[0],o[1]]}}var On=class{constructor(i,e){this.initialElementState=i,this.maskOptions=e,this.value="",this.selection=[0,0];let{value:n,selection:o}=Jo(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]}),s={value:o,selection:[i,e]},d=xu(s,r),[m,M]=Up(d,n,this.maskOptions.overwriteMode).selection,v=d.value.slice(0,m)+n,P=v.length,I=Jo({value:v+d.value.slice(M),selection:[P,P]},r,s);if(o.slice(0,m)===Jo({value:v,selection:[P,P]},r,s).value||jp(this,I))throw new Error("Invalid mask value");this.value=I.value,this.selection=I.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]},s=xu(r,o),[d,m]=s.selection,M=s.value.slice(0,d)+s.value.slice(m),v=Jo({value:M,selection:[d,d]},o,r);this.value=v.value,this.selection=v.selection}getMaskExpression(i){let{mask:e}=this.maskOptions;return typeof e=="function"?e(i):e}},sa=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 yn(t,i,e){return t.ctrlKey===!!(i&1)&&t.altKey===!!(i&2)&&t.shiftKey===!!(i&4)&&t.metaKey===!!(i&8)&&t.keyCode===e}function Wp(t){return yn(t,1,89)||yn(t,5,90)||yn(t,12,90)}function Yp(t){return yn(t,1,90)||yn(t,8,90)}function Gp(t){return"onbeforeinput"in t}function Kp({key:t,ctrlKey:i,metaKey:e,altKey:n}){let o=i||e||n,r=/^.$/u.test(t);return!o&&t!=="Backspace"&&r}function Xp({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 Iu({value:t,selection:i},e){let[n,o]=i;return n!==o?[n,o]:(e?[n,o+1]:[n-1,o]).map(s=>Math.min(Math.max(s,0),t.length))}var Eu=/\s+$/g,Su=/^\s+/g,ku=/\s/;function Qp({value:t,selection:i},e){let[n,o]=i;if(n!==o)return[n,o];if(e){let m=t.slice(n),[M]=m.match(Su)||[""],v=m.replace(Su,"").search(ku);return[n,v!==-1?n+M.length+v:t.length]}let r=t.slice(0,o),[s]=r.match(Eu)||[""],d=r.replace(Eu,"").split("").reverse().findIndex(m=>m.match(ku));return[d!==-1?o-s.length-d:0,o]}function er(t=[]){return(i,...e)=>t.reduce((n,o)=>Object.assign(Object.assign({},n),o(n,...e)),i)}function la(t,i){let e=Object.assign(Object.assign({},Zt),i),n=er(e.preprocessors),o=er(e.postprocessors),r=typeof t=="string"?{value:t,selection:[0,0]}:t,{elementState:s}=n({elementState:r,data:""},"validation"),d=new On(s,e),{value:m,selection:M}=o(d,r);return typeof t=="string"?m:{value:m,selection:M}}var tr=class extends aa{constructor(i,e){super(),this.element=i,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new sa(this.element),this.options=Object.assign(Object.assign({},Zt),this.maskitoOptions),this.preprocessor=er(this.options.preprocessors),this.postprocessor=er(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(Wp(n))return n.preventDefault(),this.redo();if(Yp(n))return n.preventDefault(),this.undo()}),Gp(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:Iu(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:n,isForward:o,selection:Qp(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:n,isForward:o,selection:Xp(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(la(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:Iu(this.elementState,n)});case"Enter":return this.handleEnter(i)}Kp(i)&&this.handleInsert(i,e)}handleDelete({event:i,selection:e,isForward:n,force:o=!1}){let r={value:this.elementState.value,selection:e},[s,d]=r.selection,{elementState:m}=this.preprocessor({elementState:r,data:""},n?"deleteForward":"deleteBackward"),M=new On(m,this.options),[v,P]=m.selection;M.deleteCharacters([v,P]);let I=this.postprocessor(M,r);if(r.value.slice(0,s)+r.value.slice(d)===I.value&&!o)return;if(i.preventDefault(),Vp(r,m,M,I))return this.updateSelectionRange(n?[P,P]:[v,v]);let j=n?"deleteContentForward":"deleteContentBackward";this.updateElementState(I,{inputType:"inputType"in i?i.inputType:j,data:null}),this.updateHistory(I)}handleInsert(i,e){let n=this.elementState,{elementState:o,data:r=e}=this.preprocessor({data:e,elementState:n},"insert"),s=new On(o,this.options);try{s.addCharacters(o.selection,r)}catch{return i.preventDefault()}let[d,m]=o.selection,M=o.value.slice(0,d)+e+o.value.slice(m),v=this.postprocessor(s,n);if(v.value.length>this.maxLength)return i.preventDefault();M!==v.value&&(i.preventDefault(),this.updateElementState(v,{data:e,inputType:"inputType"in i?i.inputType:"insertText"}),this.updateHistory(v))}handleEnter(i){this.isTextArea&&this.handleInsert(i,"\n")}};var Ru=wl({limitWidth:"fixed",align:"right"}),Lu={provide:yo,deps:[[new Je,new Ri,Gn]],useFactory:Ga};var Hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=D({type:t,selectors:[["","tuiValueAccessor",""]],features:[O([Lu])]}),t})(),Nu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();var Zp=["focusableElement"],nr=(()=>{class t extends Ui{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 et(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)(l(Ge,10),l(bn),l(Fe))},t.\u0275cmp=R({type:t,selectors:[["tui-checkbox"]],viewQuery:function(e,n){if(e&1&&ie(Zp,5),e&2){let o;Y(o=G())&&(n.focusableElement=o.first)}},hostVars:1,hostBindings:function(e,n){e&2&&U("data-size",n.size)},inputs:{size:"size"},features:[O([it(t),xt(t)]),F],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&&(h(0,"tui-primitive-checkbox",0)(1,"input",1,2),_("tuiCheckedChange",function(r){return n.value=r})("tuiFocusedChange",function(r){return n.onFocused(r)})("tuiFocusVisibleChange",function(r){return n.onFocusVisible(r)}),f()()),e&2&&(c("disabled",n.disabled)("focused",n.computedFocusVisible)("hovered",n.pseudoHover)("invalid",n.computedInvalid)("pressed",n.pseudoActive)("size",n.size)("value",n.value),p(1),c("disabled",n.disabled)("id",n.id)("tuiFocusable",n.computedFocusable)("tuiChecked",n.value))},dependencies:[pu,Eo,kt,Fo,ko],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})(),zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,So,At,Ro,Ao,mu]]}),t})();var Jp=["*"],Vu=(()=>{class t extends Ui{constructor(e,n,o,r){super(e,n),this.mode$=o,this.options=r,this.size=this.options.size}get focused(){return et(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)(l(Ge,10),l(Fe),l(Et),l(bn))},t.\u0275cmp=R({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(e,n){if(e&1&&ie(nr,5),e&2){let o;Y(o=G())&&(n.checkbox=o.first)}},hostVars:1,hostBindings:function(e,n){e&1&&_("$.data-mode.attr",function(){return n.mode$}),e&2&&U("data-size",n.size)},inputs:{size:"size"},features:[O([it(t),xt(t),St]),F],ngContentSelectors:Jp,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&&(fe(),h(0,"label",0)(1,"tui-checkbox",1),_("ngModelChange",function(r){return n.value=r})("focusedChange",function(r){return n.onFocused(r)}),f(),h(2,"div",2),oe(3),f()()),e&2&&(p(1),c("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),p(1),N("t-content_disabled",n.computedDisabled))},dependencies:[nr,Dt,rt],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})(),ju=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,Pt,zu]]}),t})();var em=new Date("0001-01-01"),tm=new Date("9999-12-31");var im="\u2013",nm="\u2014",om="-",rm="\u2212",am=[om,im,nm,rm];var sm=[":","."];function lm(t,i,e){let n=Math.min(Number(e),Math.max(Number(i),Number(t)));return t instanceof Date?new Date(n):n}var Uu=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 um(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 cm(t,i){return t.length!e.match(/^0+$/))}function Bu(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 $u(t){return t.reduce((i,[e,n])=>Object.assign(Object.assign({},i),{[e]:n}),{})}function Wu(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 $u(Object.entries(o).filter(([r,s])=>!!s).sort(([r],[s])=>i.toLowerCase().indexOf(r[0])>i.toLowerCase().indexOf(s[0])?1:-1))}function dm(t,i){var e,n,o,r,s,d,m;let M=((e=t.year)===null||e===void 0?void 0:e.length)===2?"20".concat(t.year):t.year,v=new Date(Number(M!=null?M:"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((s=i==null?void 0:i.minutes)!==null&&s!==void 0?s:"0"),Number((d=i==null?void 0:i.seconds)!==null&&d!==void 0?d:"0"),Number((m=i==null?void 0:i.milliseconds)!==null&&m!==void 0?m:"0"));return v.setFullYear(Number(M!=null?M:"0")),v}var Pn=", ";function or({day:t,month:i,year:e,hours:n,minutes:o,seconds:r,milliseconds:s},d,m){var M;let v=((M=d.match(/y/g))===null||M===void 0?void 0:M.length)===2?e==null?void 0:e.slice(-2):e;return(d+(m?Pn+m:"")).replace(/d+/g,t!=null?t:"").replace(/m+/g,i!=null?i:"").replace(/y+/g,v!=null?v:"").replace(/H+/g,n!=null?n:"").replace(/MSS/g,s!=null?s:"").replace(/M+/g,o!=null?o:"").replace(/S+/g,r!=null?r:"").replace(/^\D+/g,"").replace(/\D+$/g,"")}function ua(t,i,e=0){return Number(t.padEnd(i.length,"0"))<=Number(i)?{validatedSegmentValue:t,prefixedZeroesCount:e}:t.endsWith("0")?ua("0".concat(t.slice(0,i.length-1)),i,e+1):ua("".concat(t.slice(0,i.length-1),"0"),i,e)}var pm={day:31,month:12,year:9999};function mm({dateString:t,dateModeTemplate:i,offset:e,selection:[n,o]}){let r=Wu(t,i),s=Object.entries(r),d={},m=0;for(let[P,I]of s){let E=or(d,i),j=pm[P],Ae=E.length&&1,ue=e+E.length+Ae+Uu(i)[P],Qe=ue>=n&&ue===o;if(Qe&&Number(I)>Number(j))return{validatedDateString:"",updatedSelection:[n,o]};if(Qe&&Number(I)<1)return{validatedDateString:"",updatedSelection:[n,o]};let{validatedSegmentValue:dn,prefixedZeroesCount:Ue}=ua(I,"".concat(j));m+=Ue,d[P]=dn}let M=or(d,i),v=M.length-t.length;return{validatedDateString:M,updatedSelection:[n+m+v,o+m+v]}}var Yu=/[\\^$.*+?()[\]{}|]/g,hm=new RegExp(Yu.source);function Gu(t){return t&&hm.test(t)?t.replace(Yu,"\\$&"):t}function gm(t,i){let e=Uu(i);return $u(Object.entries(t).map(([n,o])=>{let r=e[n];return[n,o.length===r&&o.match(/^0+$/)?"1".padStart(r,"0"):o]}))}function fm({dateModeTemplate:t,min:i=em,max:e=tm,rangeSeparator:n="",dateSegmentSeparator:o="."}){return({value:r,selection:s})=>{let d=n&&r.endsWith(n),m=Bu(r,t,n),M="";for(let v of m){M+=M?n:"";let P=Wu(v,t);if(!cm(v,t)){let j=gm(P,t),Ae=or(j,t),ue=v.endsWith(o)?o:"";M+=Ae+ue;continue}let I=dm(P),E=lm(I,i,e);M+=or(um(E),t)}return{selection:s,value:M+(d?n:"")}}}function _m({dateModeTemplate:t,dateSegmentsSeparator:i,rangeSeparator:e=""}){return({elementState:n,data:o})=>{let r=e?new RegExp("".concat(e,"|-")):Pn,s=o.split(r),d=o.includes(Pn)?[s[0]]:s;if(d.every(m=>m.trim().split(/\D/).length===t.split(i).length)){let m=d.map(M=>vm(M,t,i)).join(e);return{elementState:n,data:"".concat(m).concat(o.includes(Pn)&&Pn+s[1]||"")}}return{elementState:n,data:o}}}function vm(t,i,e){let n=t.split(/\D/),o=i.split(e);return n.map((s,d)=>d===o.length-1?s:s.padStart(o[d].length,"0")).join(e)}function Cm({dateModeTemplate:t,dateSegmentsSeparator:i,rangeSeparator:e=""}){return({elementState:n,data:o})=>{let{value:r,selection:s}=n;if(o===i)return{elementState:n,data:s[0]===r.length?o:""};if(am.includes(o))return{elementState:n,data:e};let d=o.replace(new RegExp("[^\\d".concat(Gu(i)).concat(e,"]"),"g"),"");if(!d)return{elementState:n,data:""};let[m,M]=s,v=M+o.length,P=r.slice(0,m)+d+r.slice(v),I=Bu(P,t,e),E="",j=!!e&&P.includes(e);for(let ue of I){let{validatedDateString:Qe,updatedSelection:dn}=mm({dateString:ue,dateModeTemplate:t,offset:E?E.length+e.length:0,selection:[m,v]});if(ue&&!Qe)return{elementState:n,data:""};v=dn[1],E+=j&&E?e+Qe:Qe}let Ae=E.slice(m,v);return{elementState:{selection:s,value:E.slice(0,m)+Ae.split(i).map(ue=>"0".repeat(ue.length)).join(i)+E.slice(v)},data:Ae}}}function Tm(){return({elementState:t},i)=>{let{value:e,selection:n}=t;if(!e||Mm(e,n))return{elementState:t};let[o,r]=n,s=e.slice(o,r).replace(/\d/g,"0"),d=e.slice(0,o)+s+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 Mm(t,[i,e]){return e===t.length}function Ku({mode:t,separator:i=".",max:e,min:n}){let o=t.split("/").join(i);return Object.assign(Object.assign({},Zt),{mask:Array.from(o).map(r=>r===i?r:/\d/),overwriteMode:"replace",preprocessors:[Tm(),_m({dateModeTemplate:o,dateSegmentsSeparator:i}),Cm({dateModeTemplate:o,dateSegmentsSeparator:i})],postprocessors:[fm({min:n,max:e,dateModeTemplate:o,dateSegmentSeparator:i})]})}var bM=new RegExp("[".concat(sm.map(Gu).join(""),"]$"));var Xu=(()=>{class t{constructor(e,n){this.ngZone=e,this.elementRef=n,this.maskedElement=null,this.maskito=Zt,this.maskitoElement=Au}ngOnChanges(){var e;return Za(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 tr(o,(r=this.maskito)!==null&&r!==void 0?r:Zt)})})}ngOnDestroy(){var e;(e=this.maskedElement)===null||e===void 0||e.destroy()}}return t.\u0275fac=function(e){return new(e||t)(l(yt),l(L))},t.\u0275dir=D({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[ii]}),t})();var Qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();function ym(t,i){if(t&1){let e=Q();h(0,"tui-primitive-textfield",5),_("focusedChange",function(o){k(e);let r=g();return A(r.onFocused(o))})("valueChange",function(o){k(e);let r=g();return A(r.onValueChange(o))}),oe(1),oe(2,1,["ngProjectAs","input",5,["input"]]),f()}if(t&2){let e=i.tuiLet,n=g(),o=ce(4);c("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 Om(t,i){if(t&1){let e=Q();h(0,"tui-svg",8),_("click",function(){k(e);let o=g(2);return A(o.onIconClick())}),f()}if(t&2){let e=i.polymorpheusOutlet,n=g(2);N("t-icon",!n.computedDisabled),c("src",e)}}function Dm(t,i){t&1&&H(0,"input",9)}var Pm=t=>({$implicit:t});function wm(t,i){if(t&1&&T(0,Om,1,3,"tui-svg",6)(1,Dm,1,0,"input",7),t&2){let e=g();c("polymorpheusOutlet",e.calendarIcon)("polymorpheusOutletContext",Oe(3,Pm,e.size)),p(1),c("ngIf",e.isMobile&&e.nativePicker)}}function xm(t,i){if(t&1){let e=Q();h(0,"div",12)(1,"button",13),_("click",function(){k(e);let o=g(2);return A(o.onDayClick(o.items[0].day))}),Z(2),f()()}if(t&2){let e=g(2);p(2),ye(" ",e.items[0]," ")}}function Im(t,i){if(t&1){let e=Q();h(0,"tui-calendar",10),_("dayClick",function(o){k(e);let r=g();return A(r.onDayClick(o))})("monthChange",function(o){k(e);let r=g();return A(r.onMonthChange(o))}),f(),T(1,xm,3,1,"div",11)}if(t&2){let e=g();c("disabledItemHandler",e.disabledItemHandler)("markerHandler",e.markerHandler)("max",e.computedMax)("min",e.computedMin)("month",e.computedActiveYearMonth)("value",e.value),p(1),c("ngIf",e.items.length===1)}}var Em=["*",[["input"]]],Sm=["*","input"],km=(()=>{class t{constructor(e,n){this.host=e,this.dateFormat=n}get value(){return this.host.value.length===an?ke.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?ke.normalizeParse(e,"YMD").toString(this.dateFormat):"")}}return t.\u0275fac=function(e){return new(e||t)(l(jr),l(Xr))},t.\u0275dir=D({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(e,n){e&1&&_("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&&ft("tabIndex",-1)("value",n.value)("max",n.max)("min",n.min)}}),t})(),Mt=class extends Ui{constructor(i,e,n,o,r,s,d,m,M,v,P,I){super(i,e,v),this.injector=n,this.isMobile=o,this.dialogs=r,this.mobileCalendar=s,this.dateFormat=d,this.dateSeparator=m,this.dateTexts$=M,this.valueTransformer=v,this.options=P,this.textfieldSize=I,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=Re,this.markerHandler=Yi,this.items=[],this.defaultActiveYearMonth=le.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe($(E=>Ol(E[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||Tl(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?Zt: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 ai(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe(he(this.destroy$)).subscribe(i=>{this.value=i})}onValueChange(i){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),i||this.onOpenChange(!0),this.value=i.length!==an?null:ke.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 zi(i,e,(n,o)=>n.daySame(o))}computeMaskOptions(i,e,n,o){return Ku({separator:e,mode:_u[i],min:n.toLocalNativeDate(),max:o.toLocalNativeDate()})}};Mt.\u0275fac=function(i){return new(i||Mt)(l(Ge,10),l(Fe),l(Un),l(so),l(Io),l(Pu,8),l(Xr),l(yl),l(Ou),l(ra,8),l(Du),l(Wo))};Mt.\u0275cmp=R({type:Mt,selectors:[["tui-input-date"]],viewQuery:function(i,e){if(i&1&&ie(ut,5),i&2){let n;Y(n=G())&&(e.textfield=n.first)}},hostVars:1,hostBindings:function(i,e){i&1&&_("click",function(){return e.onClick()}),i&2&&U("data-size",e.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[O([it(Mt),xt(Mt),yu(ra)]),F],ngContentSelectors:Sm,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&&(fe(Em),h(0,"tui-hosted-dropdown",0),_("openChange",function(o){return e.onOpenChange(o)}),T(1,ym,3,11,"tui-primitive-textfield",1),q(2,"async"),T(3,wm,2,5,"ng-template",null,2,Ne)(5,Im,2,7,"ng-template",3,4,Ne),f()),i&2){let n=ce(6);c("canOpen",e.canOpen)("content",n)("open",e.open&&e.canOpen),p(1),c("tuiLet",re(2,5,e.filler$)),p(4),c("polymorpheus",e.type)}},dependencies:[je,ut,Se,Go,qi,si,hu,Hu,Xu,Jr,ea,se,mt,de,km,ro,_l,Ee],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});Ce([Ke],Mt.prototype,"computeMaskOptions",null);var Zu=(()=>{class t extends fo{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=Ie(t)))(n||t)}})(),t.\u0275dir=D({type:t,selectors:[["tui-input-date"]],features:[O([bo(t)]),F]}),t})(),qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,Qu,_e,ht,vl,Ko,ze,Ji,Xo,gu,Nu,li,Yo]]}),t})();var Am=["input"];function Fm(t,i){if(t&1&&(Me(0),Z(1),be()),t&2){let e=i.polymorpheusOutlet;p(1),ye(" ",e," ")}}function Rm(t,i){if(t&1&&(h(0,"div",6),T(1,Fm,2,1,"ng-container",7),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.leftContent)}}function Lm(t,i){if(t&1&&H(0,"tui-loader",8),t&2){let e=g();c("inheritColor",!0)("size",e.loaderSize)}}function Hm(t,i){if(t&1){let e=Q();h(0,"tui-svg",9),_("click",function(o){k(e);let r=g();return A(r.remove(o))})("mousedown.stop.prevent.silent",function(){return 0}),f()}if(t&2){let e=g();c("src",e.icons.close)}}function Nm(t,i){if(t&1){let e=Q();h(0,"input",10,11),_("blur",function(){k(e);let o=g();return A(o.onBlur())})("keydown",function(o){k(e);let r=g();return A(r.onKeyDown(o))})("ngModelChange",function(o){k(e);let r=g();return A(r.onInput(o))}),f()}if(t&2){let e=g();c("ngModel",e.editedText),U("maxLength",e.maxLength)}}var zm={size:"m",status:"default",autoColor:!1},Vm=ae(zm);var Ju=(()=>{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 te,this.editing=!1,this.editedText=null}set input(e){e&&e.nativeElement.focus()}get backgroundColor(){return this.autoColor?fu(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 Qs(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)(l(L),l(Et),l(Vm),l(Gi))},t.\u0275cmp=R({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(e,n){if(e&1&&ie(Am,5,L),e&2){let o;Y(o=G())&&(n.input=o.first)}},hostVars:10,hostBindings:function(e,n){e&1&&_("$.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&&(U("data-size",n.size)("data-status",n.status),N("_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:[O([St])],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&&(h(0,"div",0),_("dblclick",function(r){return n.edit(r)}),T(1,Rm,2,1,"div",1),H(2,"span",2),T(3,Lm,1,2,"tui-loader",3)(4,Hm,1,1,"tui-svg",4),f(),T(5,Nm,2,2,"input",5)),e&2&&(ot("background-color",n.backgroundColor),p(1),c("ngIf",n.leftContent),p(1),c("textContent",n.displayText),p(1),c("ngIf",n.showLoader),p(1),c("ngIf",n.canRemove),p(1),c("ngIf",n.editing))},dependencies:[Do,Se,de,se,Ot,Dt,rt],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})(),ec=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,Pt,ze,Po,_e]]}),t})();var Um=["focusableElement"],Bm=["tagsContainer"],$m=["cleaner"],Wm=["errorIcon"],Ym=["tag"];function Gm(t,i){t&1&&Li(0)}function Km(t,i){if(t&1&&H(0,"tui-svg",21),t&2){let e=i.polymorpheusOutlet;c("src",e)}}var ca=t=>({$implicit:t});function Xm(t,i){if(t&1&&(h(0,"div",19),T(1,Km,1,1,"tui-svg",20),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.iconLeft)("polymorpheusOutletContext",Oe(2,ca,e.size))}}function Qm(t,i){if(t&1&&(h(0,"div",22),oe(1,2),f()),t&2){let e=g();N("t-placeholder_raised",e.placeholderRaised)}}function Zm(t,i){if(t&1){let e=Q();h(0,"tui-tag",24,25),_("edited",function(o){let s=k(e).index,d=g(2);return A(d.onTagEdited(o,s))})("keydown.arrowLeft.prevent",function(){let r=k(e).index,s=g(2);return A(s.onTagKeyDownArrowLeft(r))})("keydown.arrowRight.prevent",function(){let r=k(e).index,s=g(2);return A(s.onTagKeyDownArrowRight(r))}),q(2,"async"),f()}if(t&2){let e=i.$implicit,n=g(2);c("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",re(2,11,n.status$))("tuiFocusable",!1)("value",e.toString())}}function qm(t,i){if(t&1&&(Me(0),T(1,Zm,3,13,"tui-tag",23),be()),t&2){let e=g();p(1),c("ngForOf",e.value)("ngForTrackBy",e.trackByFn)}}function Jm(t,i){if(t&1&&H(0,"span",27),t&2){let e=i.$implicit,n=g(2);N("t-text_comma",n.computedFocused&&!n.inputHidden)("t-text_disabled",n.disabledItemHandler(e))("t-text_error",!n.tagValidator(e)),c("textContent",e)}}function eh(t,i){if(t&1&&T(0,Jm,1,7,"span",26),t&2){let e=g();c("ngForOf",e.value)}}function th(t,i){if(t&1){let e=Q();h(0,"tui-svg",32,33),_("click.stop",function(){k(e);let o=g(3);return A(o.onCleanerClick())}),f()}if(t&2){let e=i.polymorpheusOutlet;c("src",e)}}function ih(t,i){if(t&1&&(Me(0),T(1,th,2,1,"tui-svg",31),be()),t&2){let e=g(2);p(1),c("polymorpheusOutlet",e.iconCleaner)("polymorpheusOutletContext",Oe(2,ca,e.size))}}function nh(t,i){if(t&1&&H(0,"tui-tooltip",34),t&2){let e=g(2);c("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.id)}}function oh(t,i){if(t&1&&H(0,"tui-svg",21),t&2){let e=i.polymorpheusOutlet;c("src",e)}}function rh(t,i){if(t&1&&(h(0,"div",35),T(1,oh,1,1,"tui-svg",20),f()),t&2){let e=g(2);p(1),c("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",Oe(2,ca,e.size))}}function ah(t,i){if(t&1&&(h(0,"div",28),T(1,ih,2,4,"ng-container",0)(2,nh,1,2,"tui-tooltip",29)(3,rh,2,4,"div",30),f()),t&2){let e=g();p(1),c("ngIf",e.hasCleaner),p(1),c("ngIf",e.showHint),p(1),c("ngIf",e.icon)}}function sh(t,i){if(t&1&&H(0,"tui-svg",36),t&2){let e=g();c("src",e.icons.error)}}var lh=[[["tuiContent"]],[["select"]],"*"],uh=["tuiContent","select","*"],ch={separator:",",uniqueTags:!0,tagStatus:"primary"},dh=ae(ch);var ph={s:1.25,m:1.5,l:2},mh={s:1,m:1.25,l:1.25},hh=.125,tc=(()=>{class t extends Ns{constructor(e,n,o,r,s,d,m,M,v,P){super(e,n),this.el=o,this.modeDirective=r,this.mode$=s,this.hintOptions=d,this.controller=m,this.options=M,this.parentHostedDropdown=v,this.icons=P,this.tags=Kn,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=Ni,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=Re,this.searchChange=new te,this.status$=this.mode$.pipe($(()=>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 vt(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){io(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=Jn(e);!this.focusableElement||o===this.focusableElement.nativeElement||!wt(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(s=>s.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(s=>this.clippedValue(s.trim())).filter((s,d,{length:m})=>s.length>0&&d!==m-1).filter(s=>!this.disabledItemHandler(s));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=gs(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,s)=>s===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=hs(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?ph[this.controller.size]+2*hh:mh[this.controller.size]}}return t.\u0275fac=function(e){return new(e||t)(l(Ge,10),l(Fe),l(L),l(Qi,8),l(Et),l(fi,8),l(Di),l(dh),l(je,8),l(Gi))},t.\u0275cmp=R({type:t,selectors:[["tui-input-tag"]],contentQueries:function(e,n,o){if(e&1&&Wt(o,lu,5,Yn),e&2){let r;Y(r=G())&&(n.datalist=r.first)}},viewQuery:function(e,n){if(e&1&&(ie(je,5),ie(Um,5),ie(Bm,5),ie($m,5,L),ie(mi,5,L),ie(Wm,5),ie(Ym,5,L)),e&2){let o;Y(o=G())&&(n.hostedDropdown=o.first),Y(o=G())&&(n.focusableElement=o.first),Y(o=G())&&(n.tagsContainer=o.first),Y(o=G())&&(n.cleanerSvg=o.first),Y(o=G())&&(n.scrollBar=o.first),Y(o=G())&&(n.errorIconTemplate=o.first),Y(o=G())&&(n.tags=o)}},hostVars:7,hostBindings:function(e,n){e&2&&(U("data-size",n.size),N("_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:[O([it(t),xt(t),Js(t),cn,St],[Ru]),F],ngContentSelectors:uh,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&&(fe(lh),T(0,Gm,1,0,"ng-container",0),q(1,"async"),h(2,"tui-hosted-dropdown",1),_("openChange",function(r){return n.open=r})("tuiActiveZoneChange",function(r){return n.onActiveZone(r)}),h(3,"div",2),_("click.prevent.silent",function(r){return n.detectRetargetFromLabel(r)})("mousedown",function(r){return n.onMouseDown(r)}),h(4,"div",3),T(5,Xm,2,4,"div",4),h(6,"div",5)(7,"div",6),T(8,Qm,2,2,"div",7),f(),h(9,"tui-scrollbar",8)(10,"div",9),T(11,qm,2,2,"ng-container",10)(12,eh,1,1,"ng-template",null,11,Ne),h(14,"div",12)(15,"div",13),Z(16),f(),h(17,"input",14,15),_("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)}),f()()(),h(19,"div",16),oe(20),f()()(),oe(21,1),T(22,ah,4,3,"div",17),f(),T(23,sh,1,1,"ng-template",null,18,Ne),f()()),e&2){let o=ce(13);c("ngIf",re(1,32,n.hintOptions==null?null:n.hintOptions.change$)),p(2),c("canOpen",n.canOpen)("content",n.datalist||"")("open",n.open),p(1),c("appearance",n.appearance)("disabled",n.computedDisabled)("focus",n.computedFocused)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),p(2),c("ngIf",n.iconLeft),p(3),c("ngIf",n.hasPlaceholder),p(1),ot("max-height",n.computeMaxHeight,"rem"),c("hidden",!n.expandable),p(1),N("t-tags_empty",(!n.focused||n.inputHidden)&&!(n.value!=null&&n.value.length)),p(1),c("ngIf",n.labelOutside)("ngIfElse",o),p(3),N("t-input-wrapper_collapsed",n.computedDisabled||n.readOnly||n.inputHidden),p(2),$n(n.search),p(1),N("t-native_hidden",n.inputHidden),c("disabled",n.computedDisabled)("id",n.id)("ngModel",n.search)("placeholder",n.placeholder)("readOnly",n.readOnly||n.inputHidden)("tuiFocusable",n.computedFocusable),U("maxLength",n.maxLength),p(5),c("ngIf",n.hasRightIcons)}},dependencies:[je,Se,mi,Ju,Qo,de,Xe,mt,se,Hi,kt,Ot,Dt,rt,Ee],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})(),ic=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({providers:[Hs],imports:[[W,Pt,_e,At,di,Bi,ze,ln,Zo,Xo,ec,ht]]}),t})();var gh=["type","range","tuiSlider",""];var fh={size:"m",trackColor:"var(--tui-base-03)"},_h=ae(fh);var zt=class{constructor(i,e,n,o,r,s){var d;this.control=i,this.options=n,this.el=o,this.userAgent=r,this.injector=s,this.size=this.options.size,this.segments=1,i instanceof rt&&((d=i.valueChanges)===null||d===void 0||d.pipe(oo(e),es(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 rt?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 ds(ss,this.userAgent)}get hasKeySteps(){return!!this.injector.get(vh,null)}};zt.\u0275fac=function(i){return new(i||zt)(l(Ge,10),l(Fe),l(_h),l(L),l(ao),l(Un))};zt.\u0275cmp=R({type:zt,selectors:[["input","type","range","tuiSlider",""]],hostVars:9,hostBindings:function(i,e){i&1&&_("input",function(){return 0}),i&2&&(U("data-size",e.size),ot("--tui-slider-track-color",e.options.trackColor)("--tui-slider-fill-percentage",e.valuePercentage,"%")("--tui-slider-segment-width",e.segmentWidth,"%"),N("_old-edge",e.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:gh,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});Ce([Ke],zt.prototype,"hasKeySteps",null);var vh=(()=>{class t extends uo{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 et(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=Tu(this.slider.valuePercentage,this.keySteps)}writeValue(e){if(e===null)return;let n=ri(e,this.min,this.max);this.slider.value=this.transformToNativeValue(n)}getFallbackValue(){return 0}transformToNativeValue(e){let{min:n,max:o}=this.slider;return Mu(e,this.keySteps)*(o-n)/100+n}}return t.\u0275fac=function(e){return new(e||t)(l(Ge,10),l(Fe),l(L),l(Te(()=>zt)))},t.\u0275dir=D({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(e,n){e&1&&_("input",function(){return n.updateControlValue()})("change",function(){return n.updateControlValue()}),e&2&&(ft("disabled",n.computedDisabled),U("aria-valuenow",n.safeCurrentValue)("aria-valuemin",n.min)("aria-valuemax",n.max))},inputs:{keySteps:"keySteps"},features:[F]}),t})();var nc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W]]}),t})();var Ch=["focusableElement"];function Th(t,i){if(t&1&&H(0,"tui-loader",7),t&2){let e=g();c("inheritColor",!0)("showLoader",e.value)("size",e.loaderSize)}}function Mh(t,i){if(t&1&&H(0,"tui-svg",10),t&2){let e=i.polymorpheusOutlet;c("src",e)}}var oc=t=>({$implicit:t});function bh(t,i){if(t&1&&(h(0,"span",8),T(1,Mh,1,1,"tui-svg",9),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.iconOn)("polymorpheusOutletContext",Oe(2,oc,e.size))}}function yh(t,i){if(t&1&&H(0,"tui-loader",7),t&2){let e=g();c("inheritColor",!0)("showLoader",!e.value)("size",e.loaderSize)}}function Oh(t,i){if(t&1&&H(0,"tui-svg",12),t&2){let e=i.polymorpheusOutlet;c("src",e)}}function Dh(t,i){if(t&1&&(h(0,"span",8),T(1,Oh,1,1,"tui-svg",11),f()),t&2){let e=g();p(1),c("polymorpheusOutlet",e.iconOff)("polymorpheusOutletContext",Oe(2,oc,e.size))}}var Ph={icons:{toggleOff({$implicit:t}){return t==="m"?"tuiIconToggleOff":"tuiIconToggleOffLarge"},toggleOn({$implicit:t}){return t==="m"?"tuiIconToggleOn":"tuiIconToggleOnLarge"}},appearances:{checked:Kt.Primary,unchecked:Kt.Secondary},singleColor:!1,showIcons:!1,size:"m"},wh=ae(Ph);var rc=(()=>{class t extends uo{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 et(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)(l(Ge,10),l(Fe),l(Qi,8),l(wh))},t.\u0275cmp=R({type:t,selectors:[["tui-toggle"]],viewQuery:function(e,n){if(e&1&&ie(Ch,5),e&2){let o;Y(o=G())&&(n.focusableElement=o.first)}},hostVars:4,hostBindings:function(e,n){e&2&&(U("data-size",n.size)("data-mode",n.hostMode),N("_checked",n.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[O([it(t),xt(t)]),F],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&&(h(0,"div",0)(1,"div",1),T(2,Th,1,3,"tui-loader",2)(3,bh,2,4,"span",3),H(4,"div",4),T(5,yh,1,3,"tui-loader",2)(6,Dh,2,4,"span",3),f(),h(7,"input",5,6),_("tuiCheckedChange",function(r){return n.value=r})("tuiFocusedChange",function(r){return n.onFocused(r)})("tuiFocusVisibleChange",function(r){return n.onFocusVisible(r)}),f()()),e&2&&(c("active",n.pseudoActive)("appearance",n.appearance)("disabled",n.computedDisabled)("focus",n.computedFocusVisible)("hover",n.pseudoHover)("invalid",n.computedInvalid)("readOnly",n.readOnly),p(2),c("ngIf",n.showLoader),p(1),c("ngIf",n.showIcons&&!n.showLoader),p(2),c("ngIf",n.showLoader),p(1),c("ngIf",n.showIcons&&!n.showLoader),p(1),c("disabled",n.disabled)("id",n.id)("tuiFocusable",n.focusable)("tuiChecked",n.value),U("aria-checked",n.value))},dependencies:[Do,Se,mt,de,se,Eo,kt,Fo,ko],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})(),ac=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({imports:[[W,Ro,At,tn,Ao,So,ht,ze,Po,_e]]}),t})();var xh=Wc(sc());var Fy=new Ye("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),Ry=new Ye("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),Ly=new Ye("A function that sanitizes value for a CSS rule",{factory:()=>t=>t,providedIn:"root"});var lc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=y({type:t}),t.\u0275inj=b({}),t})();function Ih(t,i){if(t&1&&(h(0,"tui-checkbox-labeled",16),Z(1),f()),t&2){let e=i.$implicit,n=g();c("ngModel",e===n.labels[1]),p(1),ye(" ",e," ")}}function Eh(t,i){if(t&1){let e=Q();h(0,"div",17)(1,"div",18),H(2,"img",19),h(3,"h3"),Z(4,"Aleksandr Inkin"),f()(),h(5,"div",20)(6,"button",21),_("click",function(){let r=k(e).$implicit;return A(r.complete())}),f(),h(7,"button",22),_("click",function(){let r=k(e).$implicit;return A(r.complete())}),f()()()}}function Sh(t,i){if(t&1){let e=Q();h(0,"tui-push",23),_("close",function(){k(e);let o=g();return A(o.toggle(!1))}),H(1,"tui-svg",24),Z(2," I have a bad feeling about this... "),h(3,"button",25),_("click",function(){k(e);let o=g();return A(o.toggle(!1))}),Z(4," Fortune "),f(),h(5,"button",26),_("click",function(){k(e);let o=g();return A(o.toggle(!1))}),Z(6," Glory "),f()()}}var Ky=(()=>{let i=class i{constructor(){this.dialogs=Er(Io),this.cd=Er(Fe),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=R({type:i,selectors:[["home"]],standalone:!0,features:[ns],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 s=Q();h(0,"h2",0),Z(1," Dozens of "),H(2,"br"),Z(3," components\n"),f(),h(4,"tui-input-tag",1),_("ngModelChange",function(m){return r.tags=m}),f(),h(5,"div",2)(6,"div",3)(7,"tui-input-date",4),_("ngModelChange",function(m){return r.date=m})("click.capture.stop",function(){return 0})("keydown.capture.stop",function(){return 0})("mousedown.capture.stop",function(){return 0}),Z(8," Choose date "),f(),h(9,"tui-calendar",5),_("dayClick",function(m){return r.onDay(m)})("event.prevent.silent",function(){return 0}),f()(),h(10,"div"),T(11,Ih,2,2,"tui-checkbox-labeled",6),f(),h(12,"div",7)(13,"label")(14,"tui-toggle",8),_("ngModelChange",function(m){return r.notification=m}),f(),Z(15," Push notification "),f(),h(16,"input",9),_("ngModelChange",function(m){return r.slider=m}),f(),h(17,"div",10)(18,"button",11),_("click",function(){return r.slider=0}),f(),H(19,"button",12),h(20,"button",13),_("click",function(){k(s);let m=ce(22);return A(r.call(m))}),f()()()(),T(21,Eh,8,0,"ng-template",null,14,Ne)(23,Sh,7,0,"tui-push",15)}o&2&&(p(4),c("tuiTextfieldLabelOutside",!0)("ngModel",r.tags),p(3),c("ngModel",r.date),p(2),c("tuiDropdownOpen",!1)("value",r.date),p(2),c("ngForOf",r.labels),p(3),c("showIcons",!0)("ngModel",r.notification),p(2),c("max",140)("ngModel",r.slider),p(7),c("tuiPush",r.notification))},dependencies:[W,Hi,Pt,Ot,rs,Dt,as,rt,ic,tc,ac,rc,Ko,Go,Yo,ta,qu,Mt,Zu,ju,Vu,xo,wo,$o,fi,nc,zt,ze,Se,pl,ul,cl,dl,Ji,qi,jo,Mn,lc],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{Ky as HomeComponent}; diff --git a/chunk-UB3CG7HU.js b/chunk-UB3CG7HU.js new file mode 100644 index 00000000..9034cbc9 --- /dev/null +++ b/chunk-UB3CG7HU.js @@ -0,0 +1 @@ +var ME=Object.create;var $u=Object.defineProperty,TE=Object.defineProperties,AE=Object.getOwnPropertyDescriptor,OE=Object.getOwnPropertyDescriptors,xE=Object.getOwnPropertyNames,js=Object.getOwnPropertySymbols,NE=Object.getPrototypeOf,Hu=Object.prototype.hasOwnProperty,Op=Object.prototype.propertyIsEnumerable;var Ap=(e,t,n)=>t in e?$u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))Hu.call(t,n)&&Ap(e,n,t[n]);if(js)for(var n of js(t))Op.call(t,n)&&Ap(e,n,t[n]);return e},Me=(e,t)=>TE(e,OE(t));var xp=(e,t)=>{var n={};for(var r in e)Hu.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&js)for(var r of js(e))t.indexOf(r)<0&&Op.call(e,r)&&(n[r]=e[r]);return n};var NF=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var PE=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xE(t))!Hu.call(e,i)&&i!==n&&$u(e,i,{get:()=>t[i],enumerable:!(r=AE(t,i))||r.enumerable});return e};var PF=(e,t,n)=>(n=e!=null?ME(NE(e)):{},PE(t||!e||!e.__esModule?$u(n,"default",{value:e,enumerable:!0}):n,e));var RE=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(u){i(u)}},s=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});var Np=null;var zu=1;function ct(e){let t=Np;return Np=e,t}var Pp={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function FE(e){if(!(qu(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===zu)){if(!e.producerMustRecompute(e)&&!Gu(e)){e.dirty=!1,e.lastCleanEpoch=zu;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=zu}}function Rp(e){return e&&(e.nextProducerIndex=0),ct(e)}function Fp(e,t){if(ct(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(qu(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Gu(e){Vs(e);for(let t=0;t0}function Vs(e){var t,n,r;(t=e.producerNode)!=null||(e.producerNode=[]),(n=e.producerIndexOfThis)!=null||(e.producerIndexOfThis=[]),(r=e.producerLastReadVersion)!=null||(e.producerLastReadVersion=[])}function kE(e){var t,n;(t=e.liveConsumerNode)!=null||(e.liveConsumerNode=[]),(n=e.liveConsumerIndexOfThis)!=null||(e.liveConsumerIndexOfThis=[])}function LE(){throw new Error}var jE=LE;function Lp(e){jE=e}function k(e){return typeof e=="function"}function ri(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Us=ri(e=>function(n){e(this),this.message=n?"".concat(n.length," errors occurred during unsubscription:\n").concat(n.map((r,i)=>"".concat(i+1,") ").concat(r.toString())).join("\n ")):"",this.name="UnsubscriptionError",this.errors=n});function Dr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Ge=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(k(r))try{r()}catch(o){t=o instanceof Us?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{jp(o)}catch(s){t=t!=null?t:[],s instanceof Us?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Us(t)}}add(t){var n;if(t&&t!==this)if(this.closed)jp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Dr(n,t)}remove(t){let{_finalizers:n}=this;n&&Dr(n,t),t instanceof e&&t._removeParent(this)}};Ge.EMPTY=(()=>{let e=new Ge;return e.closed=!0,e})();var Yu=Ge.EMPTY;function Bs(e){return e instanceof Ge||e&&"closed"in e&&k(e.remove)&&k(e.add)&&k(e.unsubscribe)}function jp(e){k(e)?e():e.unsubscribe()}var zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ii={setTimeout(e,t,...n){let{delegate:r}=ii;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ii;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function $s(e){ii.setTimeout(()=>{let{onUnhandledError:t}=zt;if(t)t(e);else throw e})}function bt(){}var Vp=(()=>Zu("C",void 0,void 0))();function Up(e){return Zu("E",void 0,e)}function Bp(e){return Zu("N",e,void 0)}function Zu(e,t,n){return{kind:e,value:t,error:n}}var _r=null;function oi(e){if(zt.useDeprecatedSynchronousErrorHandling){let t=!_r;if(t&&(_r={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=_r;if(_r=null,n)throw r}}else e()}function $p(e){zt.useDeprecatedSynchronousErrorHandling&&_r&&(_r.errorThrown=!0,_r.error=e)}var Er=class extends Ge{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Bs(t)&&t.add(this)):this.destination=BE}static create(t,n,r){return new Sn(t,n,r)}next(t){this.isStopped?Qu(Bp(t),this):this._next(t)}error(t){this.isStopped?Qu(Up(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Qu(Vp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},VE=Function.prototype.bind;function Ku(e,t){return VE.call(e,t)}var Xu=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Hs(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Hs(r)}else Hs(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Hs(n)}}},Sn=class extends Er{constructor(t,n,r){super();let i;if(k(t)||!t)i={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:r!=null?r:void 0};else{let o;this&&zt.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ku(t.next,o),error:t.error&&Ku(t.error,o),complete:t.complete&&Ku(t.complete,o)}):i=t}this.destination=new Xu(i)}};function Hs(e){zt.useDeprecatedSynchronousErrorHandling?$p(e):$s(e)}function UE(e){throw e}function Qu(e,t){let{onStoppedNotification:n}=zt;n&&ii.setTimeout(()=>n(e,t))}var BE={closed:!0,next:bt,error:UE,complete:bt};var si=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function Ve(e){return e}function wr(...e){return Ju(e)}function Ju(e){return e.length===0?Ve:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var M=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=HE(n)?n:new Sn(n,r,i);return oi(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Hp(r),new r((i,o)=>{let s=new Sn({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[si](){return this}pipe(...n){return Ju(n)(this)}toPromise(n){return n=Hp(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Hp(e){var t;return(t=e!=null?e:zt.Promise)!==null&&t!==void 0?t:Promise}function $E(e){return e&&k(e.next)&&k(e.error)&&k(e.complete)}function HE(e){return e&&e instanceof Er||$E(e)&&Bs(e)}function el(e){return k(e==null?void 0:e.lift)}function N(e){return t=>{if(el(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,t,n,r,i){return new tl(e,t,n,r,i)}var tl=class extends Er{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ai(){return N((e,t)=>{let n=null;e._refCount++;let r=T(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ci=class extends M{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,el(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t==null||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Ge;let n=this.getSubject();t.add(this.source.subscribe(T(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Ge.EMPTY)}return t}refCount(){return ai()(this)}};var zp=ri(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class e extends M{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new zp}next(n){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){oi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Yu:(this.currentObservers=null,o.push(n),new Ge(()=>{this.currentObservers=null,Dr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new M;return n.source=this,n}}return e.create=(t,n)=>new zs(t,n),e})(),zs=class extends ye{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Yu}};var Re=class extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var uo={now(){return(uo.delegate||Date).now()},delegate:void 0};var Mn=class extends ye{constructor(t=1/0,n=1/0,r=uo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;se.complete());function Ys(e){return e&&k(e.schedule)}function nl(e){return e[e.length-1]}function li(e){return k(nl(e))?e.pop():void 0}function nn(e){return Ys(nl(e))?e.pop():void 0}function Wp(e,t){return typeof nl(e)=="number"?e.pop():t}function Yp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Ks(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function qp(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cr(e){return this instanceof Cr?(this.v=e,this):new Cr(e)}function Zp(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(p){return new Promise(function(m,y){o.push([f,p,m,y])>1||a(f,p)})})}function a(f,p){try{c(r[f](p))}catch(m){d(o[0][3],m)}}function c(f){f.value instanceof Cr?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,p){f(p),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Kp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof qp=="function"?qp(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var di=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qs(e){return k(e==null?void 0:e.then)}function Xs(e){return k(e[si])}function Js(e){return Symbol.asyncIterator&&k(e==null?void 0:e[Symbol.asyncIterator])}function ea(e){return new TypeError("You provided ".concat(e!==null&&typeof e=="object"?"an invalid object":"'".concat(e,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}function zE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ta=zE();function na(e){return k(e==null?void 0:e[ta])}function ra(e){return Zp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Cr(n.read());if(i)return yield Cr(void 0);yield yield Cr(r)}}finally{n.releaseLock()}})}function ia(e){return k(e==null?void 0:e.getReader)}function U(e){if(e instanceof M)return e;if(e!=null){if(Xs(e))return GE(e);if(di(e))return WE(e);if(Qs(e))return qE(e);if(Js(e))return Qp(e);if(na(e))return YE(e);if(ia(e))return ZE(e)}throw ea(e)}function GE(e){return new M(t=>{let n=e[si]();if(k(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function WE(e){return new M(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$s)})}function YE(e){return new M(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Qp(e){return new M(t=>{KE(e,t).catch(n=>t.error(n))})}function ZE(e){return Qp(ra(e))}function KE(e,t){var n,r,i,o;return Ks(this,void 0,void 0,function*(){try{for(n=Kp(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function pt(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function oa(e,t=0){return N((n,r)=>{n.subscribe(T(r,i=>pt(r,e,()=>r.next(i),t),()=>pt(r,e,()=>r.complete(),t),i=>pt(r,e,()=>r.error(i),t)))})}function sa(e,t=0){return N((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Xp(e,t){return U(e).pipe(sa(t),oa(t))}function Jp(e,t){return U(e).pipe(sa(t),oa(t))}function em(e,t){return new M(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function tm(e,t){return new M(n=>{let r;return pt(n,t,()=>{r=e[ta](),pt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>k(r==null?void 0:r.return)&&r.return()})}function aa(e,t){if(!e)throw new Error("Iterable cannot be null");return new M(n=>{pt(n,t,()=>{let r=e[Symbol.asyncIterator]();pt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function nm(e,t){return aa(ra(e),t)}function rm(e,t){if(e!=null){if(Xs(e))return Xp(e,t);if(di(e))return em(e,t);if(Qs(e))return Jp(e,t);if(Js(e))return aa(e,t);if(na(e))return tm(e,t);if(ia(e))return nm(e,t)}throw ea(e)}function _e(e,t){return t?rm(e,t):U(e)}function I(...e){let t=nn(e);return _e(e,t)}function fi(e,t){let n=k(e)?e:()=>e,r=i=>i.error(n());return new M(t?i=>t.schedule(r,0,i):r)}function Ir(e){return!!e&&(e instanceof M||k(e.lift)&&k(e.subscribe))}var Tn=ri(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function im(e){return e instanceof Date&&!isNaN(e)}function E(e,t){return N((n,r)=>{let i=0;n.subscribe(T(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:QE}=Array;function XE(e,t){return QE(t)?e(...t):e(t)}function hi(e){return E(t=>XE(e,t))}var{isArray:JE}=Array,{getPrototypeOf:ew,prototype:tw,keys:nw}=Object;function ca(e){if(e.length===1){let t=e[0];if(JE(t))return{args:t,keys:null};if(rw(t)){let n=nw(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function rw(e){return e&&typeof e=="object"&&ew(e)===tw}function ua(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function la(...e){let t=nn(e),n=li(e),{args:r,keys:i}=ca(e);if(r.length===0)return _e([],t);let o=new M(iw(r,t,i?s=>ua(i,s):Ve));return n?o.pipe(hi(n)):o}function iw(e,t,n=Ve){return r=>{om(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let u=_e(e[c],t),l=!1;u.subscribe(T(r,d=>{o[c]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function om(e,t,n){e?pt(n,e,t):t()}function sm(e,t,n,r,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=y=>u{o&&t.next(y),u++;let A=!1;U(n(y,l++)).subscribe(T(t,S=>{i==null||i(S),o?p(S):t.next(S)},()=>{A=!0},void 0,()=>{if(A)try{for(u--;c.length&&um(S)):m(S)}f()}catch(S){t.error(S)}}))};return e.subscribe(T(t,p,()=>{d=!0,f()})),()=>{a==null||a()}}function Le(e,t,n=1/0){return k(t)?Le((r,i)=>E((o,s)=>t(r,o,i,s))(U(e(r,i))),n):(typeof t=="number"&&(n=t),N((r,i)=>sm(r,i,e,n)))}function fo(e=1/0){return Le(Ve,e)}function am(){return fo(1)}function mt(...e){return am()(_e(e,nn(e)))}function rn(e){return new M(t=>{U(e()).subscribe(t)})}function rl(...e){let t=li(e),{args:n,keys:r}=ca(e),i=new M(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(r?ua(r,a):a),o.complete())}))}});return t?i.pipe(hi(t)):i}var ow=["addListener","removeListener"],sw=["addEventListener","removeEventListener"],aw=["on","off"];function on(e,t,n,r){if(k(n)&&(r=n,n=void 0),r)return on(e,t,n).pipe(hi(r));let[i,o]=lw(e)?sw.map(s=>a=>e[s](t,a,n)):cw(e)?ow.map(cm(e,t)):uw(e)?aw.map(cm(e,t)):[];if(!i&&di(e))return Le(s=>on(s,t,n))(U(e));if(!i)throw new TypeError("Invalid event target");return new M(s=>{let a=(...c)=>s.next(1o(a)})}function cm(e,t){return n=>r=>e[n](t,r)}function cw(e){return k(e.addListener)&&k(e.removeListener)}function uw(e){return k(e.on)&&k(e.off)}function lw(e){return k(e.addEventListener)&&k(e.removeEventListener)}function Xe(e=0,t,n=Gp){let r=-1;return t!=null&&(Ys(t)?n=t:r=t),new M(i=>{let o=im(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Ee(...e){let t=nn(e),n=Wp(e,1/0),r=e;return r.length?r.length===1?U(r[0]):fo(n)(_e(r,t)):De}var dw=new M(bt);var{isArray:fw}=Array;function um(e){return e.length===1&&fw(e[0])?e[0]:e}function fe(e,t){return N((n,r)=>{let i=0;n.subscribe(T(r,o=>e.call(t,o,i++)&&r.next(o)))})}function il(...e){return e=um(e),e.length===1?U(e[0]):new M(hw(e))}function hw(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r{if(n){for(let o=0;o{let r=null,i=!1,o;r=t.subscribe(T(n,void 0,void 0,s=>{o=U(e(s,Gt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function lm(e,t,n,r,i){return(o,s)=>{let a=n,c=t,u=0;o.subscribe(T(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Sr(e,t){return k(t)?Le(e,t,1):Le(e,1)}function pw(e){return N((t,n)=>{let r=!1,i=null,o=null,s=()=>{if(o==null||o.unsubscribe(),o=null,r){r=!1;let a=i;i=null,n.next(a)}};t.subscribe(T(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=T(n,s,bt),U(e(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function dm(e,t=br){return N((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{o=u,s=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Zn(e){return N((t,n)=>{let r=!1;t.subscribe(T(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function je(e){return e<=0?()=>De:N((t,n)=>{let r=0;t.subscribe(T(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function pi(){return N((e,t)=>{e.subscribe(T(t,bt))})}function ho(e){return E(()=>e)}function ol(e,t){return t?n=>mt(t.pipe(je(1),pi()),n.pipe(ol(e))):Le((n,r)=>U(e(n,r)).pipe(je(1),ho(n)))}function po(e,t=br){let n=Xe(e,t);return ol(()=>n)}function Te(e,t=Ve){return e=e!=null?e:mw,N((n,r)=>{let i,o=!0;n.subscribe(T(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function mw(e,t){return e===t}function da(e=gw){return N((t,n)=>{let r=!1;t.subscribe(T(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function gw(){return new Tn}function mo(...e){return t=>mt(t,I(...e))}function Kn(e){return N((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Wt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?fe((i,o)=>e(i,o,r)):Ve,je(1),n?Zn(t):da(()=>new Tn))}function mi(e){return e<=0?()=>De:N((t,n)=>{let r=[];t.subscribe(T(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function sl(e,t){let n=arguments.length>=2;return r=>r.pipe(e?fe((i,o)=>e(i,o,r)):Ve,mi(1),n?Zn(t):da(()=>new Tn))}function fa(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>De:N((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let u=typeof n=="number"?Xe(n):U(n(o)),l=T(i,()=>{l.unsubscribe(),c()});u.subscribe(l)}else c()},c=()=>{let u=!1;s=r.subscribe(T(i,void 0,()=>{++o{let r,i=!1,o,s=!1,a=!1,c=()=>a&&s&&(n.complete(),!0),u=()=>(o||(o=new ye,U(e(o)).subscribe(T(n,()=>{r?l():i=!0},()=>{s=!0,c()}))),o),l=()=>{a=!1,r=t.subscribe(T(n,void 0,()=>{a=!0,!c()&&u().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}function ha(e,t){return N(lm(e,t,arguments.length>=2,!0))}function tt(e={}){let{connector:t=()=>new ye,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a==null||a.unsubscribe(),a=void 0},p=()=>{f(),s=c=void 0,l=d=!1},m=()=>{let y=s;p(),y==null||y.unsubscribe()};return N((y,A)=>{u++,!d&&!l&&f();let S=c=c!=null?c:t();A.add(()=>{u--,u===0&&!d&&!l&&(a=cl(m,i))}),S.subscribe(A),!s&&u>0&&(s=new Sn({next:H=>S.next(H),error:H=>{d=!0,f(),a=cl(p,n,H),S.error(H)},complete:()=>{l=!0,f(),a=cl(p,r),S.complete()}}),U(y).subscribe(s))})(o)}}function cl(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Sn({next:()=>{r.unsubscribe(),e()}});return U(t(...n)).subscribe(r)}function Ct(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e!=null?e:1/0,tt({connector:()=>new Mn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function ul(e){return fe((t,n)=>e<=n)}function ll(e){return N((t,n)=>{let r=!1,i=0;t.subscribe(T(n,o=>(r||(r=!e(o,i++)))&&n.next(o)))})}function le(...e){let t=nn(e);return N((n,r)=>{(t?mt(e,n,t):mt(e,n)).subscribe(r)})}function W(e,t){return N((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(T(r,c=>{i==null||i.unsubscribe();let u=0,l=o++;U(e(c,l)).subscribe(i=T(r,d=>r.next(t?t(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function pe(e){return N((t,n)=>{U(e).subscribe(T(n,()=>n.complete(),bt)),!n.closed&&t.subscribe(n)})}function pa(e,t=!1){return N((n,r)=>{let i=0;n.subscribe(T(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function we(e,t,n){let r=k(e)||t||n?{next:e,error:t,complete:n}:e;return r?N((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(T(o,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),o.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ve}function fm(e,t){return N((n,r)=>{let{leading:i=!0,trailing:o=!1}=t!=null?t:{},s=!1,a=null,c=null,u=!1,l=()=>{c==null||c.unsubscribe(),c=null,o&&(p(),u&&r.complete())},d=()=>{c=null,u&&r.complete()},f=m=>c=U(e(m)).subscribe(T(r,l,d)),p=()=>{if(s){s=!1;let m=a;a=null,r.next(m),!u&&f(m)}};n.subscribe(T(r,m=>{s=!0,a=m,!(c&&!c.closed)&&(i?p():f(m))},()=>{u=!0,!(o&&s&&c&&!c.closed)&&r.complete()}))})}function Qn(e,t=br,n){let r=Xe(e,t);return fm(()=>r,n)}function go(...e){let t=li(e);return N((n,r)=>{let i=e.length,o=new Array(i),s=e.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Ve))&&(s=null))},bt));n.subscribe(T(r,c=>{if(a){let u=[c,...o];r.next(t?t(...u):u)}}))})}function be(e){for(let t in e)if(e[t]===be)return t;throw Error("Could not find renamed property on target object.")}function ma(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ot(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ot).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);let t=e.toString();if(t==null)return""+t;let n=t.indexOf("\n");return n===-1?t:t.substring(0,n)}function hm(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var vw=be({__forward_ref__:be});function jn(e){return e.__forward_ref__=jn,e.toString=function(){return ot(this())},e}function ut(e){return eg(e)?e():e}function eg(e){return typeof e=="function"&&e.hasOwnProperty(vw)&&e.__forward_ref__===jn}function tg(e){return e&&!!e.\u0275providers}var ng="https://g.co/ng/security#xss",w=class extends Error{constructor(t,n){super(ec(t,n)),this.code=t}};function ec(e,t){let n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}var yw=be({\u0275cmp:be}),Dw=be({\u0275dir:be}),_w=be({\u0275pipe:be}),Ew=be({\u0275mod:be}),Oa=be({\u0275fac:be}),vo=be({__NG_ELEMENT_ID__:be}),pm=be({__NG_ENV_ID__:be});function Ao(e){return typeof e=="string"?e:e==null?"":String(e)}function ww(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ao(e)}function bw(e,t){let n=t?". Dependency path: ".concat(t.join(" > ")," > ").concat(e):"";throw new w(-200,"Circular dependency in DI detected for ".concat(e).concat(n))}function Cd(e,t){let n=t?" in ".concat(t):"";throw new w(-201,!1)}function Cw(e,t){e==null&&Iw(t,e,null,"!=")}function Iw(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+(r==null?"":" [Expected=> ".concat(n," ").concat(r," ").concat(t," <=Actual]")))}function b(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function z(e){return{providers:e.providers||[],imports:e.imports||[]}}function tc(e){return mm(e,ig)||mm(e,og)}function rg(e){return tc(e)!==null}function mm(e,t){return e.hasOwnProperty(t)?e[t]:null}function Sw(e){let t=e&&(e[ig]||e[og]);return t||null}function gm(e){return e&&(e.hasOwnProperty(vm)||e.hasOwnProperty(Mw))?e[vm]:null}var ig=be({\u0275prov:be}),vm=be({\u0275inj:be}),og=be({ngInjectableDef:be}),Mw=be({ngInjectorDef:be}),J=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(J||{}),Tl;function Tw(){return Tl}function Ft(e){let t=Tl;return Tl=e,t}function sg(e,t,n){let r=tc(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&J.Optional)return null;if(t!==void 0)return t;Cd(ot(e),"Injector")}var An=globalThis;var _=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=b({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return"InjectionToken ".concat(this._desc)}};var Aw={},_o=Aw,Al="__NG_DI_FLAG__",xa="ngTempTokenPath",Ow="ngTokenPath",xw=/\n/gm,Nw="\u0275",ym="__source",yo;function gi(e){let t=yo;return yo=e,t}function Pw(e,t=J.Default){if(yo===void 0)throw new w(-203,!1);return yo===null?sg(e,void 0,t):yo.get(e,t&J.Optional?null:void 0,t)}function C(e,t=J.Default){return(Tw()||Pw)(ut(e),t)}function g(e,t=J.Default){return C(e,nc(t))}function nc(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ol(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ot(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(xw,"\n "))}function Oo(e){return{toString:e}.toString()}var ag=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ag||{}),ln=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(ln||{}),Ei={},It=[];function cg(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function xl(e,t,n){let r=0;for(;rt){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let p=r&8?f:null;if(p&&cg(p,u,0)!==-1||r&2&&u!==f){if(qt(r))return!1;s=!0}}}}return qt(r)||s}function qt(e){return(e&1)===0}function $w(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!qt(s)&&(t+=_m(o,i),i=""),r=s,o=o||!qt(r);n++}return i!==""&&(t+=_m(o,i)),t}function Yw(e){return e.map(qw).join(",")}function Zw(e){let t=[],n=[],r=1,i=2;for(;r{var i;let t=gg(e),n=Me(x({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ag.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:(i=e.signals)!=null?i:!1,data:e.data||{},encapsulation:e.encapsulation||ln.Emulated,styles:e.styles||It,_:null,schemas:e.schemas||null,tView:null,id:""});vg(n);let r=e.dependencies;return n.directiveDefs=wm(r,!1),n.pipeDefs=wm(r,!0),n.id=Xw(n),n})}function Kw(e){return Tr(e)||fg(e)}function Qw(e){return e!==null}function G(e){return Oo(()=>({type:e.type,bootstrap:e.bootstrap||It,declarations:e.declarations||It,imports:e.imports||It,exports:e.exports||It,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Em(e,t){if(e==null)return Ei;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}function L(e){return Oo(()=>{let t=gg(e);return vg(t),t})}function Ti(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Tr(e){return e[yw]||null}function fg(e){return e[Dw]||null}function hg(e){return e[_w]||null}function pg(e){let t=Tr(e)||fg(e)||hg(e);return t!==null?t.standalone:!1}function mg(e,t){let n=e[Ew]||null;if(!n&&t===!0)throw new Error("Type ".concat(ot(e)," does not have '\u0275mod' property."));return n}function gg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ei,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||It,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Em(e.inputs,t),outputs:Em(e.outputs),debugInfo:null}}function vg(e){var t;(t=e.features)==null||t.forEach(n=>n(e))}function wm(e,t){if(!e)return null;let n=t?hg:Kw;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Qw)}function Xw(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483647+1,"c"+t}var vt=0,q=1,Z=2,He=3,Yt=4,Mt=5,On=6,wo=7,Zt=8,wi=9,bi=10,Ae=11,bo=12,bm=13,Ai=14,St=15,xo=16,vi=17,cn=18,rc=19,yg=20,Do=21,dl=22,Ar=23,We=25,Sd=1,Dg=2,Nl=6,xn=7,Na=8,Ci=9,Co=10,gt=11;function un(e){return Array.isArray(e)&&typeof e[Sd]=="object"}function kt(e){return Array.isArray(e)&&e[Sd]===!0}function Md(e){return(e.flags&4)!==0}function No(e){return e.componentOffset>-1}function ic(e){return(e.flags&1)===1}function Nn(e){return!!e.template}function _g(e){return(e[Z]&512)!==0}function Or(e,t){let n=e.hasOwnProperty(Oa);return n?e[Oa]:null}var Pl=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function jt(){return Eg}function Eg(e){return e.type.prototype.ngOnChanges&&(e.setInput=eb),Jw}jt.ngInherit=!0;function Jw(){let e=bg(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===Ei)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function eb(e,t,n,r){let i=this.declaredInputs[n],o=bg(e)||tb(e,{previous:Ei,current:null}),s=o.current||(o.current={}),a=o.previous,c=a[i];s[i]=new Pl(c&&c.currentValue,t,a===Ei),e[r]=t}var wg="__ngSimpleChanges__";function bg(e){return e[wg]||null}function tb(e,t){return e[wg]=t}var Cm=null;var sn=function(e,t,n){Cm!=null&&Cm(e,t,n)},Cg="svg",nb="math";function Kt(e){for(;Array.isArray(e);)e=e[vt];return e}function rb(e){for(;Array.isArray(e);){if(typeof e[Sd]=="object")return e;e=e[vt]}return null}function Ig(e,t){return Kt(t[e])}function Tt(e,t){return Kt(t[e.index])}function Sg(e,t){return e.data[t]}function oc(e,t){return e[t]}function er(e,t){let n=t[e];return un(n)?n:n[vt]}function ib(e){return(e[Z]&4)===4}function Td(e){return(e[Z]&128)===128}function ob(e){return kt(e[He])}function Ii(e,t){return t==null?null:e[t]}function Mg(e){e[vi]=0}function sb(e){e[Z]&1024||(e[Z]|=1024,Td(e)&&sc(e))}function ab(e,t){for(;e>0;)t=t[Ai],e--;return t}function Tg(e){e[Z]&9216&&sc(e)}function sc(e){let t=e[He];for(;t!==null&&!(kt(t)&&t[Nl]||un(t)&&t[Z]&8192);){if(kt(t))t[Nl]=!0;else if(t[Z]|=8192,!Td(t))break;t=t[He]}}function cb(e,t){if((e[Z]&256)===256)throw new w(911,!1);e[Do]===null&&(e[Do]=[]),e[Do].push(t)}var Y={lFrame:Fg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ub(){return Y.lFrame.elementDepthCount}function lb(){Y.lFrame.elementDepthCount++}function db(){Y.lFrame.elementDepthCount--}function Ag(){return Y.bindingsEnabled}function Oi(){return Y.skipHydrationRootTNode!==null}function fb(e){return Y.skipHydrationRootTNode===e}function hb(e){Y.skipHydrationRootTNode=e}function pb(){Y.skipHydrationRootTNode=null}function ie(){return Y.lFrame.lView}function qe(){return Y.lFrame.tView}function dn(e){return Y.lFrame.contextLView=e,e[Zt]}function fn(e){return Y.lFrame.contextLView=null,e}function yt(){let e=Og();for(;e!==null&&e.type===64;)e=e.parent;return e}function Og(){return Y.lFrame.currentTNode}function mb(){let e=Y.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function jr(e,t){let n=Y.lFrame;n.currentTNode=e,n.isParent=t}function Ad(){return Y.lFrame.isParent}function Od(){Y.lFrame.isParent=!1}function gb(){return Y.lFrame.contextLView}function Po(){let e=Y.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vb(e){return Y.lFrame.bindingIndex=e}function Ro(){return Y.lFrame.bindingIndex++}function yb(e){let t=Y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Db(){return Y.lFrame.inI18n}function _b(e,t){let n=Y.lFrame;n.bindingIndex=n.bindingRootIndex=e,Rl(t)}function Eb(){return Y.lFrame.currentDirectiveIndex}function Rl(e){Y.lFrame.currentDirectiveIndex=e}function xg(e){let t=Y.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ng(){return Y.lFrame.currentQueryIndex}function xd(e){Y.lFrame.currentQueryIndex=e}function wb(e){let t=e[q];return t.type===2?t.declTNode:t.type===1?e[Mt]:null}function Pg(e,t,n){if(n&J.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&J.Host);)if(i=wb(o),i===null||(o=o[Ai],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=Y.lFrame=Rg();return r.currentTNode=t,r.lView=e,!0}function Nd(e){let t=Rg(),n=e[q];Y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Rg(){let e=Y.lFrame,t=e===null?null:e.child;return t===null?Fg(e):t}function Fg(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function kg(){let e=Y.lFrame;return Y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Lg=kg;function Pd(){let e=kg();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bb(e){return(Y.lFrame.contextLView=ab(e,Y.lFrame.contextLView))[Zt]}function xi(){return Y.lFrame.selectedIndex}function xr(e){Y.lFrame.selectedIndex=e}function ac(){let e=Y.lFrame;return Sg(e.tView,e.selectedIndex)}function Fo(){Y.lFrame.currentNamespace=Cg}function jg(){Cb()}function Cb(){Y.lFrame.currentNamespace=null}function Vg(){return Y.lFrame.currentNamespace}var Ug=!0;function cc(){return Ug}function tr(e){Ug=e}function Ib(e,t,n){var s,a,c,u,l;let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let d=Eg(t);((s=n.preOrderHooks)!=null?s:n.preOrderHooks=[]).push(e,d),((a=n.preOrderCheckHooks)!=null?a:n.preOrderCheckHooks=[]).push(e,d)}i&&((c=n.preOrderHooks)!=null?c:n.preOrderHooks=[]).push(0-e,i),o&&(((u=n.preOrderHooks)!=null?u:n.preOrderHooks=[]).push(e,o),((l=n.preOrderCheckHooks)!=null?l:n.preOrderCheckHooks=[]).push(e,o))}function uc(e,t){var n,r,i,o,s,a,c;for(let u=t.directiveStart,l=t.directiveEnd;u=r)break}else t[c]<0&&(e[vi]+=65536),(a>14>16&&(e[Z]&3)===t&&(e[Z]+=16384,Im(a,o)):Im(a,o)}var _i=-1,Nr=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Mb(e){return e instanceof Nr}function Tb(e){return(e.flags&8)!==0}function Ab(e){return(e.flags&16)!==0}function $g(e){return e!==_i}function Pa(e){let t=e&32767;return e&32767}function Ob(e){return e>>16}function Ra(e,t){let n=Ob(e),r=t;for(;n>0;)r=r[Ai],n--;return r}var Fl=!0;function Fa(e){let t=Fl;return Fl=e,t}var xb=256,Hg=xb-1,zg=5,Nb=0,an={};function Pb(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vo)&&(r=n[vo]),r==null&&(r=n[vo]=Nb++);let i=r&Hg,o=1<>zg)]|=o}function ka(e,t){let n=Gg(e,t);if(n!==-1)return n;let r=t[q];r.firstCreatePass&&(e.injectorIndex=t.length,hl(r.data,e),hl(t,null),hl(r.blueprint,null));let i=Rd(e,t),o=e.injectorIndex;if($g(i)){let s=Pa(i),a=Ra(i,t),c=a[q].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function hl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Gg(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Rd(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Kg(i),r===null)return _i;if(n++,i=i[Ai],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _i}function kl(e,t,n){Pb(e,t,n)}function Wg(e,t,n){if(n&J.Optional||e!==void 0)return e;Cd(t,"NodeInjector")}function qg(e,t,n,r){if(n&J.Optional&&r===void 0&&(r=null),!(n&(J.Self|J.Host))){let i=e[wi],o=Ft(void 0);try{return i?i.get(t,r,n&J.Optional):sg(t,r,n&J.Optional)}finally{Ft(o)}}return Wg(r,t,n)}function Yg(e,t,n,r=J.Default,i){if(e!==null){if(t[Z]&2048&&!(r&J.Self)){let s=Lb(e,t,n,r,an);if(s!==an)return s}let o=Zg(e,t,n,r,an);if(o!==an)return o}return qg(t,n,r,i)}function Zg(e,t,n,r,i){let o=Fb(n);if(typeof o=="function"){if(!Pg(t,e,r))return r&J.Host?Wg(i,n,r):qg(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&J.Optional))Cd(n);else return s}finally{Lg()}}else if(typeof o=="number"){let s=null,a=Gg(e,t),c=_i,u=r&J.Host?t[St][Mt]:null;for((a===-1||r&J.SkipSelf)&&(c=a===-1?Rd(e,t):t[a+8],c===_i||!Mm(r,!1)?a=-1:(s=t[q],a=Pa(c),t=Ra(c,t)));a!==-1;){let l=t[q];if(Sm(o,a,l.data)){let d=Rb(a,t,n,s,r,u);if(d!==an)return d}c=t[a+8],c!==_i&&Mm(r,t[q].data[a+8]===u)&&Sm(o,a,t)?(s=l,a=Pa(c),t=Ra(c,t)):a=-1}}return i}function Rb(e,t,n,r,i,o){let s=t[q],a=s.data[e+8],c=r==null?No(a)&&Fl:r!=s&&(a.type&3)!==0,u=i&J.Host&&o===a,l=Sa(a,s,n,c,u);return l!==null?Pr(t,s,l,a):an}function Sa(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,u=e.directiveEnd,l=o>>20,d=r?a:a+l,f=i?a+l:u;for(let p=d;p=c&&m.type===n)return p}if(i){let p=s[c];if(p&&Nn(p)&&p.type===n)return c}return null}function Pr(e,t,n,r){let i=e[n],o=t.data;if(Mb(i)){let s=i;s.resolving&&bw(ww(o[n]));let a=Fa(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Ft(s.injectImpl):null,l=Pg(e,r,J.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Ib(n,o[n],t)}finally{u!==null&&Ft(u),Fa(a),s.resolving=!1,Lg()}}return i}function Fb(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vo)?e[vo]:void 0;return typeof t=="number"?t>=0?t&Hg:kb:t}function Sm(e,t,n){let r=1<>zg)]&r)}function Mm(e,t){return!(e&J.Self)&&!(e&J.Host&&t)}var Mr=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Yg(this._tNode,this._lView,t,nc(r),n)}};function kb(){return new Mr(yt(),ie())}function Ce(e){return Oo(()=>{let t=e.prototype.constructor,n=t[Oa]||Ll(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Oa]||Ll(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ll(e){return eg(e)?()=>{let t=Ll(ut(e));return t&&t()}:Or(e)}function Lb(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[Z]&2048&&!(s[Z]&512);){let a=Zg(o,s,n,r|J.Self,an);if(a!==an)return a;let c=o.parent;if(!c){let u=s[yg];if(u){let l=u.get(n,an,r);if(l!==an)return l}c=Kg(s),s=s[Ai]}o=c}return i}function Kg(e){let t=e[q],n=t.type;return n===2?t.declTNode:n===1?e[Mt]:null}var ga="__parameters__";function jb(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function Fd(e,t,n){return Oo(()=>{let r=jb(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(ga)?c[ga]:Object.defineProperty(c,ga,{value:[]})[ga];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Vb(e){return typeof e=="function"}function Ub(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?kd(n,t):t(n))}function Qg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function La(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Xg(e,t){let n=[];for(let r=0;rt;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Hb(e,t,n){let r=ko(e,t);return r>=0?e[r|1]=n:(r=~r,$b(e,r,t,n)),r}function pl(e,t){let n=ko(e,t);if(n>=0)return e[n|1]}function ko(e,t){return zb(e,t,1)}function zb(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<{n.push(s)};return kd(t,s=>{let a=s;jl(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&nv(i,o),n}function nv(e,t){for(let n=0;n{t(o,r)})}}function jl(e,t,n,r){if(e=ut(e),!e)return!1;let i=null,o=gm(e),s=!o&&Tr(e);if(!o&&!s){let c=e.ngModule;if(o=gm(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)jl(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{kd(o.imports,l=>{jl(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}u!==void 0&&nv(u,t)}if(!a){let u=Or(i)||(()=>new i);t({provide:i,useFactory:u,deps:It},i),t({provide:ev,useValue:i,multi:!0},i),t({provide:Ni,useValue:()=>C(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;Ld(c,l=>{t(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function Ld(e,t){for(let n of e)tg(n)&&(n=n.\u0275providers),Array.isArray(n)?Ld(n,t):t(n)}var Wb=be({provide:String,useValue:be});function rv(e){return e!==null&&typeof e=="object"&&Wb in e}function qb(e){return!!(e&&e.useExisting)}function Yb(e){return!!(e&&e.useFactory)}function Si(e){return typeof e=="function"}function Zb(e){return!!e.useClass}var lc=new _("Set Injector scope."),Ma={},Kb={},ml;function jd(){return ml===void 0&&(ml=new ja),ml}var Lt=class{},Va=class extends Lt{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ul(t,s=>this.processProvider(s)),this.records.set(Pi,yi(void 0,this)),i.has("environment")&&this.records.set(Lt,yi(void 0,this));let o=this.records.get(lc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ev,It,J.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=gi(this),r=Ft(void 0),i;try{return t()}finally{gi(n),Ft(r)}}get(t,n=_o,r=J.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(pm))return t[pm](this);r=nc(r);let i,o=gi(this),s=Ft(void 0);try{if(!(r&J.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=tC(t)&&tc(t);u&&this.injectableDefInScope(u)?c=yi(Vl(t),Ma):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&J.Self?jd():this.parent;return n=r&J.Optional&&n===_o?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[xa]=a[xa]||[]).unshift(ot(t)),o)throw a;return Fw(a,t,"R3InjectorError",this.source)}else throw a}finally{Ft(s),gi(o)}}resolveInjectorInitializers(){let t=gi(this),n=Ft(void 0),r;try{let i=this.get(Ni,It,J.Self);for(let o of i)o()}finally{gi(t),Ft(n)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ot(r));return"R3Injector[".concat(t.join(", "),"]")}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){t=ut(t);let n=Si(t)?t:ut(t&&t.provide),r=Xb(t);if(!Si(t)&&t.multi===!0){let i=this.records.get(n);i||(i=yi(void 0,Ma,!0),i.factory=()=>Ol(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}else{let i=this.records.get(n)}this.records.set(n,r)}hydrate(t,n){return n.value===Ma&&(n.value=Kb,n.value=n.factory()),typeof n.value=="object"&&n.value&&eC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ut(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Vl(e){let t=tc(e),n=t!==null?t.factory:Or(e);if(n!==null)return n;if(e instanceof _)throw new w(204,!1);if(e instanceof Function)return Qb(e);throw new w(204,!1)}function Qb(e){let t=e.length;if(t>0){let r=Xg(t,"?");throw new w(204,!1)}let n=Sw(e);return n!==null?()=>n.factory(e):()=>new e}function Xb(e){if(rv(e))return yi(void 0,e.useValue);{let t=iv(e);return yi(t,Ma)}}function iv(e,t,n){let r;if(Si(e)){let i=ut(e);return Or(i)||Vl(i)}else if(rv(e))r=()=>ut(e.useValue);else if(Yb(e))r=()=>e.useFactory(...Ol(e.deps||[]));else if(qb(e))r=()=>C(ut(e.useExisting));else{let i=ut(e&&(e.useClass||e.provide));if(Jb(e))r=()=>new i(...Ol(e.deps));else return Or(i)||Vl(i)}return r}function yi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Jb(e){return!!e.deps}function eC(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function tC(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function Ul(e,t){for(let n of e)Array.isArray(n)?Ul(n,t):n&&tg(n)?Ul(n.\u0275providers,t):t(n)}function Tm(e,t=null,n=null,r){let i=ov(e,t,n,r);return i.resolveInjectorInitializers(),i}function ov(e,t=null,n=null,r,i=new Set){let o=[n||It,Gb(e)];return r=r||(typeof e=="object"?void 0:ot(e)),new Va(o,t||jd(),r||null,i)}var st=(()=>{let t=class t{static create(r,i){var o;if(Array.isArray(r))return Tm({name:""},i,r,"");{let s=(o=r.name)!=null?o:"";return Tm({name:s},r.parent,r.providers,s)}}};t.THROW_IF_NOT_FOUND=_o,t.NULL=new ja,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>C(Pi)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Bl;function sv(e){Bl=e}function Lo(){if(Bl!==void 0)return Bl;if(typeof document<"u")return document;throw new w(210,!1)}var dc=new _("AppId",{providedIn:"root",factory:()=>nC}),nC="ng",Vd=new _("Platform Initializer"),At=new _("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var a2=new _("AnimationModuleType"),Ud=new _("CSP nonce",{providedIn:"root",factory:()=>{var e,t;return((t=(e=Lo().body)==null?void 0:e.querySelector("[ngCspNonce]"))==null?void 0:t.getAttribute("ngCspNonce"))||null}});function c2(e){return e.ownerDocument.defaultView}function u2(e){return e.ownerDocument}function rC(e){return e.ownerDocument.body}function av(e){return e instanceof Function?e():e}function va(e){return(e!=null?e:g(st)).get(At)==="browser"}var iC="ngSkipHydration",oC="ngskiphydration";function cv(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;n|^->||--!>|)/g,uC="\u200B$1\u200B";function lC(e){return e.replace(aC,t=>t.replace(cC,uC))}var lv=new Map,dC=0;function fC(){return dC++}function hC(e){lv.set(e[rc],e)}function pC(e){lv.delete(e[rc])}var Am="__ngContext__";function Jn(e,t){un(t)?(e[Am]=t[rc],hC(t)):e[Am]=t}var mC;function Bd(e,t){return mC(e,t)}function $d(e){let t=e[He];return kt(t)?t[He]:t}function dv(e){return hv(e[bo])}function fv(e){return hv(e[Yt])}function hv(e){for(;e!==null&&!kt(e);)e=e[Yt];return e}function Di(e,t,n,r,i){if(r!=null){let o,s=!1;kt(r)?o=r:un(r)&&(s=!0,r=r[vt]);let a=Kt(r);e===0&&n!==null?i==null?Dv(t,n,a):Ba(t,n,a,i||null,!0):e===1&&n!==null?Ba(t,n,a,i||null,!0):e===2?wv(t,a,s):e===3&&t.destroyNode(a),o!=null&&xC(t,e,o,n,i)}}function pv(e,t){return e.createText(t)}function gC(e,t,n){e.setValue(t,n)}function mv(e,t){return e.createComment(lC(t))}function Hd(e,t,n){return e.createElement(t,n)}function vC(e,t){let n=t[Ae];jo(e,t,n,2,null,null),t[vt]=null,t[Mt]=null}function yC(e,t,n,r,i,o){r[vt]=i,r[Mt]=t,jo(e,r,n,1,i,o)}function DC(e,t){jo(e,t,t[Ae],2,null,null)}function _C(e){let t=e[bo];if(!t)return gl(e[q],e);for(;t;){let n=null;if(un(t))n=t[bo];else{let r=t[gt];r&&(n=r)}if(!n){for(;t&&!t[Yt]&&t!==e;)un(t)&&gl(t[q],t),t=t[He];t===null&&(t=e),un(t)&&gl(t[q],t),n=t&&t[Yt]}t=n}}function EC(e,t,n,r){let i=gt+r,o=n.length;r>0&&(n[i-1][Yt]=t),r0&&(e[n-1][Yt]=r[Yt]);let o=La(e,gt+t);vC(r[q],r);let s=o[cn];s!==null&&s.detachView(o[q]),r[He]=null,r[Yt]=null,r[Z]&=-129}return r}function vv(e,t){if(!(t[Z]&256)){let n=t[Ae];t[Ar]&&kp(t[Ar]),n.destroyNode&&jo(e,t,n,3,null,null),_C(t)}}function gl(e,t){if(!(t[Z]&256)){t[Z]&=-129,t[Z]|=256,CC(e,t),bC(e,t),t[q].type===1&&t[Ae].destroy();let n=t[xo];if(n!==null&&kt(t[He])){n!==t[He]&&gv(n,t);let r=t[cn];r!==null&&r.detachView(e)}pC(t)}}function bC(e,t){let n=e.cleanup,r=t[wo];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[wo]=null);let i=t[Do];if(i!==null){t[Do]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===ln.None||o===ln.Emulated)return null}return Tt(r,n)}}function Ba(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Dv(e,t,n){e.appendChild(t,n)}function Om(e,t,n,r,i){r!==null?Ba(e,t,n,r,i):Dv(e,t,n)}function SC(e,t,n,r){e.removeChild(t,n,r)}function zd(e,t){return e.parentNode(t)}function MC(e,t){return e.nextSibling(t)}function _v(e,t,n){return AC(e,t,n)}function TC(e,t,n){return e.type&40?Tt(e,n):null}var AC=TC,xm;function fc(e,t,n,r){let i=yv(e,r,t),o=t[Ae],s=r.parent||t[Mt],a=_v(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;ce,createScript:e=>e,createScriptURL:e=>e})}catch{}return ya}function hc(e){var t;return((t=RC())==null?void 0:t.createHTML(e))||e}var Da;function FC(){if(Da===void 0&&(Da=null,An.trustedTypes))try{Da=An.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Da}function Nm(e){var t;return((t=FC())==null?void 0:t.createHTML(e))||e}var Rn=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(ng,")")}},zl=class extends Rn{getTypeName(){return"HTML"}},Gl=class extends Rn{getTypeName(){return"Style"}},Wl=class extends Rn{getTypeName(){return"Script"}},ql=class extends Rn{getTypeName(){return"URL"}},Yl=class extends Rn{getTypeName(){return"ResourceURL"}};function hn(e){return e instanceof Rn?e.changingThisBreaksApplicationSecurity:e}function nr(e,t){let n=kC(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see ").concat(ng,")"))}return n===t}function kC(e){return e instanceof Rn&&e.getTypeName()||null}function Mv(e){return new zl(e)}function Tv(e){return new Gl(e)}function Av(e){return new Wl(e)}function Ov(e){return new ql(e)}function xv(e){return new Yl(e)}function LC(e){let t=new Kl(e);return jC()?new Zl(t):t}var Zl=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(hc(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},Kl=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=hc(t),n}};function jC(){try{return!!new window.DOMParser().parseFromString(hc(""),"text/html")}catch{return!1}}var VC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function pc(e){return e=String(e),e.match(VC)?e:"unsafe:"+e}function Bn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Vo(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Nv=Bn("area,br,col,hr,img,wbr"),Pv=Bn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rv=Bn("rp,rt"),UC=Vo(Rv,Pv),BC=Vo(Pv,Bn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$C=Vo(Rv,Bn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pm=Vo(Nv,BC,$C,UC),Fv=Bn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),HC=Bn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zC=Bn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),GC=Vo(Fv,HC,zC),WC=Bn("script,style,template"),Ql=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){n=n.firstChild;continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}}return this.buf.join("")}startElement(t){let n=t.nodeName.toLowerCase();if(!Pm.hasOwnProperty(n))return this.sanitizedSomething=!0,!WC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i"),!0}endElement(t){let n=t.nodeName.toLowerCase();Pm.hasOwnProperty(n)&&!Nv.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Rm(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return n}},qC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,YC=/([^\#-~ |!])/g;function Rm(e){return e.replace(/&/g,"&").replace(qC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(YC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var _a;function Wd(e,t){let n=null;try{_a=_a||LC(e);let r=t?String(t):"";n=_a.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=_a.getInertBodyElement(r)}while(r!==o);let a=new Ql().sanitizeChildren(Fm(n)||n);return hc(a)}finally{if(n){let r=Fm(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Fm(e){return"content"in e&&ZC(e)?e.content:null}function ZC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var lt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(lt||{});function Ri(e){let t=Lv();return t?Nm(t.sanitize(lt.HTML,e)||""):nr(e,"HTML")?Nm(hn(e)):Wd(Lo(),Ao(e))}function kv(e){let t=Lv();return t?t.sanitize(lt.URL,e)||"":nr(e,"URL")?hn(e):pc(Ao(e))}function Lv(){let e=ie();return e&&e[bi].sanitizer}function KC(){let e=new Ur;return g(At)==="browser"&&(e.store=QC(Lo(),g(dc))),e}var Ur=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,i){return this.store[r]!==void 0?this.store[r]:i}set(r,i){this.store[r]=i}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,i){this.onSerializeCallbacks[r]=i}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function oI(e,t,n=!1){var u;let r=e.getAttribute(vl);if(r==null)return null;let[i,o]=r.split("|");if(r=n?o:i,!r)return null;let s=n?i:o?"|".concat(o):"",a={};if(r!==""){let l=t.get(Ur,null,{optional:!0});l!==null&&(a=l.get(Bv,[])[Number(r)])}let c={data:a,firstChild:(u=e.firstChild)!=null?u:null};return n&&(c.firstChild=e,mc(c,0,e.nextSibling)),s?e.setAttribute(vl,s):e.removeAttribute(vl),c}function sI(){$v=oI}function Yd(e,t,n=!1){return $v(e,t,n)}function aI(e){let t=e._lView;return t[q].type===2?null:(_g(t)&&(t=t[We]),t)}function cI(e){var t;return(t=e.textContent)==null?void 0:t.replace(/\s/gm,"")}function uI(e){let t=Lo(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=cI(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,i=[];for(;r=n.nextNode();)i.push(r);for(let o of i)o.textContent==="ngetn"?o.replaceWith(t.createTextNode("")):o.remove()}function mc(e,t,n){var r;(r=e.segmentHeads)!=null||(e.segmentHeads={}),e.segmentHeads[t]=n}function Jl(e,t){var n,r;return(r=(n=e.segmentHeads)==null?void 0:n[t])!=null?r:null}function lI(e,t){var i,o,s;let n=e.data,r=(o=(i=n[XC])==null?void 0:i[t])!=null?o:null;return r===null&&((s=n[qd])!=null&&s[t])&&(r=Zd(e,t)),r}function Hv(e,t){var n,r;return(r=(n=e.data[qd])==null?void 0:n[t])!=null?r:null}function Zd(e,t){var i,o;let n=(i=Hv(e,t))!=null?i:[],r=0;for(let s of n)r+=s[$a]*((o=s[Uv])!=null?o:1);return r}function gc(e,t){var n;if(typeof e.disconnectedNodes>"u"){let r=e.data[nI];e.disconnectedNodes=r?new Set(r):null}return!!((n=e.disconnectedNodes)!=null&&n.has(t))}var ed=class{},Ha=class{};function dI(e){let t=Error("No component factory found for ".concat(ot(e),"."));return t[fI]=e,t}var fI="ngComponent";var td=class{resolveComponentFactory(t){throw dI(t)}},pn=(()=>{let t=class t{};t.NULL=new td;let e=t;return e})();function hI(){return Fi(yt(),ie())}function Fi(e,t){return new B(Tt(e,t))}var B=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=hI;let e=t;return e})();function pI(e){return e instanceof B?e.nativeElement:e}var Rr=class{},$n=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>mI();let e=t;return e})();function mI(){let e=ie(),t=yt(),n=er(t.index,e);return(un(n)?n:e)[Ae]}var gI=(()=>{let t=class t{};t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Fr=class{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}},vI=new Fr("17.0.2"),yl={};function Kd(e){let t=ct(null);try{return e()}finally{ct(t)}}function zv(e){return DI(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function yI(e,t){if(Array.isArray(e))for(let n=0;nt,rd=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||_I}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new id(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new za),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new za),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},id=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},od=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},za=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new od,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function km(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||Lm()),deps:[[t,new Un,new Vn]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new w(901,!1)}};t.\u0275prov=b({token:t,providedIn:"root",factory:Lm});let e=t;return e})();function Ga(e,t,n,r,i=!1){for(;n!==null;){let o=t[n.index];o!==null&&r.push(Kt(o)),kt(o)&&EI(o,r);let s=n.type;if(s&8)Ga(e,t,n.child,r);else if(s&32){let a=Bd(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Ev(t,n);if(Array.isArray(a))r.push(...a);else{let c=$d(t[St]);Ga(c[q],c,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function EI(e,t){for(let n=gt;n{sc(e.lView)},consumerOnSignalRead(){this.lView[Ar]=this}}),SI="ngOriginalError";function Dl(e){return e[SI]}var Fn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Dl(t);for(;n&&Dl(n);)n=Dl(n);return n||null}},Ea=new _(""),Wv=!1,qv=new _("",{providedIn:"root",factory:()=>Wv});var Br={};function K(e){Yv(qe(),ie(),xi()+e,!1)}function Yv(e,t,n,r){if(!r)if((t[Z]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Ca(t,o,n)}else{let o=e.preOrderHooks;o!==null&&Ia(t,o,0,n)}xr(n)}function v(e,t=J.Default){let n=ie();if(n===null)return C(e,t);let r=yt();return Yg(r,n,ut(e),t)}function Xd(){let e="invalid";throw new Error(e)}function MI(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;rWe&&Yv(e,t,We,!1),sn(s?2:0,i),n(r,i)}finally{xr(o),sn(s?3:1,i)}}function Jd(e,t,n){if(Md(t)){let r=ct(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function NI(e){uv(e)?bv(e):uI(e)}function PI(){Xv=NI}function RI(e,t,n,r){let i=iy(t);i.push(n),e.firstCreatePass&&oy(e).push(r,i.length-1)}function FI(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Oi()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function jm(e,t,n,r){for(let i in e)if(e.hasOwnProperty(i)){n=n===null?{}:n;let o=e[i];r===null?Vm(n,t,i,o):r.hasOwnProperty(i)&&Vm(n,t,r[i],o)}return n}function Vm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function kI(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function BI(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;No(n)&&YI(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||ka(n,t),Jn(r,t);let s=n.initialInputs;for(let a=i;a-1&&($l(t,r),La(n,r))}this._attachedToViewContainer=!1}vv(this._lView[q],this._lView)}onDestroy(t){cb(this._lView,t)}markForCheck(){af(this._cdRefInjectingView||this._lView)}detach(){this._lView[Z]&=-129}reattach(){Tg(this._lView),this._lView[Z]|=128}detectChanges(){nS(this._lView[q],this._lView,this.context,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,DC(this._lView[q],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}},et=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=aS;let e=t;return e})();function aS(e){return cS(yt(),ie(),(e&16)===16)}function cS(e,t,n){if(No(e)&&!n){let r=er(e.index,t);return new kr(r,r)}else if(e.type&47){let r=t[St];return new kr(r,t)}return null}var Um=new Set;function Uo(e){var t;Um.has(e)||(Um.add(e),(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_use_counter",{detail:{feature:e}}))}var cd=class extends ye{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var c,u,l;let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let d=t;i=(c=d.next)==null?void 0:c.bind(d),o=(u=d.error)==null?void 0:u.bind(d),s=(l=d.complete)==null?void 0:l.bind(d)}this.__isAsync&&(o=_l(o),i&&(i=_l(i)),s&&(s=_l(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof Ge&&t.add(a),a}};function _l(e){return t=>{setTimeout(e,void 0,t)}}var $e=cd;function Bm(...e){}function uS(){let e=typeof An.requestAnimationFrame=="function",t=An[e?"requestAnimationFrame":"setTimeout"],n=An[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var te=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=uS().nativeRequestAnimationFrame,fS(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,lS,Bm,Bm);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},lS={};function cf(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function dS(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(An,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ud(e),e.isCheckStableRunning=!0,cf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ud(e))}function fS(e){let t=()=>{dS(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(hS(a))return n.invokeTask(i,o,s,a);try{return $m(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Hm(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return $m(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Hm(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,ud(e),cf(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function ud(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function $m(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hm(e){e._nesting--,cf(e)}var fy=new _("",{providedIn:"root",factory:hy});function hy(){let e=g(te),t=!0,n=new M(i=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{i.next(t),i.complete()})}),r=new M(i=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,i.next(!0))})})});let s=e.onUnstable.subscribe(()=>{te.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}});return Ee(n,r.pipe(tt()))}function hS(e){var t;return!Array.isArray(e)||e.length!==1?!1:((t=e[0].data)==null?void 0:t.__ignore_ng_zone__)===!0}var pS=(()=>{let t=class t{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){var r;(r=this.handler)==null||r.validateBegin(),this.renderDepth++}end(){var r;if(this.renderDepth--,this.renderDepth===0){for(let i of this.internalCallbacks)i();this.internalCallbacks.length=0,(r=this.handler)==null||r.execute()}}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=b({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function mS(e,t){let n=er(t,e),r=n[q];gS(r,n);let i=n[vt];i!==null&&n[On]===null&&(n[On]=Yd(i,n[wi])),uf(r,n,n[Zt])}function gS(e,t){for(let n=t.length;n0&&Iv(e,n,o.join(" "))}}function CS(e,t,n){let r=e.projection=[];for(let i=0;i=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Eo(i.hostAttrs,n=Eo(n,i.hostAttrs))}}function wa(e){return e===Ei?{}:e===It?[]:e}function TS(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function AS(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function OS(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function lf(e,t,n){return e[t]=n}function kn(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function fd(e,t,n,r){let i=kn(e,t,n);return kn(e,t+1,r)||i}function xS(e,t,n,r,i,o){let s=fd(e,t,n,r);return fd(e,t+2,i,o)||s}function Ke(e,t,n,r){let i=ie(),o=Ro();if(kn(i,o,t)){let s=qe(),a=ac();ZI(a,i,e,t,n,r)}return Ke}function NS(e,t,n,r){return kn(e,Ro(),n)?t+Ao(n)+r:Br}function ba(e,t){return e<<17|t<<2}function Lr(e){return e>>17&32767}function PS(e){return(e&2)==2}function RS(e,t){return e&131071|t<<17}function hd(e){return e|2}function Mi(e){return(e&131068)>>2}function El(e,t){return e&-131069|t<<2}function FS(e){return(e&1)===1}function pd(e){return e|1}function kS(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Lr(s),c=Mi(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ko(d,l)>0)&&(u=!0)}else l=n;if(i)if(c!==0){let f=Lr(e[a+1]);e[r+1]=ba(f,a),f!==0&&(e[f+1]=El(e[f+1],r)),e[a+1]=RS(e[a+1],r)}else e[r+1]=ba(a,0),a!==0&&(e[a+1]=El(e[a+1],r)),a=r;else e[r+1]=ba(c,0),a===0?a=r:e[c+1]=El(e[c+1],r),c=r;u&&(e[r+1]=hd(e[r+1])),Gm(e,l,r,!0,o),Gm(e,l,r,!1,o),LS(t,l,e,r,o),s=ba(a,c),o?t.classBindings=s:t.styleBindings=s}function LS(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&ko(o,t)>=0&&(n[r+1]=pd(n[r+1]))}function Gm(e,t,n,r,i){let o=e[n+1],s=t===null,a=r?Lr(o):Mi(o),c=!1;for(;a!==0&&(c===!1||s);){let u=e[a],l=e[a+1];jS(u,t)&&(c=!0,e[a+1]=r?pd(l):hd(l)),a=r?Lr(l):Mi(l)}c&&(e[n+1]=r?hd(o):pd(o))}function jS(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ko(e,t)>=0:!1}function R(e,t,n){let r=ie(),i=Ro();if(kn(r,i,t)){let o=qe(),s=ac();rf(o,s,r,e,t,r[Ae],n,!1)}return R}function Wm(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";sf(e,n,o[s],s,r)}function Li(e,t,n){return py(e,t,n,!1),Li}function Ue(e,t){return py(e,t,null,!0),Ue}function py(e,t,n,r){let i=ie(),o=qe(),s=yb(2);if(o.firstUpdatePass&&US(o,e,s,r),t!==Br&&kn(i,s,t)){let a=o.data[xi()];GS(o,a,i,i[Ae],e,i[s+1]=WS(t,n),r,s)}}function VS(e,t){return t>=e.expandoStartIndex}function US(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[xi()],s=VS(e,n);qS(o,r)&&t===null&&!s&&(t=!1),t=BS(i,o,t,r),kS(i,o,t,n,s,r)}}function BS(e,t,n,r){let i=xg(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=wl(null,e,t,n,r),n=So(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=wl(i,e,t,n,r),o===null){let c=$S(e,t,r);c!==void 0&&Array.isArray(c)&&(c=wl(null,e,t,c[1],r),c=So(c,t.attrs,r),HS(e,t,r,c))}else o=zS(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function $S(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Mi(r)!==0)return e[Lr(r)]}function HS(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Lr(i)]=r}function zS(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let c=e[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[i+1];f===Br&&(f=d?It:void 0);let p=d?pl(f,r):l===r?f:void 0;if(u&&!Ya(p)&&(p=pl(c,r)),Ya(p)&&(a=p,s))return a;let m=e[i+1];i=s?Lr(m):Mi(m)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=pl(c,r))}return a}function Ya(e){return e!==void 0}function WS(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ot(hn(e)))),e}function qS(e,t){return(e.flags&(t?8:16))!==0}function my(e){var i;let t=(i=e[Co])!=null?i:[],r=e[He][Ae];for(let o of t)YS(o,r);e[Co]=It}function YS(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[$a];for(;n0&&(s.firstChild=e,e=_c(i[$a],e)),n.push(s)}return[e,n]}var vy=(e,t)=>null;function nM(e,t){let n=e[Co];return!t||n===null||n.length===0?null:n[0].data[eI]===t?n.shift():(my(e),null)}function rM(){vy=nM}function Ym(e,t){return vy(e,t)}function iM(e,t,n,r){var l,d;let i=t.tView,s=e[Z]&4096?4096:16,a=vc(e,i,n,s,null,t,null,null,null,(l=r==null?void 0:r.injector)!=null?l:null,(d=r==null?void 0:r.dehydratedView)!=null?d:null),c=e[t.index];a[xo]=c;let u=e[cn];return u!==null&&(a[cn]=u.createEmbeddedView(i)),uf(i,a,n),a}function Zm(e,t){return!t||Ua(e)}function oM(e,t,n,r=!0){let i=t[q];if(EC(i,t,e,n),r){let o=Hl(n,e),s=t[Ae],a=zd(s,e[xn]);a!==null&&yC(i,e[Mt],s,t,a,o)}}var dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=sM;let e=t;return e})();function sM(){let e=yt();return Dy(e,ie())}var aM=dt,yy=class extends aM{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Fi(this._hostTNode,this._hostLView)}get injector(){return new Mr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Rd(this._hostTNode,this._hostLView);if($g(t)){let n=Ra(t,this._hostLView),r=Pa(t),i=n[q].data[r+8];return new Mr(i,n)}else return new Mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Km(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-gt}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Ym(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Zm(this._hostTNode,s)),a}createComponent(t,n,r,i,o){var m,y,A;let s=t&&!Vb(t),a;if(s)a=n;else{let S=n||{};a=S.index,r=S.injector,i=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}let c=s?t:new Io(Tr(t)),u=r||this.parentInjector;if(!o&&c.ngModule==null){let H=(s?u:this.parentInjector).get(Lt,null);H&&(o=H)}let l=Tr((m=c.componentType)!=null?m:{}),d=Ym(this._lContainer,(y=l==null?void 0:l.id)!=null?y:null),f=(A=d==null?void 0:d.firstChild)!=null?A:null,p=c.create(u,i,f,o);return this.insertImpl(p.hostView,a,Zm(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(ob(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[He],u=new yy(c,c[Mt],c[He]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return oM(s,i,o,r),t.attachToViewContainerRef(),Qg(Cl(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Km(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=$l(this._lContainer,n);r&&(La(Cl(this._lContainer),n),vv(r[q],r))}detach(t){let n=this._adjustIndex(t,-1),r=$l(this._lContainer,n);return r&&La(Cl(this._lContainer),n)!=null?new kr(r):null}_adjustIndex(t,n=0){return t==null?this.length+n:t}};function Km(e){return e[Na]}function Cl(e){return e[Na]||(e[Na]=[])}function Dy(e,t){let n,r=t[e.index];return kt(r)?n=r:(n=ny(r,t,null,e),t[e.index]=n,yc(t,n)),_y(n,t,e,r),new yy(n,e,t)}function cM(e,t){let n=e[Ae],r=n.createComment(""),i=Tt(t,e),o=zd(n,i);return Ba(n,o,r,MC(n,i),!1),r}var _y=Ey,df=(e,t,n)=>!1;function uM(e,t,n){return df(e,t,n)}function Ey(e,t,n,r){if(e[xn])return;let i;n.type&8?i=Kt(r):i=cM(t,n),e[xn]=i}function lM(e,t,n){var l;if(e[xn]&&e[Co])return!0;let r=n[On],i=t.index-We;if(!r||sC(t)||gc(r,i))return!1;let s=Jl(r,i),a=(l=r.data[qd])==null?void 0:l[i],[c,u]=tM(s,a);return e[xn]=c,e[Co]=u,!0}function dM(e,t,n,r){df(e,n,t)||Ey(e,t,n,r)}function fM(){_y=dM,df=lM}function hM(e,t,n,r,i,o,s,a,c){let u=t.consts,l=ki(t,e,4,s||null,Ii(u,a));of(t,n,l,Ii(u,c)),uc(t,l);let d=l.tView=nf(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function me(e,t,n,r,i,o,s,a){let c=ie(),u=qe(),l=e+We,d=u.firstCreatePass?hM(l,u,c,t,n,r,i,o,s):u.data[l];jr(d,!1);let f=wy(u,c,d,e);cc()&&fc(u,c,f,d),Jn(f,c);let p=ny(f,c,f,d);return c[l]=p,yc(c,p),uM(p,d,c),ic(d)&&ef(u,c,d),s!=null&&tf(c,d,a),me}var wy=by;function by(e,t,n,r){return tr(!0),t[Ae].createComment("")}function pM(e,t,n,r){var l,d;let i=t[On],o=!i||Oi()||gc(i,r);if(tr(o),o)return by(e,t,n,r);let s=(d=(l=i.data[JC])==null?void 0:l[r])!=null?d:null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=Dc(i,e,t,n);mc(i,r,a);let c=Zd(i,r);return _c(c,a)}function mM(){wy=pM}function gM(e,t,n,r,i,o){let s=t.consts,a=Ii(s,i),c=ki(t,e,2,r,a);return of(t,n,c,Ii(s,o)),c.attrs!==null&&Wa(c,c.attrs,!1),c.mergedAttrs!==null&&Wa(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function ue(e,t,n,r){let i=ie(),o=qe(),s=We+e,a=i[Ae],c=o.firstCreatePass?gM(s,o,i,t,n,r):o.data[s],u=Cy(o,i,c,a,t,e);i[s]=u;let l=ic(c);return jr(c,!0),Sv(a,u,c),(c.flags&32)!==32&&cc()&&fc(o,i,u,c),ub()===0&&Jn(u,i),lb(),l&&(ef(o,i,c),Jd(o,c,i)),r!==null&&tf(i,c),ue}function ae(){let e=yt();Ad()?Od():(e=e.parent,jr(e,!1));let t=e;fb(t)&&pb(),db();let n=qe();return n.firstCreatePass&&(uc(n,e),Md(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Tb(t)&&Wm(n,t,ie(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Ab(t)&&Wm(n,t,ie(),t.stylesWithoutHost,!1),ae}function Ie(e,t,n,r){return ue(e,t,n,r),ae(),Ie}var Cy=(e,t,n,r,i,o)=>(tr(!0),Hd(r,i,Vg()));function vM(e,t,n,r,i,o){let s=t[On],a=!s||Oi()||gc(s,o);if(tr(a),a)return Hd(r,i,Vg());let c=Dc(s,e,t,n);return Hv(s,o)&&mc(s,o,c.nextSibling),s&&(cv(n)||uv(c))&&No(n)&&(hb(n),bv(c)),c}function yM(){Cy=vM}function DM(e,t,n,r,i){let o=t.consts,s=Ii(o,r),a=ki(t,e,8,"ng-container",s);s!==null&&Wa(a,s,!0);let c=Ii(o,i);return of(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function Qt(e,t,n){let r=ie(),i=qe(),o=e+We,s=i.firstCreatePass?DM(o,i,r,t,n):i.data[o];jr(s,!0);let a=Iy(i,r,s,e);return r[o]=a,cc()&&fc(i,r,a,s),Jn(a,r),ic(s)&&(ef(i,r,s),Jd(i,s,r)),n!=null&&tf(r,s),Qt}function Xt(){let e=yt(),t=qe();return Ad()?Od():(e=e.parent,jr(e,!1)),t.firstCreatePass&&(uc(t,e),Md(e)&&t.queries.elementEnd(e)),Xt}function Bo(e,t,n){return Qt(e,t,n),Xt(),Bo}var Iy=(e,t,n,r)=>(tr(!0),mv(t[Ae],""));function _M(e,t,n,r){let i,o=t[On],s=!o||Oi();if(tr(s),s)return mv(t[Ae],"");let a=Dc(o,e,t,n),c=lI(o,r);return mc(o,r,a),i=_c(c,a),i}function EM(){Iy=_M}function mn(){return ie()}function ff(e,t,n){let r=ie(),i=Ro();if(kn(r,i,t)){let o=qe(),s=ac();rf(o,s,r,e,t,r[Ae],n,!0)}return ff}function $o(e,t,n){let r=ie(),i=Ro();if(kn(r,i,t)){let o=qe(),s=ac(),a=xg(o.data),c=JI(a,s,r);rf(o,s,r,e,t,c,n,!0)}return $o}var Ka="en-US";var wM=Ka;function bM(e){Cw(e,"Expected localeId to be defined"),typeof e=="string"&&(wM=e.toLowerCase().replace(/_/g,"-"))}function rr(e){return!!e&&typeof e.then=="function"}function hf(e){return!!e&&typeof e.subscribe=="function"}function ze(e,t,n,r){let i=ie(),o=qe(),s=yt();return IM(o,i,i[Ae],s,e,t,r),ze}function CM(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function IM(e,t,n,r,i,o,s){let a=ic(r),u=e.firstCreatePass&&oy(e),l=t[Zt],d=iy(t),f=!0;if(r.type&3||s){let y=Tt(r,t),A=s?s(y):y,S=d.length,H=s?ge=>s(Kt(ge[r.index])):r.index,re=null;if(!s&&a&&(re=CM(e,t,i,r.index)),re!==null){let ge=re.__ngLastListenerFn__||re;ge.__ngNextListenerFn__=o,re.__ngLastListenerFn__=o,f=!1}else{o=Xm(r,t,l,o,!1);let ge=n.listen(A,i,o);d.push(o,ge),u&&u.push(i,H,S,S+1)}}else o=Xm(r,t,l,o,!1);let p=r.outputs,m;if(f&&p!==null&&(m=p[i])){let y=m.length;if(y)for(let A=0;A-1?er(e.index,t):t;af(a);let c=Qm(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=Qm(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function ce(e=1){return bb(e)}function SM(e,t){let n=null,r=Hw(e);for(let i=0;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Sy(e){let t=gb();return oc(t,We+e)}function vn(e,t=""){let n=ie(),r=qe(),i=e+We,o=r.firstCreatePass?ki(r,i,1,t,null):r.data[i],s=My(r,n,o,t,e);n[i]=s,cc()&&fc(r,n,s,o),jr(o,!1)}var My=(e,t,n,r,i)=>(tr(!0),pv(t[Ae],r));function TM(e,t,n,r,i){let o=t[On],s=!o||Oi()||gc(o,i);return tr(s),s?pv(t[Ae],r):Dc(o,e,t,n)}function AM(){My=TM}function OM(e){return Vt("",e,""),OM}function Vt(e,t,n){let r=ie(),i=NS(r,e,t,n);return i!==Br&&eS(r,xi(),i),Vt}function xM(e,t,n){let r=qe();if(r.firstCreatePass){let i=Nn(e);md(n,r.data,r.blueprint,i,!0),md(t,r.data,r.blueprint,i,!1)}}function md(e,t,n,r,i){if(e=ut(e),Array.isArray(e))for(let o=0;o>20;if(Si(e)||!e.multi){let p=new Nr(u,i,v),m=Sl(c,t,i?l:l+f,d);m===-1?(kl(ka(a,s),o,c),Il(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[m]=p,s[m]=p)}else{let p=Sl(c,t,l+f,d),m=Sl(c,t,l,l+f),y=p>=0&&n[p],A=m>=0&&n[m];if(i&&!A||!i&&!y){kl(ka(a,s),o,c);let S=RM(i?PM:NM,n.length,i,r,u);!i&&A&&(n[m].providerFactory=S),Il(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(S),s.push(S)}else{let S=Ty(n[i?m:p],u,!i&&r);Il(o,e,p>-1?p:m,S)}!i&&r&&A&&n[m].componentProviders++}}}function Il(e,t,n,r){let i=Si(t),o=Zb(t);if(i||o){let c=(o?ut(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Ty(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Sl(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>xM(r,i?i(e):e,t)}}var Ln=class{},Mo=class{};function Ay(e,t){return new Qa(e,t!=null?t:null,[])}var Qa=class extends Ln{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qa(this);let i=mg(t);this._bootstrapComponents=av(i.bootstrap),this._r3Injector=ov(t,n,[{provide:Ln,useValue:this},{provide:pn,useValue:this.componentFactoryResolver},...r],ot(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},vd=class extends Mo{constructor(t){super(),this.moduleType=t}create(t){return new Qa(this.moduleType,t,[])}};var Xa=class extends Ln{constructor(t){super(),this.componentFactoryResolver=new qa(this),this.instance=null;let n=new Va([...t.providers,{provide:Ln,useValue:this},{provide:pn,useValue:this.componentFactoryResolver}],t.parent||jd(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function pf(e,t,n=null){return new Xa({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var FM=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=tv(!1,r.type),o=i.length>0?pf([i],this._injector,"Standalone[".concat(r.type.name,"]")):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=b({token:t,providedIn:"environment",factory:()=>new t(C(Lt))});let e=t;return e})();function Oy(e){Uo("NgStandalone"),e.getStandaloneInjector=t=>t.get(FM).getOrCreateStandaloneInjector(e)}function d2(e,t,n,r){return xy(ie(),Po(),e,t,n,r)}function f2(e,t,n,r,i){return Ny(ie(),Po(),e,t,n,r,i)}function mf(e,t){let n=e[t];return n===Br?void 0:n}function xy(e,t,n,r,i,o){let s=t+n;return kn(e,s,i)?lf(e,s+1,o?r.call(o,i):r(i)):mf(e,s+1)}function Ny(e,t,n,r,i,o,s){let a=t+n;return fd(e,a,i,o)?lf(e,a+2,s?r.call(s,i,o):r(i,o)):mf(e,a+2)}function kM(e,t,n,r,i,o,s,a,c){let u=t+n;return xS(e,u,i,o,s,a)?lf(e,u+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):mf(e,u+4)}function Ut(e,t){var c;let n=qe(),r,i=e+We;n.firstCreatePass?(r=LM(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&((c=n.destroyHooks)!=null?c:n.destroyHooks=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=Or(r.type,!0)),s,a=Ft(v);try{let u=Fa(!1),l=o();return Fa(u),MM(n,ie(),i,l),l}finally{Ft(a)}}function LM(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Bt(e,t,n){let r=e+We,i=ie(),o=oc(i,r);return gf(i,r)?xy(i,Po(),t,o.transform,n,o):o.transform(n)}function h2(e,t,n,r){let i=e+We,o=ie(),s=oc(o,i);return gf(o,i)?Ny(o,Po(),t,s.transform,n,r,s):s.transform(n,r)}function p2(e,t,n,r,i,o){let s=e+We,a=ie(),c=oc(a,s);return gf(a,s)?kM(a,Po(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function gf(e,t){return e[q].data[t].pure}function jM(){return this._results[Symbol.iterator]()}var To=class e{get changes(){return this._changes||(this._changes=new $e)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=jM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Bb(t);(this._changesDetected=!Ub(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},Je=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=BM;let e=t;return e})(),VM=Je,UM=class extends VM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return((t=this._declarationTContainer.tView)==null?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=iM(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new kr(i)}};function BM(){return Ec(yt(),ie())}function Ec(e,t){return e.type&4?new UM(t,e,Fi(e,t)):null}var yd=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Dd=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let u=o[a+1],l=t[-c];for(let d=gt;d{let t=class t{constructor(){var r;this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=(r=g(Vy,{optional:!0}))!=null?r:[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(rr(s))r.push(s);else if(hf(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),wc=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function ZM(){return typeof $localize<"u"&&$localize.locale||Ka}var Ho=new _("LocaleId",{providedIn:"root",factory:()=>g(Ho,J.Optional|J.SkipSelf)||ZM()});var bc=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Re(!1)}add(){this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),bd=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Df=(()=>{let t=class t{compileModuleSync(r){return new vd(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=mg(r),s=av(o.declarations).reduce((a,c)=>{let u=Tr(c);return u&&a.push(new Io(u)),a},[]);return new bd(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var By=new _("");var Aa=null;var $y=new _("PlatformDestroyListeners"),ji=new _("appBootstrapListener");function KM(){Lp(()=>{throw new w(600,!1)})}function QM(e){return e.isBoundToModule}function XM(e=[]){if(Aa)return Aa;let t=eT(e);return Aa=t,KM(),JM(t),t}function JM(e){let t=e.get(Vd,null);t==null||t.forEach(n=>n())}function Hy(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=XM(r),o=[sT(),...n||[]],a=new Xa({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(te);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(Fn,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:p=>{u.handleError(p)}})});let d=()=>a.destroy(),f=i.get($y);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),nT(u,c,()=>{let p=a.get(Uy);return p.runInitializers(),p.donePromise.then(()=>{let m=a.get(Ho,Ka);bM(m||Ka);let y=a.get(ir);return t!==void 0&&y.bootstrap(t),y})})})}catch(t){return Promise.reject(t)}}function eT(e=[],t){return st.create({name:t,providers:[{provide:lc,useValue:"platform"},{provide:$y,useValue:new Set([()=>Aa=null])},...e]})}function tT(e){var t,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(t=e==null?void 0:e.eventCoalescing)!=null?t:!1,shouldCoalesceRunChangeDetection:(n=e==null?void 0:e.runCoalescing)!=null?n:!1}}function nT(e,t,n){try{let r=n();return rr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var ir=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(zy),this.zoneIsStable=g(fy),this.componentTypes=[],this.components=[],this.isStable=g(bc).hasPendingTasks.pipe(W(r=>r?I(!1):this.zoneIsStable),Te(),tt()),this._injector=g(Lt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Ha;if(!this._injector.get(Uy).done){let m="Cannot bootstrap as there are still asynchronous initializers running."+(!o&&pg(r)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new w(405,!1)}let a;o?a=r:a=this._injector.get(pn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=QM(a)?void 0:this._injector.get(Ln),u=i||a.selector,l=a.create(st.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(By,null);return f==null||f.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ml(this.components,l),f==null||f.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Ml(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(ji,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Ml(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new w(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ml(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var zy=new _("",{providedIn:"root",factory:()=>g(Fn).handleError.bind(void 0)});function rT(){let e=g(te),t=g(Fn);return n=>e.runOutsideAngular(()=>t.handleError(n))}var iT=(()=>{let t=class t{constructor(){this.zone=g(te),this.applicationRef=g(ir)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function oT(e){return[{provide:te,useFactory:e},{provide:Ni,multi:!0,useFactory:()=>{let t=g(iT,{optional:!0});return()=>t.initialize()}},{provide:zy,useFactory:rT},{provide:fy,useFactory:hy}]}function sT(e){let t=oT(()=>new te(tT(e)));return Vr([[],t])}var Xn;function _f(e){Xn!=null||(Xn=new WeakMap);let t=Xn.get(e);if(t)return t;let n=e.isStable.pipe(Wt(r=>r)).toPromise().then(()=>{});return Xn.set(e,n),e.onDestroy(()=>Xn==null?void 0:Xn.delete(e)),n}function Gy(){return!1}var Jm=!1;function aT(){Jm||(Jm=!0,sI(),yM(),AM(),EM(),mM(),fM(),rM(),PI())}function cT(e,t){return _f(e)}function Wy(){return Vr([{provide:Ea,useFactory:()=>{let e=!0;if(va()){let t=g(Ur,{optional:!0});e=!!(t!=null&&t.get(Bv,null))}return e&&Uo("NgHydration"),e}},{provide:Ni,useValue:()=>{va()&&g(Ea)&&(uT(),aT())},multi:!0},{provide:qv,useFactory:()=>va()&&g(Ea)},{provide:ji,useFactory:()=>{if(va()&&g(Ea)){let e=g(ir),t=g(st);return()=>{cT(e,t).then(()=>{te.assertInAngularZone(),ZS(e)})}}return()=>{}},multi:!0}])}function uT(){var n;let e=Lo(),t;for(let r of e.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&((n=r.textContent)==null?void 0:n.trim())===iI){t=r;break}if(!t)throw new w(-507,!1)}function zo(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Ef=null;function Hn(){return Ef}function Xy(e){Ef||(Ef=e)}var Cc=class{},oe=new _("DocumentToken"),Jy=(()=>{let t=class t{historyGo(r){throw new Error("Not implemented")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(fT))(),providedIn:"platform"});let e=t;return e})();var fT=(()=>{let t=class t extends Jy{constructor(){super(),this._doc=g(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Hn().getBaseHref(this._doc)}onPopState(r){let i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Hn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>new t)(),providedIn:"platform"});let e=t;return e})();function eD(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function qy(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function $r(e){return e&&e[0]!=="?"?"?"+e:e}var Sc=(()=>{let t=class t{historyGo(r){throw new Error("Not implemented")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(tD))(),providedIn:"root"});let e=t;return e})(),hT=new _("appBaseHref"),tD=(()=>{let t=class t extends Sc{constructor(r,i){var o,s,a;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=(a=(s=i!=null?i:this._platformLocation.getBaseHrefFromDOM())!=null?s:(o=g(oe).location)==null?void 0:o.origin)!=null?a:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return eD(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+$r(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?"".concat(i).concat(o):i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+$r(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+$r(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){var i,o;(o=(i=this._platformLocation).historyGo)==null||o.call(i,r)}};t.\u0275fac=function(i){return new(i||t)(C(Jy),C(hT,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Go=(()=>{let t=class t{constructor(r){this._subject=new $e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=gT(qy(Yy(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var r;(r=this._urlChangeSubscription)==null||r.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+$r(i))}normalize(r){return t.stripTrailingSlash(mT(this._basePath,Yy(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+$r(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+$r(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){var i,o;(o=(i=this._locationStrategy).historyGo)==null||o.call(i,r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var o;let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&((o=this._urlChangeSubscription)==null||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};t.normalizeQueryParams=$r,t.joinWithSlash=eD,t.stripTrailingSlash=qy,t.\u0275fac=function(i){return new(i||t)(C(Sc))},t.\u0275prov=b({token:t,factory:()=>pT(),providedIn:"root"});let e=t;return e})();function pT(){return new Go(C(Sc))}function mT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Yy(e){return e.replace(/\/index.html$/,"")}function gT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function nD(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var L2=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(r){return r.ngComponentOutletNgModule!==void 0||r.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(r){return r.ngComponentOutlet!==void 0||r.ngComponentOutletContent!==void 0||r.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(r)}ngOnChanges(r){var i;if(this._needToReCreateComponentInstance(r)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let o=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(r)&&((i=this._moduleRef)==null||i.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Ay(this.ngComponentOutletNgModule,Zy(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Zy(o)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:o,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let r of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(r,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){var r;(r=this._moduleRef)==null||r.destroy()}_applyInputStateDiff(r){for(let[i,o]of this._inputsUsed)o?(r.setInput(i,this.ngComponentOutletInputs[i]),this._inputsUsed.set(i,!1)):(r.setInput(i,void 0),this._inputsUsed.delete(i))}};t.\u0275fac=function(i){return new(i||t)(v(dt))},t.\u0275dir=L({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[jt]});let e=t;return e})();function Zy(e){return e.get(Ln).injector}var wf=class{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},j2=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(!1)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new wf(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),Ky(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);Ky(s,o)})}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(v(dt),v(Je),v(Qd))},t.\u0275dir=L({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Ky(e,t){e.context.$implicit=t.item}var ft=(()=>{let t=class t{constructor(r,i){this._viewContainer=r,this._context=new bf,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Qy("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Qy("ngIfElse",r),this._elseTemplateRef=r,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(v(dt),v(Je))},t.\u0275dir=L({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),bf=class{constructor(){this.$implicit=null,this.ngIf=null}};function Qy(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error("".concat(e," must be a TemplateRef, but received '").concat(ot(t),"'."))}function vT(e,t){return new w(2100,!1)}var Cf=class{createSubscription(t,n){return Kd(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Kd(()=>t.unsubscribe())}},If=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},yT=new If,DT=new Cf,yn=(()=>{let t=class t{constructor(r){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){return this._obj?r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue:(r&&this._subscribe(r),this._latestValue)}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(rr(r))return yT;if(hf(r))return DT;throw vT(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){r===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};t.\u0275fac=function(i){return new(i||t)(v(et,16))},t.\u0275pipe=Ti({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var ht=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({});let e=t;return e})(),Sf="browser",_T="server";function rD(e){return e===Sf}function Wo(e){return e===_T}var Ic=class{};var Tc=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split("\n").forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var lD=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(lD||{}),Mf=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new Tc,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}};var Ac=class e extends Mf{constructor(t={}){super(t),this.type=lD.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var wT=new _("");var iD="b",oD="h",sD="s",aD="st",cD="u",uD="rt",Mc=new _(""),bT=["GET","HEAD"];function CT(e,t){var d;let l=g(Mc),{isCacheActive:n}=l,r=xp(l,["isCacheActive"]),{transferCache:i,method:o}=e;if(!n||o==="POST"&&!r.includePostRequests&&!i||o!=="POST"&&!bT.includes(o)||i===!1||((d=r.filter)==null?void 0:d.call(r,e))===!1)return t(e);let s=g(Ur),a=ST(e),c=s.get(a,null),u=r.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(u=i.includeHeaders),c){let{[iD]:f,[uD]:p,[oD]:m,[sD]:y,[aD]:A,[cD]:S}=c,H=f;switch(p){case"arraybuffer":H=new TextEncoder().encode(f).buffer;break;case"blob":H=new Blob([f]);break}let re=new Tc(m);return I(new Ac({body:H,headers:re,status:y,statusText:A,url:S}))}return t(e).pipe(we(f=>{f instanceof Ac&&s.set(a,{[iD]:f.body,[oD]:IT(f.headers,u),[sD]:f.status,[aD]:f.statusText,[cD]:f.url||"",[uD]:e.responseType})}))}function IT(e,t){if(!t)return{};let n={};for(let r of t){let i=e.getAll(r);i!==null&&(n[r]=i)}return n}function ST(e){let{params:t,method:n,responseType:r,url:i}=e,o=t.keys().sort().map(c=>"".concat(c,"=").concat(t.getAll(c))).join("&"),s=n+"."+r+"."+i+"?"+o,a=MT(s);return a}function MT(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483647+1,t.toString()}function dD(e){return[{provide:Mc,useFactory:()=>(Uo("NgHttpTransferCache"),x({isCacheActive:!0},e))},{provide:wT,useValue:CT,multi:!0,deps:[Ur,Mc]},{provide:ji,multi:!0,useFactory:()=>{let t=g(ir),n=g(Mc);return()=>{_f(t).then(()=>{n.isCacheActive=!1})}}}]}var Of=class extends Cc{constructor(){super(...arguments),this.supportsDOMEvents=!0}},xf=class e extends Of{static makeCurrent(){Xy(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=TT();return n==null?null:AT(n)}resetBaseElement(){qo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return nD(document.cookie,t)}},qo=null;function TT(){return qo=qo||document.querySelector("base"),qo?qo.getAttribute("href"):null}var Oc;function AT(e){Oc=Oc||document.createElement("a"),Oc.setAttribute("href",e);let t=Oc.pathname;return t.charAt(0)==="/"?t:"/".concat(t)}var OT=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),Vi=new _("EventManagerPlugins"),mD=(()=>{let t=class t{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new w(5101,!1);return this._eventNameToPlugin.set(r,i),i}};t.\u0275fac=function(i){return new(i||t)(C(Vi),C(te))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),xc=class{constructor(t){this._doc=t}},Tf="ng-app-id",gD=(()=>{let t=class t{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Wo(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var o,s;let i=this.styleRef;(s=(o=i.get(r))==null?void 0:o.elements)==null||s.forEach(a=>a.remove()),i.delete(r)}collectServerRenderedStyles(){var i;let r=(i=this.doc.head)==null?void 0:i.querySelectorAll("style[".concat(Tf,'="').concat(this.appId,'"]'));if(r!=null&&r.length){let o=new Map;return r.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o==null?void 0:o.get(i);if((s==null?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(Tf),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Tf,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){var c;let o=this.getStyleElement(r,i),s=this.styleRef,a=(c=s.get(i))==null?void 0:c.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(C(oe),C(dc),C(Ud,8),C(At))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),Af={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Pf=/%COMP%/g,vD="%COMP%",xT="_nghost-".concat(vD),NT="_ngcontent-".concat(vD),PT=!0,RT=new _("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>PT});function FT(e){return NT.replace(Pf,e)}function kT(e){return xT.replace(Pf,e)}function yD(e,t){return t.map(n=>n.replace(Pf,e))}var fD=(()=>{let t=class t{constructor(r,i,o,s,a,c,u,l=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Wo(c),this.defaultRenderer=new Yo(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ln.ShadowDom&&(i=Me(x({},i),{encapsulation:ln.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Nc?o.applyToHost(r):o instanceof Zo&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case ln.Emulated:s=new Nc(u,l,i,this.appId,d,a,c,f);break;case ln.ShadowDom:return new Nf(u,l,r,i,a,c,this.nonce,f);default:s=new Zo(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(C(mD),C(gD),C(dc),C(RT),C(oe),C(At),C(te),C(Ud))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),Yo=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Af[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(hD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(hD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new w(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Af[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Af[r];i?t.removeAttributeNS(i,n):t.removeAttribute("".concat(r,":").concat(n))}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Pn.DashCase|Pn.Important)?t.style.setProperty(n,r,i&Pn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Pn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Hn().getGlobalEventTarget(this.doc,t),!t))throw new Error("Unsupported event target ".concat(t," for event ").concat(n));return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function hD(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Nf=class extends Yo{constructor(t,n,r,i,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=yD(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Zo=class extends Yo{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?yD(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Nc=class extends Zo{constructor(t,n,r,i,o,s,a,c){let u=i+"-"+r.id;super(t,n,r,o,s,a,c,u),this.contentAttr=FT(u),this.hostAttr=kT(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},LT=(()=>{let t=class t extends xc{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),pD=["alt","control","meta","shift"],jT={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},VT={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},UT=(()=>{let t=class t extends xc{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Hn().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),pD.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(r,i){let o=jT[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),pD.forEach(a=>{if(a!==o){let c=VT[a];c(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{t.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})();function dH(e,t){return Hy(x({rootComponent:e},BT(t)))}function BT(e){var t;return{appProviders:[...WT,...(t=e==null?void 0:e.providers)!=null?t:[]],platformProviders:GT}}function $T(){xf.makeCurrent()}function HT(){return new Fn}function zT(){return sv(document),document}var GT=[{provide:At,useValue:Sf},{provide:Vd,useValue:$T,multi:!0},{provide:oe,useFactory:zT,deps:[]}];var WT=[{provide:lc,useValue:"root"},{provide:Fn,useFactory:HT,deps:[]},{provide:Vi,useClass:LT,multi:!0,deps:[oe,te,At]},{provide:Vi,useClass:UT,multi:!0,deps:[oe]},fD,gD,mD,{provide:Rr,useExisting:fD},{provide:Ic,useClass:OT,deps:[]},[]];function qT(){return new Rf(C(oe))}var Rf=(()=>{let t=class t{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new i:o=qT(),o},providedIn:"root"});let e=t;return e})();var Ko=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=C(DD),o},providedIn:"root"});let e=t;return e})();function YT(e){return new DD(e.get(oe))}var DD=(()=>{let t=class t extends Ko{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case lt.NONE:return i;case lt.HTML:return nr(i,"HTML")?hn(i):Wd(this._doc,String(i)).toString();case lt.STYLE:return nr(i,"Style")?hn(i):i;case lt.SCRIPT:if(nr(i,"Script"))return hn(i);throw new w(5200,!1);case lt.URL:return nr(i,"URL")?hn(i):pc(String(i));case lt.RESOURCE_URL:if(nr(i,"ResourceURL"))return hn(i);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(r){return Mv(r)}bypassSecurityTrustStyle(r){return Tv(r)}bypassSecurityTrustScript(r){return Av(r)}bypassSecurityTrustUrl(r){return Ov(r)}bypassSecurityTrustResourceUrl(r){return xv(r)}};t.\u0275fac=function(i){return new(i||t)(C(oe))},t.\u0275prov=b({token:t,factory:function(i){let o=null;return i?o=new i:o=YT(C(st)),o},providedIn:"root"});let e=t;return e})();function fH(...e){let t=[],n=new Set,r=n.has(1);for(let{\u0275providers:i,\u0275kind:o}of e)n.add(o),i.length&&t.push(i);return Vr([[],Wy(),n.has(0)||r?[]:dD({}),t])}var TD=(()=>{let t=class t{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};t.\u0275fac=function(i){return new(i||t)(v($n),v(B))},t.\u0275dir=L({type:t});let e=t;return e})(),AD=(()=>{let t=class t extends TD{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275dir=L({type:t,features:[Oe]});let e=t;return e})(),Vf=new _("NgValueAccessor");var KT={provide:Vf,useExisting:jn(()=>OD),multi:!0};function QT(){let e=Hn()?Hn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var XT=new _("CompositionEventMode"),OD=(()=>{let t=class t extends TD{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!QT())}writeValue(r){let i=r==null?"":r;this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};t.\u0275fac=function(i){return new(i||t)(v($n),v(B),v(XT,8))},t.\u0275dir=L({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&ze("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[xe([KT]),Oe]});let e=t;return e})();function JT(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var xD=new _("NgValidators"),eA=new _("NgAsyncValidators");function tA(e){return JT(e.value)?{required:!0}:null}function _D(e){return null}function ND(e){return e!=null}function PD(e){return rr(e)?_e(e):e}function RD(e){let t={};return e.forEach(n=>{t=n!=null?x(x({},t),n):t}),Object.keys(t).length===0?null:t}function FD(e,t){return t.map(n=>n(e))}function nA(e){return!e.validate}function kD(e){return e.map(t=>nA(t)?t:n=>t.validate(n))}function rA(e){if(!e)return null;let t=e.filter(ND);return t.length==0?null:function(n){return RD(FD(n,t))}}function LD(e){return e!=null?rA(kD(e)):null}function iA(e){if(!e)return null;let t=e.filter(ND);return t.length==0?null:function(n){let r=FD(n,t).map(PD);return rl(r).pipe(E(RD))}}function jD(e){return e!=null?iA(kD(e)):null}function ED(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function oA(e){return e._rawValidators}function sA(e){return e._rawAsyncValidators}function Ff(e){return e?Array.isArray(e)?e:[e]:[]}function Rc(e,t){return Array.isArray(e)?e.includes(t):e===t}function wD(e,t){let n=Ff(t);return Ff(e).forEach(i=>{Rc(n,i)||n.push(i)}),n}function bD(e,t){return Ff(t).filter(n=>!Rc(e,n))}var Fc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=LD(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},kf=class extends Fc{get formDirective(){return null}get path(){return null}},zr=class extends Fc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Lf=class{constructor(t){this._cd=t}get isTouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.touched)}get isUntouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.untouched)}get isPristine(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pristine)}get isDirty(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.dirty)}get isValid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.valid)}get isInvalid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.invalid)}get isPending(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pending)}get isSubmitted(){var t;return!!((t=this._cd)!=null&&t.submitted)}},aA={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},AH=Me(x({},aA),{"[class.ng-submitted]":"isSubmitted"}),OH=(()=>{let t=class t extends Lf{constructor(r){super(r)}};t.\u0275fac=function(i){return new(i||t)(v(zr,2))},t.\u0275dir=L({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&Ue("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Oe]});let e=t;return e})();var Qo="VALID",Pc="INVALID",Ui="PENDING",Xo="DISABLED";function cA(e){return(kc(e)?e.validators:e)||null}function uA(e){return Array.isArray(e)?LD(e):e||null}function lA(e,t){return(kc(t)?t.asyncValidators:e)||null}function dA(e){return Array.isArray(e)?jD(e):e||null}function kc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var jf=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Qo}get invalid(){return this.status===Pc}get pending(){return this.status==Ui}get disabled(){return this.status===Xo}get enabled(){return this.status!==Xo}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(wD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(wD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(bD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(bD(t,this._rawAsyncValidators))}hasValidator(t){return Rc(this._rawValidators,t)}hasAsyncValidator(t){return Rc(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ui,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Xo,this.errors=null,this._forEachChild(r=>{r.disable(Me(x({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Me(x({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Qo,this._forEachChild(r=>{r.enable(Me(x({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Me(x({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qo||this.status===Ui)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xo:Qo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ui,this._hasOwnPendingAsyncValidator=!0;let n=PD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new $e,this.statusChanges=new $e}_calculateStatus(){return this._allControlsDisabled()?Xo:this.errors?Pc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ui)?Ui:this._anyControlsHaveStatus(Pc)?Pc:Qo}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){kc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=uA(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=dA(this._rawAsyncValidators)}};var VD=new _("CallSetDisabledState",{providedIn:"root",factory:()=>Uf}),Uf="always";function fA(e,t){return[...t.path,e]}function hA(e,t,n=Uf){var r,i;mA(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&((i=(r=t.valueAccessor).setDisabledState)==null||i.call(r,e.disabled)),gA(e,t),yA(e,t),vA(e,t),pA(e,t)}function CD(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function pA(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function mA(e,t){let n=oA(e);t.validator!==null?e.setValidators(ED(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=sA(e);t.asyncValidator!==null?e.setAsyncValidators(ED(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();CD(t._rawValidators,i),CD(t._rawAsyncValidators,i)}function gA(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&UD(e,t)})}function vA(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&UD(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function UD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function yA(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function DA(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function _A(e){return Object.getPrototypeOf(e.constructor)===AD}function EA(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===OD?n=o:_A(o)?r=o:i=o}),i||r||n||null}function ID(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function SD(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var wA=class extends jf{constructor(t=null,n,r){super(cA(n),lA(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kc(n)&&(n.nonNullable||n.initialValueIsDefault)&&(SD(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ID(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ID(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){SD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var bA={provide:zr,useExisting:jn(()=>Lc)},MD=(()=>Promise.resolve())(),Lc=(()=>{let t=class t extends zr{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new wA,this._registered=!1,this.name="",this.update=new $e,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=EA(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),DA(r,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){hA(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){MD.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),(i=this._changeDetectorRef)==null||i.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&zo(i);MD.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(s=this._changeDetectorRef)==null||s.markForCheck()})}_getPath(r){return this._parent?fA(r,this._parent):[r]}};t.\u0275fac=function(i){return new(i||t)(v(kf,9),v(xD,10),v(eA,10),v(Vf,10),v(et,8),v(VD,8))},t.\u0275dir=L({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[xe([bA]),Oe,jt]});let e=t;return e})();var CA=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({});let e=t;return e})();var IA={provide:Vf,useExisting:jn(()=>SA),multi:!0},SA=(()=>{let t=class t extends AD{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275dir=L({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&ze("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[xe([IA]),Oe]});let e=t;return e})();var MA=(()=>{let t=class t{constructor(){this._validator=_D}ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):_D,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=L({type:t,features:[jt]});let e=t;return e})();var TA={provide:xD,useExisting:jn(()=>AA),multi:!0};var AA=(()=>{let t=class t extends MA{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=zo,this.createValidator=r=>tA}enabled(r){return r}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275dir=L({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&&Ke("required",o._enabled?"":null)},inputs:{required:"required"},features:[xe([TA]),Oe]});let e=t;return e})();var OA=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({imports:[CA]});let e=t;return e})();var NH=(()=>{let t=class t{static withConfig(r){var i;return{ngModule:t,providers:[{provide:VD,useValue:(i=r.callSetDisabledState)!=null?i:Uf}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=G({type:t}),t.\u0275inj=z({imports:[OA]});let e=t;return e})();var ne=new _("An abstraction over global window object",{factory:()=>{let{defaultView:e}=g(oe);if(!e)throw new Error("Window is not available");return e}}),Jt=new _("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{let{requestAnimationFrame:e,cancelAnimationFrame:t}=g(ne);return new M(r=>{let i=NaN,o=s=>{r.next(s),i=e(o)};return i=e(o),()=>{t(i)}}).pipe(tt())}}),jH=new _("An abstraction over window.caches object",{factory:()=>g(ne).caches}),VH=new _("An abstraction over window.crypto object",{factory:()=>g(ne).crypto}),UH=new _("An abstraction over window.CSS object",{factory:()=>g(ne).CSS||{escape:e=>e,supports:()=>!1}}),BH=new _("An abstraction over window.history object",{factory:()=>g(ne).history}),$H=new _("An abstraction over window.localStorage object",{factory:()=>g(ne).localStorage}),HH=new _("An abstraction over window.location object",{factory:()=>g(ne).location}),Bi=new _("An abstraction over window.navigator object",{factory:()=>g(ne).navigator}),zH=new _("An abstraction over window.navigator.mediaDevices object",{factory:()=>g(Bi).mediaDevices}),GH=new _("An abstraction over window.navigator.connection object",{factory:()=>g(Bi).connection||null}),WH=new _("Shared Observable based on `document visibility changed`",{factory:()=>{let e=g(oe);return on(e,"visibilitychange").pipe(le(0),E(()=>e.visibilityState!=="hidden"),Te(),Ct({refCount:!1,bufferSize:1}))}}),BD=new _("An abstraction over window.performance object",{factory:()=>g(ne).performance}),qH=new _("An abstraction over window.screen object",{factory:()=>g(ne).screen}),YH=new _("An abstraction over window.sessionStorage object",{factory:()=>g(ne).sessionStorage}),ZH=new _("An abstraction over SpeechRecognition class",{factory:()=>{let e=g(ne);return e.speechRecognition||e.webkitSpeechRecognition||null}}),KH=new _("An abstraction over window.speechSynthesis object",{factory:()=>g(ne).speechSynthesis}),Bf=new _("An abstraction over window.navigator.userAgent object",{factory:()=>g(Bi).userAgent});var Dn="*";function Ne(e,t){return{type:7,name:e,definitions:t,options:{}}}function j(e,t=null){return{type:4,styles:t,timings:e}}function $D(e,t=null){return{type:2,steps:e,options:t}}function D(e){return{type:6,styles:e,offset:null}}function ee(e,t,n=null){return{type:1,expr:e,animation:t,options:n}}function HD(e=null){return{type:9,options:e}}function Qe(e,t,n=null){return{type:11,selector:e,animation:t,options:n}}function nt(e,t){return{type:12,timings:e,animation:t}}var or=class{constructor(t=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Jo=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},jc="!";var sr=()=>!1,$i=()=>!0,tz=79,nz=new To,$f=[],Hf=()=>{},zD={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},GD=Object.assign(Object.assign({},zD),{toJSON(){return zD}}),rz=e=>String(e);var iz=(e,t)=>e===t||NA(e,t);function NA(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}var oz=Ne("tuiParentAnimation",[ee(":leave",[Qe(":scope > *",[HD()],{optional:!0})])]),sz=Ne("tuiParentStop",[ee(":enter",[])]),Hi=1e3/15,WD=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,qD="\xA0",az="\u2013";var YD="3.53.0";var ZD="edge/";function uz(e,t){return parseInt(t.slice(t.toLowerCase().indexOf(ZD)+ZD.length),10)=t&&e=n?n:Math.round(e)}var PA=292;function pz(e,t=0){return RA(e,t,Math.round)}function RA(e,t,n){if(e===1/0)return e;t=Math.min(t,PA);let r="".concat(e,"e").split("e"),i=n(Number("".concat(r[0],"e").concat(Number(r[1])+t))),o="".concat(i,"e").split("e");return Number("".concat(o[0],"e").concat(Number(o[1])-t))}function QD(e,t){return e.slice(0,Math.max(t,0)).concat(e.slice(Math.max(t+1,0)))}function Gn(e){return typeof e=="string"}function he(e){return Q(()=>e)}function Q(e){return new _("",{factory:e})}function XD(e){return e<.5?2*e*e:-1+(4-2*e)*e}function JD(e){let t=[];return e.find((n,r,i)=>(t=i,!0)),t}function e_(e){return!e}function ar(e){return e!=null}function vz(e,t,n){return e===null?t===null:t===null?!1:n(e,t)}function es(e,t,n,r){return n?FA(e,t,r):kA(e,t,r)}function FA(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollTop)>0&&!n||Math.ceil(r.scrollTop+r.clientHeight)0&&!n||Math.ceil(r.scrollLeft+r.clientWidth)!e.contains(y));return m.length===4?m:null}function wz(e,t){let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;for(;zi(i)&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Bc(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:Bc(e.parentElement,t)}function bz(e){return VA(e)&&!e.readOnly||!!e.isContentEditable}function Cz(e=0,t=0){let n={x:e,y:t,left:e,right:e,top:t,bottom:t,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON(){return n}})}function Iz(e){return"explicitOriginalTarget"in e?(e==null?void 0:e.explicitOriginalTarget)!==e.target:"pointerId"in e?e.pointerId===-1:"detail"in e&&"webkitForce"in e?(e==null?void 0:e.detail)===0:!1}function zf({activeElement:e}){if(!(e!=null&&e.shadowRoot))return e;let t=e.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function r_(e){let t=zf(e);zi(t)&&t.blur()}function i_(e){if(e.hasAttribute("disabled")||e.getAttribute("tabIndex")==="-1")return!1;if(zi(e)&&e.isContentEditable||e.getAttribute("tabIndex")==="0")return!0;switch(e.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return e.hasAttribute("controls");case"INPUT":return e.getAttribute("type")!=="hidden";case"A":case"LINK":return e.hasAttribute("href");default:return!1}}function UA(e){return!e.hasAttribute("disabled")&&(e.getAttribute("tabIndex")==="-1"||i_(e))}function Az({initial:e,root:t,previous:n=!1,keyboard:r=!0}){if(!t.ownerDocument)return null;let i=r?i_:UA,o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,WD);for(o.currentNode=e;n?o.previousNode():o.nextNode();)if(zi(o.currentNode)&&(e=o.currentNode),zi(e)&&i(e))return e;return null}function Gr(e){return!!(e!=null&&e.ownerDocument)&&zf(e.ownerDocument)===e}function o_(e){if(!e.ownerDocument||!e.contains)return!1;let t=zf(e.ownerDocument);return t!==null&&e.contains(t)}function Oz(e,t,n){for(e+=n;e>=0&&e1}var HA=/^((?!chrome|android).)*safari/i;function s_(e){return Gf(e)||HA.test(e.userAgent.toLowerCase())}function $c(e,t=zA(),n="rgba(0, 0, 0, 0.7)"){if(Gn(e)){let i=WA(e).reduce((o,s)=>{let a=GA(s),c="id_".concat(t,"_").concat(s);return o.replace(new RegExp('"'.concat(a,'"'),"g"),'"'.concat(c,'"')).replace(new RegExp("'".concat(a,"'"),"g"),"'".concat(c,"'")).replace(new RegExp("url\\('#".concat(a,"'\\)"),"g"),"url('#".concat(c,"')")).replace(new RegExp('url\\("#'.concat(a,'"\\)'),"g"),'url("#'.concat(c,'")')).replace(new RegExp("url\\(#".concat(a,"\\)"),"g"),"url(#".concat(c,")"))},e);return qA(i,n)}return e}function zA(){return Math.floor(Math.random()*Date.now())}function GA(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function WA(e){var t;let n=((t=e.match(/url\(("?)('*)#(.*?)('*)\)/g))!==null&&t!==void 0?t:[]).map(r=>r.slice(4,r.length-1).replace(/['"#]+/g,""));return Array.from(new Set(n))}function qA(e,t){try{let n=new DOMParser().parseFromString(e,"text/html");return n.body.querySelectorAll("[fill^=url]").forEach(r=>r.setAttribute("fill","".concat(r.getAttribute("fill")," ").concat(t).trim())),n.body.innerHTML.trim()}catch{return e}}var a_=class extends Error{constructor(t){super("")}},c_=class extends Error{constructor(t){super("")}},u_=class extends Error{constructor(t){super("")}},Hc=class extends Error{constructor(){super("")}},ts=class extends Error{constructor(){super("")}},ns=class extends Error{constructor(){super("")}};var zc=class extends Error{constructor(){super("")}};function Wz(e){return new M(t=>{if(!e.valueChanges)throw new zc;e.valueChanges.pipe(le(e.value)).subscribe(t)})}function $(e,t,n={}){return on(e,t,n)}function YA(e){return Ee($(e,"mouseup"),$(e,"dragend"))}function l_(e=0){return wr(W(()=>Xe(e).pipe(E(sr),le(!0))),Te())}var Wf,qf;function d_(e){let t=$(e,"blur"),{ownerDocument:n}=e;if(!n)throw new ts;return(!qf||!Wf)&&(Wf=$(n,"mouseup",{capture:!0}).pipe(l_(),le(!1),Ct({bufferSize:1,refCount:!0})),qf=$(n,"mousedown",{capture:!0}).pipe(l_(),le(!1),Ct({bufferSize:1,refCount:!0}))),Ee(mt($(e,"focus").pipe(je(1)),t.pipe(fe(()=>!Gr(e)),je(1),pi())).pipe(fa(),go(qf,Wf,(r,i,o)=>i||o),fe(e_))).pipe(W(()=>t.pipe(E(sr),je(1),le(!0))),Te())}function f_(e,t=Boolean){return wr(W(n=>t(n)?e(n):De))}function h_(e){var t,n;return"observed"in e?e.observed:!!(!((n=(t=e)===null||t===void 0?void 0:t.observers)===null||n===void 0)&&n.length)}function qz(e){return e.changes.pipe(le(null),E(()=>JD(e)))}function Yz(e,{onlyTrusted:t}={onlyTrusted:!0}){let{ownerDocument:n}=e;if(!n)throw new ts;return $(e,"mousedown").pipe(fe(({isTrusted:r})=>r||!t),W(()=>YA(n).pipe(E(sr),je(1),le(!0))))}function ZA(){return we(e=>e.preventDefault())}function p_(e){return $(e===e.ownerDocument.documentElement?e.ownerDocument:e,"scroll")}function m_(){return we(e=>{e.stopPropagation()})}function g_(e){return we(()=>{e.markForCheck()})}function KA(e){return t=>new M(n=>t.subscribe({next:r=>e.run(()=>n.next(r)),error:r=>e.run(()=>n.error(r)),complete:()=>e.run(()=>n.complete())}))}function _n(e){return t=>new M(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function En(e){return wr(_n(e),KA(e))}var rs=new _("POLYMORPHEUS_CONTEXT"),Wr=class{constructor(t,n){this.component=t,this.i=n}createInjector(t,n){return st.create({parent:this.i||t,providers:[{provide:rs,useValue:n}]})}},Zf=(()=>{class e{constructor(n,r){this.template=n,this.cdr=r,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(Je,2),v(et))},e.\u0275dir=L({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),Gc=class{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var ur=(()=>{class e{constructor(n,r,i){this.vcr=n,this.i=r,this.t=i,this.content=""}get template(){return Yf(this.content)?this.content.template:this.content instanceof Je?this.content:this.t}ngOnChanges({content:n}){var r;let i=this.getContext();this.v&&(this.v.context=i),(r=this.c)===null||r===void 0||r.injector.get(et).markForCheck(),n&&(this.vcr.clear(),v_(this.content)?this.process(this.content):(i instanceof Gc&&i.$implicit)!=null&&(this.v=this.vcr.createEmbeddedView(this.template,i)))}ngDoCheck(){Yf(this.content)&&this.content.check()}static ngTemplateContextGuard(n,r){return!0}getContext(){return QA(this.content)||v_(this.content)?this.context:new Gc(typeof this.content=="function"?this.content(this.context):this.content)}process(n){let r=n.createInjector(this.i,this.context&&new Proxy(this.context,{get:(i,o)=>{var s;return(s=this.context)===null||s===void 0?void 0:s[o]}}));this.c=this.vcr.createComponent(r.get(pn).resolveComponentFactory(n.component),0,r)}}return e.\u0275fac=function(n){return new(n||e)(v(dt),v(st),v(Je))},e.\u0275dir=L({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:["polymorpheusOutlet","content"],context:["polymorpheusOutletContext","context"]},features:[jt]}),e})();function Yf(e){return e instanceof Zf}function v_(e){return e instanceof Wr}function QA(e){return Yf(e)||e instanceof Je}var lr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function Kf(e,t={}){let{selector:n}=t,r=Yp(t,["selector"]);return new M(i=>{let o=new AbortController,{signal:s}=o,a=!0,{signal:c}=r;if(c)if(c.aborted)o.abort();else{let d=()=>{s.aborted||o.abort()};c.addEventListener("abort",d),i.add(()=>c.removeEventListener("abort",d))}let u=Object.assign(Object.assign({},r),{signal:s}),l=d=>{a=!1,i.error(d)};return fetch(e,u).then(d=>{n?U(n(d)).subscribe(T(i,void 0,()=>{a=!1,i.complete()},l)):(a=!1,i.next(d),i.complete())}).catch(l),()=>{a&&o.abort()}})}function y_(e){return new w(3e3,!1)}function XA(){return new w(3100,!1)}function JA(){return new w(3101,!1)}function eO(e){return new w(3001,!1)}function tO(e){return new w(3003,!1)}function nO(e){return new w(3004,!1)}function rO(e,t){return new w(3005,!1)}function iO(){return new w(3006,!1)}function oO(){return new w(3007,!1)}function sO(e,t){return new w(3008,!1)}function aO(e){return new w(3002,!1)}function cO(e,t,n,r,i){return new w(3010,!1)}function uO(){return new w(3011,!1)}function lO(){return new w(3012,!1)}function dO(){return new w(3200,!1)}function fO(){return new w(3202,!1)}function hO(){return new w(3013,!1)}function pO(e){return new w(3014,!1)}function mO(e){return new w(3015,!1)}function gO(e){return new w(3016,!1)}function vO(e,t){return new w(3404,!1)}function yO(e){return new w(3502,!1)}function DO(e){return new w(3503,!1)}function _O(){return new w(3300,!1)}function EO(e){return new w(3504,!1)}function wO(e){return new w(3301,!1)}function bO(e,t){return new w(3302,!1)}function CO(e){return new w(3303,!1)}function IO(e,t){return new w(3400,!1)}function SO(e){return new w(3401,!1)}function MO(e){return new w(3402,!1)}function TO(e,t){return new w(3505,!1)}function dr(e){switch(e.length){case 0:return new or;case 1:return e[0];default:return new Jo(e)}}function F_(e,t,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(t.forEach(c=>{let u=c.get("offset"),l=u==s,d=l&&a||new Map;c.forEach((f,p)=>{let m=p,y=f;if(p!=="offset")switch(m=e.normalizePropertyName(m,i),y){case jc:y=n.get(p);break;case Dn:y=r.get(p);break;default:y=e.normalizeStyleValue(p,m,y,i);break}d.set(m,y)}),l||o.push(d),a=d,s=u}),i.length)throw yO(i);return o}function Dh(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Qf(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Qf(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Qf(n,"destroy",e)));break}}function Qf(e,t,n){let r=n.totalTime,i=!!n.disabled,o=_h(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,r==null?e.totalTime:r,i),s=e._data;return s!=null&&(o._data=s),o}function _h(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function xt(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function D_(e){let t=e.indexOf(":"),n=e.substring(1,t),r=e.slice(t+1);return[n,r]}var AO=(()=>typeof document>"u"?null:document.documentElement)();function Eh(e){let t=e.parentNode||e.host||null;return t===AO?null:t}function OO(e){return e.substring(1,6)=="ebkit"}var qr=null,__=!1;function xO(e){qr||(qr=NO()||{},__=qr.style?"WebkitAppearance"in qr.style:!1);let t=!0;return qr.style&&!OO(e)&&(t=e in qr.style,!t&&__&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in qr.style)),t}function NO(){return typeof document<"u"?document.body:null}function k_(e,t){for(;t;){if(t===e)return!0;t=Eh(t)}return!1}function L_(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let r=e.querySelector(t);return r?[r]:[]}var PO=(()=>{let t=class t{validateStyleProperty(r){return xO(r)}matchesElement(r,i){return!1}containsElement(r,i){return k_(r,i)}getParentElement(r){return Eh(r)}query(r,i,o){return L_(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,c=[],u){return new or(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let e=t;return e})(),lG=(()=>{let t=class t{};t.NOOP=new PO;let e=t;return e})(),rh=class{};var RO=1e3,j_="{{",FO="}}",V_="ng-enter",ih="ng-leave",qc="ng-trigger",Xc=".ng-trigger",E_="ng-animating",oh=".ng-animating";function Wn(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:sh(parseFloat(t[1]),t[2])}function sh(e,t){switch(t){case"s":return e*RO;default:return e}}function Jc(e,t,n){return e.hasOwnProperty("duration")?e:kO(e,t,n)}function kO(e,t,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof e=="string"){let a=e.match(r);if(a===null)return t.push(y_(e)),{duration:0,delay:0,easing:""};i=sh(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=sh(parseFloat(c),a[4]));let u=a[5];u&&(s=u)}else i=e;if(!n){let a=!1,c=t.length;i<0&&(t.push(XA()),a=!0),o<0&&(t.push(JA()),a=!0),a&&t.splice(c,0,y_(e))}return{duration:i,delay:o,easing:s}}function ls(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function U_(e){let t=new Map;return Object.keys(e).forEach(n=>{let r=e[n];t.set(n,r)}),t}function LO(e){return e.length?e[0]instanceof Map?e:e.map(t=>U_(t)):[]}function Yi(e,t=new Map,n){if(n)for(let[r,i]of n)t.set(r,i);for(let[r,i]of e)t.set(r,i);return t}function wn(e,t,n){t.forEach((r,i)=>{let o=wh(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function Zr(e,t){t.forEach((n,r)=>{let i=wh(r);e.style[i]=""})}function is(e){return Array.isArray(e)?e.length==1?e[0]:$D(e):e}function jO(e,t,n){let r=t.params||{},i=B_(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(eO(o))})}var ah=new RegExp("".concat(j_,"\\s*(.+?)\\s*").concat(FO),"g");function B_(e){let t=[];if(typeof e=="string"){let n;for(;n=ah.exec(e);)t.push(n[1]);ah.lastIndex=0}return t}function ss(e,t,n){let r=e.toString(),i=r.replace(ah,(o,s)=>{let a=t[s];return a==null&&(n.push(tO(s)),a=""),a.toString()});return i==r?e:i}function eu(e){let t=[],n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}var VO=/-+([a-z0-9])/g;function wh(e){return e.replace(VO,(...t)=>t[1].toUpperCase())}function UO(e,t){return e===0||t===0}function BO(e,t,n){if(n.size&&t.length){let r=t[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,$_(e,a)))}}return t}function Ot(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw nO(t.type)}}function $_(e,t){return window.getComputedStyle(e)[t]}var $O=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),w_=class extends rh{normalizePropertyName(t,n){return wh(t)}normalizeStyleValue(t,n,r,i){let o="",s=r.toString().trim();if($O.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(rO(t,r))}return s+o}};var tu="*";function HO(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(r=>zO(r,n,t)):n.push(e),n}function zO(e,t,n){if(e[0]==":"){let c=GO(e,n);if(typeof c=="function"){t.push(c);return}e=c}let r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(mO(e)),t;let i=r[1],o=r[2],s=r[3];t.push(b_(i,s));let a=i==tu&&s==tu;o[0]=="<"&&!a&&t.push(b_(s,i))}function GO(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}var Yc=new Set(["true","1"]),Zc=new Set(["false","0"]);function b_(e,t){let n=Yc.has(e)||Zc.has(e),r=Yc.has(t)||Zc.has(t);return(i,o)=>{let s=e==tu||e==i,a=t==tu||t==o;return!s&&n&&typeof i=="boolean"&&(s=i?Yc.has(e):Zc.has(e)),!a&&r&&typeof o=="boolean"&&(a=o?Yc.has(t):Zc.has(t)),s&&a}}var H_=":self",WO=new RegExp("s*".concat(H_,"s*,?"),"g");function z_(e,t,n,r){return new ch(e).build(t,n,r)}var C_="",ch=class{constructor(t){this._driver=t}build(t,n,r){let i=new uh(n);return this._resetContextStyleTimingState(i),Ot(this,is(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=C_,t.collectedStyles=new Map,t.collectedStyles.set(C_,new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&n.errors.push(iO()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==0){let c=a,u=c.name;u.toString().split(/\s*,\s*/).forEach(l=>{c.name=l,o.push(this.visitState(c,n))}),c.name=u}else if(a.type==1){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(oO())}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,n){let r=this.visitStyle(t.styles,n),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};if(r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{B_(c).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size){let a=eu(o.values());n.errors.push(sO(t.name,a))}}return{type:0,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;let r=Ot(this,is(t.animation),n);return{type:1,matchers:HO(t.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Yr(t.options)}}visitSequence(t,n){return{type:2,steps:t.steps.map(r=>Ot(this,r,n)),options:Yr(t.options)}}visitGroup(t,n){let r=n.currentTime,i=0,o=t.steps.map(s=>{n.currentTime=r;let a=Ot(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:3,steps:o,options:Yr(t.options)}}visitAnimate(t,n){let r=KO(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:D({});if(o.type==5)i=this.visitKeyframes(o,n);else{let s=t.styles,a=!1;if(!s){a=!0;let u={};r.easing&&(u.easing=r.easing),s=D(u)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(t,n){let r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){let r=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===Dn?r.push(a):n.errors.push(aO(a)):r.push(U_(a));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(j_)>=0){o=!0;break}}}),{type:6,styles:r,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let u=n.collectedStyles.get(n.currentQuerySelector),l=u.get(c),d=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(n.errors.push(cO(c,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&u.set(c,{startTime:o,endTime:i}),n.options&&jO(a,n.options,n.errors)})})}visitKeyframes(t,n){let r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(uO()),r;let i=1,o=0,s=[],a=!1,c=!1,u=0,l=t.steps.map(S=>{let H=this._makeStyleAst(S,n),re=H.offset!=null?H.offset:ZO(H.styles),ge=0;return re!=null&&(o++,ge=H.offset=re),c=c||ge<0||ge>1,a=a||ge0&&o{let re=f>0?H==p?1:f*H:s[H],ge=re*A;n.currentTime=m+y.delay+ge,y.duration=ge,this._validateStyleAst(S,n),S.offset=re,r.styles.push(S)}),r}visitReference(t,n){return{type:8,animation:Ot(this,is(t.animation),n),options:Yr(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:9,options:Yr(t.options)}}visitAnimateRef(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Yr(t.options)}}visitQuery(t,n){let r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;let[o,s]=qO(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,xt(n.collectedStyles,n.currentQuerySelector,new Map);let a=Ot(this,is(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Yr(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(hO());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Jc(t.timings,n.errors,!0);return{type:12,animation:Ot(this,is(t.animation),n),timings:r,options:null}}};function qO(e){let t=!!e.split(/\s*,\s*/).find(n=>n==H_);return t&&(e=e.replace(WO,"")),e=e.replace(/@\*/g,Xc).replace(/@\w+/g,n=>Xc+"-"+n.slice(1)).replace(/:animating/g,oh),[e,t]}function YO(e){return e?ls(e):null}var uh=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function ZO(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}function KO(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=Jc(e,t).duration;return Xf(o,0,"")}let n=e;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Xf(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=Jc(n,t);return Xf(i.duration,i.delay,i.easing)}function Yr(e){return e?(e=ls(e),e.params&&(e.params=YO(e.params))):e={},e}function Xf(e,t,n){return{duration:e,delay:t,easing:n}}function bh(e,t,n,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var as=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}},QO=1,XO=":enter",JO=new RegExp(XO,"g"),ex=":leave",tx=new RegExp(ex,"g");function G_(e,t,n,r,i,o=new Map,s=new Map,a,c,u=[]){return new lh().buildKeyframes(e,t,n,r,i,o,s,a,c,u)}var lh=class{buildKeyframes(t,n,r,i,o,s,a,c,u,l=[]){u=u||new as;let d=new dh(t,n,u,i,o,l,[]);d.options=c;let f=c.delay?Wn(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),Ot(this,r,d);let p=d.timelines.filter(m=>m.containsAnimation());if(p.length&&a.size){let m;for(let y=p.length-1;y>=0;y--){let A=p[y];if(A.element===n){m=A;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,d.errors,c)}return p.length?p.map(m=>m.buildKeyframes()):[bh(n,[],[],[],0,f,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){let r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){var i;for(let o of t){let s=o==null?void 0:o.delay;if(s){let a=typeof s=="number"?s:Wn(ss(s,(i=o==null?void 0:o.params)!=null?i:{},n.errors));r.delayNextStep(a)}}}_visitSubInstructions(t,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Wn(r.duration):null,a=r.delay!=null?Wn(r.delay):null;return s!==0&&t.forEach(c=>{let u=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,n){n.updateOptions(t.options,!0),Ot(this,t.animation,n),n.previousNode=t}visitSequence(t,n){let r=n.subContextCount,i=n,o=t.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==6&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=nu);let s=Wn(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Ot(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){let r=[],i=n.currentTimeline.currentTime,o=t.options&&t.options.delay?Wn(t.options.delay):0;t.steps.forEach(s=>{let a=n.createSubContext(t.options);o&&a.delayNextStep(o),Ot(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){let r=t.strValue,i=n.params?ss(r,n.params,n.errors):r;return Jc(i,n.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){let r=n.currentAnimateTimings=this._visitTiming(t.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=t.style;o.type==5?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(c=>{let u=c.offset||0;a.forwardTime(u*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=t}visitQuery(t,n){let r=n.currentTimeline.currentTime,i=t.options||{},o=i.delay?Wn(i.delay):0;o&&(n.previousNode.type===6||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=nu);let s=r,a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((u,l)=>{n.currentQueryIndex=l;let d=n.createSubContext(t.options,u);o&&d.delayNextStep(o),u===n.element&&(c=d.currentTimeline),Ot(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;s=Math.max(s,f)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){let r=n.parentContext,i=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let l=n.currentTimeline;c&&l.delayNextStep(c);let d=l.currentTime;Ot(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},nu={},dh=class e{constructor(t,n,r,i,o,s,a,c){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new ru(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;let r=t,i=this.options;r.duration!=null&&(i.duration=Wn(r.duration)),r.delay!=null&&(i.delay=Wn(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=ss(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let n=this.options.params;if(n){let r=t.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return t}createSubContext(t=null,n,r){let i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=nu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){let i={duration:n!=null?n:t.duration,delay:this.currentTimeline.currentTime+(r!=null?r:0)+t.delay,easing:""},o=new fh(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(JO,"."+this._enterClassName),t=t.replace(tx,"."+this._leaveClassName);let c=r!=1,u=this._driver.query(this.element,t,c);r!==0&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&a.length==0&&s.push(pO(n)),a}},ru=class e{constructor(t,n,r,i){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=QO,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||Dn),this._currentKeyframe.set(n,Dn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){var a;n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=nx(t,this._globalTimelineStyles);for(let[c,u]of s){let l=ss(u,o,r);this._pendingStyles.set(c,l),this._localTimelineStyles.has(c)||this._backFill.set(c,(a=this._globalTimelineStyles.get(c))!=null?a:Dn),this._updateStyle(c,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let u=Yi(a,new Map,this._backFill);u.forEach((l,d)=>{l===jc?t.add(d):l===Dn&&n.add(d)}),r||u.set("offset",c/this.duration),i.push(u)});let o=t.size?eu(t.values()):[],s=n.size?eu(n.values()):[];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return bh(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},fh=class extends ru{constructor(t,n,r,i,o,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,c=Yi(t[0]);c.set("offset",0),o.push(c);let u=Yi(t[0]);u.set("offset",I_(a)),o.push(u);let l=t.length-1;for(let d=1;d<=l;d++){let f=Yi(t[d]),p=f.get("offset"),m=n+p*r;f.set("offset",I_(m/s)),o.push(f)}r=s,n=0,i="",t=o}return bh(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function I_(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function nx(e,t){let n=new Map,r;return e.forEach(i=>{if(i==="*"){r=r||t.keys();for(let o of r)n.set(o,Dn)}else Yi(i,n)}),n}function S_(e,t,n,r,i,o,s,a,c,u,l,d,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:f}}var Jf={},iu=class{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return rx(this.ast.matchers,t,n,r,i)}buildStyles(t,n,r){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t==null?void 0:t.toString())||i),i?i.buildStyles(n,r):new Map}build(t,n,r,i,o,s,a,c,u,l){var In;let d=[],f=this.ast.options&&this.ast.options.params||Jf,p=a&&a.params||Jf,m=this.buildStyles(r,p,d),y=c&&c.params||Jf,A=this.buildStyles(i,y,d),S=new Set,H=new Map,re=new Map,ge=i==="void",Ye={params:ix(y,f),delay:(In=this.ast.options)==null?void 0:In.delay},_t=l?[]:G_(t,n,this.ast.animation,o,s,m,A,Ye,u,d),Pe=0;if(_t.forEach(Et=>{Pe=Math.max(Et.duration+Et.delay,Pe)}),d.length)return S_(n,this._triggerName,r,i,ge,m,A,[],[],H,re,Pe,d);_t.forEach(Et=>{let vr=Et.element,ao=xt(H,vr,new Set);Et.preStyleProps.forEach(ni=>ao.add(ni));let co=xt(re,vr,new Set);Et.postStyleProps.forEach(ni=>co.add(ni)),vr!==n&&S.add(vr)});let rt=eu(S.values());return S_(n,this._triggerName,r,i,ge,m,A,_t,rt,H,re,Pe)}};function rx(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}function ix(e,t){let n=ls(t);for(let r in e)e.hasOwnProperty(r)&&e[r]!=null&&(n[r]=e[r]);return n}var hh=class{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){let r=new Map,i=ls(this.defaultParams);return Object.keys(t).forEach(o=>{let s=t[o];s!==null&&(i[o]=s)}),this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ss(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function ox(e,t,n){return new ph(e,t,n)}var ph=class{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new hh(i.style,o,r))}),M_(this.states,"true","1"),M_(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new iu(t,i,this.states))}),this.fallbackTransition=sx(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,i){return this.transitionFactories.find(s=>s.match(t,n,r,i))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}};function sx(e,t,n){let o={type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0};return new iu(e,o,t)}function M_(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}var ax=new as,mh=class{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){let r=[],i=[],o=z_(this._driver,n,r,i);if(r.length)throw DO(r);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,n,r){let i=t.element,o=F_(this._normalizer,t.keyframes,n,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){let i=[],o=this._animations.get(t),s,a=new Map;if(o?(s=G_(this._driver,n,o,V_,ih,new Map,new Map,r,ax,i),s.forEach(l=>{let d=xt(a,l.element,new Map);l.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(_O()),s=[]),i.length)throw EO(i);a.forEach((l,d)=>{l.forEach((f,p)=>{l.set(p,this._driver.computeStyle(d,p,Dn))})});let c=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),u=dr(c);return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){let n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){let n=this._playersById.get(t);if(!n)throw wO(t);return n}listen(t,n,r,i){let o=_h(n,"","","");return Dh(this._getPlayer(t),r,o,i),()=>{}}command(t,n,r,i){if(r=="register"){this.register(t,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(t,n,s);return}let o=this._getPlayer(t);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},T_="ng-animate-queued",cx=".ng-animate-queued",eh="ng-animate-disabled",ux=".ng-animate-disabled",lx="ng-star-inserted",dx=".ng-star-inserted",fx=[],W_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hx={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},en="__ng_removed",cs=class{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;let r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=mx(i),r){let o=ls(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let n=t.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},os="void",th=new cs(os),gh=class{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,$t(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw bO(r,n);if(r==null||r.length==0)throw CO(n);if(!gx(r))throw IO(r,n);let o=xt(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);let a=xt(this._engine.statesByElement,t,new Map);return a.has(n)||($t(t,qc),$t(t,qc+"-"+n),a.set(n,th)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return this._triggers.has(t)?!1:(this._triggers.set(t,n),!0)}_getTrigger(t){let n=this._triggers.get(t);if(!n)throw SO(t);return n}trigger(t,n,r,i=!0){let o=this._getTrigger(n),s=new us(this.id,n,t),a=this._engine.statesByElement.get(t);a||($t(t,qc),$t(t,qc+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n),u=new cs(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),a.set(n,u),c||(c=th),!(u.value===os)&&c.value===u.value){if(!Dx(c.params,u.params)){let y=[],A=o.matchStyles(c.value,c.params,y),S=o.matchStyles(u.value,u.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Zr(t,A),wn(t,S)})}return}let f=xt(this._engine.playersByElement,t,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==n&&y.queued&&y.destroy()});let p=o.matchTransition(c.value,u.value,t,u.params),m=!1;if(!p){if(!i)return;p=o.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:p,fromState:c,toState:u,player:s,isFallbackTransition:m}),m||($t(t,T_),s.onStart(()=>{qi(t,T_)})),s.onDone(()=>{let y=this.players.indexOf(s);y>=0&&this.players.splice(y,1);let A=this._engine.playersByElement.get(t);if(A){let S=A.indexOf(s);S>=0&&A.splice(S,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){let r=this._engine.driver.query(t,Xc,!0);r.forEach(i=>{if(i[en])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,n,r,i){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((c,u)=>{if(s.set(u,c.value),this._triggers.has(u)){let l=this.trigger(t,u,os,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&dr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,u=r.get(s)||th,l=new cs(os),d=new us(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:u,toState:l,player:d,isFallbackTransition:!0})})}}removeNode(t,n){let r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,n);else{let o=t[en];(!o||o===W_)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){$t(t,this._hostClassName)}drainQueuedTransitions(t){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=_h(o,r.triggerName,r.fromState.value,r.toState.value);c._data=t,Dh(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},vh=class{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r){this.bodyNode=t,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){let r=new gh(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=i.get(a);if(c){let u=r.indexOf(c);r.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return i.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let i=this._namespaceLookup[t];i&&i.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let n=new Set,r=this.statesByElement.get(t);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(t,n,r,i){if(Kc(n)){let o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!Kc(n))return;let o=n[en];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),$t(t,eh)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),qi(t,eh))}removeNode(t,n,r){if(Kc(n)){let i=t?this._fetchNamespace(t):null;i?i.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);let o=this.namespacesByHostElement.get(n);o&&o.id!==t&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[en]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return Kc(n)?this._fetchNamespace(t).listen(n,r,i,o):()=>{}}_buildInstruction(t,n,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,n,o)}destroyInnerAnimations(t){let n=this.driver.query(t,Xc,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(t,oh,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){let n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){let n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return dr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var r;let n=t[en];if(n&&n.setForRemoval){if(t[en]=W_,n.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}(r=t.classList)!=null&&r.contains(eh)&&this.markElementAsDisabled(t,!1),this.driver.query(t,ux,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?dr(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw MO(t)}_flushAnimations(t,n){let r=new as,i=[],o=new Map,s=[],a=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(O=>{l.add(O);let P=this.driver.query(O,cx,!0);for(let F=0;F{let F=V_+y++;m.set(P,F),O.forEach(se=>$t(se,F))});let A=[],S=new Set,H=new Set;for(let O=0;OS.add(se)):H.add(P))}let re=new Map,ge=x_(f,Array.from(S));ge.forEach((O,P)=>{let F=ih+y++;re.set(P,F),O.forEach(se=>$t(se,F))}),t.push(()=>{p.forEach((O,P)=>{let F=m.get(P);O.forEach(se=>qi(se,F))}),ge.forEach((O,P)=>{let F=re.get(P);O.forEach(se=>qi(se,F))}),A.forEach(O=>{this.processLeaveNode(O)})});let Ye=[],_t=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(n).forEach(F=>{let se=F.player,Be=F.element;if(Ye.push(se),this.collectedEnterElements.length){let it=Be[en];if(it&&it.setForMove){if(it.previousTriggersValues&&it.previousTriggersValues.has(F.triggerName)){let yr=it.previousTriggersValues.get(F.triggerName),Rt=this.statesByElement.get(F.element);if(Rt&&Rt.has(F.triggerName)){let Ls=Rt.get(F.triggerName);Ls.value=yr,Rt.set(F.triggerName,Ls)}}se.destroy();return}}let tn=!d||!this.driver.containsElement(d,Be),wt=re.get(Be),Yn=m.get(Be),ke=this._buildInstruction(F,r,Yn,wt,tn);if(ke.errors&&ke.errors.length){_t.push(ke);return}if(tn){se.onStart(()=>Zr(Be,ke.fromStyles)),se.onDestroy(()=>wn(Be,ke.toStyles)),i.push(se);return}if(F.isFallbackTransition){se.onStart(()=>Zr(Be,ke.fromStyles)),se.onDestroy(()=>wn(Be,ke.toStyles)),i.push(se);return}let Tp=[];ke.timelines.forEach(it=>{it.stretchStartingKeyframe=!0,this.disabledNodes.has(it.element)||Tp.push(it)}),ke.timelines=Tp,r.append(Be,ke.timelines);let SE={instruction:ke,player:se,element:Be};s.push(SE),ke.queriedElements.forEach(it=>xt(a,it,[]).push(se)),ke.preStyleProps.forEach((it,yr)=>{if(it.size){let Rt=c.get(yr);Rt||c.set(yr,Rt=new Set),it.forEach((Ls,Bu)=>Rt.add(Bu))}}),ke.postStyleProps.forEach((it,yr)=>{let Rt=u.get(yr);Rt||u.set(yr,Rt=new Set),it.forEach((Ls,Bu)=>Rt.add(Bu))})});if(_t.length){let O=[];_t.forEach(P=>{O.push(TO(P.triggerName,P.errors))}),Ye.forEach(P=>P.destroy()),this.reportError(O)}let Pe=new Map,rt=new Map;s.forEach(O=>{let P=O.element;r.has(P)&&(rt.set(P,P),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,Pe))}),i.forEach(O=>{let P=O.element;this._getPreviousPlayers(P,!1,O.namespaceId,O.triggerName,null).forEach(se=>{xt(Pe,P,[]).push(se),se.destroy()})});let In=A.filter(O=>N_(O,c,u)),Et=new Map;O_(Et,this.driver,H,u,Dn).forEach(O=>{N_(O,c,u)&&In.push(O)});let ao=new Map;p.forEach((O,P)=>{O_(ao,this.driver,new Set(O),c,jc)}),In.forEach(O=>{var se,Be;let P=Et.get(O),F=ao.get(O);Et.set(O,new Map([...(se=P==null?void 0:P.entries())!=null?se:[],...(Be=F==null?void 0:F.entries())!=null?Be:[]]))});let co=[],ni=[],Mp={};s.forEach(O=>{let{element:P,player:F,instruction:se}=O;if(r.has(P)){if(l.has(P)){F.onDestroy(()=>wn(P,se.toStyles)),F.disabled=!0,F.overrideTotalTime(se.totalTime),i.push(F);return}let Be=Mp;if(rt.size>1){let wt=P,Yn=[];for(;wt=wt.parentNode;){let ke=rt.get(wt);if(ke){Be=ke;break}Yn.push(wt)}Yn.forEach(ke=>rt.set(ke,Be))}let tn=this._buildAnimation(F.namespaceId,se,Pe,o,ao,Et);if(F.setRealPlayer(tn),Be===Mp)co.push(F);else{let wt=this.playersByElement.get(Be);wt&&wt.length&&(F.parentPlayer=dr(wt)),i.push(F)}}else Zr(P,se.fromStyles),F.onDestroy(()=>wn(P,se.toStyles)),ni.push(F),l.has(P)&&i.push(F)}),ni.forEach(O=>{let P=o.get(O.element);if(P&&P.length){let F=dr(P);O.setRealPlayer(F)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O!tn.destroyed);Be.length?vx(this,P,Be):this.processLeaveNode(P)}return A.length=0,co.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();let P=this.players.indexOf(O);this.players.splice(P,1)}),O.play()}),co}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let c=!o||o==os;a.forEach(u=>{u.queued||!c&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:i;for(let c of n.timelines){let u=c.element,l=u!==o,d=xt(r,u,[]);this._getPreviousPlayers(u,l,s,a,n.toState).forEach(p=>{let m=p.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),p.destroy(),d.push(p)})}Zr(o,n.fromStyles)}_buildAnimation(t,n,r,i,o,s){let a=n.triggerName,c=n.element,u=[],l=new Set,d=new Set,f=n.timelines.map(m=>{let y=m.element;l.add(y);let A=y[en];if(A&&A.removedBeforeQueried)return new or(m.duration,m.delay);let S=y!==c,H=yx((r.get(y)||fx).map(Pe=>Pe.getRealPlayer())).filter(Pe=>{let rt=Pe;return rt.element?rt.element===y:!1}),re=o.get(y),ge=s.get(y),Ye=F_(this._normalizer,m.keyframes,re,ge),_t=this._buildPlayer(m,Ye,H);if(m.subTimeline&&i&&d.add(y),S){let Pe=new us(t,a,y);Pe.setRealPlayer(_t),u.push(Pe)}return _t});u.forEach(m=>{xt(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>px(this.playersByQueriedElement,m.element,m))}),l.forEach(m=>$t(m,E_));let p=dr(f);return p.onDestroy(()=>{l.forEach(m=>qi(m,E_)),wn(c,n.toStyles)}),d.forEach(m=>{xt(i,m,[]).push(p)}),p}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new or(t.duration,t.delay)}},us=class{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new or,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>Dh(t,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){xt(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let n=this._player;n.triggerCallback&&n.triggerCallback(t)}};function px(e,t,n){let r=e.get(t);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&e.delete(t)}return r}function mx(e){return e!=null?e:null}function Kc(e){return e&&e.nodeType===1}function gx(e){return e=="start"||e=="done"}function A_(e,t){let n=e.style.display;return e.style.display=t!=null?t:"none",n}function O_(e,t,n,r,i){let o=[];n.forEach(c=>o.push(A_(c)));let s=[];r.forEach((c,u)=>{let l=new Map;c.forEach(d=>{let f=t.computeStyle(u,d,i);l.set(d,f),(!f||f.length==0)&&(u[en]=hx,s.push(u))}),e.set(u,l)});let a=0;return n.forEach(c=>A_(c,o[a++])),s}function x_(e,t){let n=new Map;if(e.forEach(a=>n.set(a,[])),t.length==0)return n;let r=1,i=new Set(t),o=new Map;function s(a){if(!a)return r;let c=o.get(a);if(c)return c;let u=a.parentNode;return n.has(u)?c=u:i.has(u)?c=r:c=s(u),o.set(a,c),c}return t.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function $t(e,t){var n;(n=e.classList)==null||n.add(t)}function qi(e,t){var n;(n=e.classList)==null||n.remove(t)}function vx(e,t,n){dr(n).onDone(()=>e.processLeaveNode(t))}function yx(e){let t=[];return q_(e,t),t}function q_(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}var ou=class{constructor(t,n,r){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new vh(t.body,n,r),this._timelineEngine=new mh(t.body,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(t,n,r,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let c=[],u=[],l=z_(this._driver,o,c,u);if(c.length)throw vO(i,c);u.length&&void 0,a=ox(i,l,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,i){this._transitionEngine.insertNode(t,n,r,i)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,i){if(r.charAt(0)=="@"){let[o,s]=D_(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(t,n,r,i)}listen(t,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=D_(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(t,n,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function _x(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=nh(t[0]),t.length>1&&(r=nh(t[t.length-1]))):t instanceof Map&&(n=nh(t)),n||r?new Ex(e,n,r):null}var Ex=(()=>{let t=class t{constructor(r,i,o){this._element=r,this._startStyles=i,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(r);s||t.initialStylesByElement.set(r,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&wn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(wn(this._element,this._initialStyles),this._endStyles&&(wn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Zr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zr(this._element,this._endStyles),this._endStyles=null),wn(this._element,this._initialStyles),this._state=3)}};t.initialStylesByElement=new WeakMap;let e=t;return e})();function nh(e){let t=null;return e.forEach((n,r)=>{wx(r)&&(t=t||new Map,t.set(r,n))}),t}function wx(e){return e==="display"||e==="position"}var su=class{constructor(t,n,r,i){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){var t;return+((t=this.domPlayer.currentTime)!=null?t:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&t.set(i,this._finished?r:$_(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let n=t==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},P_=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return k_(t,n)}getParentElement(t){return Eh(t)}query(t,n,r){return L_(t,n,r)}computeStyle(t,n,r){return window.getComputedStyle(t)[n]}animate(t,n,r,i,o,s=[]){let a=i==0?"both":"forwards",c={duration:r,delay:i,fill:a};o&&(c.easing=o);let u=new Map,l=s.filter(p=>p instanceof su);UO(r,i)&&l.forEach(p=>{p.currentSnapshot.forEach((m,y)=>u.set(y,m))});let d=LO(n).map(p=>Yi(p));d=BO(t,d,u);let f=_x(t,d);return new su(t,d,c,f)}};var Qc="@",Y_="@.disabled",au=class{constructor(t,n,r,i){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var n,r;(r=(n=this.delegate).destroyNode)==null||r.call(n,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,i=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,i)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,i){this.delegate.setAttribute(t,n,r,i)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,i){this.delegate.setStyle(t,n,r,i)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){n.charAt(0)==Qc&&n==Y_?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}},yh=class extends au{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){n.charAt(0)==Qc?n.charAt(1)=="."&&n==Y_?(r=r===void 0?!0:!!r,this.disableAnimations(t,r)):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if(n.charAt(0)==Qc){let i=bx(t),o=n.slice(1),s="";return o.charAt(0)!=Qc&&([o,s]=Cx(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,r,a)})}return this.delegate.listen(t,n,r)}};function bx(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function Cx(e){let t=e.indexOf("."),n=e.substring(0,t),r=e.slice(t+1);return[n,r]}var R_=class{constructor(t,n,r){this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(i,o)=>{let s=o==null?void 0:o.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(t,n){var u;let r="",i=this.delegate.createRenderer(t,n);if(!t||!((u=n==null?void 0:n.data)!=null&&u.animation)){let l=this._rendererCache,d=l.get(i);if(!d){let f=()=>l.delete(i);d=new au(r,i,this.engine,f),l.set(i,d)}return d}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,t,l.name,l)};return n.data.animation.forEach(a),new yh(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){if(t>=0&&tn(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Ix=Q(()=>{let e={onRemovalComplete:()=>{}},t=new Re(null),n=g(ou,J.Optional)||e,{onRemovalComplete:r=e.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{t.next(i),r.call(n,i,o)},t.pipe(W(i=>Xe(0).pipe(E(()=>null),le(i))),tt())}),Z_=Q(()=>{let e=g(Ix),t=g(ne),n=g(oe),r=$(t,"focusout"),i=$(t,"focusin"),o=$(t,"blur"),s=$(t,"mousedown"),a=$(t,"mouseup");return Ee(r.pipe(pe(s),al(()=>a),go(e),fe(([c,u])=>K_(cr(c),u)),E(([{relatedTarget:c}])=>c)),o.pipe(E(()=>n.activeElement),fe(c=>!!(c!=null&&c.matches("iframe")))),i.pipe(W(c=>{let u=cr(c),l=Gi(u);return l===n?I(u):Sx(l).pipe(le(u))})),s.pipe(W(c=>{let u=cr(c);return!n.activeElement||n.activeElement===n.body?I(u):r.pipe(je(1),E(()=>u),pe(Xe(0)))}))).pipe(Te(),tt())});function K_(e,t=null){return Gi(e).activeElement!==e&&!e.matches(":disabled")&&!(t!=null&&t.contains(e))}function Sx(e){return Ee($(e,"focusin").pipe(E(({target:t})=>t)),$(e,"focusout").pipe(fe(({target:t,relatedTarget:n})=>!!n&&K_(t)),E(({relatedTarget:t})=>t)))}var Q_=he([]);var X_=Q(()=>{var e,t;return(t=(e=g(oe).querySelector("base"))===null||e===void 0?void 0:e.href)!==null&&t!==void 0?t:""}),EG=Q(()=>g(Rr).createRenderer(null,null)),Mx=he([]);function J_(e){return{provide:Mx,multi:!0,useExisting:e}}var wG=Q(()=>{var e;let t=(e=g(oe).querySelector("base"))===null||e===void 0?void 0:e.href;if(t)return t;let n=g(oe).createElement("a");return n.href="",n.pathname}),ds=new _("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function cu(e){return{provide:ds,useExisting:e}}var bG=new _("[TUI_FONTS_READY]",{factory:()=>{var e;return _e(((e=g(oe).fonts)===null||e===void 0?void 0:e.ready)||De).pipe(Ct({bufferSize:1,refCount:!1}))}}),fs=Q(()=>Gf(g(Bi))),Tx=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,Ax=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,Ch=Q(()=>Tx.test(g(Bf).toLowerCase())||Ax.test(g(Bf).slice(0,4).toLowerCase())),CG=Q(()=>g(Ch)&&!g(fs)),IG=Q(()=>s_(g(Bi))),SG=Q(()=>!!g(ne).chrome),Ox=Q(()=>!!g(ne).Cypress),xx=Q(sr),MG=Q(()=>g(Ox)||g(xx)),TG=Q(()=>{var e;return typeof((e=g(ne))===null||e===void 0?void 0:e.mozCancelFullScreen)<"u"}),AG=Q(()=>g(ne).location.host.endsWith("stackblitz.io")),e0=Q(()=>{var e;return!!(!((e=g(ne))===null||e===void 0)&&e.webkitConvertPointFromNodeToPage)}),OG=he("web");var xG=Q(()=>rD(g(At))?new Range:{}),hs=Q(()=>new B(g(oe).documentElement)),NG=he({timeout:500,threshold:30}),PG=Q($i),RG=Q(()=>g(ne).matchMedia("(any-pointer: coarse)").matches),Ih=new _("[TUI_WINDOW_SIZE]",{factory:()=>{let e=g(ne);return $(e,"resize").pipe(le(null),E(()=>{var t,n;let r=Math.max(e.innerWidth,((t=e.visualViewport)===null||t===void 0?void 0:t.width)||0),i=Math.max(e.innerHeight,((n=e.visualViewport)===null||n===void 0?void 0:n.height)||0);return{width:r,height:i,top:0,left:0,right:r,bottom:i}}),Ct({bufferSize:1,refCount:!0}))}}),FG=Q(()=>g(Ih).pipe(E(({height:e})=>e))),kG=he({wheelSensitivity:.01});var Fe=(()=>{class e extends Mn{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),t3=(()=>{class e{constructor(n,r){this.resolver=n,this.injector=r,this.map=new Map}addComponent(n){this.map.has(n)||this.map.set(n,this.resolver.resolveComponentFactory(n).create(this.injector))}}return e.\u0275fac=function(n){return new(n||e)(C(pn),C(Pi))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Sh=(()=>{class e extends M{constructor({nativeElement:n},r,i){super(o=>this.focusVisible$.subscribe(o)),this.focusVisible$=d_(n).pipe(g_(r),pe(i))}}return e.\u0275fac=function(n){return new(n||e)(C(B),C(et),C(Fe,2))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),Nx="tui_",n0=(()=>{class e{generate(){return"".concat(Nx).concat(e.autoId++).concat(Date.now())}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Px=(()=>{class e extends M{constructor(n,r){super(i=>this.callback$.subscribe(i)),this.callback$=rn(()=>{let{nativeElement:i}=n,o=[r,i];for(;i.parentElement;)i=i.parentElement,o.push(i);return Ee(...o.map(s=>$(s,"scroll")))})}}return e.\u0275fac=function(n){return new(n||e)(C(B),C(ne))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),n3=(()=>{class e extends M{constructor(n,{nativeElement:r},i,o,s,a){super(c=>this.obscured$.subscribe(c)),this.obscured$=Ee(Ee(n,on(o,"resize")).pipe(po(0)),a.pipe(Qn(Hi))).pipe(E(()=>Uc(r)),le(null),Te(),En(i),pe(s))}}return e.\u0275fac=function(n){return new(n||e)(C(Px,2),C(B),C(te),C(ne),C(Fe,2),C(Jt))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})();var Rx=300,r3=(()=>{class e{constructor(n,r){this.performanceRef=n,this.animationFrame$=r}scroll$(n,r,i=t0(n),o=Rx){let s=Fx(n),a=t0(n),c=r-s,u=i-a;return(o?rn(()=>I(this.performanceRef.now())).pipe(W(d=>this.animationFrame$.pipe(E(f=>f-d))),E(d=>XD(zn(d/o,0,1))),E(d=>[s+c*d,a+u*d]),mo([r,i]),pe(Xe(o))):I([r,i])).pipe(we(([d,f])=>{var p;(p=n.scrollTo)===null||p===void 0||p.call(n,f,d)}))}}return e.\u0275fac=function(n){return new(n||e)(C(BD),C(Jt))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function t0(e){return"scrollX"in e?e.scrollX:e.scrollLeft}function Fx(e){return"scrollY"in e?e.scrollY:e.scrollTop}var r0=(()=>{class e{constructor(n,r){this.win=n,this.platformId=r,this.cache=new Map}request(n){let r=this.cache.get(n);if(r)return r;let o=("AbortController"in this.win||Wo(this.platformId)?Kf(n):rn(()=>_e(fetch(n)))).pipe(W(s=>Ks(this,void 0,void 0,function*(){if(s.ok)return s.text();throw new Error("Failed to load ".concat(n," (").concat(s.statusText,")"))})),Ct({bufferSize:1,refCount:!1}));return this.cache.set(n,o),o}}return e.\u0275fac=function(n){return new(n||e)(C(ne),C(At))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var kx=["viewContainer"],Lx="tui_interactive_",Th=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new $e,this.focusVisibleChange=new $e,this.focusVisible=!1,this.autoIdString="".concat(Lx).concat(e.autoId++).concat(Date.now())}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focused)}get computedFocusVisible(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(n){this.focusedChange.emit(n)}updateFocusVisible(n){this.focusVisible!==n&&(this.focusVisible=n,this.focusVisibleChange.emit(n))}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,hostVars:7,hostBindings:function(n,r){n&2&&(Ke("data-focused",r.pseudoFocus),Ue("_disabled",r.computedDisabled)("_focused",r.computedFocused)("_focus-visible",r.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),e})(),Mh=class{},ps=(()=>{class e extends Th{constructor(n,r,i){super(),this.ngControl=n,this.cdr=r,this.valueTransformer=i,this.refresh$=new ye,this.onTouched=Hf,this.onChange=Hf,this.fallbackValue=this.getFallbackValue(),this.destroy$=new ye,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var n;return(n=this.previousInternalValue)!==null&&n!==void 0?n:this.fallbackValue}set value(n){this.updateValue(n)}get safeCurrentValue(){var n;return(n=this.rawValue)!==null&&n!==void 0?n:this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:n})=>n,!1)}get valid(){return this.safeNgControlData(({valid:n})=>n,!1)}get touched(){return this.safeNgControlData(({touched:n})=>n,!1)}get disabled(){return this.safeNgControlData(({disabled:n})=>n,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:n})=>n,null)}get computedName(){var n,r;return(r=(n=this.controlName)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:null}get controlName(){var n,r,i;return(i=(r=(n=this.ngControl)===null||n===void 0?void 0:n.name)===null||r===void 0?void 0:r.toString())!==null&&i!==void 0?i:null}get rawValue(){let{ngControl:n}=this;if(n===null)return;let r=n instanceof Lc&&this.previousInternalValue===void 0?n.viewModel:n.value;return this.fromControlValue(r)}ngOnInit(){this.refresh$.pipe(po(0),le(null),E(()=>{var n;return(n=this.ngControl)===null||n===void 0?void 0:n.control}),fe(ar),Te(),W(n=>Ee(n.valueChanges,n.statusChanges)),pe(this.destroy$)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(n){this.onChange=r=>{n(this.toControlValue(r))},this.refresh$.next()}registerOnTouched(n){this.onTouched=n}setDisabledState(){this.checkControlUpdate()}writeValue(n){let r=this.ngControl instanceof Lc&&this.previousInternalValue===void 0?this.ngControl.model:n;this.refreshLocalValue(this.fromControlValue(r))}updateFocused(n){n||this.controlMarkAsTouched(),super.updateFocused(n)}updateValue(n){this.disabled||this.valueIdenticalComparator(this.value,n)||(this.previousInternalValue=n,this.controlSetValue(n))}valueIdenticalComparator(n,r){return n===r}safeNgControlData(n,r){var i;return(i=this.ngControl&&n(this.ngControl))!==null&&i!==void 0?i:r}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(n){this.onChange(n),this.checkControlUpdate()}refreshLocalValue(n){this.previousInternalValue=n,this.checkControlUpdate()}fromControlValue(n){return this.valueTransformer?this.valueTransformer.fromControlValue(n):n}toControlValue(n){return this.valueTransformer?this.valueTransformer.toControlValue(n):n}}return e.\u0275fac=function(n){return new(n||e)(v(zr,8),v(et),v(Mh,8))},e.\u0275dir=L({type:e,hostVars:4,hostBindings:function(n,r){n&2&&Ue("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[Oe]}),e})();function E3(e){return{provide:ps,useExisting:e}}var i0=(()=>{class e{constructor(){this.change$=new ye}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,features:[jt]}),e})(),uu=(()=>{class e extends M{constructor(n){super(r=>this.dialogs$.subscribe(r)),this.idService=n,this.dialogs$=new Re([])}open(n,r={}){return new M(i=>{let o=a=>{i.next(a),i.complete()},s=Object.assign(Object.assign(Object.assign({},this.defaultOptions),r),{content:n,completeWith:o,$implicit:i,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,s]),()=>{this.dialogs$.next(this.dialogs$.value.filter(a=>a!==s))}})}}return e.\u0275fac=function(n){return new(n||e)(C(n0))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})();var w3=(()=>{class e extends ps{clear(){this.value=[]}getFallbackValue(){return[]}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275dir=L({type:e,features:[Oe]}),e})(),b3=(()=>{class e extends ps{getFallbackValue(){return null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275dir=L({type:e,features:[Oe]}),e})(),lu=(()=>{class e{get safeHost(){if(!this.host)throw new Hc;return this.host}attach(n){this.host=n}add(n){return this.safeHost.addComponentChild(n)}remove({hostView:n}){n.destroy()}addTemplate(n,r){return this.safeHost.addTemplateChild(n,r)}removeTemplate(n){n.destroy()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),Ah=(()=>{class e{constructor(n,r,i){this.injector=n,this.el=r,i.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(n){let r=n.createInjector(this.injector),o=r.get(pn).resolveComponentFactory(n.component),s=[{provide:e,useValue:this}],a=st.create({parent:r,providers:s}),c=this.vcr.createComponent(o,void 0,a);return c.changeDetectorRef.detectChanges(),c}addTemplateChild(n,r){return this.vcr.createEmbeddedView(n,r)}}return e.\u0275fac=function(n){return new(n||e)(v(Pi),v(B),v(lu))},e.\u0275dir=L({type:e,viewQuery:function(n,r){if(n&1&&Ry(kx,5,dt),n&2){let i;vf(i=yf())&&(r.vcr=i.first)}}}),e})();function o0(e){return e!==null&&typeof e<"u"&&"".concat(e)!=="false"}var S3=(()=>{class e{transform(n,r,...i){return r(n,...i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=Ti({name:"tuiMapper",type:e,pure:!0}),e})(),M3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function jx(e,t){if(e&1&&(ue(0,"div",3),Ie(1,"div",4),ae()),e&2){let n=ce().ngIf;Ue("t-bar_has-horizontal",n[1])}}function Vx(e,t){if(e&1&&(ue(0,"div",5),Ie(1,"div",6),ae()),e&2){let n=ce().ngIf;Ue("t-bar_has-vertical",n[0])}}function Ux(e,t){if(e&1&&(Qt(0),me(1,jx,2,2,"div",1)(2,Vx,2,2,"div",2),Xt()),e&2){let n=t.ngIf;K(1),R("ngIf",n[0]),K(1),R("ngIf",n[1])}}var du=24,Bx=(()=>{class e{constructor(n,r,i,o,s,a){this.container=o,this.doc=s,this.el=a,this.tuiScrollbar="vertical";let{nativeElement:c}=this.el,u=$(c,"mousedown"),l=$(this.doc,"mousemove"),d=$(this.doc,"mouseup"),f=$(this.wrapper,"mousedown");Ee(f.pipe(E(p=>this.getScrolled(p,.5,.5))),u.pipe(m_(),W(p=>{let m=c.getBoundingClientRect(),y=$x(p,m),A=Hx(p,m);return l.pipe(E(S=>this.getScrolled(S,y,A)),pe(d))}))).pipe(_n(n),pe(r)).subscribe(([p,m])=>{this.tuiScrollbar==="vertical"?this.element.scrollTop=p:this.element.scrollLeft=m}),Ee(i.pipe(Qn(Hi)),p_(this.element)).pipe(_n(n),pe(r)).subscribe(()=>{this.tuiScrollbar==="vertical"?(c.style.top="".concat(this.thumb*100,"%"),c.style.height="".concat(this.view*100,"%")):(c.style.left="".concat(this.thumb*100,"%"),c.style.width="".concat(this.view*100,"%"))})}get wrapper(){return this.el.nativeElement.parentElement}get scrolled(){let{scrollTop:n,scrollHeight:r,clientHeight:i,scrollLeft:o,scrollWidth:s,clientWidth:a}=this.element;return this.tuiScrollbar==="vertical"?n/(r-i):o/(s-a)}get compensation(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return n*n/r>du&&this.tuiScrollbar==="vertical"||i*i/o>du&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?du/n:du/i}get thumb(){let n=this.compensation||this.view;return this.scrolled*(1-n)}get view(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return this.tuiScrollbar==="vertical"?Math.ceil(n/r*100)/100:Math.ceil(i/o*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:n,clientX:r},i,o){let{offsetHeight:s,offsetWidth:a}=this.el.nativeElement,{top:c,left:u,width:l,height:d}=this.wrapper.getBoundingClientRect(),f=this.element.scrollHeight-d,p=this.element.scrollWidth-l,m=(n-c-s*i)/(d-s),y=(r-u-a*o)/(l-a);return[f*m,p*y]}}return e.\u0275fac=function(n){return new(n||e)(v(te),v(Fe,2),v(Jt),v(hs),v(oe),v(B))},e.\u0275dir=L({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[xe([Fe])]}),e})();function $x({clientY:e},{top:t,height:n}){return(e-t)/n}function Hx({clientX:e},{left:t,width:n}){return(e-t)/n}var G3=(()=>{class e{constructor(n,r,i){this.zone=n,this.scrollRef=r,this.animationFrame$=i,this.refresh$=this.animationFrame$.pipe(Qn(300),E(()=>this.scrollbars),le([!1,!1]),Te((o,s)=>o[0]===s[0]&&o[1]===s[1]),En(this.zone))}get scrollbars(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.scrollRef.nativeElement;return[Math.ceil(n/r*100)<100,Math.ceil(i/o*100)<100]}}return e.\u0275fac=function(n){return new(n||e)(v(te),v(hs),v(Jt))},e.\u0275cmp=Ze({type:e,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(n,r){n&1&&(me(0,Ux,3,2,"ng-container",0),Ut(1,"async")),n&2&&R("ngIf",Bt(1,1,r.refresh$))},dependencies:[ft,Bx,yn],styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],changeDetection:0}),e})();var W3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=L({type:e,selectors:[["","tuiScrollRef",""]],features:[xe([{provide:hs,useExisting:B}])]}),e})(),q3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht]]}),e})();function zx(e){let t=[],n=!1,r;return function(...o){return n&&t.length===o.length&&o.every((a,c)=>a===t[c])||(t=o,r=e.apply(this,o),n=!0),r}}function s0(e,t,n=!0){return function(){let i=e.call(this);return Object.defineProperty(this,t,{enumerable:n,value:i}),i}}function fu(e,t,n){if(typeof e=="function"){let c=t;if(c.kind==="getter")return s0(e,c.name);if(c.kind==="method")return zx(e);throw new ns}let{get:r,enumerable:i,value:o}=n,s=t;if(r)return{configurable:!0,enumerable:i,get:s0(r,s,i)};if(typeof o!="function")throw new ns;let a=o;return{configurable:!0,enumerable:i,get(){let c=[],u=!1,l,d=(...f)=>(u&&c.length===f.length&&f.every((m,y)=>m===c[y])||(c=f,l=a.apply(this,f),u=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var fr=class{constructor(t,n,r,i){var o;this.active$=t,this.zone=n,this.el=r,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(E(s=>!!s&&this.contains(s)),le(!1),Te(),ul(1),En(this.zone)),(o=this.directParentActiveZone)===null||o===void 0||o.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){var t,n;(t=this.directParentActiveZone)===null||t===void 0||t.removeSubActiveZone(this),(n=this.tuiActiveZoneParent)===null||n===void 0||n.removeSubActiveZone(this)}contains(t){return this.el.nativeElement.contains(t)||this.subActiveZones.some((n,r,i)=>i.indexOf(n)===r&&n.contains(t))}setZone(t){var n;(n=this.tuiActiveZoneParent)===null||n===void 0||n.removeSubActiveZone(this),t==null||t.addSubActiveZone(this),this.tuiActiveZoneParent=t}addSubActiveZone(t){this.subActiveZones=[...this.subActiveZones,t]}removeSubActiveZone(t){this.subActiveZones=QD(this.subActiveZones,this.subActiveZones.indexOf(t))}};fr.\u0275fac=function(t){return new(t||fr)(v(Z_),v(te),v(B),v(fr,12))};fr.\u0275dir=L({type:fr,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]});Zs([fu],fr.prototype,"setZone",null);var dW=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var a0=(()=>{class e{constructor(n,r){this.focusable=n,this.el=r}get element(){var n;return((n=this.focusable)===null||n===void 0?void 0:n.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return e.\u0275fac=function(n){Xd()},e.\u0275dir=L({type:e}),e})(),Gx=1e3,Wx=".ng-animating",qx=(()=>{class e extends a0{constructor(n,r,i){super(n,r),this.animationFrame$=i}setFocus(){this.isTextFieldElement?il(Xe(Gx),this.animationFrame$.pipe(Qn(Hi),E(()=>this.element.closest(Wx)),ll(Boolean),je(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return e.\u0275fac=function(n){return new(n||e)(v(ds,10),v(B),v(Jt))},e.\u0275dir=L({type:e,features:[Oe]}),e})(),Yx=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],Zx=(()=>{class e extends a0{constructor(n,r,i,o,s){super(n,r),this.renderer=i,this.zone=o,this.win=s,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var n;let r=this.makeFakeInput(),i=this.getDurationTimeBeforeFocus(),o=0,s=0,a=()=>r.focus({preventScroll:!0}),c=()=>{clearTimeout(o),o=this.win.setTimeout(()=>{clearTimeout(s),r.removeEventListener("blur",a),r.removeEventListener("focus",c),s=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),r.remove()},i)})};r.addEventListener("blur",a,{once:!0}),r.addEventListener("focus",c),this.insideDialog()?this.win.document.body.appendChild(r):(n=this.element.parentElement)===null||n===void 0||n.appendChild(r),r.focus({preventScroll:!0})}makeFakeInput(){let n=this.renderer.createElement("input"),r=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(n),n.style.height=Wi(r.height),n.style.width=Wi(r.width/2),n.style.position="fixed",n.style.zIndex="-99999999",n.style.caretColor="transparent",n.style.border="none",n.style.outline="none",n.style.color="transparent",n.style.background="transparent",n.style.cursor="none",n.style.fontSize=Wi(16),n.style.top=Wi(r.top),n.style.left=Wi(r.left),n}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){let n=this.win.document;for(let r of[n.documentElement,n.body])r.style.setProperty("overflow","auto"),r.style.setProperty("height","100%")}patchFakeInputFromFocusableElement(n){Yx.forEach(r=>{let i=this.element.getAttribute(r);ar(i)&&n.setAttribute(r,i)})}}return e.\u0275fac=function(n){return new(n||e)(v(ds,10),v(B),v($n),v(te),v(ne))},e.\u0275dir=L({type:e,features:[Oe]}),e})(),Kx={delay:NaN},Qx=he(Kx);var c0=new _("[TUI_AUTOFOCUS_HANDLER]"),Xx=[{provide:c0,useFactory:(e,t,n,r,i,o,s)=>s?new Zx(e,t,r,i,o):new qx(e,t,n),deps:[[new Vn,new Jg,ds],B,Jt,$n,te,ne,fs]},Fe],u0=(()=>{class e{constructor(n,r,i){this.handler=n,this.options=r,this.destroy$=i,this.autoFocus=!0}ngAfterViewInit(){o0(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):Xe(this.options.delay).pipe(pe(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return e.\u0275fac=function(n){return new(n||e)(v(c0),v(Qx),v(Fe,2))},e.\u0275dir=L({type:e,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[xe(Xx)]}),e})(),l0=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var Oh=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},d0=(()=>{class e{constructor(n,r){n.createEmbeddedView(r,new Oh(this))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(dt),v(Je))},e.\u0275dir=L({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),f0=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var GW=(()=>{class e{constructor({nativeElement:n},r,i){this.mode="scroll",$(n,"wheel",{passive:!1}).pipe(fe(()=>this.enabled),_n(r),pe(i)).subscribe(o=>{this.processEvent(o,!!o.deltaY,o.deltaY?o.deltaY<0:o.deltaX<0)}),$(n,"touchstart",{passive:!0}).pipe(W(({touches:o})=>{let{clientX:s,clientY:a}=o[0],c=0,u=0,l;return $(n,"touchmove",{passive:!1}).pipe(fe(()=>this.enabled),we(d=>{let f=d.changedTouches[0];c=s-f.clientX,u=a-f.clientY,s=f.clientX,a=f.clientY,l===void 0&&(l=Math.abs(u)>Math.abs(c)),this.processEvent(d,l,l?u<0:c<0)}))}),_n(r),pe(i)).subscribe()}get enabled(){return this.mode!=="none"}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(n,r,i){var o;let{target:s,currentTarget:a,cancelable:c}=n;if(!(!c||!Vc(s)||((o=s)===null||o===void 0?void 0:o.type)==="range")){if(this.mode==="all"&&(r&&!a.contains(Bc(s))||!r&&!a.contains(Bc(s,!1)))){n.preventDefault();return}if(r&&(i&&!es(s,a,!0,!1)||!i&&!es(s,a,!0,!0))){n.preventDefault();return}!r&&(i&&!es(s,a,!1,!1)||!i&&!es(s,a,!1,!0))&&n.preventDefault()}}}return e.\u0275fac=function(n){return new(n||e)(v(B),v(te),v(Fe,2))},e.\u0275dir=L({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(n,r){n&2&&Li("overscroll-behavior",r.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[xe([Fe])]}),e})(),WW=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var Jx=["*"],eN=(()=>{class e extends lu{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ZW=(()=>{class e extends Ah{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275cmp=Ze({type:e,selectors:[["tui-dropdown-host"]],features:[xe([{provide:lu,useExisting:eN},{provide:Ah,useExisting:e}]),Oe],ngContentSelectors:Jx,decls:3,vars:0,consts:[["viewContainer",""]],template:function(n,r){n&1&&(gn(),Dt(0),Bo(1,null,0))},styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;height:100%}[_nghost-%COMP%]:before{content:"";display:block;overflow:hidden}.t-position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}'],changeDetection:0}),e})(),KW=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();var xh=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(xh||{}),tN=function(e){return e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December",e}(tN||{});var gs="?v=".concat(YD);var h0=e=>e.includes(".svg#")?e:"#".concat(e),e8=()=>$f,Nh={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:qD,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},p0=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];var t8="tui-scroll-into-view";var m0="tui-icon-error",n8=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"];var h=function(e){return e.AD="AD",e.AE="AE",e.AF="AF",e.AG="AG",e.AI="AI",e.AL="AL",e.AM="AM",e.AO="AO",e.AR="AR",e.AT="AT",e.AU="AU",e.AW="AW",e.AZ="AZ",e.BA="BA",e.BB="BB",e.BD="BD",e.BE="BE",e.BF="BF",e.BG="BG",e.BH="BH",e.BI="BI",e.BJ="BJ",e.BL="BL",e.BM="BM",e.BN="BN",e.BO="BO",e.BQ="BQ",e.BR="BR",e.BS="BS",e.BT="BT",e.BW="BW",e.BY="BY",e.BZ="BZ",e.CA="CA",e.CD="CD",e.CF="CF",e.CG="CG",e.CH="CH",e.CI="CI",e.CL="CL",e.CM="CM",e.CN="CN",e.CO="CO",e.CR="CR",e.CU="CU",e.CV="CV",e.CW="CW",e.CY="CY",e.CZ="CZ",e.DE="DE",e.DJ="DJ",e.DK="DK",e.DM="DM",e.DO="DO",e.DZ="DZ",e.EC="EC",e.EE="EE",e.EG="EG",e.ER="ER",e.ES="ES",e.ET="ET",e.FI="FI",e.FJ="FJ",e.FK="FK",e.FM="FM",e.FR="FR",e.GA="GA",e.GB="GB",e.GD="GD",e.GE="GE",e.GF="GF",e.GH="GH",e.GI="GI",e.GL="GL",e.GM="GM",e.GN="GN",e.GP="GP",e.GQ="GQ",e.GR="GR",e.GT="GT",e.GW="GW",e.GY="GY",e.HK="HK",e.HN="HN",e.HR="HR",e.HT="HT",e.HU="HU",e.ID="ID",e.IE="IE",e.IL="IL",e.IN="IN",e.IQ="IQ",e.IR="IR",e.IS="IS",e.IT="IT",e.JM="JM",e.JO="JO",e.JP="JP",e.KE="KE",e.KG="KG",e.KH="KH",e.KM="KM",e.KN="KN",e.KP="KP",e.KR="KR",e.KW="KW",e.KY="KY",e.KZ="KZ",e.LA="LA",e.LB="LB",e.LC="LC",e.LI="LI",e.LK="LK",e.LR="LR",e.LS="LS",e.LT="LT",e.LU="LU",e.LV="LV",e.LY="LY",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MF="MF",e.MG="MG",e.MK="MK",e.ML="ML",e.MM="MM",e.MN="MN",e.MO="MO",e.MQ="MQ",e.MR="MR",e.MS="MS",e.MT="MT",e.MU="MU",e.MV="MV",e.MW="MW",e.MX="MX",e.MY="MY",e.MZ="MZ",e.NA="NA",e.NC="NC",e.NE="NE",e.NG="NG",e.NI="NI",e.NL="NL",e.NO="NO",e.NP="NP",e.NZ="NZ",e.OM="OM",e.PA="PA",e.PE="PE",e.PF="PF",e.PG="PG",e.PH="PH",e.PK="PK",e.PL="PL",e.PT="PT",e.PW="PW",e.PY="PY",e.QA="QA",e.RE="RE",e.RO="RO",e.RS="RS",e.RU="RU",e.RW="RW",e.SA="SA",e.SB="SB",e.SC="SC",e.SD="SD",e.SE="SE",e.SG="SG",e.SH="SH",e.SI="SI",e.SK="SK",e.SL="SL",e.SM="SM",e.SN="SN",e.SO="SO",e.SR="SR",e.ST="ST",e.SV="SV",e.SX="SX",e.SY="SY",e.SZ="SZ",e.TC="TC",e.TD="TD",e.TG="TG",e.TH="TH",e.TJ="TJ",e.TL="TL",e.TM="TM",e.TN="TN",e.TO="TO",e.TR="TR",e.TT="TT",e.TW="TW",e.TZ="TZ",e.UA="UA",e.UG="UG",e.US="US",e.UY="UY",e.UZ="UZ",e.VC="VC",e.VE="VE",e.VG="VG",e.VN="VN",e.VU="VU",e.WS="WS",e.XK="XK",e.YE="YE",e.YT="YT",e.ZA="ZA",e.ZM="ZM",e.ZW="ZW",e}(h||{});var nN={cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]},rN={colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Font",fontStyle:"Font style",fontSize:"Font size",bold:"Bold",italic:"Italic",underline:"Underline",strikeThrough:"Strike through",justify:"Justify",justifyLeft:"Justify left",justifyCenter:"Justify center",justifyRight:"Justify right",justifyFull:"Justify full",list:"List",indent:"Indent",outdent:"Outdent",unorderedList:"Unordered list",orderedList:"Ordered list",quote:"Quote",foreColor:"Color",backColor:"Background color",hiliteColor:"Highlight color",clear:"Clear",link:"Link",attach:"Attach file",tex:"Insert TeX",code:"Code",image:"Insert image",insertHorizontalRule:"Insert horizontal rule",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Merge cells",splitCells:"Split cells",rowsColumnsManaging:"Managing rows and columns",cellColor:"Cell color",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Insert column before","Insert column after"],["Insert row before","Insert row after"],["Delete column","Delete row"]],editorCodeOptions:["Code in the text","Code in block"],editorFontOptions:{small:"Small",large:"Large",normal:"Normal",title:"Title",subtitle:"Subtitle"}},iN={previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}},oN={showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}},sN={[h.AD]:"Andorra",[h.AE]:"United Arab Emirates",[h.AF]:"Afghanistan",[h.AG]:"Antigua and Barbuda",[h.BL]:"Saint Barth\xE9lemy",[h.AI]:"Anguilla",[h.AL]:"Albania",[h.AM]:"Armenia",[h.AO]:"Angola",[h.AR]:"Argentina",[h.AT]:"Austria",[h.AU]:"Australia",[h.AW]:"Aruba",[h.AZ]:"Azerbaijan",[h.BA]:"Bosnia and Herzegovina",[h.BB]:"Barbados",[h.BD]:"Bangladesh",[h.BE]:"Belgium",[h.BF]:"Burkina Faso",[h.BG]:"Bulgaria",[h.BH]:"Bahrain",[h.BI]:"Burundi",[h.BJ]:"Benin",[h.GF]:"Guyana",[h.BM]:"Bermuda",[h.BN]:"Brunei Darussalam",[h.BO]:"Bolivia",[h.BQ]:"Bonaire, Sint Eustatius and Saba",[h.BR]:"Brazil",[h.BS]:"Bahamas",[h.BT]:"Bhutan",[h.BW]:"Botswana",[h.BY]:"Belarus",[h.BZ]:"Belize",[h.CA]:"Canada",[h.CD]:"Dem. Rep. Congo (Kinshasa)",[h.CF]:"Central African Republic",[h.CG]:"Congo (Brazzaville)",[h.CH]:"Switzerland",[h.CI]:"Ivory Coast",[h.CL]:"Chile",[h.CM]:"Cameroon",[h.CN]:"China",[h.CO]:"Colombia",[h.CR]:"Costa Rica",[h.CU]:"Cuba",[h.CV]:"Cape Verde",[h.CW]:"Cura\xE7ao",[h.CY]:"Cyprus",[h.CZ]:"Czech Republic",[h.DE]:"Germany",[h.DJ]:"Djibouti",[h.DK]:"Denmark",[h.DM]:"Dominica",[h.DO]:"Dominican Republic",[h.DZ]:"Algeria",[h.EC]:"Ecuador",[h.EE]:"Estonia",[h.EG]:"Egypt",[h.ER]:"Eritrea",[h.ES]:"Spain",[h.ET]:"Ethiopia",[h.FI]:"Finland",[h.FJ]:"Fiji",[h.FK]:"Falkland Islands",[h.FM]:"F.S. of Micronesia",[h.FR]:"France",[h.GA]:"Gabon",[h.GB]:"United Kingdom",[h.GD]:"Grenada",[h.GE]:"Georgia",[h.GP]:"Guadeloupe",[h.GH]:"Ghana",[h.GI]:"Gibraltar",[h.GL]:"Greenland",[h.GM]:"Gambia",[h.GN]:"Guinea",[h.MF]:"Saint-Martin",[h.GQ]:"Equatorial Guinea",[h.GR]:"Greece",[h.GT]:"Guatemala",[h.GW]:"Guinea-Bissau",[h.GY]:"Guyana",[h.HK]:"Hong Kong",[h.HN]:"Honduras",[h.HR]:"Croatia",[h.HT]:"Haiti",[h.HU]:"Hungary",[h.ID]:"Indonesia",[h.IE]:"Ireland",[h.IL]:"Israel",[h.IN]:"India",[h.IQ]:"Iraq",[h.IR]:"Iran",[h.IS]:"Iceland",[h.IT]:"Italy",[h.JM]:"Jamaica",[h.JO]:"Jordan",[h.JP]:"Japan",[h.KE]:"Kenya",[h.KG]:"Kyrgyzstan",[h.KH]:"Cambodia",[h.KM]:"Comoros",[h.KN]:"Saint Kitts and Nevis",[h.KP]:"Korean PDR",[h.KR]:"Rep. Korea",[h.KW]:"Kuwait",[h.KY]:"Cayman Islands",[h.KZ]:"Kazakhstan",[h.LA]:"Laos",[h.LB]:"Lebanon",[h.LC]:"Saint Lucia",[h.LI]:"Liechtenstein",[h.LK]:"Sri Lanka",[h.LR]:"Liberia",[h.LS]:"Lesotho",[h.LT]:"Lithuania",[h.LU]:"Luxembourg",[h.LV]:"Latvia",[h.LY]:"Libya",[h.MA]:"Morocco",[h.MC]:"Monaco",[h.MD]:"Moldova",[h.ME]:"Montenegro",[h.MQ]:"Martinique",[h.MG]:"Madagascar",[h.MK]:"Rep. of North Macedonia",[h.ML]:"Mali",[h.MM]:"Burma (Myanmar)",[h.MN]:"Mongolia",[h.MO]:"Macau",[h.RE]:"R\xE9union",[h.MR]:"Mauritania",[h.MS]:"Montserrat",[h.MT]:"Malta",[h.MU]:"Mauritius",[h.MV]:"Maldives",[h.MW]:"Malawi",[h.MX]:"Mexico",[h.MY]:"Malaysia",[h.MZ]:"Mozambique",[h.NA]:"Namibia",[h.NC]:"New Caledonia",[h.NE]:"Niger",[h.NG]:"Nigeria",[h.NI]:"Nicaragua",[h.NL]:"Netherlands",[h.NO]:"Norway",[h.NP]:"Nepal",[h.NZ]:"New Zealand",[h.OM]:"Oman",[h.PA]:"Panama",[h.PE]:"Peru",[h.PF]:"French Polynesia (Tahiti)",[h.PG]:"Papua New Guinea",[h.PH]:"Philippines",[h.PK]:"Pakistan",[h.PL]:"Poland",[h.PT]:"Portugal",[h.PW]:"Palau",[h.PY]:"Paraguay",[h.QA]:"Qatar",[h.YT]:"Mayotte",[h.RO]:"Romania",[h.RS]:"Serbia",[h.RU]:"Russia",[h.RW]:"Rwanda",[h.SA]:"Saudi Arabia",[h.SB]:"Solomon Islands",[h.SC]:"Seychelles",[h.SD]:"Sudan",[h.SE]:"Sweden",[h.SG]:"Singapore",[h.SH]:"Saint Helena",[h.SI]:"Slovenia",[h.SK]:"Slovakia",[h.SL]:"Sierra Leone",[h.SM]:"San Marino",[h.SN]:"Senegal",[h.SO]:"Somalia",[h.SR]:"Suriname",[h.ST]:"Sao Tome and Principe",[h.SV]:"El Salvador",[h.SX]:"Sint Maarten",[h.SY]:"Syrian Arab Republic",[h.SZ]:"Swaziland",[h.TC]:"Turks and Caicos",[h.TD]:"Chad",[h.TG]:"Togo",[h.TH]:"Thailand",[h.TJ]:"Tajikistan",[h.TL]:"East Timor",[h.TM]:"Turkmenistan",[h.TN]:"Tunisia",[h.TO]:"Tonga",[h.TR]:"Turkey",[h.TT]:"Trinidad and Tobago",[h.TW]:"Taiwan",[h.TZ]:"Tanzania",[h.UA]:"Ukraine",[h.UG]:"Uganda",[h.US]:"USA",[h.UY]:"Uruguay",[h.UZ]:"Uzbekistan",[h.VC]:"Saint Vincent and the Grenadines",[h.VE]:"Venezuela",[h.VG]:"British Virgin Islands",[h.VN]:"Vietnam",[h.VU]:"Vanuatu",[h.WS]:"Samoa",[h.XK]:"Kosovo",[h.YE]:"Yemen",[h.ZA]:"South Africa",[h.ZM]:"Zambia",[h.ZW]:"Zimbabwe"},aN={months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invalid",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:sN},cN={cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Upload failed",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drop\xA0it\xA0here",defaultLabelMultiple:"or drop\xA0them\xA0here",defaultLinkSingle:"Choose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File is too large ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}},g0=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},aN),cN),oN),nN),rN),iN);var uN=new _("[TUI_DEFAULT_LANGUAGE]",{factory:()=>g0}),v0=new _("[TUI_LANGUAGE]",{factory:()=>I(g(uN))}),l8=new _("[TUI_LANGUAGE_LOADER]"),d8=new _("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});function Kr(e){return()=>g(v0).pipe(W(t=>Ir(t)?t:I(t)),E(t=>t[e]))}function lN(e){return!e||typeof getComputedStyle>"u"?!1:getComputedStyle(e).getPropertyValue("position")==="fixed"||lN(e.parentElement)}function hu({document:e,innerWidth:t}){return Math.max(e.documentElement.clientWidth||0,t||0)}var Ph='width="',Rh='height="',Fh="")));if(!(r!=null&&r.includes(Ph))||!r.includes(Rh))return"".concat(n.replace(Fh,'");let i=r.indexOf(Ph),o=r.indexOf(Rh),s=i+Ph.length,a=o+Rh.length,c=r.slice(s,r.indexOf('"',s)),u=r.slice(a,r.indexOf('"',a));if(!u||!c||c.includes("%")||u.includes("%")||c.includes("em")||u.includes("em"))return n.replace(Fh,'').concat(n,"")}var kh=1.5,dN=2.5;function E8(e,t=!1,n=!1,r=!1,i="m"){let o=i==="s"?0:.25,s=0;return e&&(s+=kh+o),t&&(s+=kh+o),n&&(s+=kh+o),r&&(s+=dN+o),s}function pu(e){let t=e.endsWith("/")?e:"".concat(e,"/");return n=>n.startsWith("tuiIcon")?"".concat(t).concat(n,".svg").concat(gs,"#").concat(n):h0(n)}function w8(e){return e.length===1||p0.includes(e)}function b8(e,t="tui-hints-host"){var n;return!!(!((n=Uc(e))===null||n===void 0)&&n.some(r=>!r.closest(t)))}function _0(e){let t=e.trim();return t.startsWith("<")&&t.endsWith(">")}function C8(e,t){return(n,r)=>{let i=n||Object.assign({},r||t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}var D0={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function E0(e,t="s"){return D0[e]>D0[t]}function w0(e,{mobile:t}){return hu(e){var e,t,n;return(n=(t=(e=g(oe).defaultView)===null||e===void 0?void 0:e.matchMedia)===null||t===void 0?void 0:t.call(e,"(prefers-reduced-motion: reduce)").matches)!==null&&n!==void 0?n:!1}),pN=300,Lh=Q(()=>g(hN)?0:pN),b0=Q(()=>({value:"",params:{duration:g(Lh)}})),V8=Q(()=>Gy()),mN={check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"},mu=he(mN);var gN=new _("[TUI_DATA_LIST_ACCESSOR]");function U8(e){return{provide:gN,useExisting:e}}var vN=new _("[TUI_DATA_LIST_HOST]");function B8(e){return{provide:vN,useExisting:e}}var $8=he(e=>e.isWeekend?"weekend":"weekday"),H8=new _("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),z8=new _("[TUI_ELEMENT_REF]"),yN=he(xh.Monday),G8=Q(Kr("months")),gu=Q(Kr("close")),W8=Q(Kr("nothingFoundMessage")),q8=Q(Kr("defaultErrorMessage")),Y8=Q(Kr("spinTexts")),DN=Q(Kr("shortWeekDays")),vu="assets/taiga-ui/icons",jh=he(vu),C0=he({}),I0=Q(()=>pu(g(jh))),Vh=he({mobile:768,desktopSmall:1024,desktopLarge:1280}),Uh=Q(()=>{let e=g(ne),t=g(Vh);return $(e,"resize").pipe(tt(),le(null),E(()=>w0(e,t)),Te(),En(g(te)))}),Z8=new _("[TUI_LEGACY_MASK]"),Ki=new _("[TUI_MODE]"),_N={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},EN={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:e})=>_N[e],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},K8=he(EN);var Q8=he(Nh);var X8=he(I(Object.assign(Object.assign({},Nh),{decimalLimit:NaN}))),J8=new _("[TUI_OPTION_CONTENT]");var wN=e=>{let t=e.length-1;return[e[t],...e.slice(0,t)]},e4=Q(()=>{let e=g(yN);return g(DN).pipe(E(wN),E(t=>[...t.slice(e),...t.slice(0,e)]))}),yu=new _("[TUI_SANITIZER]");var t4=Q(()=>{let e=g(oe);return Ee($(e,"selectionchange"),$(e,"mouseup"),$(e,"mousedown").pipe(W(()=>$(e,"mousemove").pipe(pe($(e,"mouseup"))))),$(e,"keydown"),$(e,"keyup")).pipe(tt())}),n4=he({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),S0=he($c),M0=he(Ve),r4=he(vs.Textfield),bN=new _("[TUI_TEXTFIELD_HOST]");function i4(e){return{provide:bN,useExisting:e}}var o4=he("Taiga"),s4=new _("[TUI_VALUE_ACCESSOR]"),a4=Q(()=>{let e=g(ne);return{type:"viewport",getClientRect(){return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight}}}});var Du=class extends M{};function g4(e){return{provide:Du,multi:!0,useExisting:e}}var _u=class{};function v4(e){return{provide:_u,multi:!0,useExisting:e}}var y4=(()=>{class e{constructor(n,r,i){this.destroy$=n,this.drivers=r,this.vehicles=i}ngOnInit(){let n=this.vehicles.find(({type:r})=>r===this.type);Ee(...this.drivers.filter(({type:r})=>r===this.type)).pipe(Te(),pe(this.destroy$)).subscribe(r=>{n==null||n.toggle(r)})}}return e.\u0275fac=function(n){return new(n||e)(v(Fe,2),v(Du),v(_u))},e.\u0275dir=L({type:e}),e})(),D4=(()=>{class e{constructor(n){this.host=n}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var n;return((n=this.host.value)===null||n===void 0?void 0:n.toString())||""}process(n){}}return e.\u0275fac=function(n){return new(n||e)(v(ps))},e.\u0275dir=L({type:e}),e})(),Qr=class{};function _4(e){return{provide:Qr,deps:[[new Un,Qr]],useFactory:t=>t.find(n=>n.type===e)}}function E4(e){return{provide:Qr,multi:!0,useExisting:e}}var ys=class{};function w4(e,t){return{provide:ys,deps:[[new Un,ys],t],useFactory:CN(e)}}function CN(e){return(t,n)=>t.find(r=>r!==n&&r.type===e)||n}function b4(e){return{provide:ys,multi:!0,useExisting:e}}var X="primary",Ps=Symbol("RouteTitle"),Gh=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function to(e){return new Gh(e)}function IN(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function F0(e){return e.length>0?e[e.length-1]:null}function mr(e){return Ir(e)?e:rr(e)?_e(Promise.resolve(e)):I(e)}var MN={exact:L0,subset:j0},k0={exact:TN,subset:AN,ignored:()=>!0};function T0(e,t,n){return MN[n.paths](e.root,t.root,n.matrixParams)&&k0[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function TN(e,t){return bn(e,t)}function L0(e,t,n){if(!Jr(e.segments,t.segments)||!bu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!L0(e.children[r],t.children[r],n))return!1;return!0}function AN(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>R0(e[n],t[n]))}function j0(e,t,n){return V0(e,t,t.segments,n)}function V0(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Jr(i,n)||t.hasChildren()||!bu(i,n,r))}else if(e.segments.length===n.length){if(!Jr(e.segments,n)||!bu(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!j0(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!Jr(e.segments,i)||!bu(e.segments,i,r)||!e.children[X]?!1:V0(e.children[X],t,o,r)}}function bu(e,t,n){return t.every((r,i)=>k0[n](e[i].parameters,r.parameters))}var hr=class{constructor(t=new ve([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){return NN.serialize(this)}},ve=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Cu(this)}},Xr=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=to(this.parameters)),this._parameterMap}toString(){return B0(this)}};function ON(e,t){return Jr(e,t)&&e.every((n,r)=>bn(n.parameters,t[r].parameters))}function Jr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function xN(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===X&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==X&&(n=n.concat(t(i,r)))}),n}var vp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>new Su)(),providedIn:"root"});let e=t;return e})(),Su=class{parse(t){let n=new Yh(t);return new hr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n="/".concat(Ds(t.root,!0)),r=FN(t.queryParams),i=typeof t.fragment=="string"?"#".concat(PN(t.fragment)):"";return"".concat(n).concat(r).concat(i)}},NN=new Su;function Cu(e){return e.segments.map(t=>B0(t)).join("/")}function Ds(e,t){if(!e.hasChildren())return Cu(e);if(t){let n=e.children[X]?Ds(e.children[X],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==X&&r.push("".concat(i,":").concat(Ds(o,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}else{let n=xN(e,(r,i)=>i===X?[Ds(e.children[X],!1)]:["".concat(i,":").concat(Ds(r,!1))]);return Object.keys(e.children).length===1&&e.children[X]!=null?"".concat(Cu(e),"/").concat(n[0]):"".concat(Cu(e),"/(").concat(n.join("//"),")")}}function U0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eu(e){return U0(e).replace(/%3B/gi,";")}function PN(e){return encodeURI(e)}function qh(e){return U0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Iu(e){return decodeURIComponent(e)}function A0(e){return Iu(e.replace(/\+/g,"%20"))}function B0(e){return"".concat(qh(e.path)).concat(RN(e.parameters))}function RN(e){return Object.keys(e).map(t=>";".concat(qh(t),"=").concat(qh(e[t]))).join("")}function FN(e){let t=Object.keys(e).map(n=>{let r=e[n];return Array.isArray(r)?r.map(i=>"".concat(Eu(n),"=").concat(Eu(i))).join("&"):"".concat(Eu(n),"=").concat(Eu(r))}).filter(n=>!!n);return t.length?"?".concat(t.join("&")):""}var kN=/^[^\/()?;#]+/;function Bh(e){let t=e.match(kN);return t?t[0]:""}var LN=/^[^\/()?;=#]+/;function jN(e){let t=e.match(LN);return t?t[0]:""}var VN=/^[^=?&#]+/;function UN(e){let t=e.match(VN);return t?t[0]:""}var BN=/^[^&#]+/;function $N(e){let t=e.match(BN);return t?t[0]:""}var Yh=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[X]=new ve(t,n)),r}parseSegment(){let t=Bh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Xr(Iu(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=jN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Bh(this.remaining);i&&(r=i,this.capture(r))}t[Iu(n)]=Iu(r)}parseQueryParam(t){let n=UN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=$N(this.remaining);s&&(r=s,this.capture(r))}let i=A0(n),o=A0(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Bh(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=X);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[X]:new ve([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}};function $0(e){return e.segments.length>0?new ve([],{[X]:e}):e}function H0(e){let t={};for(let r of Object.keys(e.children)){let i=e.children[r],o=H0(i);if(r===X&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new ve(e.segments,t);return HN(n)}function HN(e){if(e.numberOfChildren===1&&e.children[X]){let t=e.children[X];return new ve(e.segments.concat(t.segments),t.children)}return e}function no(e){return e instanceof hr}function zN(e,t,n=null,r=null){let i=z0(e);return G0(i,t,n,r)}function z0(e){let t;function n(o){let s={};for(let c of o.children){let u=n(c);s[c.outlet]=u}let a=new ve(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=$0(r);return t!=null?t:i}function G0(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return $h(i,i,i,n,r);let o=GN(t);if(o.toRoot())return $h(i,i,new ve([],{}),n,r);let s=WN(o,i,e),a=s.processChildren?ws(s.segmentGroup,s.index,o.commands):q0(s.segmentGroup,s.index,o.commands);return $h(i,s.segmentGroup,a,n,r)}function Mu(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Is(e){return typeof e=="object"&&e!=null&&e.outlets}function $h(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>"".concat(l)):"".concat(u)});let s;e===t?s=n:s=W0(e,t,n);let a=$0(H0(s));return new hr(a,o,i)}function W0(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=W0(o,t,n)}),new ve(e.segments,r)}var Tu=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Mu(r[0]))throw new w(4003,!1);let i=r.find(Is);if(i&&i!==F0(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function GN(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Tu(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Tu(n,t,r)}var Ji=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function WN(e,t,n){if(e.isAbsolute)return new Ji(t,!0,0);if(!n)return new Ji(t,!1,NaN);if(n.parent===null)return new Ji(n,!0,0);let r=Mu(e.commands[0])?0:1,i=n.segments.length-1+r;return qN(n,i,e.numberOfDoubleDots)}function qN(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Ji(r,!1,i-o)}function YN(e){return Is(e[0])?e[0].outlets:{[X]:e}}function q0(e,t,n){if(e||(e=new ve([],{})),e.segments.length===0&&e.hasChildren())return ws(e,t,n);let r=ZN(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==X)&&e.children[X]&&e.numberOfChildren===1&&e.children[X].segments.length===0){let o=ws(e.children[X],t,n);return new ve(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=q0(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new ve(e.segments,i)}}function ZN(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(Is(a))break;let c="".concat(a),u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!x0(c,u,s))return o;r+=2}else{if(!x0(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Zh(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Zh(new ve([],{}),0,r))}),t}function O0(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]="".concat(r)),t}function x0(e,t,n){return e==n.path&&bn(t,n.parameters)}var bs="imperative",Ht=class{constructor(t,n){this.id=t,this.url=n}},Ss=class extends Ht{constructor(t,n,r="imperative",i=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=i}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}},ei=class extends Ht{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}},pr=class extends Ht{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=2}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}},ti=class extends Ht{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=16}},Ms=class extends Ht{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=3}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}},Au=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=4}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Kh=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=7}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Qh=class extends Ht{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=8}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}},Xh=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=5}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Jh=class extends Ht{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=6}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},ep=class{constructor(t){this.route=t,this.type=9}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}},tp=class{constructor(t){this.route=t,this.type=10}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}},np=class{constructor(t){this.snapshot=t,this.type=11}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(t,"')")}},rp=class{constructor(t){this.snapshot=t,this.type=12}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(t,"')")}},ip=class{constructor(t){this.snapshot=t,this.type=13}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(t,"')")}},op=class{constructor(t){this.snapshot=t,this.type=14}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(t,"')")}};var Ts=class{},As=class{constructor(t){this.url=t}};var sp=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Fu,this.attachRef=null}},Fu=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new sp,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ou=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=ap(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=ap(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=cp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return cp(t,this._root).map(n=>n.value)}};function ap(e,t){if(e===t.value)return t;for(let n of t.children){let r=ap(e,n);if(r)return r}return null}function cp(e,t){if(e===t.value)return[t];for(let n of t.children){let r=cp(e,n);if(r.length)return r.unshift(t),r}return[]}var Nt=class{constructor(t,n){this.value=t,this.children=n}toString(){return"TreeNode(".concat(this.value,")")}};function Xi(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var xu=class extends Ou{constructor(t,n){super(t),this.snapshot=n,Dp(this,t)}toString(){return this.snapshot.toString()}};function Y0(e,t){let n=QN(e,t),r=new Re([new Xr("",{})]),i=new Re({}),o=new Re({}),s=new Re({}),a=new Re(""),c=new ro(r,i,s,a,o,X,t,n.root);return c.snapshot=n.root,new xu(new Nt(c,[]),n)}function QN(e,t){let n={},r={},i={},o="",s=new Os([],n,i,o,r,X,t,null,{});return new Nu("",new Nt(s,[]))}var ro=class{constructor(t,n,r,i,o,s,a,c){var u,l;this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=(l=(u=this.dataSubject)==null?void 0:u.pipe(E(d=>d[Ps])))!=null?l:I(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(E(t=>to(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(E(t=>to(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}};function yp(e,t,n="emptyOnly"){var o,s;let r,{routeConfig:i}=e;return t!==null&&(n==="always"||(i==null?void 0:i.path)===""||!t.component&&!((o=t.routeConfig)!=null&&o.loadComponent))?r={params:x(x({},t.params),e.params),data:x(x({},t.data),e.data),resolve:x(x(x(x({},e.data),t.data),i==null?void 0:i.data),e._resolvedData)}:r={params:e.params,data:e.data,resolve:x(x({},e.data),(s=e._resolvedData)!=null?s:{})},i&&K0(i)&&(r.resolve[Ps]=i.title),r}var Os=class{get title(){var t;return(t=this.data)==null?void 0:t[Ps]}constructor(t,n,r,i,o,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=to(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(n,"')")}},Nu=class extends Ou{constructor(t,n){super(n),this.url=t,Dp(this,n)}toString(){return Z0(this._root)}};function Dp(e,t){t.value._routerState=e,t.children.forEach(n=>Dp(e,n))}function Z0(e){let t=e.children.length>0?" { ".concat(e.children.map(Z0).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Hh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),bn(t.params,n.params)||e.paramsSubject.next(n.params),SN(t.url,n.url)||e.urlSubject.next(n.url),bn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function up(e,t){let n=bn(e.params,t.params)&&ON(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||up(e.parent,t.parent))}function K0(e){return typeof e.title=="string"||e.title===null}var XN=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=X,this.activateEvents=new $e,this.deactivateEvents=new $e,this.attachEvents=new $e,this.detachEvents=new $e,this.parentContexts=g(Fu),this.location=g(dt),this.changeDetector=g(et),this.environmentInjector=g(Lt),this.inputBinder=g(_p,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var i;return((i=this.parentContexts.getContext(r))==null?void 0:i.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){var o;this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),(o=this.inputBinder)==null||o.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){var l;if(this.isActivated)throw new w(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new lp(r,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i!=null?i:this.environmentInjector}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=L({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[jt]});let e=t;return e})(),lp=class{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ro?this.route:t===Fu?this.childContexts:this.parent.get(t,n)}},_p=new _("");function JN(e,t,n){let r=xs(e,t._root,n?n._root:void 0);return new xu(r,t)}function xs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=eP(e,t,n);return new Nt(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>xs(e,a)),s}}let r=tP(t.value),i=t.children.map(o=>xs(e,o));return new Nt(r,i)}}function eP(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return xs(e,r,i);return xs(e,r)})}function tP(e){return new ro(new Re(e.url),new Re(e.params),new Re(e.queryParams),new Re(e.fragment),new Re(e.data),e.outlet,e.component,e)}var Q0="ngNavigationCancelingError";function X0(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=no(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=J0(!1,0,t);return i.url=n,i.navigationBehaviorOptions=r,i}function J0(e,t,n){let r=new Error("NavigationCancelingError: "+(e||""));return r[Q0]=!0,r.cancellationCode=t,n&&(r.url=n),r}function nP(e){return eE(e)&&no(e.url)}function eE(e){return e&&e[Q0]}var rP=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Ze({type:t,selectors:[["ng-component"]],standalone:!0,features:[Oy],decls:1,vars:0,template:function(i,o){i&1&&Ie(0,"router-outlet")},dependencies:[XN],encapsulation:2});let e=t;return e})();function iP(e,t){var n;return e.providers&&!e._injector&&(e._injector=pf(e.providers,t,"Route: ".concat(e.path))),(n=e._injector)!=null?n:t}function Ep(e){let t=e.children&&e.children.map(Ep),n=t?Me(x({},e),{children:t}):x({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==X&&(n.component=rP),n}function Cn(e){return e.outlet||X}function oP(e,t){let n=e.filter(r=>Cn(r)===t);return n.push(...e.filter(r=>Cn(r)!==t)),n}function Rs(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let r=n.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var sP=(e,t,n,r)=>E(i=>(new dp(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),dp=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Hh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Xi(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Xi(t);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Xi(t);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Xi(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new op(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rp(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Hh(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Hh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Rs(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}},Pu=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},eo=class{constructor(t,n){this.component=t,this.route=n}};function aP(e,t,n){let r=e._root,i=t?t._root:null;return _s(r,i,n,[r.value])}function cP(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function oo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!rg(e)?e:t.get(e):r}function _s(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Xi(t);return e.children.forEach(s=>{uP(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Cs(a,n.getContext(s),i)),i}function uP(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=lP(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Pu(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?_s(e,t,a?a.children:null,r,i):_s(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new eo(a.outlet.component,s))}else s&&Cs(t,a,i),i.canActivateChecks.push(new Pu(r)),o.component?_s(e,null,a?a.children:null,r,i):_s(e,null,n,r,i);return i}function lP(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Jr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Jr(e.url,t.url)||!bn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!up(e,t)||!bn(e.queryParams,t.queryParams);case"paramsChange":default:return!up(e,t)}}function Cs(e,t,n){let r=Xi(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Cs(s,t.children.getContext(o),n):Cs(s,null,n):Cs(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new eo(t.outlet.component,i)):n.canDeactivateChecks.push(new eo(null,i)):n.canDeactivateChecks.push(new eo(null,i))}function Fs(e){return typeof e=="function"}function dP(e){return typeof e=="boolean"}function fP(e){return e&&Fs(e.canLoad)}function hP(e){return e&&Fs(e.canActivate)}function pP(e){return e&&Fs(e.canActivateChild)}function mP(e){return e&&Fs(e.canDeactivate)}function gP(e){return e&&Fs(e.canMatch)}function tE(e){return e instanceof Tn||(e==null?void 0:e.name)==="EmptyError"}var wu=Symbol("INITIAL_VALUE");function io(){return W(e=>la(e.map(t=>t.pipe(je(1),le(wu)))).pipe(E(t=>{for(let n of t)if(n!==!0){if(n===wu)return wu;if(n===!1||n instanceof hr)return n}return!0}),fe(t=>t!==wu),je(1)))}function vP(e,t){return Le(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?I(Me(x({},n),{guardsResult:!0})):yP(s,r,i,e).pipe(Le(a=>a&&dP(a)?DP(r,o,e,t):I(a)),E(a=>Me(x({},n),{guardsResult:a})))})}function yP(e,t,n,r){return _e(e).pipe(Le(i=>CP(i.component,i.route,n,t,r)),Wt(i=>i!==!0,!0))}function DP(e,t,n,r){return _e(t).pipe(Sr(i=>mt(EP(i.route.parent,r),_P(i.route,r),bP(e,i.path,n),wP(e,i.route,n))),Wt(i=>i!==!0,!0))}function _P(e,t){return e!==null&&t&&t(new ip(e)),I(!0)}function EP(e,t){return e!==null&&t&&t(new np(e)),I(!0)}function wP(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return I(!0);let i=r.map(o=>rn(()=>{var u;let s=(u=Rs(t))!=null?u:n,a=oo(o,s),c=hP(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e));return mr(c).pipe(Wt())}));return I(i).pipe(io())}function bP(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>cP(s)).filter(s=>s!==null).map(s=>rn(()=>{let a=s.guards.map(c=>{var f;let u=(f=Rs(s.node))!=null?f:n,l=oo(c,u),d=pP(l)?l.canActivateChild(r,e):u.runInContext(()=>l(r,e));return mr(d).pipe(Wt())});return I(a).pipe(io())}));return I(o).pipe(io())}function CP(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{var d;let c=(d=Rs(t))!=null?d:i,u=oo(a,c),l=mP(u)?u.canDeactivate(e,t,n,r):c.runInContext(()=>u(e,t,n,r));return mr(l).pipe(Wt())});return I(s).pipe(io())}function IP(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=oo(s,e),c=fP(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n));return mr(c)});return I(o).pipe(io(),nE(r))}function nE(e){return wr(we(t=>{if(no(t))throw X0(e,t)}),E(t=>t===!0))}function SP(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=oo(s,e),c=gP(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n));return mr(c)});return I(o).pipe(io(),nE(r))}var Ns=class{constructor(t){this.segmentGroup=t||null}},Ru=class extends Error{constructor(t){super(),this.urlTree=t}};function Qi(e){return fi(new Ns(e))}function MP(e){return fi(new w(4e3,!1))}function TP(e){return fi(J0(!1,3))}var fp=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new w(4002,!1)}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return I(r);if(i.numberOfChildren>1||!i.children[X])return MP(t.redirectTo);i=i.children[X]}}applyRedirectCommands(t,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Ru(i);return i}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new hr(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new ve(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},hp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function AP(e,t,n,r,i){let o=wp(e,t,n);return o.matched?(r=iP(t,r),SP(r,t,n,i).pipe(E(s=>s===!0?o:x({},hp)))):I(o)}function wp(e,t,n){var a,c;if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?x({},hp):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||IN)(n,e,t);if(!i)return x({},hp);let o={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([u,l])=>{o[u]=l.path});let s=i.consumed.length>0?x(x({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:(c=i.posParams)!=null?c:{}}}function N0(e,t,n,r){return n.length>0&&NP(e,n,r)?{segmentGroup:new ve(t,xP(r,new ve(n,e.children))),slicedSegments:[]}:n.length===0&&PP(e,n,r)?{segmentGroup:new ve(e.segments,OP(e,t,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ve(e.segments,e.children),slicedSegments:n}}function OP(e,t,n,r,i){let o={};for(let s of r)if(ku(e,n,s)&&!i[Cn(s)]){let a=new ve([],{});o[Cn(s)]=a}return x(x({},i),o)}function xP(e,t){let n={};n[X]=t;for(let r of e)if(r.path===""&&Cn(r)!==X){let i=new ve([],{});n[Cn(r)]=i}return n}function NP(e,t,n){return n.some(r=>ku(e,t,r)&&Cn(r)!==X)}function PP(e,t,n){return n.some(r=>ku(e,t,r))}function ku(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function RP(e,t,n,r){return Cn(e)!==r&&(r===X||!ku(t,n,e))?!1:e.path==="**"?!0:wp(t,e,n).matched}function FP(e,t,n){return t.length===0&&!e.children[n]}var pp=class{};function kP(e,t,n,r,i,o,s="emptyOnly"){return new mp(e,t,n,r,i,s,o).recognize()}var LP=31,mp=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new fp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new w(4002,!1)}recognize(){let t=N0(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(E(n=>{let r=new Os([],Object.freeze({}),Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,{},X,this.rootComponentType,null,{}),i=new Nt(r,n),o=new Nu("",i),s=zN(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,X).pipe(Gt(r=>{if(r instanceof Ru)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ns?this.noMatchError(r):r}))}inheritParamsAndData(t,n){let r=t.value,i=yp(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(t,n,r,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i,!0).pipe(E(o=>o instanceof Nt?[o]:[]))}processChildren(t,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return _e(i).pipe(Sr(o=>{let s=r.children[o],a=oP(n,o);return this.processSegmentGroup(t,a,s,o)}),ha((o,s)=>(o.push(...s),o)),Zn(null),sl(),Le(o=>{if(o===null)return Qi(r);let s=rE(o);return jP(s),I(s)}))}processSegment(t,n,r,i,o,s){return _e(n).pipe(Sr(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:t,n,a,r,i,o,s).pipe(Gt(u=>{if(u instanceof Ns)return I(null);throw u}))}),Wt(a=>!!a),Gt(a=>{if(tE(a))return FP(r,i,o)?I(new pp):Qi(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return RP(r,i,o,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):Qi(i):Qi(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=i.path==="**"?P0(o):wp(n,i,o);if(!a)return Qi(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>LP&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(Le(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){let s;return r.path==="**"?(s=I(P0(i)),n.children={}):s=AP(n,r,i,t,this.urlSerializer),s.pipe(W(a=>{var c;return a.matched?(t=(c=r._injector)!=null?c:t,this.getChildConfig(t,r,i).pipe(W(({routes:u})=>{var H,re,ge;let l=(H=r._loadedInjector)!=null?H:t,{consumedSegments:d,remainingSegments:f,parameters:p}=a,m=new Os(d,p,Object.freeze(x({},this.urlTree.queryParams)),this.urlTree.fragment,UP(r),Cn(r),(ge=(re=r.component)!=null?re:r._loadedComponent)!=null?ge:null,r,BP(r)),{segmentGroup:y,slicedSegments:A}=N0(n,d,f,u);if(A.length===0&&y.hasChildren())return this.processChildren(l,u,y).pipe(E(Ye=>Ye===null?null:new Nt(m,Ye)));if(u.length===0&&A.length===0)return I(new Nt(m,[]));let S=Cn(r)===o;return this.processSegment(l,u,y,A,S?X:o,!0).pipe(E(Ye=>new Nt(m,Ye instanceof Nt?[Ye]:[])))}))):Qi(n)}))}getChildConfig(t,n,r){return n.children?I({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?I({routes:n._loadedRoutes,injector:n._loadedInjector}):IP(t,n,r,this.urlSerializer).pipe(Le(i=>i?this.configLoader.loadChildren(t,n).pipe(we(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):TP(n))):I({routes:[],injector:t})}};function jP(e){e.sort((t,n)=>t.value.outlet===X?-1:n.value.outlet===X?1:t.value.outlet.localeCompare(n.value.outlet))}function VP(e){let t=e.value.routeConfig;return t&&t.path===""}function rE(e){let t=[],n=new Set;for(let r of e){if(!VP(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=rE(r.children);t.push(new Nt(r.value,i))}return t.filter(r=>!n.has(r))}function UP(e){return e.data||{}}function BP(e){return e.resolve||{}}function P0(e){return{matched:!0,parameters:e.length>0?F0(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function $P(e,t,n,r,i,o){return Le(s=>kP(e,t,n,r,s.extractedUrl,i,o).pipe(E(({state:a,tree:c})=>Me(x({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function HP(e,t){return Le(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return I(n);let o=i.map(u=>u.route),s=new Set(o),a=iE(o[0].parent).slice(1),c=0;return _e(a).pipe(Sr(u=>s.has(u)?zP(u,r,e,t):(u.data=yp(u,u.parent,e).resolve,I(void 0))),we(()=>c++),mi(1),Le(u=>c===a.length?I(n):De))})}function iE(e){let t=e.children.map(n=>iE(n)).flat();return[e,...t]}function zP(e,t,n,r){let i=e.routeConfig,o=e._resolve;return(i==null?void 0:i.title)!==void 0&&!K0(i)&&(o[Ps]=i.title),GP(o,e,t,r).pipe(E(s=>(e._resolvedData=s,e.data=yp(e,e.parent,n).resolve,null)))}function GP(e,t,n,r){let i=Wh(e);if(i.length===0)return I({});let o={};return _e(i).pipe(Le(s=>WP(e[s],t,n,r).pipe(Wt(),we(a=>{o[s]=a}))),mi(1),ho(o),Gt(s=>tE(s)?De:fi(s)))}function WP(e,t,n,r){var a;let i=(a=Rs(t))!=null?a:r,o=oo(e,i),s=o.resolve?o.resolve(t,n):i.runInContext(()=>o(t,n));return mr(s)}function zh(e){return W(t=>{let n=e(t);return n?_e(n).pipe(E(()=>t)):I(t)})}var oE=(()=>{let t=class t{buildTitle(r){var s;let i,o=r.root;for(;o!==void 0;)i=(s=this.getResolvedTitleForRoute(o))!=null?s:i,o=o.children.find(a=>a.outlet===X);return i}getResolvedTitleForRoute(r){return r.data[Ps]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(qP))(),providedIn:"root"});let e=t;return e})(),qP=(()=>{let t=class t extends oE{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(C(Rf))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),bp=new _("",{providedIn:"root",factory:()=>({})}),Cp=new _("ROUTES"),YP=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Df)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return I(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=mr(r.loadComponent()).pipe(E(sE),we(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Kn(()=>{this.componentLoaders.delete(r)})),o=new ci(i,()=>new ye).pipe(ai());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=ZP(i,this.compiler,r,this.onLoadEndListener).pipe(Kn(()=>{this.childrenLoaders.delete(i)})),a=new ci(s,()=>new ye).pipe(ai());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ZP(e,t,n,r){return mr(e.loadChildren()).pipe(E(sE),Le(i=>i instanceof Mo||Array.isArray(i)?I(i):_e(t.compileModuleAsync(i))),E(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Cp,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ep),injector:o}}))}function KP(e){return e&&typeof e=="object"&&"default"in e}function sE(e){return KP(e)?e.default:e}var Ip=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(QP))(),providedIn:"root"});let e=t;return e})(),QP=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),XP=new _("");var JP=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=g(YP),this.environmentInjector=g(Lt),this.urlSerializer=g(vp),this.rootContexts=g(Fu),this.location=g(Go),this.inputBindingEnabled=g(_p,{optional:!0})!==null,this.titleStrategy=g(oE),this.options=g(bp,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Ip),this.createViewTransition=g(XP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let r=o=>this.events.next(new ep(o)),i=o=>this.events.next(new tp(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var o;let i=++this.navigationId;(o=this.transitions)==null||o.next(Me(x(x({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new Re({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:bs,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fe(s=>s.id!==0),E(s=>Me(x({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),W(s=>{this.currentTransition=s;let a=!1,c=!1;return I(s).pipe(we(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Me(x({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),W(u=>{var f;let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=(f=u.extras.onSameUrlNavigation)!=null?f:r.onSameUrlNavigation;if(!l&&d!=="reload"){let p="";return this.events.next(new ti(u.id,this.urlSerializer.serialize(u.rawUrl),p,0)),u.resolve(null),De}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(W(p=>{var y,A;let m=(y=this.transitions)==null?void 0:y.getValue();return this.events.next(new Ss(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),m!==((A=this.transitions)==null?void 0:A.getValue())?De:Promise.resolve(p)}),$P(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),we(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=Me(x({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let m=new Au(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(m)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:p,extractedUrl:m,source:y,restoredState:A,extras:S}=u,H=new Ss(p,this.urlSerializer.serialize(m),y,A);this.events.next(H);let re=Y0(m,this.rootComponentType).snapshot;return this.currentTransition=s=Me(x({},u),{targetSnapshot:re,urlAfterRedirects:m,extras:Me(x({},S),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,I(s)}else{let p="";return this.events.next(new ti(u.id,this.urlSerializer.serialize(u.extractedUrl),p,1)),u.resolve(null),De}}),we(u=>{let l=new Kh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),E(u=>(this.currentTransition=s=Me(x({},u),{guards:aP(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),vP(this.environmentInjector,u=>this.events.next(u)),we(u=>{if(s.guardsResult=u.guardsResult,no(u.guardsResult))throw X0(this.urlSerializer,u.guardsResult);let l=new Qh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),fe(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",3),!1)),zh(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(we(l=>{let d=new Xh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),W(l=>{let d=!1;return I(l).pipe(HP(this.paramsInheritanceStrategy,this.environmentInjector),we({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),we(l=>{let d=new Jh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),zh(u=>{let l=d=>{var p;let f=[];(p=d.routeConfig)!=null&&p.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(we(m=>{d.component=m}),E(()=>{})));for(let m of d.children)f.push(...l(m));return f};return la(l(u.targetSnapshot.root)).pipe(Zn(),je(1))}),zh(()=>this.afterPreactivation()),W(()=>{var f;let{currentSnapshot:u,targetSnapshot:l}=s,d=(f=this.createViewTransition)==null?void 0:f.call(this,this.environmentInjector,u.root,l.root);return d?_e(d).pipe(E(()=>s)):I(s)}),E(u=>{let l=JN(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Me(x({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),we(()=>{this.events.next(new Ts)}),sP(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),je(1),we({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ei(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),pe(this.transitionAbortSubject.pipe(we(u=>{throw u}))),Kn(()=>{var u;if(!a&&!c){let l="";this.cancelNavigationTransition(s,l,1)}((u=this.currentNavigation)==null?void 0:u.id)===s.id&&(this.currentNavigation=null)}),Gt(u=>{var l;if(c=!0,eE(u))this.events.next(new pr(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),nP(u)?this.events.next(new As(u.url)):s.resolve(!1);else{this.events.next(new Ms(s.id,this.urlSerializer.serialize(s.extractedUrl),u,(l=s.targetSnapshot)!=null?l:void 0));try{s.resolve(r.errorHandler(u))}catch(d){s.reject(d)}}return De}))}))}cancelNavigationTransition(r,i,o){let s=new pr(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){var r,i;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((i=this.currentTransition)==null?void 0:i.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,o;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==((i=this.currentTransition)==null?void 0:i.extractedUrl.toString())&&!((o=this.currentTransition)!=null&&o.extras.skipLocationChange)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function eR(e){return e!==bs}var tR=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(nR))(),providedIn:"root"});let e=t;return e})(),gp=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},nR=(()=>{let t=class t extends gp{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),aE=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>(()=>g(rR))(),providedIn:"root"});let e=t;return e})(),rR=(()=>{let t=class t extends aE{constructor(){super(...arguments),this.location=g(Go),this.urlSerializer=g(vp),this.options=g(bp,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Ip),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new hr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Y0(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r,i;return this.canceledNavigationResolution!=="computed"?this.currentPageId:(i=(r=this.restoredState())==null?void 0:r.\u0275routerPageId)!=null?i:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof Ss)this.stateMemento=this.createStateMemento();else if(r instanceof ti)this.rawUrlTree=i.initialUrl;else if(r instanceof Au){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof Ts?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):r instanceof pr&&(r.code===3||r.code===2)?this.restoreHistory(i):r instanceof Ms?this.restoreHistory(i,!0):r instanceof ei&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=x(x({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=x(x({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){var i;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,(i=r.finalUrl)!=null?i:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Ce(t)))(o||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Es=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Es||{});function iR(e,t){e.events.pipe(fe(n=>n instanceof ei||n instanceof pr||n instanceof Ms||n instanceof ti),E(n=>n instanceof ei||n instanceof ti?Es.COMPLETE:(n instanceof pr?n.code===0||n.code===1:!1)?Es.REDIRECTING:Es.FAILED),fe(n=>n!==Es.REDIRECTING),je(1)).subscribe(()=>{t()})}function oR(e){throw e}var sR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},cE=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r,i;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(wc),this.stateManager=g(aE),this.options=g(bp,{optional:!0})||{},this.pendingTasks=g(bc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(JP),this.urlSerializer=g(vp),this.location=g(Go),this.urlHandlingStrategy=g(Ip),this._events=new ye,this.errorHandler=this.options.errorHandler||oR,this.navigated=!1,this.routeReuseStrategy=g(tR),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(i=(r=g(Cp,{optional:!0}))==null?void 0:r.flat())!=null?i:[],this.componentInputBindingEnabled=!!g(_p,{optional:!0}),this.eventsSubscription=new Ge,this.isNgZoneEnabled=g(te)instanceof te&&te.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:o=>{this.console.warn(o)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof pr&&i.code!==0&&i.code!==1)this.navigated=!0;else if(i instanceof ei)this.navigated=!0;else if(i instanceof As){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||eR(o.source)};this.scheduleNavigation(a,bs,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}uR(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)}))}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let u=x({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(Ep),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=x(x({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let p=o?o.snapshot:this.routerState.snapshot.root;f=z0(p)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),f=this.currentUrlTree.root}return G0(f,r,d,l!=null?l:null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=no(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,bs,null,i)}navigate(r,i={skipLocationChange:!1}){return cR(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=x({},sR):i===!1?o=x({},aR):o=i,no(r))return T0(this.currentUrlTree,r,o);let s=this.parseUrl(r);return T0(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.keys(r).reduce((i,o)=>{let s=r[o];return s!=null&&(i[o]=s),i},{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,p)=>{c=f,u=p});let d=this.pendingTasks.add();return iR(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function cR(e){for(let t=0;tn.\u0275providers)])}function dR(e){return e.routerState.root}function fR(){let e=g(st);return t=>{var o,s;let n=e.get(ir);if(t!==n.components[0])return;let r=e.get(cE),i=e.get(hR);e.get(pR)===1&&r.initialNavigation(),(o=e.get(mR,null,J.Optional))==null||o.setUpPreloading(),(s=e.get(lR,null,J.Optional))==null||s.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var hR=new _("",{factory:()=>new ye}),pR=new _("",{providedIn:"root",factory:()=>1});var mR=new _("");var d5=(()=>{class e extends M{constructor(n,r,i){super(o=>this.stream$.subscribe(o)),this.media=n,this.ngZone=r,this.size$=i,this.sorted=Object.values(this.media).sort((o,s)=>o-s),this.invert=Object.keys(this.media).reduce((o,s)=>Object.assign(Object.assign({},o),{[this.media[s]]:s}),{}),this.stream$=this.size$.pipe(E(({width:o})=>this.sorted.find(s=>s>o)),E(o=>this.invert[o||this.sorted[this.sorted.length-1]]),Te(),En(this.ngZone),Ct({bufferSize:1,refCount:!0}))}}return e.\u0275fac=function(n){return new(n||e)(C(Vh),C(te),C(Ih))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),uE=(()=>{class e{constructor(n){this.locale=n}format(n){return I(new Date(n).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}}return e.\u0275fac=function(n){return new(n||e)(C(Ho))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),f5=(()=>{class e extends Re{constructor(){super([])}add(n){this.next(this.value.concat(n))}remove(n){this.value.includes(n)&&this.next(this.value.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var h5=(()=>{class e extends M{constructor(n,r,i,o){super(s=>r.pipe(E(()=>n.nativeElement.getBoundingClientRect()),E(a=>o.getPosition(a)),_n(i),Kn(()=>o.getPosition(GD))).subscribe(s))}}return e.\u0275fac=function(n){return new(n||e)(C(B),C(Jt),C(te),C(Qr))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})();var lE=(()=>{class e{constructor(n,r,i){this.tuiSanitizer=n,this.sanitizer=r,this.originals={},this.items$=new Re(new Map),this.define(i)}define(n){let{value:r}=this.items$;Object.keys(n).forEach(i=>{this.defineIcon(i,n[i],r)}),this.items$.next(r)}getOriginal(n){return this.originals[n]||null}defineIcon(n,r,i){if(i.has(n))return;let o=this.parseSrc(n,r);o&&(i.set(n,o),this.originals=Object.assign(Object.assign({},this.originals),{[n]:r}))}parseSrc(n,r){return this.sanitize(y0(r,n))}sanitize(n){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(lt.HTML,n):this.sanitizer.sanitize(lt.HTML,n))||"")}}return e.\u0275fac=function(n){return new(n||e)(C(yu,8),C(Ko),C(C0))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),p5=(()=>{class e{constructor(n,r){this.win=n,this.isWebkit=r}correct(n){var r,i,o,s;return this.isWebkit?[n[0]+((i=(r=this.win.visualViewport)===null||r===void 0?void 0:r.offsetTop)!==null&&i!==void 0?i:0),n[1]+((s=(o=this.win.visualViewport)===null||o===void 0?void 0:o.offsetLeft)!==null&&s!==void 0?s:0)]:n}}return e.\u0275fac=function(n){return new(n||e)(C(ne),C(e0))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vR(e,t){if(e&1&&Ie(0,"div",3),e&2){let n=ce().tuiLet;R("innerHTML",n,Ri)}}function yR(e,t){if(e&1){let n=mn();Fo(),ue(0,"svg",4),ze("error",function(){dn(n);let i=ce(2);return fn(i.onError())}),Ie(1,"use"),ae()}if(e&2){let n=ce(2);K(1),Ke("href",n.use,null,"xlink")}}function DR(e,t){if(e&1&&(Qt(0),me(1,vR,1,1,"div",1)(2,yR,2,1,"ng-template",null,2,jy),Xt()),e&2){let n=Sy(3),r=ce();K(1),R("ngIf",r.isInnerHTML)("ngIfElse",n)}}var _R={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},ER={iconsPlace:vu,path:pu(vu),srcProcessor:Ve,contentProcessor:$c,deprecated:e=>{let t=e.replace("Large","").replace("Outline",""),n=_R[t];return n?"".concat(t,"/(Large|Outline) is deprecated, use ").concat(n,"/(Large|Outline) instead"):""}},wR=Q(()=>({iconsPlace:g(jh),path:g(I0),deprecated:ER.deprecated,srcProcessor:g(M0),contentProcessor:g(S0)})),bR=new _("[TUI_SVG_SRC_INTERCEPTORS]");var CR="Attempted to use undefined named icon",IR="External icon is missing on the given URL",SR="Failed to load external SVG",Pt=class{constructor(t,n,r,i,o,s,a,c,u,l){this.doc=t,this.win=n,this.options=r,this.srcInterceptors=i,this.tuiSanitizer=o,this.svgService=s,this.staticRequestService=a,this.sanitizer=c,this.el=u,this.baseHref=l,this.src$=new Mn(1),this.icon="",this.innerHTML$=this.src$.pipe(W(()=>Gn(this.icon)?this.isExternal?this.getExternalIcon(this.icon):I(this.getSafeHtml(this.icon)):I(this.icon)),le(""))}set src(t){var n;let r=this.options.deprecated(String(t));this.icon=((n=this.srcInterceptors)!==null&&n!==void 0?n:[]).reduce((i,o)=>o(i,this.options),this.options.srcProcessor(t||"")),this.src$.next()}get src(){return this.icon}get use(){return Gn(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!Gn(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return Gi(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(gs,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Gn(this.icon)&&this.icon.replace(gs,"").endsWith(".svg")}get isSrc(){return Gn(this.icon)&&_0(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:t,isUse:n,win:r}=this;return n&&t.startsWith("http")&&!!r.origin&&!t.startsWith(r.origin)}onError(t=IR){let{icon:n}=this,r=new CustomEvent(m0,{bubbles:!0,detail:{message:t,icon:n}});this.el.nativeElement.dispatchEvent(r)}resolveName(t,n){return n(t,this.baseHref)}getSafeHtml(t){return this.isSrc?this.sanitize(t):this.process(t)}process(t){let n=this.svgService.getOriginal(t);return this.isName&&!n&&t&&this.onError(CR),!this.isShadowDOM||!this.isName?"":this.sanitize(n||"")}sanitize(t){return t=this.options.contentProcessor(t),this.tuiSanitizer&&Gn(t)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(lt.HTML,t)||""):t}getExternalIcon(t){let n=t.includes(".svg")?t:this.use;return this.staticRequestService.request(n).pipe(Gt(()=>(this.onError(SR),I(""))),E(r=>this.sanitize(r.replace("{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,f0]]}),e})();var V="{{duration}}ms ease-in-out",de={params:{duration:300}},at=300,fE=Ne("tuiHeightCollapse",[ee(":enter",[D({height:0}),j(V,D({height:"*"}))],de),ee(":leave",[D({height:"*"}),j(V,D({height:0}))],de)]),k5=Ne("tuiHeightCollapseList",[ee("* => *",[Qe(":enter",[D({height:0}),nt(at,[j(V,D({height:"*"}))])],{optional:!0}),Qe(":leave",[D({height:"*"}),nt(at,[j(V,D({height:0}))])],{optional:!0})],de)]),L5=Ne("tuiWidthCollapse",[ee(":enter",[D({width:0}),j(V,D({width:"*"}))],de),ee(":leave",[D({width:"*"}),j(V,D({width:0}))],de)]),j5=Ne("tuiWidthCollapseList",[ee("* => *",[Qe(":enter",[D({width:0}),nt(at,[j(V,D({width:"*"}))])],{optional:!0}),Qe(":leave",[D({width:"*"}),nt(at,[j(V,D({width:0}))])],{optional:!0})],de)]),Lu=Ne("tuiFadeIn",[ee(":enter",[D({opacity:0}),j(V,D({opacity:1}))],de),ee(":leave",[D({opacity:1}),j(V,D({opacity:0}))],de)]),V5=Ne("tuiFadeInList",[ee("* => *",[Qe(":enter",[D({opacity:0}),nt(at,[j(V,D({opacity:1}))])],{optional:!0}),Qe(":leave",[D({opacity:1}),nt(at,[j(V,D({opacity:0}))])],{optional:!0})],de)]),U5=Ne("tuiFadeInTop",[ee(":enter",[D({transform:"translateY(-10px)",opacity:0}),j(V,D({transform:"translateY(0)",opacity:1}))],de),ee(":leave",[D({transform:"translateY(0)",opacity:1}),j(V,D({transform:"translateY(-10px)",opacity:0}))],de)]),B5=Ne("tuiFadeInBottom",[ee(":enter",[D({transform:"translateY(10px)",opacity:0}),j(V,D({transform:"translateY(0)",opacity:1}))],de),ee(":leave",[D({transform:"translateY(0)",opacity:1}),j(V,D({transform:"translateY(10px)",opacity:0}))],de)]),$5=Ne("tuiDropdownAnimation",[ee(":enter",[D({transform:"translateY(-10px)",opacity:0}),j(V,D({transform:"translateY(0)",opacity:1}))],de),ee(":leave",[D({transform:"translateY(0)",opacity:1}),j(V,D({transform:"translateY(-10px)",opacity:0}))],de)]),H5=Ne("tuiScaleIn",[ee(":enter",[D({transform:"scale(0)"}),j(V,D({transform:"scale(1)"}))],de),ee(":leave",[D({transform:"scale(1)"}),j(V,D({transform:"scale(0)"}))],de)]),z5=Ne("tuiPop",[ee(":enter",[D({transform:"scale(0)"}),j(V,D({transform:"scale(1.1)"})),j(V,D({transform:"scale(1)"}))],de),ee(":leave",[D({transform:"scale(1)"}),j(V,D({transform:"scale(1.1)"})),j(V,D({transform:"scale(0)"}))],de)]),G5=Ne("tuiScaleInList",[ee("* => *",[Qe(":enter",[D({transform:"scale(0)"}),nt(at,[j(V,D({transform:"scale(1)"}))])],{optional:!0}),Qe(":leave",[D({transform:"scale(1)"}),nt(at,[j(V,D({transform:"scale(0)"}))])],{optional:!0})],de)]),W5=Ne("tuiSlideIn",[ee("* => left",[D({transform:"translateX(-100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee("left => *",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(-100%)"}))],de),ee("* => right",[D({transform:"translateX(100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee("right => *",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(100%)"}))],de)]),q5=Ne("tuiSlideInLeft",[ee(":enter",[D({transform:"translateX(-100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee(":leave",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(-100%)"}))],de)]),Y5=Ne("tuiSlideInLeftList",[ee("* => *",[Qe(":enter",[D({transform:"translateX(-100%)"}),nt(at,[j(V,D({transform:"translateX(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateX(0)"}),nt(at,[j(V,D({transform:"translateX(-100%)"}))])],{optional:!0})],de)]),hE=Ne("tuiSlideInRight",[ee(":enter",[D({transform:"translateX(100%)"}),j(V,D({transform:"translateX(0)"}))],de),ee(":leave",[D({transform:"translateX(0)"}),j(V,D({transform:"translateX(100%)"}))],de)]),Z5=Ne("tuiSlideInRightList",[ee("* => *",[Qe(":enter",[D({transform:"translateX(100%)"}),nt(at,[j(V,D({transform:"translateX(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateX(0)"}),nt(at,[j(V,D({transform:"translateX(100%)"}))])],{optional:!0})],de)]),pE=Ne("tuiSlideInTop",[ee(":enter",[D({transform:"translate3d(0,{{start}},0)"}),j(V,D({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),ee(":leave",[D({transform:"translate3d(0,{{end}},0)"}),j(V,D({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),K5=Ne("tuiSlideInTopList",[ee("* => *",[Qe(":enter",[D({transform:"translateY(100%)"}),nt(at,[j(V,D({transform:"translateY(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateY(0)"}),nt(at,[j(V,D({transform:"translateY(100%)"}))])],{optional:!0})],de)]),Q5=Ne("tuiSlideInBottom",[ee(":enter",[D({transform:"translateY(-100%)"}),j(V,D({transform:"translateY(0)"}))],de),ee(":leave",[D({transform:"translateY(0)"}),j(V,D({transform:"translateY(-100%)"}))],de)]),X5=Ne("tuiSlideInBottomList",[ee("* => *",[Qe(":enter",[D({transform:"translateY(-100%)"}),nt(at,[j(V,D({transform:"translateY(0)"}))])],{optional:!0}),Qe(":leave",[D({transform:"translateY(0)"}),nt(at,[j(V,D({transform:"translateY(-100%)"}))])],{optional:!0})],de)]);var gr=(()=>{class e extends i0{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275dir=L({type:e,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[Oe]}),e})();var aq={provide:Uh,deps:[[new Un,Uh],B],useFactory:(e,{nativeElement:t})=>(t["$.class._mobile"]=e,e)},ju={provide:Ki,deps:[[new Vn,gr],B],useFactory:(e,{nativeElement:t})=>{let n=e?e.change$.pipe(le(null),E(()=>e.mode)):I(null);return t["$.data-mode.attr"]=n,n}};function MR(e){return e.replace(/[a-z][A-Z]/g,t=>"".concat(t[0],"-").concat(t[1].toLowerCase()))}var qn=class{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(n=>!this.modifier.includes(n)).join(".")}},TR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier="$"}addEventListener(n,r){n[r]=n[r]||De;let i=this.getMethod(n,r),o=this.manager.getZone().onStable,s=mt(o.pipe(pa(()=>n[r]===De)),rn(()=>n[r])).subscribe(i);return()=>s.unsubscribe()}getMethod(n,r){let[,i,o,s=""]=r.split(".");return r.endsWith(".attr")?a=>a===null?n.removeAttribute(i):n.setAttribute(i,String(a)):i==="class"?a=>n.classList.toggle(o,!!a):i==="style"?a=>n.style.setProperty(MR(o),"".concat(a).concat(s)):a=>n[i]=a}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),AR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(n){return n.includes(".")&&!this.unwrap(n).includes(".")}addEventListener(n,r,i){return n.addEventListener(this.unwrap(r),i,{once:r.includes(".once"),passive:r.includes(".passive"),capture:r.includes(".capture")}),()=>n.removeEventListener(this.unwrap(r),i)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),OR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(n,r,i){let o=s=>{s.preventDefault(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),xR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".self"}addEventListener(n,r,i){let o=s=>{s.target===s.currentTarget&&i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),Vu=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(n,r,i){return e.ngZone=this.manager.getZone(),e.ngZone.runOutsideAngular(()=>this.manager.addEventListener(n,this.unwrap(r),i))}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),NR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(n,r,i){let o=s=>{s.stopPropagation(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),PR=(()=>{class e extends qn{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),RR=[Vu,TR,AR,OR,xR,NR,PR],FR=RR.map(e=>({provide:Vi,multi:!0,useClass:e}));function fq(e){return(t,n,r)=>{let{value:i}=r;r.value=function(...o){e.apply(this,o)&&(Vu.ngZone?Vu.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var hq=(()=>{class e{constructor([n]){console.assert(!(n instanceof Vu)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(n){return new(n||e)(C(Vi))},e.\u0275mod=G({type:e}),e.\u0275inj=z({providers:FR}),e})();var mE=(()=>{class e{constructor(n){this.mode$=n,this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?Zi.Disabled:this.readOnly?Zi.Readonly:this.active?Zi.Active:this.hover?Zi.Hover:null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}}return e.\u0275fac=function(n){return new(n||e)(v(Ki))},e.\u0275dir=L({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(n,r){n&1&&ze("$.data-mode.attr",function(){return r.mode$}),n&2&&(Ke("data-appearance",r.appearance)("data-state",r.interactiveState),Ue("_invalid",r.computedInvalid)("_focused",r.computedFocused)("_no-hover",r.noHover)("_no-active",r.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[xe([ju])]}),e})(),gE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function LR(e,t){if(e&1&&(Qt(0),vn(1),Xt()),e&2){let n=t.polymorpheusOutlet;K(1),Vt(" ",n," ")}}function jR(e,t){if(e&1&&(Fo(),jg(),ue(0,"div",6),me(1,LR,2,1,"ng-container",7),ae()),e&2){let n=ce(2);Ue("t-text_horizontal",n.isHorizontal),K(1),R("polymorpheusOutlet",n.textContent)}}function VR(e,t){if(e&1&&(ue(0,"div",2),Fo(),ue(1,"svg",3),Ie(2,"circle",4),ae(),me(3,jR,2,3,"div",5),ae()),e&2){let n=ce();Ue("t-loader_horizontal",n.isHorizontal)("t-loader_inherit-color",n.inheritColor),Ke("data-size",n.size),K(3),R("ngIf",n.hasText)}}var UR=["*"],BR={size:"m",inheritColor:!1,overlay:!1},$R=he(BR);var vE=(()=>{class e{constructor(n,r,i,o){this.doc=n,this.el=r,this.isIos=i,this.options=o,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=KD(this.el.nativeElement)||this.isIos}set showLoader(n){n&&this.focused&&r_(this.doc),this.loading=n}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!E0(this.size)}get focused(){return o_(this.el.nativeElement)}}return e.\u0275fac=function(n){return new(n||e)(v(oe),v(B),v(fs),v($R))},e.\u0275cmp=Ze({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(n,r){n&2&&Ue("_loading",r.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:UR,decls:3,vars:7,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"t-icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(n,r){n&1&&(gn(),ue(0,"fieldset",0),Dt(1),ae(),me(2,VR,4,6,"div",1)),n&2&&(Ue("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),R("disabled",r.loading&&!r.isApple),Ke("inert",r.loading||null),K(2),R("ngIf",r.loading))},dependencies:[ft,ur],styles:["@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem}._loading[_nghost-%COMP%]{overflow:hidden}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);animation:tuiFadeIn var(--tui-duration)}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-loader[data-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.t-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.t-icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scaleY(-1);animation:_ngcontent-%COMP%_tuiLoaderRotate 3s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:_ngcontent-%COMP%_tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),e})(),yE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,lr]]}),e})();var zR=["tuiButton",""];function GR(e,t){e&1&&Bo(0)}function WR(e,t){if(e&1&&Ie(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;R("src",n)}}function qR(e,t){if(e&1&&(ue(0,"span",6),me(1,WR,1,1,"tui-svg",7),ae()),e&2){let n=ce();K(1),R("polymorpheusOutlet",n.icon)}}function YR(e,t){if(e&1&&Ie(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;R("src",n)}}function ZR(e,t){if(e&1&&(ue(0,"span",9),me(1,YR,1,1,"tui-svg",7),ae()),e&2){let n=ce();K(1),R("polymorpheusOutlet",n.iconRight)}}function KR(e,t){if(e&1&&Ie(0,"tui-loader",10),e&2){let n=ce();R("inheritColor",!0)("size",n.loaderSize)}}var QR=["*"],XR={size:"l",shape:null,appearance:vs.Primary},Sp=he(XR);var ks=(()=>{class e extends Th{constructor(n,r,i){var o;super(),this.mode=n,this.el=r,this.options=i,this.mode$=((o=this.mode)===null||o===void 0?void 0:o.change$)||De,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(le(null),E(()=>this.computedAppearance),Te())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&Gr(this.el.nativeElement)}get loaderSize(){return this.size==="l"||this.size==="xl"?"m":"s"}get computedAppearance(){var n;return(n=this.appearance)!==null&&n!==void 0?n:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(n){this.updateFocused(n)}}return e.\u0275fac=function(n){return new(n||e)(v(gr,8),v(B),v(Sp))},e.\u0275cmp=Ze({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(n,r){n&1&&ze("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),n&2&&(ff("tabIndex",r.tabIndex),Ke("data-shape",r.shape)("data-size",r.size)("data-appearance",r.computedAppearance)("disabled",r.nativeDisabled),Ue("_loading",r.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[xe([cu(e),Fe]),Oe],attrs:zR,ngContentSelectors:QR,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","hover"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"inheritColor","size",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"inheritColor","size"]],template:function(n,r){n&1&&(gn(),me(0,GR,1,0,"ng-container",0),Ut(1,"async"),ue(2,"div",1)(3,"span",2),me(4,qR,2,1,"span",3),Dt(5),me(6,ZR,2,1,"span",4),ae(),me(7,KR,1,2,"tui-loader",5),ae()),n&2&&(R("ngIf",Bt(1,8,r.appearance$)),K(2),R("active",r.pseudoActive)("appearance",r.computedAppearance)("disabled",r.computedDisabled)("hover",r.pseudoHover),K(2),R("ngIf",r.icon),K(2),R("ngIf",r.iconRight),K(1),R("ngIf",r.showLoader))},dependencies:[Pt,vE,ft,mE,ur,yn],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;outline:none;color:inherit}[data-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:normal}[data-size=xs][data-shape=square][_nghost-%COMP%], [data-size=xs][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:normal}[data-size=s][data-shape=square][_nghost-%COMP%], [data-size=s][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-m);font-weight:bold}[data-size=m][data-shape=square][_nghost-%COMP%], [data-size=m][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold}[data-size=l][data-shape=square][_nghost-%COMP%], [data-size=l][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-l)}[data-size=xl][_nghost-%COMP%]{height:3.75rem;font:var(--tui-font-text-m);font-weight:bold}[data-size=xl][data-shape=square][_nghost-%COMP%], [data-size=xl][tuiIconButton][_nghost-%COMP%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.375rem}[data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .375rem}[data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.125rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer;isolation:isolate}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .75rem)}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 1.5rem)}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.25rem)}[data-size=xl][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.5rem)}[data-shape=square][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),e})(),Uu=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,lr,gE,so,yE]]}),e})();var eF=["tuiLink",""];function tF(e,t){if(e&1&&Ie(0,"tui-svg",3),e&2){let n=ce();R("src",n.icon||"")}}function nF(e,t){if(e&1&&Ie(0,"tui-svg",4),e&2){let n=ce();R("src",n.icon||"")}}var rF=["*"],DE=(()=>{class e{constructor(n,r,i){this.el=n,this.mode$=r,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=Ee($(this.el.nativeElement,"focusin").pipe(E($i)),$(this.el.nativeElement,"focusout").pipe(E(sr))),i.subscribe(o=>{this.focusVisible=o})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return Gr(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&this.iconAlign==="left"}get iconAlignRight(){return this.hasIcon&&this.iconAlign==="right"}}return e.\u0275fac=function(n){return new(n||e)(v(B),v(Ki),v(Sh))},e.\u0275cmp=Ze({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(n,r){n&1&&ze("$.data-mode.attr",function(){return r.mode$}),n&2&&(Ke("data-host-mode",r.mode),Ue("_pseudo",r.pseudo)("_icon-rotated",r.iconRotated)("_focus-visible",r.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[xe([cu(e),Sh,Fe,ju])],attrs:eF,ngContentSelectors:rF,decls:4,vars:2,consts:[["class","t-icon t-icon_left",3,"src",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_right",3,"src",4,"ngIf"],[1,"t-icon","t-icon_left",3,"src"],[1,"t-icon","t-icon_right",3,"src"]],template:function(n,r){n&1&&(gn(),me(0,tF,1,1,"tui-svg",0),ue(1,"span",1),Dt(2),ae(),me(3,nF,1,1,"tui-svg",2)),n&2&&(R("ngIf",r.iconAlignLeft),K(3),R("ngIf",r.iconAlignRight))},dependencies:[Pt,ft],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:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:none}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(0,0,0,.48);text-decoration-color:#0000007a}[data-mode=onLight]._pseudo[_nghost-%COMP%]:hover, [data-mode=onLight]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%]{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark]._active[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(255,255,255,.48);text-decoration-color:#ffffff7a}[data-mode=onDark]._pseudo[_nghost-%COMP%]:hover, [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%]{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=negative]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(222,76,30,.48);text-decoration-color:#de4c1e7a}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}[data-host-mode=positive]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(58,169,129,.48);text-decoration-color:#3aa9817a}._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear);color:var(--tui-text-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01-night)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dashed rgba(51,111,238,.48);text-decoration:underline dashed rgba(51,111,238,.48);text-underline-offset:.2em;text-decoration-thickness:.7px}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),e})(),_E=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({imports:[[ht,so]]}),e})();function iF(e,t){if(e&1&&(Qt(0),vn(1),Xt()),e&2){let n=t.polymorpheusOutlet;K(1),Vt(" ",n," ")}}function oF(e,t){if(e&1&&(ue(0,"header",6),me(1,iF,2,1,"ng-container",3),ae()),e&2){let n=ce();K(1),R("polymorpheusOutlet",n.header)("polymorpheusOutletContext",n.context)}}function sF(e,t){if(e&1){let n=mn();Qt(0),Ie(1,"div",7),ue(2,"div",8)(3,"button",9),ze("click",function(){dn(n);let i=ce();return fn(i.context.$implicit.complete())}),vn(4),ae()(),Xt()}if(e&2){let n=t.polymorpheusOutlet,r=ce(),i;K(1),R("innerHTML",n,Ri),K(3),Vt(" ",((i=r.context.data)==null?null:i.button)||"OK"," ")}}function aF(e,t){if(e&1){let n=mn();ue(0,"div",10)(1,"button",11),ze("click",function(){dn(n);let i=ce();return fn(i.close$.next())})("mousedown.prevent.silent",function(){return 0}),Ut(2,"async"),ae()()}if(e&2){let n=ce();K(1),R("appearance",n.fullscreen?"secondary":"")("icon",n.icons.close)("title",Bt(2,3,n.closeWord$))}}var cF={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},uF=he(De),lF=he(cF);var dF=17,EE=(()=>{class e extends M{constructor(n,r,i){super(o=>Ee(this.esc$,this.mousedown$).subscribe(o)),this.win=n,this.doc=r,this.el=i,this.esc$=$(this.doc,"keydown").pipe(fe(o=>{let s=cr(o);return o.key==="Escape"&&!o.defaultPrevented&&(this.element.contains(s)||this.isOutside(s))})),this.mousedown$=$(this.doc,"mousedown").pipe(fe(o=>hu(this.win)-o.clientX>dF&&this.isOutside(cr(o))),W(()=>$(this.doc,"mouseup").pipe(je(1),E(cr),fe(o=>this.isOutside(o)))))}get element(){return this.el.nativeElement}isOutside(n){return Vc(n)&&(!n_(this.element,n)||n===this.element)}}return e.\u0275fac=function(n){return new(n||e)(C(ne),C(oe),C(B))},e.\u0275prov=b({token:e,factory:e.\u0275fac}),e})(),fF=new Error("Required dialog was dismissed"),hF=(()=>{class e{constructor(n,r,i,o,s,a,c,u){this.duration=n,this.isMobile=r,this.context=i,this.closeWord$=c,this.icons=u,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new ye,Ee(this.close$.pipe(W(()=>wE(i.closeable))),s.pipe(W(()=>wE(i.dismissible))),a.pipe(E($i))).pipe(fe(Boolean),pe(o)).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&(this.size==="fullscreen"||this.size==="page")}close(){this.context.required?this.context.$implicit.error(fF):this.context.$implicit.complete()}}return e.\u0275fac=function(n){return new(n||e)(v(Lh),v(Ch),v(rs),v(Fe,2),v(EE),v(uF),v(gu),v(mu))},e.\u0275cmp=Ze({type:e,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&(Ke("data-appearance",r.context.appearance)("data-size",r.size),$o("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),Ue("_centered",r.header))},features:[xe([Fe,EE])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"appearance","icon","title","click","mousedown.prevent.silent"]],template:function(n,r){n&1&&(me(0,oF,2,2,"header",0),ue(1,"div",1),Ie(2,"h2",2),ue(3,"section"),me(4,sF,5,2,"ng-container",3),ae()(),Ie(5,"div",4),me(6,aF,3,5,"div",5)),n&2&&(R("ngIf",r.header),K(2),R("id",r.context.id)("textContent",r.context.label),K(2),R("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),K(2),R("ngIf",r.context.closeable))},dependencies:[ks,ft,ur,u0,yn],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem #0000007a;content:"";border-radius:inherit;pointer-events:none}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{min-width:100vw;min-height:100%;border-radius:0;border:none;background:var(--tui-elevation-01);box-shadow:0 4rem var(--tui-elevation-01)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - (45rem / 2))}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-elevation-01)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;z-index:1;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size="fullscreen"]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-text-01);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[pE,Lu]}}),e})();function wE(e){return Ir(e)?e:I(e)}var pF=new Wr(hF),mF=(()=>{class e extends uu{constructor(){super(...arguments),this.component=pF,this.defaultOptions=Object.assign(Object.assign({},g(lF)),{data:void 0})}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var A6=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({providers:[J_(mF)],imports:[[lr,Uu,ht,l0]]}),e})();var bE=(()=>{class e{constructor(n){this.service=n}transform(n){return this.service.format(n.valueOf())}}return e.\u0275fac=function(n){return new(n||e)(v(uE,16))},e.\u0275pipe=Ti({name:"tuiFormatDate",type:e,pure:!0}),e})(),CE=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({}),e})();function gF(e,t){if(e&1){let n=mn();ue(0,"button",10),ze("click",function(){dn(n);let i=ce();return fn(i.close.emit())}),Ut(1,"async"),ae()}if(e&2){let n=ce();R("icon",n.icons.close)("title",Bt(1,2,n.closeWord$))}}function vF(e,t){if(e&1&&(Ie(0,"span",11),Ut(1,"async"),Ut(2,"tuiFormatDate")),e&2){let n=ce();R("textContent",Bt(1,1,Bt(2,3,n.timestamp)))}}var yF=[[["img"]],[["tui-svg"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],DF=["img","tui-svg","*","[tuiButton]","[tuiLink]"];function _F(e,t){if(e&1&&Ie(0,"img",7),e&2){let n=ce(2);R("src",n.context.image,kv)}}function EF(e,t){if(e&1&&Ie(0,"tui-svg",8),e&2){let n=ce(2);Li("color",n.context.iconColor),R("src",n.context.icon)}}function wF(e,t){if(e&1&&Ie(0,"div",9),e&2){let n=t.polymorpheusOutlet;R("innerHTML",n,Ri)}}function bF(e,t){if(e&1){let n=mn();ue(0,"button",10),ze("click",function(){dn(n);let i=ce(2);return fn(i.context.$implicit.next(i.context.buttons[0]))}),vn(1),ae()}if(e&2){let n=ce(2);K(1),Vt(" ",n.context.buttons[0]," ")}}function CF(e,t){if(e&1){let n=mn();ue(0,"button",11),ze("click",function(){dn(n);let i=ce(2);return fn(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),vn(1),ae()}if(e&2){let n=ce(2);K(1),Vt(" ",n.context.buttons[n.context.buttons.length-1]," ")}}function IF(e,t){if(e&1){let n=mn();ue(0,"tui-push",1),ze("close",function(){dn(n);let i=ce();return fn(i.context.$implicit.complete())}),me(1,_F,1,1,"img",2)(2,EF,1,3,"tui-svg",3)(3,wF,1,1,"div",4)(4,bF,2,1,"button",5)(5,CF,2,1,"button",6),ae()}if(e&2){let n=ce();R("heading",n.context.heading)("timestamp",n.context.timestamp)("type",n.context.type),K(1),R("ngIf",n.context.image),K(1),R("ngIf",n.context.icon),K(1),R("polymorpheusOutlet",n.context.content),K(1),R("ngIf",n.context.buttons.length>1),K(1),R("ngIf",n.context.buttons.length)}}var SF=(()=>{class e{constructor(n,r){this.closeWord$=n,this.icons=r,this.heading="",this.type="",this.timestamp=0,this.close=new $e}get closeable(){return h_(this.close)}}return e.\u0275fac=function(n){return new(n||e)(v(gu),v(mu))},e.\u0275cmp=Ze({type:e,selectors:[["tui-push"]],inputs:{heading:"heading",type:"type",timestamp:"timestamp"},outputs:{close:"close"},ngContentSelectors:DF,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button","class","t-close",3,"icon","title","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"],[1,"t-time",3,"textContent"]],template:function(n,r){n&1&&(gn(yF),ue(0,"div",0),Dt(1),ae(),me(2,gF,2,4,"button",1),ue(3,"div",2)(4,"span",3),Dt(5,1),ae(),vn(6),me(7,vF,3,5,"span",4),ae(),ue(8,"h3",5),vn(9),ae(),ue(10,"div",6),Dt(11,2),ae(),ue(12,"div",7)(13,"span",8),Dt(14,3),ae(),ue(15,"span",9),Dt(16,4),ae()()),n&2&&(K(2),R("ngIf",r.closeable),K(4),Vt(" ",r.type," "),K(1),R("ngIf",r.timestamp),K(2),Vt(" ",r.heading,"\n"))},dependencies:[ks,ft,yn,bE],styles:['[_nghost-%COMP%]{box-shadow:0 .25rem 1.5rem #0000001f;position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-elevation-02)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:rgba(242,242,242,.32);-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-link)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:bold;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0}),e})(),MF=(()=>{class e extends gr{constructor(n){var r;super(),this.modeDirective=n,this.size="s",this.shape=null,this.change$=((r=this.modeDirective)===null||r===void 0?void 0:r.change$)||new ye}get appearance(){var n;return((n=this.modeDirective)===null||n===void 0?void 0:n.mode)==="onDark"?"accent":"secondary"}}return e.\u0275fac=function(n){return new(n||e)(v(gr,12))},e.\u0275dir=L({type:e,selectors:[["tui-push"]],features:[xe([{provide:gr,useExisting:e},{provide:Sp,useExisting:e}]),Oe]}),e})(),TF={heading:"",type:"",timestamp:0,image:"",icon:"",iconColor:"",buttons:[]},AF=he(TF);var OF=(()=>{class e extends Zf{constructor(n,r,i,o){super(n,r),this.show$=new ye,this.show$.pipe(f_(()=>o.open(this)),pe(i)).subscribe()}set tuiPush(n){this.show$.next(n)}}return e.\u0275fac=function(n){return new(n||e)(v(Je),v(et),v(Fe,2),v(jn(()=>IE)))},e.\u0275dir=L({type:e,selectors:[["","tuiPush",""]],inputs:{tuiPush:"tuiPush"},features:[xe([Fe]),Oe]}),e})(),xF=(()=>{class e{constructor(n,r){this.animation=n,this.context=r}get isDirective(){return this.context.content instanceof OF}}return e.\u0275fac=function(n){return new(n||e)(v(b0),v(rs))},e.\u0275cmp=Ze({type:e,selectors:[["tui-push-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(n,r){n&2&&$o("@tuiFadeIn",r.animation)("@tuiSlideInRight",r.animation)("@tuiHeightCollapse",r.animation)},decls:1,vars:2,consts:[[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"heading","timestamp","type","close"],["alt","",3,"src",4,"ngIf"],[3,"src","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"src"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"]],template:function(n,r){n&1&&me(0,IF,6,8,"tui-push",0),n&2&&R("ngIf",!r.isDirective)("ngIfElse",r.context.content.template)},dependencies:[SF,Pt,ks,DE,ft,MF,ur],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[Lu,hE,fE]},changeDetection:0}),e})(),IE=(()=>{class e extends uu{constructor(){super(...arguments),this.component=new Wr(xF),this.defaultOptions=g(AF)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Ce(e)))(r||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),X6=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=G({type:e}),e.\u0275inj=z({providers:[{provide:Q_,useExisting:IE,multi:!0}],imports:[[ht,lr,Uu,_E,so,CE]]}),e})();export{NF as a,PF as b,RE as c,Ve as d,M as e,ye as f,Re as g,Mn as h,De as i,Zs as j,Ks as k,I as l,E as m,la as n,on as o,Xe as p,Ee as q,dw as r,fe as s,pw as t,dm as u,je as v,po as w,Te as x,fa as y,tt as z,ul as A,le as B,W as C,pe as D,we as E,Qn as F,jn as G,b as H,z as I,_ as J,C as K,g as L,Ze as M,G as N,L as O,Ti as P,jt as Q,dn as R,fn as S,Fo as T,Ce as U,Vn as V,Jg as W,Un as X,Pi as Y,Gb as Z,st as _,At as $,a2 as aa,c2 as ba,u2 as ca,Ri as da,B as ea,Rr as fa,$n as ga,K as ha,v as ia,et as ja,$e as ka,te as la,Oe as ma,Ke as na,R as oa,Li as pa,Ue as qa,dt as ra,me as sa,ue as ta,ae as ua,Ie as va,Qt as wa,Xt as xa,Bo as ya,mn as za,ff as Aa,$o as Ba,ze as Ca,ce as Da,gn as Ea,Dt as Fa,Sy as Ga,vn as Ha,OM as Ia,Vt as Ja,xe as Ka,Oy as La,d2 as Ma,f2 as Na,Ut as Oa,Bt as Pa,h2 as Qa,p2 as Ra,Je as Sa,vf as Ta,Ry as Ua,WM as Va,yf as Wa,jy as Xa,ir as Ya,oe as Za,L2 as _a,j2 as $a,ft as ab,yn as bb,ht as cb,Wo as db,fD as eb,dH as fb,Rf as gb,fH as hb,XN as ib,Y4 as jb,Vf as kb,OD as lb,zr as mb,OH as nb,Lc as ob,SA as pb,AA as qb,NH as rb,Ne as sb,D as tb,ee as ub,HD as vb,Qe as wb,sr as xb,$i as yb,tz as zb,nz as Ab,GD as Bb,rz as Cb,iz as Db,oz as Eb,qD as Fb,az as Gb,uz as Hb,lz as Ib,zn as Jb,fz as Kb,hz as Lb,pz as Mb,QD as Nb,he as Ob,Q as Pb,ar as Qb,vz as Rb,n_ as Sb,Vc as Tb,zi as Ub,cr as Vb,Ez as Wb,wz as Xb,bz as Yb,Cz as Zb,Iz as _b,zf as $b,r_ as ac,i_ as bc,Az as cc,Gr as dc,o_ as ec,Oz as fc,xz as gc,Wi as hc,a_ as ic,c_ as jc,u_ as kc,Wz as lc,$ as mc,f_ as nc,qz as oc,Yz as pc,ZA as qc,g_ as rc,_n as sc,En as tc,rs as uc,Wr as vc,Zf as wc,ur as xc,lr as yc,ne as zc,UH as Ac,BH as Bc,Bf as Cc,PO as Dc,lG as Ec,rh as Fc,w_ as Gc,ou as Hc,P_ as Ic,R_ as Jc,Q_ as Kc,Mx as Lc,ds as Mc,cu as Nc,bG as Oc,fs as Pc,Ch as Qc,CG as Rc,hs as Sc,PG as Tc,Fe as Uc,t3 as Vc,Sh as Wc,Px as Xc,n3 as Yc,r3 as Zc,Th as _c,ps as $c,E3 as ad,i0 as bd,w3 as cd,b3 as dd,S3 as ed,M3 as fd,G3 as gd,W3 as hd,q3 as id,fu as jd,fr as kd,dW as ld,d0 as md,f0 as nd,GW as od,WW as pd,eN as qd,ZW as rd,KW as sd,xh as td,tN as ud,Du as vd,g4 as wd,_u as xd,v4 as yd,y4 as zd,D4 as Ad,Qr as Bd,_4 as Cd,E4 as Dd,ys as Ed,w4 as Fd,CN as Gd,b4 as Hd,Lu as Id,$5 as Jd,h as Kd,Kr as Ld,lN as Md,e8 as Nd,t8 as Od,n8 as Pd,E8 as Qd,w8 as Rd,b8 as Sd,C8 as Td,E0 as Ud,vs as Vd,Zi as Wd,fN as Xd,Lh as Yd,b0 as Zd,mu as _d,U8 as $d,vN as ae,B8 as be,$8 as ce,yN as de,G8 as ee,W8 as fe,Y8 as ge,DN as he,Ki as ie,J8 as je,n4 as ke,r4 as le,bN as me,i4 as ne,o4 as oe,s4 as pe,a4 as qe,d5 as re,f5 as se,h5 as te,lE as ue,p5 as ve,Pt as we,so as xe,gr as ye,ju as ze,fq as Ae,hq as Be,mE as Ce,gE as De,vE as Ee,yE as Fe,ks as Ge,Uu as He,DE as Ie,_E as Je,mF as Ke,A6 as Le,SF as Me,MF as Ne,OF as Oe,X6 as Pe}; diff --git a/index.html b/index.html index 3233c483..dafc09ff 100644 --- a/index.html +++ b/index.html @@ -21,14 +21,14 @@

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 diff --git a/main-7P4N5VG3.js b/main-7P4N5VG3.js deleted file mode 100644 index 9714a281..00000000 --- a/main-7P4N5VG3.js +++ /dev/null @@ -1 +0,0 @@ -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)); diff --git a/main-OURZMYTW.js b/main-OURZMYTW.js new file mode 100644 index 00000000..17b10030 --- /dev/null +++ b/main-OURZMYTW.js @@ -0,0 +1 @@ +import{$ as _t,$a as I,$b as Kt,Aa as At,Bc as Qt,Be as Me,Ca as F,D as y,Da as T,Dc as te,Ea as jt,Eb as U,Ec as N,Fa as b,Fc as G,Ga as Ft,Gc as ee,H as ft,Hc as Z,I as m,Ic as ie,Jc as oe,K as R,Ka as D,Kc as ne,La as wt,Lc as W,Le as De,M as g,Ma as xt,N as d,O as gt,Oa as w,Ob as Zt,Pa as L,Pc as re,Pe as Oe,Qa as Pt,Qc as Y,R as ot,Rc as se,S as nt,Sb as Wt,T as j,Ub as Yt,Uc as h,Xa as Rt,Y as vt,Ya as Nt,Yd as he,Z as ht,Za as O,_ as Tt,_a as Et,aa as rt,ab as x,ac as qt,ba as k,bb as $,c as mt,cb as _,cc as Jt,da as st,db as kt,ea as yt,eb as Bt,ed as le,fa as Ct,fb as Lt,fd as ae,ga as Mt,gb as $t,gd as K,ha as v,hb as Ut,hd as ce,ia as r,ib as Vt,id as q,ja as C,jb as zt,kd as pe,l as E,la as Dt,ld as ue,m as P,md as me,n as A,na as Ot,nd as J,oa as s,od as de,oe as Te,pa as It,pd as fe,qa as B,rd as ge,re as _e,sa as a,sb as Gt,sd as ve,se as ye,ta as p,tb as lt,u as dt,ua as c,ub as at,uc as Xt,ue as Ce,va as f,vb as ct,wa as bt,wb as pt,xa as Ht,xc as V,ya as M,yc as z,za as St}from"./chunk-UB3CG7HU.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-SPKX7EYJ.js")).HomeComponent})}];var Le={providers:[ke(),zt(Be),Ut(),ht(Q,De,Oe)]};Lt(Ne,Le).catch(t=>console.error(t));