diff --git a/chunk-YKKBUPJP.js b/chunk-2KJ7QBPC.js similarity index 99% rename from chunk-YKKBUPJP.js rename to chunk-2KJ7QBPC.js index 19c8cf2e..b01a7eba 100644 --- a/chunk-YKKBUPJP.js +++ b/chunk-2KJ7QBPC.js @@ -1,2 +1,2 @@ -import{$ as ct,$a as Ko,$b as lr,$c as wr,A as vt,Aa as Rt,Ac as se,Ad as tn,Ae as Qr,B as ne,Ba as U,Bc as Cr,Bd as nn,C as hi,Ca as dt,Cb as ge,Cc as Tr,Cd as on,Ce as $e,D as Bo,Da as Ri,Db as Gt,Dd as mt,De as We,E as $,Ea as f,Eb as qo,Ec as Ki,Ed as rn,Ee as hn,F as k,Fa as h,Fb as Jo,Fd as vi,Fe as gn,G as S,Ga as re,Gb as Lt,Gd as Jt,Ge as fn,H as C,Ha as X,Hb as er,Hd as an,He as _n,I as M,Ia as Ct,Ib as tr,Id as sn,Ie as oi,J as Ht,Ja as K,Jd as Ci,Je as ri,K as P,Ka as V,Kb as zi,Kd as Ar,Ke as vn,L as w,La as j,Lb as ir,Ld as Hr,Ma as ee,Mb as nr,Md as a,Me as Xr,N as F,Na as W,Nb as or,Nd as ie,Ne as Zr,O as Uo,Oa as Li,Ob as Tt,Oc as Mr,Od as Rr,Oe as qr,P as T,Pa as he,Pb as Nt,Pc as Ee,Pd as ei,Pe as Jr,Q as Ke,Qa as Fe,Qb as Vi,Qc as br,Qd as Lr,Qe as ea,Ra as Ae,Rb as rr,Rc as no,Rd as so,Re as ta,Sa as He,Sb as ar,Sc as Qi,Sd as Nr,T as pe,Ta as b,Tb as Z,Td as zr,U as qn,Ua as Wo,Ub as R,Uc as yr,Ud as lo,V as Si,Va as ce,Vb as sr,Vc as Dr,Vd as uo,W as xe,Wa as Yo,Wb as Kt,Wc as B,Wd as Vr,X as Wt,Xa as Go,Xc as Or,Xd as ht,Y as gi,Ya as Y,Yb as Mt,Yc as oo,Yd as Pt,Z as Fi,Za as J,Zb as ji,Zc as Pr,Zd as Ue,_a as eo,_b as Bi,_c as ro,aa as ue,ab as Qo,ac as ur,ad as Xi,ae as ln,b as Ao,ba as Ai,bb as _e,bc as Ui,bd as Zi,be as un,c as Ho,ca as $o,cb as to,cc as io,cd as tt,ce as jr,d as Ft,da as Hi,dc as $i,dd as Le,de as Br,e as At,eb as Yt,ed as xr,ee as cn,f as Ro,fa as fi,fb as ae,fd as Zt,fe as Ur,g as Lo,ga as p,gb as ve,gc as cr,gd as qi,ge as $r,h as ye,ha as l,hb as N,hc as Qt,hd as Ji,he as Wr,i as No,ia as _i,ic as Be,id as Ir,ie as nt,j as je,jc as pt,k as z,kc as Qe,kd as kr,ke as Yr,l as Xn,lc as dr,ld as Ne,le as Gr,m as xi,ma as me,mc as pr,md as ze,me as co,n as Ii,na as Ze,nc as mr,nd as qt,ne as dn,o as De,oa as Jn,oc as hr,od as yt,p as zo,pa as x,pb as Ni,pc as ke,pd as Dt,pe as pn,q as lt,qa as v,qb as qe,qc as Wi,qd as Er,qe as ti,r as Vo,ra as L,rb as we,rc as gr,rd as Sr,sa as u,sb as Je,sc as fr,sd as Fr,se as Kr,t as jo,ta as Ie,tb as Re,tc as Yi,te as ii,u as ut,ua as A,ub as Xo,uc as _r,v as Ge,va as m,vb as Zo,vc as Xt,vd as ao,ve as mn,w as Zn,wa as g,wb as et,wc as vr,wd as it,we as Ce,x as ki,xa as E,xc as bt,xd as Ot,xe as Te,y as $t,ya as Oe,yc as Gi,yd as zt,ye as ni,z as Ei,za as Pe,zc as te,zd as en,ze as ot}from"./chunk-J7MZXETC.js";var qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],decls:0,vars:0,template:function(e,i){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),ia=(()=>{class t{constructor(e){this.autofilled=!1,this.tuiAutofilledChange=new $,e.addComponent(qs)}transitionStartHandler({propertyName:e,target:i}){var o;e.includes("box-shadow")&&((o=i)===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(Or))},t.\u0275dir=M({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(e,i){e&1&&f("transitionstart",function(r){return i.transitionStartHandler(r)}),e&2&&A("_autofilled",i.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),na=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Cn=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new $}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=M({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(e,i){e&1&&f("change",function(r){return i.onChange(r.target)}),e&2&&dt("checked",i.isChecked)("indeterminate",i.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),Tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Mn=(()=>{class t{constructor(e){this.tuiFocusVisibleChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(oo))},t.\u0275dir=M({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[b([B,oo])]}),t})(),bn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var rt=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,i){e&2&&dt("tabIndex",i.tabIndex)},inputs:{focusable:[k.None,"tuiFocusable","focusable"]}}),t})(),at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var yn=(()=>{class t{constructor({nativeElement:e},i){this.tuiFocusedChange=De(ke(e,"focusin"),ke(e,"focusout")).pipe(z(()=>Be(e)),Ei(!1),Ge(),$t(1),Xt(i))}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Ze))},t.\u0275dir=M({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),Dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function Js({currentTarget:t,relatedTarget:n}){return!Mt(n)||!Mt(t)||!t.contains(n)}var st=(()=>{class t extends Ho{constructor(e,i){super(o=>this.stream$.subscribe(o)),this.el=e,this.zone=i,this.stream$=De(ke(this.el.nativeElement,"mouseenter").pipe(z(Gt)),ke(this.el.nativeElement,"mouseleave").pipe(z(ge)),ke(this.el.nativeElement,"mouseout").pipe(lt(Js),z(ge))).pipe(Ge(),Xt(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(qn(F),qn(Ze))},t.\u0275prov=Uo({token:t,factory:t.\u0275fac}),t})(),ai=(()=>{class t{constructor(e){this.tuiHoveredChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(st))},t.\u0275dir=M({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[b([st])]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var oa=(()=>{class t{constructor(e,i){this.enabled$=new Ft;let o=i.pipe(z(r=>!!r&&(!e||!r.length||r.every(s=>!e.contains(s)))));this.tuiObscured=this.enabled$.pipe(Wi(()=>o))}set tuiObscuredEnabled(e){this.enabled$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(ze,8),l(ro,2))},t.\u0275dir=M({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[b([ro,Pr,B])]}),t})(),ra=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var On=(()=>{class t{constructor(e,i){this.el=e,this.takeOnlyTrustedEvents=i,this.tuiPressedChange=gr(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Dr))},t.\u0275dir=M({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})(),si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var aa=(()=>{class t{constructor(e,i,o){this.el=e,this.zone=i,this.destroy$=o,this.eventName=""}ngOnInit(){xi(this.el.nativeElement,this.eventName,{passive:!1}).pipe(_r(this.zone),fr(),ne(this.destroy$)).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Ze),l(B,2))},t.\u0275dir=M({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:[k.None,"tuiPreventDefault","eventName"]},features:[b([B])]}),t})(),sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var el=65536,po=class{constructor(n){this.$implicit=n}},Pn=(()=>{class t{constructor(e,i){this.viewContainer=e,this.templateRef=i}set tuiRepeatTimesOf(e){let i=Math.floor(Tt(e,0,el)),{length:o}=this.viewContainer;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function la(t,n,e){return e&&et?n:t}var kn=7;var li=12,xn=1,mo=0,ho=11,go=0,fo=9999,In="".concat(zi).concat(ir).concat(zi),tl=1e3,il=60,nl=60,ua=24,ol=tl*il,rl=ol*nl,um=rl*ua,ui=10,al=2*ui+In.length,_o=Z("DMY"),ca=Z("."),da=(t,n)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,n),Me=class t{constructor(n){this.year=n}static isValidYear(n){return Number.isInteger(n)&&Nt(n,go,fo+1)}static isLeapYear(n){return n%400===0||n%4===0&&n%100!==0}static getAbsoluteLeapYears(n){return Math.ceil(n/400)+(Math.ceil(n/4)-Math.ceil(n/100))}static lengthBetween(n,e){return e.year-n.year}static normalizeYearPart(n){return Vi(n,go,fo)}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:n}){return this.year=n}yearAfter({year:n}){return this.year>n}append({year:n=0}){let e=this.year+n;return new t(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](n){return Date.prototype[Symbol.toPrimitive].call(this,n)}toJSON(){return this.formattedYear}},q=class t extends Me{constructor(n,e){super(n),this.month=e}static isValidMonth(n,e){return Me.isValidYear(n)&&t.isValidMonthPart(e)}static getMonthDaysCount(n,e){switch(n){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 n=new Date;return new t(n.getFullYear(),n.getMonth())}static currentUtc(){let n=new Date;return new t(n.getUTCFullYear(),n.getUTCMonth())}static lengthBetween(n,e){let i=n.month+n.year*12;return e.month+e.year*12-i}static normalizeMonthPart(n){return Vi(n,mo,ho)}static isValidMonthPart(n){return Number.isInteger(n)&&Nt(n,mo,ho+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(n){return this.yearBefore(n)||this.yearSame(n)&&this.month=n.month}monthAfter(n){return this.yearAfter(n)||this.yearSame(n)&&this.month>n.month}append({year:n=0,month:e=0}){let i=(this.year+n)*li+this.month+e;return new t(Math.floor(i/li),i%li)}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))}},de=class t extends q{constructor(n,e,i){super(n,e),this.day=i}static fromLocalNativeDate(n){return new t(n.getFullYear(),n.getMonth(),n.getDate())}static fromUtcNativeDate(n){return new t(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())}static isValidDay(n,e,i){return q.isValidMonth(n,e)&&Number.isInteger(i)&&Nt(i,xn,q.getMonthDaysCount(e,Me.isLeapYear(n))+1)}static currentLocal(){let n=new Date,e=n.getFullYear(),i=n.getMonth(),o=n.getDate();return new t(e,i,o)}static currentUtc(){let n=new Date,e=n.getUTCFullYear(),i=n.getUTCMonth(),o=n.getUTCDate();return new t(e,i,o)}static normalizeOf(n,e,i){let o=Me.normalizeYearPart(n),r=q.normalizeMonthPart(e),s=t.normalizeDayPart(i,r,o);return new t(o,r,s)}static lengthBetween(n,e){return Math.round((e.toLocalNativeDate().getTime()-n.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(n,e="DMY"){switch(e){case"YMD":return{day:parseInt(n.slice(8,10),10),month:parseInt(n.slice(5,7),10)-1,year:parseInt(n.slice(0,4),10)};case"MDY":return{day:parseInt(n.slice(3,5),10),month:parseInt(n.slice(0,2),10)-1,year:parseInt(n.slice(6,10),10)};case"DMY":default:return{day:parseInt(n.slice(0,2),10),month:parseInt(n.slice(3,5),10)-1,year:parseInt(n.slice(6,10),10)}}}static normalizeParse(n,e="DMY"){let{day:i,month:o,year:r}=this.parseRawDateString(n,e);return t.normalizeOf(r,o,i)}static jsonParse(n){let{day:e,month:i,year:o}=this.parseRawDateString(n,"YMD");if(!Me.isValidYear(o))throw new mr(o);if(!q.isValidMonth(o,i))throw new pr(i);if(!Number.isInteger(e)||!Nt(e,xn,q.getMonthDaysCount(i,Me.isLeapYear(o))+1))throw new dr(e);return new t(o,i,e)}static normalizeDayPart(n,e,i){let o=q.getMonthDaysCount(e,Me.isLeapYear(i));return Vi(n,1,o)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let n=this.dayOfWeek(!1);return n===ao.Saturday||n===ao.Sunday}dayOfWeek(n=!0){let e=n?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(n){return this.monthBefore(n)||this.monthSame(n)&&this.day=n.day}dayAfter(n){return this.monthAfter(n)||this.monthSame(n)&&this.day>n.day}dayLimit(n,e){return n!==null&&this.dayBefore(n)?n:e!==null&&this.dayAfter(e)?e:this}append({year:n=0,month:e=0,day:i=0}){let o=(this.year+n)*li+this.month+e,r=Math.floor(o/li),s=o%li,c=Math.min(this.day,q.getMonthDaysCount(s,Me.isLeapYear(r)))+i;for(;c>q.getMonthDaysCount(s,Me.isLeapYear(r));)c-=q.getMonthDaysCount(s,Me.isLeapYear(r)),s===it.December?(r++,s=it.January):s++;for(;c{class t{constructor(e,i,o,r){this.cssRef=e,this.el=i,this.userAgent=o,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||or(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new F(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 i;if(this.delegated)return;let{nativeElement:o}=this.browserScrollRef,{offsetTop:r,offsetLeft:s}=ur(o,e),{clientHeight:c,clientWidth:d}=o,{offsetHeight:_,offsetWidth:y}=e,D=r+_/2-c/2,I=s+y/2-d/2;(i=o.scrollTo)===null||i===void 0||i.call(o,I,D)}}return t.\u0275fac=function(e){return new(e||t)(l(Tr),l(F),l(Ki),l(no))},t.\u0275cmp=S({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(e,i){e&1&&f("tui-scrollable.stop",function(r){return i.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return i.scrollIntoView(r.detail)}),e&2&&A("_legacy",i.showNative)},inputs:{hidden:"hidden"},features:[b([{provide:yr,deps:[t],useFactory:({browserScrollRef:n})=>n}])],ngContentSelectors:ll,decls:3,vars:1,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(e,i){e&1&&(re(),v(0,sl,1,0,"tui-scroll-controls",0),m(1,"div",1),X(2),g()),e&2&&u("ngIf",i.showScrollbars)},dependencies:[Ir,ae],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})(),di=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,kr]]}),t})();function ul(t,n){if(t&1&&(m(0,"div",4),W(1),g()),t&2){let e=n.polymorpheusOutlet;p(),he(" ",e," ")}}var cl=t=>({$implicit:t}),dl=R(()=>gl),Ti=(()=>{class t{constructor(){this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new $}update(e){this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e)}ngOnChanges(){var e;(e=this.dropdown)===null||e===void 0||e.toggle(this.tuiDropdownOpen)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},features:[ct]}),t})(),gt=(()=>{class t{constructor(e,i,o,r,s,c){this.el=i,this.dropdown=o,this.injector=r,this.dropdownService=s,this.open=c,this.refresh$=new Ft,this.dropdownBoxRef=null,this.type="dropdown",this.component=new bt(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe(Bo(0),ne(e)).subscribe(()=>{var d,_;(d=this.dropdownBoxRef)===null||d===void 0||d.changeDetectorRef.detectChanges(),(_=this.dropdownBoxRef)===null||_===void 0||_.changeDetectorRef.markForCheck()})}get position(){return Rr(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngAfterViewInit(){this.open&&this.toggle(this.open.tuiDropdownOpen)}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(e){var i,o;e&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),(i=this.open)===null||i===void 0||i.update(!0)):!e&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,(o=this.open)===null||o===void 0||o.update(!1))}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(F),l(dl),l(Fi),l(Fr),l(Ti,8))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:[k.None,"tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[b([B,Ci(t),tn(t)]),ct]}),ye([Ne],t.prototype,"position",null),t})(),pl={showDelay:200,hideDelay:500},ml=Z(pl);var vo=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=i,this.parentHover=o,this.toggle$=new Ft,this.stream$=De(this.toggle$,this.hovered$).pipe(vt(r=>je(r).pipe(ut(r?this.showDelay:this.hideDelay))),hi(r=>{this.hovered=r}),ki()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(e){var i;(i=this.parentHover)===null||i===void 0||i.toggle(e),this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(ml),l(t,12))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:[k.None,"tuiDropdownShowDelay","showDelay"],hideDelay:[k.None,"tuiDropdownHideDelay","hideDelay"]},features:[b([zt(t),st]),x]}),t})(),ha={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Vt=Z(ha),ga=t=>({provide:Vt,deps:[[new xe,hl],[new xe,new gi,Vt]],useFactory:uo(t,ha)}),hl=(()=>{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(Vt,4))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[k.None,"tuiDropdownAlign","align"],appearance:[k.None,"tuiDropdownAppearance","appearance"],direction:[k.None,"tuiDropdownDirection","direction"],limitWidth:[k.None,"tuiDropdownLimitWidth","limitWidth"],minHeight:[k.None,"tuiDropdownMinHeight","minHeight"],maxHeight:[k.None,"tuiDropdownMaxHeight","maxHeight"],offset:[k.None,"tuiDropdownOffset","offset"]},features:[b([{provide:Vt,useExisting:pe(()=>t)}])]}),t})(),gl=(()=>{class t{constructor(e,i,o,r,s,c,d,_,y,D,I){this.directive=r,this.animation=s,this.el=c,this.accessor=d,this.win=_,this.mode$=y,this.options=D,this.hoverDirective=I,i.pipe(z(O=>this.directive.position==="fixed"?e.correct(O):O),ne(o)).subscribe(([O,G])=>{this.update(O,G)}),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(e){var i;(i=this.hoverDirective)===null||i===void 0||i.toggle(e)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(e,i){var o;let{style:r}=this.el.nativeElement,{right:s}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:c,minHeight:d,offset:_}=this.options,{innerHeight:y}=this.win,D=(o=this.el.nativeElement.offsetParent)===null||o===void 0?void 0:o.getBoundingClientRect(),{position:I}=this.directive,O=this.accessor.getClientRect(),G=I==="fixed"?0:-((D==null?void 0:D.left)||0),Q=I==="fixed"?0:-((D==null?void 0:D.top)||0);e+=Q,i+=G;let be=iO.left&&e=O.right;r.position=I,r.top=Qe(Math.max(e,Q+_)),r.left=Qe(i),r.maxHeight=St?"min(100%, ".concat(c,"px)"):Qe(Math.min(c,Math.max(be,d))),r.width="",r.minWidth="",this.updateWidth(O.width)}updateWidth(e){let{style:i}=this.el.nativeElement;switch(this.options.limitWidth){case"min":i.minWidth=Qe(e);break;case"fixed":i.width=Qe(e);break;case"auto":break}}moveFocusOutside(e){let{nativeElement:i}=this.directive.el,{ownerDocument:o}=i,r=o?o.body:i,s=Qt({initial:i,root:r,previous:e});for(;s!==null&&i.contains(s);)s=Qt({initial:s,root:r,previous:e});s==null||s.focus()}}return t.\u0275fac=function(e){return new(e||t)(l(mn),l(ii),l(B,2),l(gt),l(ln),l(F),l(Jt),l(Cr),l(nt),l(Vt),l(vo,8))},t.\u0275cmp=S({type:t,selectors:[["tui-dropdown"]],hostVars:2,hostBindings:function(e,i){e&1&&f("$.data-mode.attr",function(){return i.mode$}),e&2&&(L("data-appearance",i.options.appearance),Ri("@tuiDropdownAnimation",i.animation))},features:[b([B,ii,rn("dropdown"),an("dropdown",gt),ot])],decls:5,vars:4,consts:[["tuiActiveZone","","tuiOverscroll","all",1,"t-scroll",3,"tuiHoveredChange"],["activeZone","tuiActiveZone"],["tabindex","0",3,"focus"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(e,i){if(e&1&&(m(0,"tui-scrollbar",0,1),f("tuiHoveredChange",function(r){return i.onHoveredChange(r)}),m(2,"div",2),f("focus",function(){return i.onTopFocus()}),g(),v(3,ul,2,1,"div",3),m(4,"div",2),f("focus",function(){return i.onBottomFocus()}),g()()),e&2){let o=ee(1);p(3),u("polymorpheusOutlet",i.directive.content)("polymorpheusOutletContext",ce(2,cl,o))}},dependencies:[It,ze,Er,ai,te],styles:['[_nghost-%COMP%]{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}.ng-animating[_nghost-%COMP%]{pointer-events:none}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}[data-mode=onDark][_nghost-%COMP%]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll[_ngcontent-%COMP%]{flex-grow:1;max-width:100%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}'],data:{animation:[Hr]}}),t})();var fa=(()=>{class t extends nn{constructor(e,i,o){super(e,i,o),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(Ot),l(en))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown",""]],features:[b([B]),x]}),t})();var _a=(()=>{class t extends Ot{constructor(){super(e=>this.stream$.subscribe(e)),this.stream$=new At(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[b([zt(t)]),x,ct]}),t})(),ma=(()=>{class t extends mt{constructor(e,i,o,r){super(),this.options=e,this.viewport=i,this.accessors=o,this.directive=r,this.type="dropdown"}getPosition({width:e,height:i}){var o,r;!e&&!i&&(this.previous=void 0);let s=(r=(o=this.accessor)===null||o===void 0?void 0:o.getClientRect())!==null&&r!==void 0?r:Lt,c=this.viewport.getClientRect(),{minHeight:d,align:_,direction:y,offset:D,limitWidth:I}=this.options,O={top:c.top-D,bottom:c.bottom+D,right:c.right-D,left:c.left+D},G=this.previous||y||"bottom",Q={top:s.top-2*D-O.top,bottom:O.bottom-s.bottom-2*D},fe=I==="fixed"?s.width:e,be=Math.max(s.right-fe,D),St=s.left+eQ.bottom?"top":"bottom";return Q[G]>d&&y||Q[G]>i?[Ut[G],Ut[_]]:(this.previous=Fo,[Ut[Fo],Ut[_]])}get accessor(){return sn("dropdown")(this.accessors,this.directive)}}return t.\u0275fac=function(e){return new(e||t)(l(Vt),l(ti),l(Jt),l(gt))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[b([vi(t)]),x]}),ye([Ne],t.prototype,"accessor",null),t})(),va=(()=>{class t extends mt{constructor(e,i,o){super(),this.options=e,this.viewport=i,this.vertical=o,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var i,o;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:r,width:s}=e,c=(o=(i=this.vertical.accessor)===null||i===void 0?void 0:i.getClientRect())!==null&&o!==void 0?o:Lt,d=this.viewport.getClientRect(),{direction:_,minHeight:y,offset:D}=this.options,I=this.options.align==="center"?"left":this.options.align,O={top:c.bottom-d.top,left:c.left-D-d.left,right:d.right-c.right-D,bottom:d.bottom-c.top},G={top:c.bottom-r+this.tuiDropdownSidedOffset+1,left:c.left-s-D,right:c.right+D,bottom:c.top-this.tuiDropdownSidedOffset-1},Q=O.top>O.bottom?"top":"bottom",fe=O.left>O.right?G.left:G.right,be=O[I]>s?G[I]:fe;return O[this.previous]>y&&_||this.previous===Q?[G[this.previous],be]:(this.previous=Q,[G[Q],be])}}return t.\u0275fac=function(e){return new(e||t)(l(Vt),l(ti),l(ma))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[b([ma,vi(t)]),x]}),t})();var En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[se,qt,Sr,di,wt]]}),t})();function _l(t,n){if(t&1&&E(0,"span",1),t&2){let e=n.polymorpheusOutlet;u("innerHTML",e,Hi)}}var vl=["*"];var Cl=R(()=>bl),Tl={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},Bt=Z(Tl);var Et=(()=>{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)(l(Bt,4))},t.\u0275dir=M({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:[k.None,"tuiHintContent","content"],direction:[k.None,"tuiHintDirection","direction"],appearance:[k.None,"tuiHintAppearance","appearance"],showDelay:[k.None,"tuiHintShowDelay","showDelay"],hideDelay:[k.None,"tuiHintHideDelay","hideDelay"]},features:[b([{provide:Bt,useExisting:pe(()=>t)}]),x]}),t})(),Fn=(()=>{class t{constructor(e,i,o,r,s){this.el=e,this.component=i,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(F),l(bt),l(Kr),l(Bt),l(ze,8))},t.\u0275dir=M({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{content:[k.None,"tuiHint","content"],context:[k.None,"tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[b([Ci(t),tn(t),{provide:bt,deps:[Cl,Fi],useClass:bt}]),ct]}),t})(),pi=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=i,this.el=o,this.visible=!1,this.toggle$=new Ft,this.stream$=De(this.toggle$.pipe(vt(r=>je(r).pipe(ut(r?0:this.hideDelay))),ne(this.hovered$),Zn()),this.hovered$.pipe(vt(r=>je(r).pipe(ut(r?this.showDelay:this.hideDelay))),ne(this.toggle$),Zn())).pipe(lt(()=>this.enabled),z(r=>r&&!lo(this.el.nativeElement)),hi(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(st),l(Bt),l(F))},t.\u0275dir=M({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{showDelay:[k.None,"tuiHintShowDelay","showDelay"],hideDelay:[k.None,"tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[b([zt(t),st]),x]}),t})(),Ml=(()=>{class t extends pi{constructor(){super(...arguments),this.currentRect=Lt}onMove({clientX:e,clientY:i}){this.currentRect=io(e,i)}getClientRect(){return this.currentRect}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(e,i){e&1&&f("mousemove.silent",function(r){return i.onMove(r)})},features:[b([Ci(t),zt(t)]),x]}),t})(),Ca=4,bl=(()=>{class t{constructor(e,i,o,r,s,c,d,_,y,D,I,O){var G;this.animation=r,this.pointer=s,this.accessor=c,this.el=d,this.polymorpheus=_,this.hover=y,this.mode=D,this.visualViewportService=I,this.viewport=O,this.appearance=this.polymorpheus.$implicit.appearance||((G=this.mode)===null||G===void 0?void 0:G.mode),i.pipe(z(Q=>this.visualViewportService.correct(Q)),ne(o)).subscribe(([Q,fe])=>{this.update(Q,fe)}),e.pipe(ne(o)).subscribe(Q=>this.hover.toggle(Q))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(e){(!this.el.nativeElement.contains(e)&&!this.hover.el.nativeElement.contains(e)||lo(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(e,i){let{height:o,width:r}=this.el.nativeElement.getBoundingClientRect(),{style:s}=this.el.nativeElement,c=this.accessor.getClientRect(),d=this.viewport.getClientRect();if(c===Lt)return;let _=Tt(i,Ca,d.width-r-Ca),[y,D]=this.visualViewportService.correct([c.top+c.height/2-e,c.left+c.width/2-_]);s.top=Qe(e),s.left=Qe(_),s.setProperty("--top",Qe(Tt(y,.5,o-1))),s.setProperty("--left",Qe(Tt(D,.5,r-1)))}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(ii),l(B,2),l(ln),l(Ml,8),l(Jt),l(F),l(vr),l(pi),l(ni,8),l(mn),l(ti))},t.\u0275cmp=S({type:t,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(e,i){e&1&&f("click",function(r){return i.onClick(r.target)},!1,fi),e&2&&(L("data-appearance",i.appearance),Ri("@tuiFadeIn",i.animation),A("_untouchable",i.pointer))},features:[b([B,ii,st,rn("hint"),an("hint",Fn)])],ngContentSelectors:vl,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(e,i){e&1&&(re(),X(0),v(1,_l,1,1,"span",0)),e&2&&(p(),u("polymorpheusOutlet",i.content)("polymorpheusOutletContext",i.context))},dependencies:[te],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:[Ar]},changeDetection:0}),ye([Ne],t.prototype,"update",null),t})(),Ta=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.zone=e,this.doc=i,this.el=o,this.id$=new Ro(1),this.stream$=this.id$.pipe(Wi(()=>ke(this.doc,"keydown",{capture:!0}),sr),vt(()=>this.focused?je(!1):De(ke(this.doc,"keyup"),ke(this.element,"blur")).pipe(z(()=>this.focused))),Vo(r=>r?Ii(1e3):je(null)),Ei(!1),Ge(),$t(1),Xt(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return Be(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(l(Ze),l(to),l(F))},t.\u0275dir=M({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[b([zt(t)]),x,ct]}),ye([Ne],t.prototype,"element",null),t})(),Ma=(()=>{class t extends nn{constructor(e,i,o){super(e,i,o),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(Ot),l(en))},t.\u0275dir=M({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],features:[b([B]),x]}),t})();var kt=8,Sn=22,oe=0,le=1,ba=(()=>{class t extends mt{constructor(e,i,o,r){super(),this.options=e,this.viewport=i,this.directive=o,this.accessors=r,this.points=so.reduce((s,c)=>Object.assign(Object.assign({},s),{[c]:[0,0]}),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:e,height:i}){var o,r;let s=(r=(o=this.accessor)===null||o===void 0?void 0:o.getClientRect())!==null&&r!==void 0?r:Lt,c=s.left+s.width/2,d=s.top+s.height/2;if(this.points["top-left"][oe]=s.top-i-kt,this.points["top-left"][le]=c-e+Sn,this.points.top[oe]=this.points["top-left"][oe],this.points.top[le]=c-e/2,this.points["top-right"][oe]=this.points["top-left"][oe],this.points["top-right"][le]=c-Sn,this.points["bottom-left"][oe]=s.bottom+kt,this.points["bottom-left"][le]=this.points["top-left"][le],this.points.bottom[oe]=this.points["bottom-left"][oe],this.points.bottom[le]=this.points.top[le],this.points["bottom-right"][oe]=this.points["bottom-left"][oe],this.points["bottom-right"][le]=this.points["top-right"][le],this.points["left-top"][oe]=d-i+Sn,this.points["left-top"][le]=s.left-e-kt,this.points.left[oe]=d-i/2,this.points.left[le]=this.points["left-top"][le],this.points["left-bottom"][oe]=d-Sn,this.points["left-bottom"][le]=this.points["left-top"][le],this.points["right-top"][oe]=this.points["left-top"][oe],this.points["right-top"][le]=s.right+kt,this.points.right[oe]=this.points.left[oe],this.points.right[le]=this.points["right-top"][le],this.points["right-bottom"][oe]=this.points["left-bottom"][oe],this.points["right-bottom"][le]=this.points["right-top"][le],this.checkPosition(this.points[this.direction],e,i))return this.points[this.direction];let _=so.find(y=>this.checkPosition(this.points[y],e,i));return this.points[_||this.fallback]}get accessor(){return sn("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[oe]>this.viewport.getClientRect().bottom-this.points.bottom[oe]?"top":"bottom"}checkPosition([e,i],o,r){let s=this.viewport.getClientRect();return e>kt&&i>kt&&e+r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,se]]}),t})();var ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[b([{provide:Ni,deps:[[new xe,pn],qe],multi:!0,useFactory:(n,e)=>n?n[0]:e}])]}),t})(),Da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Oa=(()=>{class t{constructor(e,i){this.el=e,this.destroy$=i}set tuiScrollIntoView(e){e&&Ii(0).pipe(ne(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(Lr,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(B,2))},t.\u0275dir=M({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[b([B])]}),t})(),Pa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Co=class{constructor(n,e,i,o,r,s,c,d,_,y,D,I,O){this.change$=n,this.options=e,this.legacyAppearance=i,this.appearanceDirective=o,this.cleanerDirective=r,this.customContentDirective=s,this.iconDirective=c,this.iconLeftDirective=d,this.labelOutsideDirective=_,this.sizeDirective=y,this.prefixDirective=D,this.postfixDirective=I,this.fillerDirective=O}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}},Pl={iconCleaner:"tuiIconClose",hintOnDisabled:!1},To=Z(Pl);var wa=R(()=>new wl),wl=(()=>{class t extends Le{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[k.None,"tuiTextfieldAppearance","appearance"]},features:[b([{provide:wa,useExisting:pe(()=>t)}]),x]}),t})(),xa=R(()=>new xl),xl=(()=>{class t extends Le{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[k.None,"tuiTextfieldCleaner","cleaner"]},features:[b([{provide:xa,useExisting:pe(()=>t)}]),x]}),t})(),Ia=R(()=>new Il),Il=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[k.None,"tuiTextfieldCustomContent","customContent"]},features:[b([{provide:Ia,useExisting:pe(()=>t)}]),x]}),t})(),ka=R(()=>new Mo),Mo=(()=>{class t extends Le{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[k.None,"tuiTextfieldFiller","filler"]},features:[b([{provide:ka,useExisting:pe(()=>t)}]),x]}),t})(),Ea=R(()=>new bo),bo=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[k.None,"tuiTextfieldIcon","icon"]},features:[b([{provide:Ea,useExisting:pe(()=>t)}]),x]}),t})(),Sa=R(()=>new kl),kl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:[k.None,"tuiTextfieldIconLeft","iconLeft"]},features:[b([{provide:Sa,useExisting:pe(()=>t)}]),x]}),t})(),Fa=R(()=>new yo),yo=(()=>{class t extends Le{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[k.None,"tuiTextfieldLabelOutside","labelOutside"]},features:[b([{provide:Fa,useExisting:pe(()=>t)}]),x]}),t})(),Aa=R(()=>new El),El=(()=>{class t extends Le{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[k.None,"tuiTextfieldPostfix","postfix"]},features:[b([{provide:Aa,useExisting:pe(()=>t)}]),x]}),t})(),Ha=R(()=>new Sl),Sl=(()=>{class t extends Le{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[k.None,"tuiTextfieldPrefix","prefix"]},features:[b([{provide:Ha,useExisting:pe(()=>t)}]),x]}),t})(),Hn=R(()=>new Fl),Fl=(()=>{class t extends Le{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[k.None,"tuiTextfieldSize","size"]},features:[b([{provide:Hn,useExisting:pe(()=>t)}]),x]}),t})(),Rn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})(),Mi=new Ke("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Ln=[B,{provide:Mi,deps:[me,B,To,Gr,wa,xa,Ia,Ea,Sa,Fa,Hn,Ha,Aa,ka],useFactory:(t,n,e,i,...o)=>{let r=De(...o.map(({change$:s})=>s||zo)).pipe(Yi(t),ne(n));return r.subscribe(),new Co(r,e,i,...o)}}];function Al(t,n){if(t&1){let e=U();m(0,"div",4),f("click",function(){let r=P(e).tuiLet,s=h(3);return w(s.onItemClick(r))})("tuiHoveredChange",function(o){let s=P(e).tuiLet,c=h(3);return w(c.onItemHovered(o,s))})("tuiPressedChange",function(o){let s=P(e).tuiLet,c=h(3);return w(c.onItemPressed(o,s))}),m(1,"div",5),W(2),g()()}if(t&2){let e=n.tuiLet,i=h(3);A("t-cell_interval",i.itemIsInterval(e))("t-cell_today",i.itemIsToday(e)),u("tuiScrollIntoView",i.scrollItemIntoView(e)),L("data-range",i.getItemRange(e))("data-state",i.getItemState(e)),p(2),Li(e)}}function Hl(t,n){if(t&1&&(Oe(0),v(1,Al,3,8,"div",3),Pe()),t&2){let e=n.$implicit,i=h().$implicit,o=h();p(),u("tuiLet",o.getItem(i,e))}}function Rl(t,n){t&1&&(m(0,"div",1),v(1,Hl,2,1,"ng-container",2),g()),t&2&&(p(),u("tuiRepeatTimesOf",4))}var Ra=100,La=4,Na=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=q.currentLocal().year,this.value=null,this.initialItem=q.currentLocal(),this.min=Se,this.max=Ve,this.disabledItemHandler=ge,this.yearClick=new $}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/La)}get calculatedMin(){let e=this.initialItem.year-Ra,i=this.computedMin;return i.year>e?i.year:e}get calculatedMax(){let e=this.initialItem.year+Ra,i=this.computedMax;return i.yeari.from.year&&i.from.year===e&&i.from.yearSame(i.to)||o!==null&&o===e&&oi.from.year&&i.from.yearSame(i.to)?Ue.End:i.from.yearSame(i.to)&&i.from.year===e?Ue.Single:null:i.find(r=>r.year===e)?Ue.Single:null}itemIsToday(e){return this.currentYear===e}itemIsInterval(e){let{value:i,hoveredItem:o}=this;return i===null||!this.isRange(i)?!1:i.from.yearSame(i.to)?o===null||i.from.year===o?!1:Nt(e,Math.min(i.from.year,o),Math.max(i.from.year,o)):i.from.year<=e&&i.to.year>e}onItemHovered(e,i){this.updateHoveredItem(e,i)}onItemPressed(e,i){this.updatePressedItem(e,i)}onItemClick(e){this.yearClick.emit(new Me(e))}updateHoveredItem(e,i){this.hoveredItem=e?i:null}updatePressedItem(e,i){this.pressedItem=e?i:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,i){e&2&&A("_single",i.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,i){e&1&&v(0,Rl,2,1,"div",0),e&2&&u("tuiRepeatTimesOf",i.rows)},dependencies:[Pn,yt,Oa,ai,On],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})(),za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[wt,si,wn,Dt,Pa]]}),t})();function Nl(t,n){if(t&1){let e=U();Oe(0),m(1,"button",1),f("click",function(){P(e);let o=h();return w(o.onLeftClick())}),g(),m(2,"span",2),X(3),g(),m(4,"button",3),f("click",function(){P(e);let o=h();return w(o.onRightClick())}),g(),Pe()}if(t&2){let e=n.ngIf,i=h();p(),A("t-hidden",i.leftComputedDisabled),u("focusable",i.computedFocusable)("icon",i.icons.decrement)("title",e[0]),p(3),A("t-hidden",i.rightComputedDisabled),u("focusable",i.computedFocusable)("icon",i.icons.increment)("title",e[1])}}var zl=["*"],Va=(()=>{class t extends Xi{constructor(e,i,o){super(),this.el=e,this.icons=i,this.spinTexts$=o,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new $,this.rightClick=new $}get focused(){return pt(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(F),l(Yr),l($r))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(e,i){e&1&&f("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return i.onLeftClick()})("keydown.arrowRight.prevent",function(){return i.onRightClick()})("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)})},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[x],ngContentSelectors:zl,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,i){e&1&&(re(),v(0,Nl,5,10,"ng-container",0),Y(1,"async")),e&2&&u("ngIf",J(1,1,i.spinTexts$))},dependencies:[fn,ae,ve],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})(),ja=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,_n]]}),t})();var jl=(t,n)=>{let e=new Date(t.year,t.month,1).getDay();return e>=n?e-n:kn-(n-e)},Bl=({month:t,rowIndex:n,colIndex:e,firstDayOfWeek:i})=>{let o=n*kn+e-jl(t,i)+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 de(t.year,t.month,o)},Ul=6,Ba=(()=>{class t{constructor(e){this.firstDayOfWeek=e,this.currentMonth=null,this.currentSheet=[]}transform(e,i=!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>O.year||I.month>O.month;if(!(y(_)&&!i)){if(D(_)&&!i)break;c.push(_)}}r.push(c)}return this.currentSheet=r.filter(s=>s.length),this.currentMonth=e,this.currentSheet}}return t.\u0275fac=function(e){return new(e||t)(l(cn,16))},t.\u0275pipe=Ht({name:"tuiCalendarSheet",type:t,pure:!0}),t})(),Ua=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Do=(()=>{class t{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe(z(i=>i[e]))}}return t.\u0275fac=function(e){return new(e||t)(l(Ur,16))},t.\u0275pipe=Ht({name:"tuiMonth",type:t,pure:!0}),t})(),$a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function $l(t){let n=t.length-1;return[t[n],...t.slice(0,n)]}var Wa=(()=>{class t{constructor(e){this.firstDayOfWeekIndex=e}transform(e){return e.pipe(z($l),z(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}}return t.\u0275fac=function(e){return new(e||t)(l(cn,16))},t.\u0275pipe=Ht({name:"tuiOrderWeekDays",type:t,pure:!0}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function Yl(t,n){if(t&1&&(Oe(0),W(1),Pe()),t&2){let e=h();p(),he(" ",e.value.formattedYear," ")}}function Gl(t,n){if(t&1){let e=U();m(0,"button",3),f("click",function(){P(e);let o=h();return w(o.onYearClick())}),W(1),g()}if(t&2){let e=h();u("tuiFocusable",!1),p(),he(" ",e.value.formattedYear," ")}}var Ga=(()=>{class t{constructor(){this.value=q.currentLocal(),this.min=Se,this.max=Ve,this.valueChange=new $,this.yearClick=new $}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){let{computedMin:e,computedMax:i}=this;return e.year===i.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(e){let i=this.value.append(e),{computedMin:o,computedMax:r}=this;if(o.monthSameOrAfter(i)){this.updateValue(o);return}this.updateValue(r.monthSameOrBefore(i)?r:i)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({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,i){if(e&1&&(m(0,"tui-primitive-spin-button",0),f("leftClick",function(){return i.onPrevMonthClick()})("rightClick",function(){return i.onNextMonthClick()}),W(1),Y(2,"async"),Y(3,"tuiMonth"),v(4,Yl,2,1,"ng-container",1)(5,Gl,2,2,"ng-template",null,2,_e),g()),e&2){let o=ee(6);u("focusable",!1)("leftDisabled",i.prevMonthDisabled)("rightDisabled",i.nextMonthDisabled),p(),he(" ",J(2,6,J(3,8,i.value))," "),p(3),u("ngIf",i.oneYear)("ngIfElse",o)}},dependencies:[Va,oi,ae,rt,ve,Do],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),Ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,at,ja,ri,$a]]}),t})();function Ql(t,n){if(t&1&&E(0,"div",3),t&2){let e=n.$implicit;u("textContent",e)}}function Xl(t,n){if(t&1&&E(0,"div",14),t&2){let e=h().ngIf;Ie("background-color",(e==null?null:e[1])||"")}}function Zl(t,n){if(t&1&&(m(0,"div",13),E(1,"div",14),v(2,Xl,1,2,"div",15),g()),t&2){let e=n.ngIf;p(),Ie("background-color",e==null?null:e[0]),p(),u("ngIf",e.length>1)}}var ql=(t,n,e,i,o)=>[t,n,e,i,o];function Jl(t,n){if(t&1){let e=U();m(0,"div",10),f("click",function(){P(e);let o=h().tuiLet,r=h(4);return w(r.onItemClick(o))})("tuiHoveredChange",function(o){P(e);let r=h().tuiLet,s=h(4);return w(s.onItemHovered(o&&r))})("tuiPressedChange",function(o){P(e);let r=h().tuiLet,s=h(4);return w(s.onItemPressed(o&&r))}),m(1,"div",11),Y(2,"tuiMapper"),W(3),v(4,Zl,3,3,"div",12),Y(5,"tuiMapper"),g()()}if(t&2){let e=h().tuiLet,i=h(4);A("t-cell_interval",i.itemIsInterval(e))("t-cell_today",i.itemIsToday(e))("t-cell_unavailable",i.itemIsUnavailable(e)),L("data-range",i.getItemRange(e))("data-state",i.getItemState(e)),p(),A("t-item_unavailable",i.itemIsUnavailable(e)),L("data-type",eo(2,13,e,i.dayTypeHandler)),p(2),he(" ",e.day," "),p(),u("ngIf",Qo(5,16,Go(22,ql,e,i.toMarkers,i.itemIsToday(e),!!i.getItemRange(e),i.markerHandler)))}}function eu(t,n){if(t&1&&(Oe(0),v(1,Jl,6,28,"div",9),Pe()),t&2){let e=n.tuiLet,i=h(4);p(),u("ngIf",!i.itemIsUnavailable(e)||i.showAdjacent)}}function tu(t,n){if(t&1&&(Oe(0),v(1,eu,2,1,"ng-container",8),Pe()),t&2){let e=n.$implicit,i=h().$implicit,o=h().tuiLet;p(),u("tuiLet",o[i][e])}}function iu(t,n){if(t&1&&(m(0,"div",6),v(1,tu,2,1,"ng-container",7),g()),t&2){let e=n.$implicit,i=h().tuiLet;p(),u("tuiRepeatTimesOf",i[e].length)}}function nu(t,n){if(t&1&&(m(0,"div",4),v(1,iu,2,1,"div",5),g()),t&2){let e=n.tuiLet;p(),u("tuiRepeatTimesOf",e.length)}}var Qa=(()=>{class t{constructor(e,i){this.unorderedWeekDays$=e,this.dayTypeHandler=i,this.pressedItem=null,this.today=de.currentLocal(),this.month=q.currentLocal(),this.disabledItemHandler=ge,this.markerHandler=ei,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new $,this.dayClick=new $,this.toMarkers=(o,r,s,c)=>{if(r||s)return null;let d=c(o);return d.length===0?null:d}}get isSingleDayRange(){return this.value instanceof xt&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(e){let{disabledItemHandler:i,pressedItem:o,hoveredItem:r}=this;return i(e)?Pt.Disabled:o!=null&&o.daySame(e)?Pt.Active:r!=null&&r.daySame(e)?Pt.Hover:null}getItemRange(e){let{value:i,hoveredItem:o}=this;return i?i instanceof de?i.daySame(e)?Ue.Single:null:i instanceof xt?i.from.daySame(e)&&!i.isSingleDay||o!=null&&o.dayAfter(i.from)&&i.from.daySame(e)&&i.isSingleDay||o!=null&&o.daySame(e)&&o.dayBefore(i.from)&&i.isSingleDay?Ue.Start:i.to.daySame(e)&&!i.isSingleDay||o!=null&&o.dayBefore(i.from)&&i.from.daySame(e)&&i.isSingleDay||o!=null&&o.daySame(e)&&o.dayAfter(i.from)&&i.isSingleDay?Ue.End:i.isSingleDay&&i.from.daySame(e)?Ue.Single:null:i.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:i,hoveredItem:o}=this;if(!(i instanceof xt))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(e)&&i.to.dayAfter(e);if(o===null)return!1;let r=xt.sort(i.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){Kt(this.hoveredItem,e,(i,o)=>i.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(l(Wr),l(Br))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,i){e&2&&A("_single",i.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,i){e&1&&(m(0,"div",0),v(1,Ql,1,1,"div",1),Y(2,"async"),Y(3,"tuiOrderWeekDays"),g(),v(4,nu,2,1,"div",2),Y(5,"tuiCalendarSheet")),e&2&&(p(),u("ngForOf",J(2,2,J(3,4,i.unorderedWeekDays$))),p(3),u("tuiLet",eo(5,6,i.month,!0)))},dependencies:[Yt,yt,Pn,ae,ai,On,ve,Wa,Ba,qi],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})(),Xa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Dt,Ji,wn,wt,si,Ua,Ya]]}),t})();function ru(t,n){if(t&1){let e=U();m(0,"tui-scrollbar",2)(1,"tui-primitive-year-picker",3),f("yearClick",function(o){P(e);let r=h();return w(r.onPickerYearClick(o))}),g()()}if(t&2){let e=h();p(),u("initialItem",e.month)("max",e.computedMax)("min",e.computedMin)("value",e.value)}}function au(t,n){if(t&1){let e=U();m(0,"tui-primitive-year-month-pagination",4),f("valueChange",function(o){P(e);let r=h();return w(r.onPaginationValueChange(o))})("yearClick",function(){P(e);let o=h();return w(o.onPaginationYearClick())}),g(),m(1,"tui-primitive-calendar",5),f("dayClick",function(o){P(e);let r=h();return w(r.onDayClick(o))})("hoveredItemChange",function(o){P(e);let r=h();return w(r.onHoveredItemChange(o))}),Y(2,"tuiMapper"),g()}if(t&2){let e=h();u("max",e.computedMaxViewedMonth)("min",e.computedMinViewedMonth)("value",e.month),p(),u("disabledItemHandler",Ko(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 Nn=(()=>{class t{constructor(){this.day=null,this.view="month",this.month=q.currentLocal(),this.disabledItemHandler=ge,this.min=Se,this.max=Ve,this.minViewedMonth=Se,this.maxViewedMonth=Ve,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=ei,this.dayClick=new $,this.monthChange=new $,this.hoveredItemChange=new $,this.disabledItemHandlerMapper=(e,i,o)=>r=>r.dayBefore(i)||r.dayAfter(o)||e(r)}set initialView(e){this.view=e}set value(e){this.day=e,this.showAdjacent&&e instanceof de&&(this.month=e)}get value(){return this.day}get isInYearView(){return this.view==="year"}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get computedMinViewedMonth(){var e;let i=this.computedMin,o=(e=this.minViewedMonth)!==null&&e!==void 0?e:Se;return o.monthSameOrAfter(i)?o:i}get computedMaxViewedMonth(){var e;let i=this.computedMax,o=(e=this.maxViewedMonth)!==null&&e!==void 0?e:Ve;return o.monthSameOrBefore(i)?o:i}onPaginationYearClick(){this.view="year"}onPickerYearClick({year:e}){this.view="month",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){Kt(this.hoveredItem,e,(i,o)=>i.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-calendar"]],inputs:{initialView:"initialView",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,i){if(e&1&&v(0,ru,2,4,"tui-scrollbar",0)(1,au,3,14,"ng-template",null,1,_e),e&2){let o=ee(2);u("ngIf",i.isInYearView)("ngIfElse",o)}},dependencies:[It,Na,Ga,Qa,ae,qi],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})(),zn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Ka,Xa,za,di,Ji]]}),t})();var Za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})();var su=["wrapper"];function lu(t,n){if(t&1&&(m(0,"div",8),W(1),g()),t&2){let e=n.polymorpheusOutlet;p(),he(" ",e," ")}}var uu=(t,n)=>({$implicit:t,close:n});function cu(t,n){if(t&1){let e=U();m(0,"div",5,6),f("keydown",function(o){P(e);let r=h(2);return w(r.onKeydown(o))}),v(2,lu,2,1,"div",7),g(),E(3,"div")}if(t&2){h();let e=ee(1),i=h();p(2),u("polymorpheusOutlet",i.content)("polymorpheusOutletContext",Yo(2,uu,e,i.close))}}function du(t,n){if(t&1){let e=U();m(0,"div",1,2),f("tuiActiveZoneChange",function(o){P(e);let r=h();return w(r.onActiveZone(o))})("tuiObscured",function(o){P(e);let r=h();return w(r.onHostObscured(o))}),X(2),v(3,cu,4,5,"ng-template",3,4,_e),g()}if(t&2){let e=n.tuiLet,i=ee(4),o=h();u("tuiDropdown",i)("tuiDropdownManual",e&&o.canOpen)("tuiDropdownSided",o.sided)("tuiObscuredEnabled",e),p(3),u("polymorpheus",o.context)}}var pu=["*"],qa=(()=>{class t extends mt{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiAccessorProxy",""]],features:[b([{provide:mt,multi:!0,deps:[[new xe,new gi,t],t],useFactory:(n,e)=>n||e}]),x]}),t})(),Ja=new Ke("[TUI_HOSTED_DROPDOWN_COMPONENT]"),mu=(()=>{class t{constructor(e,i,o,r){r==null||r.tuiDropdownOpenChange.pipe(lt(s=>s&&r.dropdown===o&&!i.focused),ne(e)).subscribe(()=>{var s;(s=i.nativeFocusableElement)===null||s===void 0||s.focus(),i.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(Ja),l(gt,2),l(Ti,8))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[b([B])]}),t})(),hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function gu(t){var n;return"key"in t&&t.key.toLowerCase()==="escape"&&this.canOpen&&this.open&&!(!((n=this.dropdown)===null||n===void 0)&&n.nextElementSibling)}var mi=(()=>{class t{constructor(e,i){this.hover$=e,this.el=i,this.openChange$=new At(!1),this.hostHover$=Xn([ke(this.el.nativeElement,"mouseover").pipe(z(o=>this.computedHost.contains(Bi(o))),vt(o=>{var r,s;return je(o).pipe(ut((o?(r=this.hover$)===null||r===void 0?void 0:r.showDelay:(s=this.hover$)===null||s===void 0?void 0:s.hideDelay)||0))})),this.hover$||Lo]).pipe(z(([o,r])=>o&&r)),this.sided=!1,this.canOpen=!0,this.open$=De(this.openChange$,this.hostHover$).pipe($t(1),Ge(),ki()),this.focusedChange=new $,this.openChange=this.openChange$,this.close=()=>this.updateOpen(!1)}set open(e){this.openChange.next(e)}get open(){return this.openChange.value}get host(){var e;return((e=this.dropdownHost)===null||e===void 0?void 0:e.nativeElement)||this.el.nativeElement}get computedHost(){var e;return((e=this.dropdownHost)===null||e===void 0?void 0:e.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var e,i;return(i=(e=this.dropdownDirective)===null||e===void 0?void 0:e.dropdownBoxRef)===null||i===void 0?void 0:i.location.nativeElement}get nativeFocusableElement(){return cr(this.host)?this.host:Qt({initial:this.host,root:this.el.nativeElement})}get focused(){return pt(this.host)||this.open&&!!this.wrapper&&pt(this.wrapper.nativeElement)}onFocusInOut(){this.el.nativeElement.classList.toggle("_hosted_dropdown_focused",this.focused)}onFocusIn(e){this.computedHost.contains(e)||this.updateOpen(!1)}onClick(e){var i;!this.hostEditable&&this.computedHost.contains(e)&&!(!((i=this.hover$)===null||i===void 0)&&i.hovered)&&this.updateOpen(!this.open)}onKeyDownEsc(e){e.preventDefault(),this.closeDropdown()}onArrow(e,i){this.focusDropdown(e,i)}onKeydown({key:e,target:i,defaultPrevented:o}){!o&&zr(e)&&this.hostEditable&&ji(i)&&!Ui(i)&&this.focusHost()}onActiveZone(e){this.updateFocused(e),e||this.updateOpen(!1)}onHostObscured(e){e&&this.closeDropdown()}updateOpen(e){(!e||this.canOpen)&&(this.open=e)}get hostEditable(){return Ui(this.computedHost)}focusDropdown(e,i){let o=this.nativeFocusableElement;if(!o||!ji(o)||!Mt(e.target)||!o.contains(e.target))return;if(!this.wrapper||!this.open||!this.dropdown||!ji(this.wrapper.nativeElement.nextElementSibling)){this.updateOpen(!0),Ui(o)||e.preventDefault();return}let r=i?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,s=Qt({initial:r,root:this.wrapper.nativeElement,previous:!i});s&&(s.focus(),e.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){let e=this.nativeFocusableElement;e&&e.focus({preventScroll:!0})}updateFocused(e){this.focusedChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(l(vo,10),l(F))},t.\u0275cmp=S({type:t,selectors:[["tui-hosted-dropdown"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,hu,5,F),e&2){let r;V(r=j())&&(i.dropdownHost=r.first)}},viewQuery:function(e,i){if(e&1&&(K(su,5,F),K(gt,5),K(ze,5)),e&2){let o;V(o=j())&&(i.wrapper=o.first),V(o=j())&&(i.dropdownDirective=o.first),V(o=j())&&(i.activeZone=o.first)}},hostBindings:function(e,i){e&1&&f("focusin.capture.silent",function(){return i.onFocusInOut()})("focusout.capture.silent",function(){return i.onFocusInOut()})("focusin",function(r){return i.onFocusIn(r.target)})("click",function(r){return i.onClick(r.target)})("keydown.silent.capture",function(r){return i.onKeyDownEsc(r)},!1,fi)("keydown.arrowDown",function(r){return i.onArrow(r,!0)})("keydown.arrowUp",function(r){return i.onArrow(r,!1)})},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[b([Ee(t),{provide:qa,deps:[[new xe,new Wt,mt]],useFactory:n=>n==null?void 0:n[0]},{provide:Ja,useExisting:t}])],ngContentSelectors:pu,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",""],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(e,i){if(e&1&&(re(),v(0,du,5,5,"div",0),Y(1,"async")),e&2){let o;u("tuiLet",(o=J(1,1,i.open$))!==null&&o!==void 0?o:i.openChange.value)}},dependencies:[yt,qa,mu,gt,fa,_a,va,ze,oa,Gi,te,ve],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%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}"],changeDetection:0}),ye([Qr(gu)],t.prototype,"onKeyDownEsc",null),t})(),Vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,se,Dt,ra,qt,En]]}),t})();function fu(t,n){if(t&1&&E(0,"tui-svg",2),t&2){let e=n.polymorpheusOutlet,i=h();A("t-mark_on",!i.empty),u("src",e)}}var _u=t=>({$implicit:t}),vu=["*"],Cu={size:"m",appearances:{unchecked:ht.Outline,checked:ht.Primary,indeterminate:ht.Primary},icons:{checked:({$implicit:t})=>t==="m"?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>t==="m"?"tuiIconMinus":"tuiIconMinusLarge"}},bi=Z(Cu);var is=(()=>{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(bi))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,i){e&2&&L("data-size",i.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:[k.None,"value","valueSetter"]},ngContentSelectors:vu,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,i){e&1&&(re(),m(0,"div",0),v(1,fu,1,3,"tui-svg",1),X(2),g()),e&2&&(u("active",i.pressed)("appearance",i.appearance)("disabled",i.disabled)("focus",i.focused)("hover",i.hovered)("invalid",i.invalid),p(),u("polymorpheusOutlet",i.icon)("polymorpheusOutletContext",ce(8,_u,i.size)))},dependencies:[Ce,$e,te],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})(),ns=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[Te,We,se]]}),t})();function Tu(t,n){if(t&1&&E(0,"tui-svg",3),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var jn=(()=>{class t extends Et{constructor(e,i,o,r){super(o),this.isMobile=r,this.mode=null,this.describeId="",i.pipe(ne(e)).subscribe(s=>{this.mode=s})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(e){var i;this.isMobile&&(e.preventDefault(),e.stopPropagation()),(i=this.driver$)===null||i===void 0||i.toggle()}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(nt),l(Bt),l(Qi))},t.\u0275cmp=S({type:t,selectors:[["tui-tooltip"]],viewQuery:function(e,i){if(e&1&&K(pi,5),e&2){let o;V(o=j())&&(i.driver$=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&f("mousedown",function(r){return i.stopOnMobile(r)}),e&2&&L("data-appearance",i.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[b([B,ot]),x],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,i){if(e&1&&(m(0,"span",0,1),Y(2,"async"),v(3,Tu,1,1,"tui-svg",2),g()),e&2){let o=ee(1);u("hover",J(2,9,o)||null)("tuiHint",i.content)("tuiHintAppearance",i.computedAppearance)("tuiHintContext",i.context)("tuiHintDescribe",i.describeId)("tuiHintDirection",i.direction)("tuiHintHideDelay",i.hideDelay)("tuiHintShowDelay",i.showDelay),p(3),u("polymorpheusOutlet",i.icon)}},dependencies:[Ce,$e,Fn,Ma,pi,ba,Ta,te,ve],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})(),Bn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,We,Te,An,se]]}),t})();var bu=["pre"],yu=["focusableElement"];function Du(t,n){t&1&&Rt(0)}function Ou(t,n){t&1&&Rt(0)}function Pu(t,n){t&1&&(m(0,"div",17),X(1,2),g())}function wu(t,n){if(t&1&&E(0,"tui-svg",20),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var Oo=t=>({$implicit:t});function xu(t,n){if(t&1&&(m(0,"div",18),v(1,wu,1,1,"tui-svg",19),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconLeftContent)("polymorpheusOutletContext",ce(2,Oo,e.size))}}function Iu(t,n){if(t&1&&(m(0,"label",21),X(1,3),g()),t&2){let e=h();A("t-placeholder_raised",e.placeholderRaised),u("for",e.computedId)}}function ku(t,n){if(t&1&&E(0,"tui-svg",24),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Eu(t,n){if(t&1&&(m(0,"div",22),v(1,ku,1,1,"tui-svg",23),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.controller.customContent)}}function Su(t,n){if(t&1&&E(0,"tui-svg",27),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Fu(t,n){if(t&1){let e=U();m(0,"span",25),f("click.stop",function(){P(e);let o=h();return w(o.clear())}),v(1,Su,1,1,"tui-svg",26),g()}if(t&2){let e=h();p(),u("polymorpheusOutlet",e.iconCleaner||e.controller.options.iconCleaner)("polymorpheusOutletContext",ce(2,Oo,e.size))}}function Au(t,n){if(t&1&&E(0,"tui-tooltip",28),t&2){let e=h();u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.computedId)}}function Hu(t,n){if(t&1&&E(0,"tui-svg",20),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Ru(t,n){if(t&1&&(m(0,"div",29),v(1,Hu,1,1,"tui-svg",19),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconContent)("polymorpheusOutletContext",ce(2,Oo,e.size))}}var Lu=[[["input"]],[["select"]],[["tuiContent"]],"*"],Nu=["input","select","tuiContent","*"];var zu=(()=>{class t{constructor(e,i){this.textfield=e,this.fontsReady$=i,this.prefix$=new At(""),this.pre$=De(this.fontsReady$,this.prefix$).pipe(ut(0),lt(()=>{var o;return!!(!((o=this.pre)===null||o===void 0)&&o.nativeElement.isConnected)}),z(()=>{var o;return((o=this.pre)===null||o===void 0?void 0:o.nativeElement.offsetWidth)||0}),Ge())}get isContextTable(){return this.textfield.appearance===ht.Table}get value(){return this.textfield.value}get filler(){let{focused:e,placeholder:i,exampleText:o,value:r,textfield:s}=this;return i&&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(Mr),l(br))},t.\u0275cmp=S({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(e,i){if(e&1&&K(bu,7,F),e&2){let o;V(o=j())&&(i.pre=o.first)}},hostVars:4,hostBindings:function(e,i){e&1&&f("animationstart",function(){return i.ngDoCheck()}),e&2&&A("_table",i.isContextTable)("_filler",i.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,i){e&1&&E(0,"span",0,1)(2,"span",2)(3,"span",3)(4,"span",4),e&2&&(u("textContent",i.prefix),p(2),u("textContent",i.value),p(),u("textContent",i.filler),p(),u("textContent",i.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})(),Vu={s:1.25,m:1.75,l:2.25},yi=(()=>{class t extends Xi{constructor(e,i,o,r){super(),this.controller=e,this.hintOptions=i,this.options=o,this.el=r,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 $,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:e}=this.focusableElement;return e.previousElementSibling||e}get focused(){return pt(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 e;return!!(!((e=this.content)===null||e===void 0)&&e.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var e;let o=(((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!o}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 Nr(!!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 e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.id)||""}onFocused(e){this.updateFocused(e)}getIndent$(e){return xi(e,"scroll").pipe(z(()=>-1*Math.max(e.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(e){let{nativeFocusableElement:i}=this;!i||e.target===i||(e.preventDefault(),i.focus())}onModelChange(e){this.updateValue(e)}onAutofilled(e){this.updateAutofilled(e)}detectRetargetFromLabel(e){$i(e)&&e.stopImmediatePropagation()}get iconPaddingLeft(){return Vu[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(e){this.autofilled!==e&&(this.autofilled=e)}updateValue(e){this.value=e,this.valueChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(l(Mi),l(Et,8),l(To),l(F))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,te,5),e&2){let r;V(r=j())&&(i.content=r)}},viewQuery:function(e,i){if(e&1&&K(yu,5),e&2){let o;V(o=j())&&(i.focusableElement=o.first)}},hostVars:15,hostBindings:function(e,i){e&1&&f("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)}),e&2&&(L("data-size",i.size),Ie("--border-start",i.borderStart,"rem")("--border-end",i.borderEnd,"rem"),A("_autofilled",i.autofilled)("_label-outside",i.controller.labelOutside)("_readonly",i.readOnly)("_invalid",i.computedInvalid)("_hidden",i.inputHidden))},inputs:{editable:"editable",textfieldFiller:[k.None,"filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:[k.None,"prefix","textfieldPrefix"],textfieldPostfix:[k.None,"postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[b([Ee(t),Ln]),x],ngContentSelectors:Nu,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(e,i){if(e&1&&(re(Lu),v(0,Du,1,0,"ng-container",0),Y(1,"async"),v(2,Ou,1,0,"ng-container",0),Y(3,"async"),m(4,"div",1),f("click.prevent.silent",function(r){return i.detectRetargetFromLabel(r)})("mousedown",function(r){return i.onMouseDown(r)})("tuiAutofilledChange",function(r){return i.onAutofilled(r)}),Y(5,"async"),X(6),X(7,1),m(8,"input",2,3),f("ngModelChange",function(r){return i.onModelChange(r)}),g(),v(10,Pu,2,0,"div",4),m(11,"div",5),v(12,xu,2,4,"div",6),m(13,"div",7),v(14,Iu,2,3,"label",8),m(15,"div",9)(16,"tui-value-decoration",10,11),Y(18,"async"),g()()(),m(19,"div",12),v(20,Eu,2,1,"div",13)(21,Fu,2,4,"span",14)(22,Au,1,2,"tui-tooltip",15)(23,Ru,2,4,"div",16),g()()()),e&2){let o=ee(9),r=ee(17);u("ngIf",J(1,29,i.content==null?null:i.content.changes)),p(2),u("ngIf",J(3,31,i.hintOptions==null?null:i.hintOptions.change$)),p(2),Ie("--text-indent",J(5,33,r.pre$),"px"),u("active",i.pseudoActive)("appearance",i.appearance)("disabled",i.disabled)("focus",i.computedFocused)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(4),u("disabled",i.computedDisabled)("id",i.id)("ngModel",i.value)("readOnly",i.readOnly||!i.editable)("tuiFocusable",i.computedFocusable),L("aria-invalid",i.computedInvalid)("name",i.name),p(2),u("ngIf",i.inputHidden),p(2),u("ngIf",i.iconLeftContent),p(2),u("ngIf",i.hasPlaceholder),p(2),Ie("text-indent",J(18,35,i.getIndent$(o)),"px"),A("t-has-value",i.value),p(4),u("ngIf",i.hasCustomContent),p(),u("ngIf",i.hasCleaner),p(),u("ngIf",i.showHint),p(),u("ngIf",i.iconContent)}},dependencies:[Ce,zu,jn,ae,$e,ia,ya,qe,Je,Re,rt,te,ve],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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-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}),ye([Ne],t.prototype,"getIndent$",null),t})(),os=(()=>{class t extends on{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(yi))},t.\u0275dir=M({type:t,selectors:[["tui-primitive-textfield"]],features:[b([dn(t)]),x]}),t})();var rs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,et,se,Da,at,We,Te,Bn,na]]}),t})();function as(t){if(t==="")return"";let n=0;for(let r=0;rs&&n(r)),i=t[e-1]||t[0],o=t[e]||t[t.length-1];return[i,o]}function cs(t,n){let[[e,i],[o,r]]=us(n,([d,_])=>t<=d),s=(t-e)/(o-e),c=(r-i)*s+i;return rr(c,ls)}function ds(t,n){let[[e,i],[o,r]]=us(n,([c,d])=>t<=d),s=(t-i)/(r-i)||0;return(o-e)*s+e}function ps(t,n){return t?hr(t).pipe(z(e=>n?n.fromControlValue(e):e)):je(null)}var ju=new Ke("[TUI_CALENDAR_DATE_STREAM]");function ms(t){return{provide:ju,deps:[[new xe,new Wt,we],[new xe,t]],useFactory:ps}}var q_=Z({[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#-######"}),Po=new Ke("[TUI_DATE_VALUE_TRANSFORMER]"),J_=new Ke("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),ev=new Ke("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),tv=R(ie("prompt")),iv=R(ie("cancel")),nv=R(ie("done")),ov=R(ie("more")),rv=R(ie("hide")),av=R(ie("showAll")),sv=R(ie("otherDate")),lv=R(ie("mobileCalendarTexts")),uv=R(ie("range")),cv=R(ie("countTexts")),dv=R(ie("time")),hs=R(ie("dateTexts")),pv=R(ie("digitalInformationUnits")),mv=R(ie("copyTexts")),hv=R(ie("passwordTexts")),gv=R(ie("shortCalendarMonths")),fv=R(ie("fileTexts")),_v=R(ie("pagination")),vv=R(ie("inputFileTexts")),Cv=R(ie("multiSelectTexts")),Tv=R(ie("countries")),Bu={icon:({$implicit:t})=>t==="s"?"tuiIconCalendar":"tuiIconCalendarLarge",min:Se,max:Ve,nativePicker:!1},gs=Z(Bu);var Uu={stringify:er,identityMatcher:tr,disabledItemHandler:ge},Mv=Z(Uu);var fs=new Ke("[TUI_MOBILE_CALENDAR]"),bv=new Ke("[TUI_MONTH_FORMATTER]"),yv=Z(24),Dv=Z({});var ys=t=>t.querySelector("input,textarea")||t,_t={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},wo=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let n=this.past.pop();n&&this.now&&(this.future.push(this.now),this.updateElement(n,"historyUndo"))}redo(){let n=this.future.pop();n&&this.now&&(this.past.push(this.now),this.updateElement(n,"historyRedo"))}updateHistory(n){if(!this.now){this.now=n;return}let e=this.now.value!==n.value,i=this.now.selection.some((o,r)=>o!==n.selection[r]);!e&&!i||(e&&(this.past.push(this.now),this.future=[]),this.now=n)}updateElement(n,e){this.now=n,this.updateElementState(n,{inputType:e,data:null})}};function $u(t,...n){return n.every(({value:e})=>e===t.value)}function Wu(t,...n){return n.every(({value:e,selection:i})=>e===t.value&&i[0]===t.selection[0]&&i[1]===t.selection[1])}function Yu({value:t,selection:n},e,i){let[o,r]=n,s=typeof i=="function"?i({value:t,selection:n}):i;return{value:t,selection:s==="replace"?[o,o+e.length]:[o,r]}}function Gn(t){return typeof t=="string"}function _s(t,n,e,i){let o="";for(let r=n.length;r{let o=n[i];return Gn(o)?e===o:e.match(o)}):n.test(t)}function Gu(t,n,e){let i=null,o=null,r=Array.from(t.value).reduce((c,d,_)=>{let y=_s(n,c,d,e),D=c+y,I=n[D.length];return Gn(I)?D+I:d.match(I)?(i===null&&_>=t.selection[0]&&(i=D.length),o===null&&_>=t.selection[1]&&(o=D.length),D+d):D},""),s=_s(n,r,"",e);return{value:Ds(r+s,n)?r+s:r,selection:[i!=null?i:r.length,o!=null?o:r.length]}}function Ku({value:t,selection:n},e){let[i,o]=n,r=i,s=o;return{value:Array.from(t).reduce((d,_,y)=>{let D=d+_;return i===y&&(r=d.length),o===y&&(s=d.length),D.match(e)?D:d},""),selection:[r,s]}}function $n(t,n,e=null){if(Ds(t.value,n))return t;let{value:i,selection:o}=Array.isArray(n)?Gu(t,n,e):Ku(t,n);return{selection:o,value:Array.isArray(n)?i.slice(0,n.length):i}}function vs(t,n){if(!Array.isArray(n))return t;let[e,i]=t.selection,o=[],r=Array.from(t.value).reduce((s,c,d)=>{let _=n[d];return d===e&&o.push(s.length),d===i&&o.push(s.length),Gn(_)&&_===c?s:s+c},"");return o.length<2&&o.push(...new Array(2-o.length).fill(r.length)),{value:r,selection:[o[0],o[1]]}}var Oi=class{constructor(n,e){this.initialElementState=n,this.maskOptions=e,this.value="",this.selection=[0,0];let{value:i,selection:o}=$n(n,this.getMaskExpression(n));this.value=i,this.selection=o}addCharacters([n,e],i){let{value:o}=this,r=this.getMaskExpression({value:o.slice(0,n)+i+o.slice(e),selection:[n+i.length,n+i.length]}),s={value:o,selection:[n,e]},c=vs(s,r),[d,_]=Yu(c,i,this.maskOptions.overwriteMode).selection,y=c.value.slice(0,d)+i,D=y.length,I=$n({value:y+c.value.slice(_),selection:[D,D]},r,s);if(o.slice(0,d)===$n({value:y,selection:[D,D]},r,s).value||Wu(this,I))throw new Error("Invalid mask value");this.value=I.value,this.selection=I.selection}deleteCharacters([n,e]){if(n===e||!e)return;let{value:i}=this,o=this.getMaskExpression({value:i.slice(0,n)+i.slice(e),selection:[n,n]}),r={value:i,selection:[n,e]},s=vs(r,o),[c,d]=s.selection,_=s.value.slice(0,c)+s.value.slice(d),y=$n({value:_,selection:[c,c]},o,r);this.value=y.value,this.selection=y.selection}getMaskExpression(n){let{mask:e}=this.maskOptions;return typeof e=="function"?e(n):e}},xo=class{constructor(n){this.element=n,this.listeners=[]}listen(n,e,i){let o=e;this.element.addEventListener(n,o,i),this.listeners.push(()=>this.element.removeEventListener(n,o))}destroy(){this.listeners.forEach(n=>n())}};function Di(t,n,e){return t.ctrlKey===!!(n&1)&&t.altKey===!!(n&2)&&t.shiftKey===!!(n&4)&&t.metaKey===!!(n&8)&&t.keyCode===e}function Qu(t){return Di(t,1,89)||Di(t,5,90)||Di(t,12,90)}function Xu(t){return Di(t,1,90)||Di(t,8,90)}function Zu(t){return"onbeforeinput"in t}function qu({key:t,ctrlKey:n,metaKey:e,altKey:i}){let o=n||e||i,r=/^.$/u.test(t);return!o&&t!=="Backspace"&&r}function Ju({value:t,selection:n},e){let[i,o]=n;if(i!==o)return[i,o];let r=e?t.slice(i).indexOf("\n")+1||t.length:t.slice(0,o).lastIndexOf("\n")+1;return[e?i:r,e?r:o]}function Cs({value:t,selection:n},e){let[i,o]=n;return i!==o?[i,o]:(e?[i,o+1]:[i-1,o]).map(s=>Math.min(Math.max(s,0),t.length))}var Ts=/\s+$/g,Ms=/^\s+/g,bs=/\s/;function ec({value:t,selection:n},e){let[i,o]=n;if(i!==o)return[i,o];if(e){let d=t.slice(i),[_]=d.match(Ms)||[""],y=d.replace(Ms,"").search(bs);return[i,y!==-1?i+_.length+y:t.length]}let r=t.slice(0,o),[s]=r.match(Ts)||[""],c=r.replace(Ts,"").split("").reverse().findIndex(d=>d.match(bs));return[c!==-1?o-s.length-c:0,o]}function Wn(t=[]){return(n,...e)=>t.reduce((i,o)=>Object.assign(Object.assign({},i),o(i,...e)),n)}function Io(t,n){let e=Object.assign(Object.assign({},_t),n),i=Wn(e.preprocessors),o=Wn(e.postprocessors),r=typeof t=="string"?{value:t,selection:[0,0]}:t,{elementState:s}=i({elementState:r,data:""},"validation"),c=new Oi(s,e),{value:d,selection:_}=o(c,r);return typeof t=="string"?d:{value:d,selection:_}}var Yn=class extends wo{constructor(n,e){super(),this.element=n,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new xo(this.element),this.options=Object.assign(Object.assign({},_t),this.maskitoOptions),this.preprocessor=Wn(this.options.preprocessors),this.postprocessor=Wn(this.options.postprocessors),this.teardowns=this.options.plugins.map(i=>i(this.element,this.options)),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",i=>{if(Qu(i))return i.preventDefault(),this.redo();if(Xu(i))return i.preventDefault(),this.undo()}),Zu(n)?this.eventListener.listen("beforeinput",i=>{let o=i.inputType.includes("Forward");switch(this.updateHistory(this.elementState),i.inputType){case"historyUndo":return i.preventDefault(),this.undo();case"historyRedo":return i.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:i,isForward:o,selection:Cs(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:i,isForward:o,selection:ec(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:i,isForward:o,selection:Ju(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertLineBreak":return this.handleEnter(i);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(i,i.data||"")}}):(this.eventListener.listen("keydown",i=>this.handleKeydown(i)),this.eventListener.listen("paste",i=>{var o;return this.handleInsert(i,((o=i.clipboardData)===null||o===void 0?void 0:o.getData("text/plain"))||"")})),this.eventListener.listen("input",({inputType:i})=>{i!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:n,selectionStart:e,selectionEnd:i}=this.element;return{value:n,selection:[e||0,i||0]}}get maxLength(){let{maxLength:n}=this.element;return n===-1?1/0:n}destroy(){this.eventListener.destroy(),this.teardowns.forEach(n=>n==null?void 0:n())}updateElementState({value:n,selection:e},i={inputType:"insertText",data:null}){let o=this.elementState.value;this.updateValue(n),this.updateSelectionRange(e),o!==n&&this.dispatchInputEvent(i)}updateSelectionRange([n,e]){var i,o;(this.element.selectionStart!==n||this.element.selectionEnd!==e)&&((o=(i=this.element).setSelectionRange)===null||o===void 0||o.call(i,n,e))}updateValue(n){this.element.value=n}ensureValueFitsMask(){this.updateElementState(Io(this.elementState,this.options))}dispatchInputEvent(n={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({},n),{bubbles:!0,cancelable:!1})))}handleKeydown(n){let e=n.key,i=e==="Delete";switch(e){case"Backspace":case"Delete":return this.handleDelete({event:n,isForward:i,selection:Cs(this.elementState,i)});case"Enter":return this.handleEnter(n)}qu(n)&&this.handleInsert(n,e)}handleDelete({event:n,selection:e,isForward:i,force:o=!1}){let r={value:this.elementState.value,selection:e},[s,c]=r.selection,{elementState:d}=this.preprocessor({elementState:r,data:""},i?"deleteForward":"deleteBackward"),_=new Oi(d,this.options),[y,D]=d.selection;_.deleteCharacters([y,D]);let I=this.postprocessor(_,r);if(r.value.slice(0,s)+r.value.slice(c)===I.value&&!o)return;if(n.preventDefault(),$u(r,d,_,I))return this.updateSelectionRange(i?[D,D]:[y,y]);let G=i?"deleteContentForward":"deleteContentBackward";this.updateElementState(I,{inputType:"inputType"in n?n.inputType:G,data:null}),this.updateHistory(I)}handleInsert(n,e){let i=this.elementState,{elementState:o,data:r=e}=this.preprocessor({data:e,elementState:i},"insert"),s=new Oi(o,this.options);try{s.addCharacters(o.selection,r)}catch{return n.preventDefault()}let[c,d]=o.selection,_=o.value.slice(0,c)+e+o.value.slice(d),y=this.postprocessor(s,i);if(y.value.length>this.maxLength)return n.preventDefault();_!==y.value&&(n.preventDefault(),this.updateElementState(y,{data:e,inputType:"inputType"in n?n.inputType:"insertText"}),this.updateHistory(y))}handleEnter(n){this.isTextArea&&this.handleInsert(n,"\n")}};var Os=ga({limitWidth:"fixed",align:"right"}),Ps={provide:pn,deps:[[new xe,new Wt,Ni]],useFactory:Ao};var ws=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiValueAccessor",""]],features:[b([Ps])]}),t})(),xs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var tc=["focusableElement"],Kn=(()=>{class t extends Zt{constructor(e,i,o){super(e,o),this.options=i,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return Be(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(we,10),l(bi),l(me))},t.\u0275cmp=S({type:t,selectors:[["tui-checkbox"]],viewQuery:function(e,i){if(e&1&&K(tc,5),e&2){let o;V(o=j())&&(i.focusableElement=o.first)}},hostVars:1,hostBindings:function(e,i){e&2&&L("data-size",i.size)},inputs:{size:"size"},features:[b([Ee(t),tt(t)]),x],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,i){e&1&&(m(0,"tui-primitive-checkbox",0)(1,"input",1,2),He("tuiCheckedChange",function(r){return Ae(i.value,r)||(i.value=r),r}),f("tuiFocusedChange",function(r){return i.onFocused(r)})("tuiFocusVisibleChange",function(r){return i.onFocusVisible(r)}),g()()),e&2&&(u("disabled",i.disabled)("focused",i.computedFocusVisible)("hovered",i.pseudoHover)("invalid",i.computedInvalid)("pressed",i.pseudoActive)("size",i.size)("value",i.value),p(),u("disabled",i.disabled)("id",i.id)("tuiFocusable",i.computedFocusable),Fe("tuiChecked",i.value))},dependencies:[is,Cn,rt,yn,Mn],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})(),Is=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Tn,at,Dn,bn,ns]]}),t})();var nc=["*"],ks=(()=>{class t extends Zt{constructor(e,i,o,r){super(e,i),this.mode$=o,this.options=r,this.size=this.options.size}get focused(){return Be(this.nativeFocusableElement)}get nativeFocusableElement(){var e,i;return(i=(e=this.checkbox)===null||e===void 0?void 0:e.nativeFocusableElement)!==null&&i!==void 0?i:null}onFocused(e){this.updateFocused(e)}onModelChange(e){this.value=e}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(nt),l(bi))},t.\u0275cmp=S({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(e,i){if(e&1&&K(Kn,5),e&2){let o;V(o=j())&&(i.checkbox=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&f("$.data-mode.attr",function(){return i.mode$}),e&2&&L("data-size",i.size)},inputs:{size:"size"},features:[b([Ee(t),tt(t),ot]),x],ngContentSelectors:nc,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,i){e&1&&(re(),m(0,"label",0)(1,"tui-checkbox",1),He("ngModelChange",function(r){return Ae(i.value,r)||(i.value=r),r}),f("focusedChange",function(r){return i.onFocused(r)}),g(),m(2,"div",2),X(3),g()()),e&2&&(p(),u("disabled",i.computedDisabled)("focusable",i.focusable)("nativeId",i.nativeId)("pseudoActive",i.pseudoActive)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("pseudoInvalid",i.computedInvalid)("readOnly",i.readOnly)("size",i.size),Fe("ngModel",i.value),p(),A("t-content_disabled",i.computedDisabled))},dependencies:[Kn,Je,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})(),Es=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,et,Is]]}),t})();var oc=new Date("0001-01-01"),rc=new Date("9999-12-31");var ac="\u2013",sc="\u2014",lc="-",uc="\u2212",cc=[lc,ac,sc,uc];var dc=[":","."];function pc(t,n,e){let i=Math.min(Number(e),Math.max(Number(n),Number(t)));return t instanceof Date?new Date(i):i}var Ss=t=>{var n,e,i;return{day:((n=t.match(/d/g))===null||n===void 0?void 0:n.length)||0,month:((e=t.match(/m/g))===null||e===void 0?void 0:e.length)||0,year:((i=t.match(/y/g))===null||i===void 0?void 0:i.length)||0}};function mc(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 hc(t,n){return t.length!e.match(/^0+$/))}function Fs(t,n,e){let i=n.replace(/\W/g,"").length;return t.replace(e,"").match(new RegExp("(\\D*\\d[^\\d\\s]*){1,".concat(i,"}"),"g"))||[]}function As(t){return t.reduce((n,[e,i])=>Object.assign(Object.assign({},n),{[e]:i}),{})}function Hs(t,n){let e=n.replace(/[^dmy]/g,""),i=t.replace(/\D+/g,""),o={day:i.slice(e.indexOf("d"),e.lastIndexOf("d")+1),month:i.slice(e.indexOf("m"),e.lastIndexOf("m")+1),year:i.slice(e.indexOf("y"),e.lastIndexOf("y")+1)};return As(Object.entries(o).filter(([r,s])=>!!s).sort(([r],[s])=>n.toLowerCase().indexOf(r[0])>n.toLowerCase().indexOf(s[0])?1:-1))}function gc(t,n){var e,i,o,r,s,c,d;let _=((e=t.year)===null||e===void 0?void 0:e.length)===2?"20".concat(t.year):t.year,y=new Date(Number(_!=null?_:"0"),Number((i=t.month)!==null&&i!==void 0?i:"1")-1,Number((o=t.day)!==null&&o!==void 0?o:"1"),Number((r=n==null?void 0:n.hours)!==null&&r!==void 0?r:"0"),Number((s=n==null?void 0:n.minutes)!==null&&s!==void 0?s:"0"),Number((c=n==null?void 0:n.seconds)!==null&&c!==void 0?c:"0"),Number((d=n==null?void 0:n.milliseconds)!==null&&d!==void 0?d:"0"));return y.setFullYear(Number(_!=null?_:"0")),y}var wi=", ";function Qn({day:t,month:n,year:e,hours:i,minutes:o,seconds:r,milliseconds:s},c,d){var _;let y=((_=c.match(/y/g))===null||_===void 0?void 0:_.length)===2?e==null?void 0:e.slice(-2):e;return(c+(d?wi+d:"")).replace(/d+/g,t!=null?t:"").replace(/m+/g,n!=null?n:"").replace(/y+/g,y!=null?y:"").replace(/H+/g,i!=null?i:"").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 ko(t,n,e=0){return Number(t.padEnd(n.length,"0"))<=Number(n)?{validatedSegmentValue:t,prefixedZeroesCount:e}:t.endsWith("0")?ko("0".concat(t.slice(0,n.length-1)),n,e+1):ko("".concat(t.slice(0,n.length-1),"0"),n,e)}var fc={day:31,month:12,year:9999};function _c({dateString:t,dateModeTemplate:n,offset:e,selection:[i,o]}){let r=Hs(t,n),s=Object.entries(r),c={},d=0;for(let[D,I]of s){let O=Qn(c,n),G=fc[D],Q=O.length&&1,fe=e+O.length+Q+Ss(n)[D],be=fe>=i&&fe===o;if(be&&Number(I)>Number(G))return{validatedDateString:"",updatedSelection:[i,o]};if(be&&Number(I)<1)return{validatedDateString:"",updatedSelection:[i,o]};let{validatedSegmentValue:St,prefixedZeroesCount:Ut}=ko(I,"".concat(G));d+=Ut,c[D]=St}let _=Qn(c,n),y=_.length-t.length;return{validatedDateString:_,updatedSelection:[i+d+y,o+d+y]}}var Rs=/[\\^$.*+?()[\]{}|]/g,vc=new RegExp(Rs.source);function Ls(t){return t&&vc.test(t)?t.replace(Rs,"\\$&"):t}function Cc(t,n){let e=Ss(n);return As(Object.entries(t).map(([i,o])=>{let r=e[i];return[i,o.length===r&&o.match(/^0+$/)?"1".padStart(r,"0"):o]}))}function Tc({dateModeTemplate:t,min:n=oc,max:e=rc,rangeSeparator:i="",dateSegmentSeparator:o="."}){return({value:r,selection:s})=>{let c=i&&r.endsWith(i),d=Fs(r,t,i),_="";for(let y of d){_+=_?i:"";let D=Hs(y,t);if(!hc(y,t)){let G=Cc(D,t),Q=Qn(G,t),fe=y.endsWith(o)?o:"";_+=Q+fe;continue}let I=gc(D),O=pc(I,n,e);_+=Qn(mc(O),t)}return{selection:s,value:_+(c?i:"")}}}function Mc({dateModeTemplate:t,dateSegmentsSeparator:n,rangeSeparator:e=""}){return({elementState:i,data:o})=>{let r=e?new RegExp("".concat(e,"|-")):wi,s=o.split(r),c=o.includes(wi)?[s[0]]:s;if(c.every(d=>d.trim().split(/\D/).length===t.split(n).length)){let d=c.map(_=>bc(_,t,n)).join(e);return{elementState:i,data:"".concat(d).concat(o.includes(wi)&&wi+s[1]||"")}}return{elementState:i,data:o}}}function bc(t,n,e){let i=t.split(/\D/),o=n.split(e);return i.map((s,c)=>c===o.length-1?s:s.padStart(o[c].length,"0")).join(e)}function yc({dateModeTemplate:t,dateSegmentsSeparator:n,rangeSeparator:e=""}){return({elementState:i,data:o})=>{let{value:r,selection:s}=i;if(o===n)return{elementState:i,data:s[0]===r.length?o:""};if(cc.includes(o))return{elementState:i,data:e};let c=o.replace(new RegExp("[^\\d".concat(Ls(n)).concat(e,"]"),"g"),"");if(!c)return{elementState:i,data:""};let[d,_]=s,y=_+o.length,D=r.slice(0,d)+c+r.slice(y),I=Fs(D,t,e),O="",G=!!e&&D.includes(e);for(let fe of I){let{validatedDateString:be,updatedSelection:St}=_c({dateString:fe,dateModeTemplate:t,offset:O?O.length+e.length:0,selection:[d,y]});if(fe&&!be)return{elementState:i,data:""};y=St[1],O+=G&&O?e+be:be}let Q=O.slice(d,y);return{elementState:{selection:s,value:O.slice(0,d)+Q.split(n).map(fe=>"0".repeat(fe.length)).join(n)+O.slice(y)},data:Q}}}function Dc(){return({elementState:t},n)=>{let{value:e,selection:i}=t;if(!e||Oc(e,i))return{elementState:t};let[o,r]=i,s=e.slice(o,r).replace(/\d/g,"0"),c=e.slice(0,o)+s+e.slice(r);return n==="validation"||n==="insert"&&o===r?{elementState:{selection:i,value:c}}:{elementState:{selection:n==="deleteBackward"||n==="insert"?[o,o]:[r,r],value:c}}}}function Oc(t,[n,e]){return e===t.length}function Ns({mode:t,separator:n=".",max:e,min:i}){let o=t.split("/").join(n);return Object.assign(Object.assign({},_t),{mask:Array.from(o).map(r=>r===n?r:/\d/),overwriteMode:"replace",preprocessors:[Dc(),Mc({dateModeTemplate:o,dateSegmentsSeparator:n}),yc({dateModeTemplate:o,dateSegmentsSeparator:n})],postprocessors:[Tc({min:i,max:e,dateModeTemplate:o,dateSegmentSeparator:n})]})}var c0=new RegExp("[".concat(dc.map(Ls).join(""),"]$"));var zs=(()=>{class t{constructor(e,i){this.ngZone=e,this.elementRef=i,this.maskedElement=null,this.maskito=_t,this.maskitoElement=ys}ngOnChanges(){var e;return No(this,void 0,void 0,function*(){(e=this.maskedElement)===null||e===void 0||e.destroy();let i=this.maskitoElement,o=yield i(this.elementRef.nativeElement);this.maskitoElement===i&&this.ngZone.runOutsideAngular(()=>{var r;this.maskedElement=new Yn(o,(r=this.maskito)!==null&&r!==void 0?r:_t)})})}ngOnDestroy(){var e;(e=this.maskedElement)===null||e===void 0||e.destroy()}}return t.\u0275fac=function(e){return new(e||t)(l(Ze),l(F))},t.\u0275dir=M({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[ct]}),t})();var Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function wc(t,n){if(t&1){let e=U();m(0,"tui-primitive-textfield",5),f("focusedChange",function(o){P(e);let r=h();return w(r.onFocused(o))})("valueChange",function(o){P(e);let r=h();return w(r.onValueChange(o))}),X(1),X(2,1,["ngProjectAs","input",5,["input"]]),g()}if(t&2){let e=n.tuiLet,i=h(),o=ee(4);u("disabled",i.computedDisabled)("focusable",i.computedFocusable)("invalid",i.computedInvalid)("maskito",i.computedMask)("nativeId",i.nativeId)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("readOnly",i.readOnly)("tuiTextfieldFiller",i.getComputedFiller(e||""))("tuiTextfieldIcon",i.calendarIcon&&o)("value",i.computedValue)}}function xc(t,n){if(t&1){let e=U();m(0,"tui-svg",8),f("click",function(){P(e);let o=h(2);return w(o.onIconClick())}),g()}if(t&2){let e=n.polymorpheusOutlet,i=h(2);A("t-icon",!i.computedDisabled),u("src",e)}}function Ic(t,n){t&1&&E(0,"input",9)}var kc=t=>({$implicit:t});function Ec(t,n){if(t&1&&v(0,xc,1,3,"tui-svg",6)(1,Ic,1,0,"input",7),t&2){let e=h();u("polymorpheusOutlet",e.calendarIcon)("polymorpheusOutletContext",ce(3,kc,e.size)),p(),u("ngIf",e.isMobile&&e.nativePicker)}}function Sc(t,n){if(t&1){let e=U();m(0,"div",12)(1,"button",13),f("click",function(){P(e);let o=h(2);return w(o.onDayClick(o.items[0].day))}),W(2),g()()}if(t&2){let e=h(2);p(2),he(" ",e.items[0]," ")}}function Fc(t,n){if(t&1){let e=U();m(0,"tui-calendar",10),f("dayClick",function(o){P(e);let r=h();return w(r.onDayClick(o))})("monthChange",function(o){P(e);let r=h();return w(r.onMonthChange(o))}),g(),v(1,Sc,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),p(),u("ngIf",e.items.length===1)}}var Ac=["*",[["input"]]],Hc=["*","input"],Rc=(()=>{class t{constructor(e,i){this.host=e,this.dateFormat=i}get value(){return this.host.value.length===ui?de.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?de.normalizeParse(e,"YMD").toString(this.dateFormat):"")}}return t.\u0275fac=function(e){return new(e||t)(l(co),l(_o))},t.\u0275dir=M({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(e,i){e&1&&f("change",function(r){return i.onChange(r.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),e&2&&dt("tabIndex",-1)("value",i.value)("max",i.max)("min",i.min)}}),t})(),js=(()=>{class t extends Zt{constructor(e,i,o,r,s,c,d,_,y,D,I,O){super(e,i,D),this.injector=o,this.isMobile=r,this.dialogs=s,this.mobileCalendar=c,this.dateFormat=d,this.dateSeparator=_,this.dateTexts$=y,this.valueTransformer=D,this.options=I,this.textfieldSize=O,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=ge,this.markerHandler=ei,this.items=[],this.defaultActiveYearMonth=q.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe(z(G=>da(G[this.dateFormat],this.dateSeparator)))}get size(){return this.textfieldSize.size}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:this.options.min}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:this.options.max}get nativeFocusableElement(){var e,i;return(i=(e=this.textfield)===null||e===void 0?void 0:e.nativeFocusableElement)!==null&&i!==void 0?i:null}get focused(){var e;return!!(!((e=this.textfield)===null||e===void 0)&&e.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:e,nativeValue:i,activeItem:o}=this;return o?String(o):e?e.toString(this.dateFormat,this.dateSeparator):i}get computedActiveYearMonth(){return this.items[0]&&this.value&&this.value.daySame(this.items[0].day)?this.items[0].displayDay:this.month||this.value||la(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get nativeValue(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.value)||""}set nativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}get canOpen(){return this.interactive&&!this.computedMobile}get computedMask(){return this.activeItem?_t:this.computeMaskOptions(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax)}get activeItem(){let{value:e}=this;return e&&this.items.find(i=>i.day.daySame(e))||null}onClick(){this.isMobile||(this.open=!this.open)}getComputedFiller(e){return this.activeItem?"":e}onMobileClick(){this.onIconClick()}onIconClick(){!this.computedMobile||!this.mobileCalendar||this.dialogs.open(new bt(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe(ne(this.destroy$)).subscribe(e=>{this.value=e})}onValueChange(e){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),e||this.onOpenChange(!0),this.value=e.length!==ui?null:de.normalizeParse(e,this.dateFormat)}onDayClick(e){this.value=e,this.open=!1}onMonthChange(e){this.month=e}onOpenChange(e){this.open=e}onFocused(e){this.updateFocused(e)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(e){super.writeValue(e),this.nativeValue=e?this.computedValue:""}valueIdenticalComparator(e,i){return Kt(e,i,(o,r)=>o.daySame(r))}computeMaskOptions(e,i,o,r){return Ns({separator:i,mode:ss[e],min:o.toLocalNativeDate(),max:r.toLocalNativeDate()})}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(Ai),l(Qi),l(vn),l(fs,8),l(_o),l(ca),l(hs),l(Po,8),l(gs),l(Hn))},t.\u0275cmp=S({type:t,selectors:[["tui-input-date"]],viewQuery:function(e,i){if(e&1&&K(yi,5),e&2){let o;V(o=j())&&(i.textfield=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&f("click",function(){return i.onClick()}),e&2&&L("data-size",i.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[b([Ee(t),tt(t),ms(Po)]),x],ngContentSelectors:Hc,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(e,i){if(e&1&&(re(Ac),m(0,"tui-hosted-dropdown",0),f("openChange",function(r){return i.onOpenChange(r)}),v(1,wc,3,11,"tui-primitive-textfield",1),Y(2,"async"),v(3,Ec,2,5,"ng-template",null,2,_e)(5,Fc,2,7,"ng-template",3,4,_e),g()),e&2){let o=ee(6);u("canOpen",i.canOpen)("content",o)("open",i.open&&i.canOpen),p(),u("tuiLet",J(2,5,i.filler$)),p(4),u("polymorpheus",i.type)}},dependencies:[mi,yi,Ce,Nn,oi,yt,os,ws,zs,Mo,bo,te,$e,ae,Rc,Gi,aa,ve],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}),ye([Ne],t.prototype,"computeMaskOptions",null),t})(),Bs=(()=>{class t extends on{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 n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["tui-input-date"]],features:[b([dn(t)]),x]}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Vs,se,We,sa,zn,Te,ri,Vn,rs,xs,Dt,Rn]]}),t})();var Lc=["input"];function Nc(t,n){if(t&1&&(Oe(0),W(1),Pe()),t&2){let e=n.polymorpheusOutlet;p(),he(" ",e," ")}}function zc(t,n){if(t&1&&(m(0,"div",6),v(1,Nc,2,1,"ng-container",7),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.leftContent)}}function Vc(t,n){if(t&1&&E(0,"tui-loader",8),t&2){let e=h();u("inheritColor",!0)("size",e.loaderSize)}}function jc(t,n){if(t&1){let e=U();m(0,"tui-svg",9),f("click",function(o){P(e);let r=h();return w(r.remove(o))})("mousedown.stop.prevent.silent",function(){return 0}),g()}if(t&2){let e=h();u("src",e.icons.close)}}function Bc(t,n){if(t&1){let e=U();m(0,"input",10,11),f("blur",function(){P(e);let o=h();return w(o.onBlur())})("keydown",function(o){P(e);let r=h();return w(r.onKeyDown(o))})("ngModelChange",function(o){P(e);let r=h();return w(r.onInput(o))}),g()}if(t&2){let e=h();u("ngModel",e.editedText),L("maxLength",e.maxLength)}}var Uc={size:"m",status:"default",autoColor:!1},$c=Z(Uc);var $s=(()=>{class t{constructor(e,i,o,r){this.el=e,this.mode$=i,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 $,this.editing=!1,this.editedText=null}set input(e){e&&e.nativeElement.focus()}get backgroundColor(){return this.autoColor?as(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 Vr(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 i=e.split(this.separator);if(i.length>1){this.save(String(i));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(F),l(nt),l($c),l(un))},t.\u0275cmp=S({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(e,i){if(e&1&&K(Lc,5,F),e&2){let o;V(o=j())&&(i.input=o.first)}},hostVars:10,hostBindings:function(e,i){e&1&&f("$.data-mode.attr",function(){return i.mode$})("keydown.enter",function(r){return i.edit(r)})("keydown.delete",function(r){return i.remove(r)})("keydown.backspace",function(r){return i.remove(r)}),e&2&&(L("data-size",i.size)("data-status",i.status),A("_hoverable",i.hoverable)("_disabled",i.disabled)("_autocolor",i.autoColor)("_editing",i.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([ot])],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,i){e&1&&(m(0,"div",0),f("dblclick",function(r){return i.edit(r)}),v(1,zc,2,1,"div",1),E(2,"span",2),v(3,Vc,1,2,"tui-loader",3)(4,jc,1,1,"tui-svg",4),g(),v(5,Bc,2,2,"input",5)),e&2&&(Ie("background-color",i.backgroundColor),p(),u("ngIf",i.leftContent),p(),u("textContent",i.displayText),p(),u("ngIf",i.showLoader),p(),u("ngIf",i.canRemove),p(),u("ngIf",i.editing))},dependencies:[hn,Ce,ae,te,qe,Je,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})(),Ws=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,et,Te,gn,se]]}),t})();var Yc=["focusableElement"],Gc=["tagsContainer"],Kc=["cleaner"],Qc=["errorIcon"],Xc=["tag"];function Zc(t,n){t&1&&Rt(0)}function qc(t,n){if(t&1&&E(0,"tui-svg",21),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var Eo=t=>({$implicit:t});function Jc(t,n){if(t&1&&(m(0,"div",19),v(1,qc,1,1,"tui-svg",20),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconLeft)("polymorpheusOutletContext",ce(2,Eo,e.size))}}function ed(t,n){if(t&1&&(m(0,"div",22),X(1,2),g()),t&2){let e=h();A("t-placeholder_raised",e.placeholderRaised)}}function td(t,n){if(t&1){let e=U();m(0,"tui-tag",24,25),f("edited",function(o){let s=P(e).index,c=h(2);return w(c.onTagEdited(o,s))})("keydown.arrowLeft.prevent",function(){let r=P(e).index,s=h(2);return w(s.onTagKeyDownArrowLeft(r))})("keydown.arrowRight.prevent",function(){let r=P(e).index,s=h(2);return w(s.onTagKeyDownArrowRight(r))}),Y(2,"async"),g()}if(t&2){let e=n.$implicit,i=h(2);u("disabled",i.computedDisabled||i.disabledItemHandler(e))("editable",i.editable&&!i.readOnly)("hoverable",!i.readOnly)("leftContent",i.getLeftContent(e))("maxLength",i.maxLength)("removable",!i.readOnly&&i.removable)("separator",i.separator)("size",i.controller.size)("status",J(2,11,i.status$))("tuiFocusable",!1)("value",e.toString())}}function id(t,n){if(t&1&&(Oe(0),v(1,td,3,13,"tui-tag",23),Pe()),t&2){let e=h();p(),u("ngForOf",e.value)("ngForTrackBy",e.trackByFn)}}function nd(t,n){if(t&1&&E(0,"span",27),t&2){let e=n.$implicit,i=h(2);A("t-text_comma",i.computedFocused&&!i.inputHidden)("t-text_disabled",i.disabledItemHandler(e))("t-text_error",!i.tagValidator(e)),u("textContent",e)}}function od(t,n){if(t&1&&v(0,nd,1,7,"span",26),t&2){let e=h();u("ngForOf",e.value)}}function rd(t,n){if(t&1){let e=U();m(0,"tui-svg",32,33),f("click.stop",function(){P(e);let o=h(3);return w(o.onCleanerClick())}),g()}if(t&2){let e=n.polymorpheusOutlet;u("src",e)}}function ad(t,n){if(t&1&&(Oe(0),v(1,rd,2,1,"tui-svg",31),Pe()),t&2){let e=h(2);p(),u("polymorpheusOutlet",e.iconCleaner)("polymorpheusOutletContext",ce(2,Eo,e.size))}}function sd(t,n){if(t&1&&E(0,"tui-tooltip",34),t&2){let e=h(2);u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.id)}}function ld(t,n){if(t&1&&E(0,"tui-svg",21),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function ud(t,n){if(t&1&&(m(0,"div",35),v(1,ld,1,1,"tui-svg",20),g()),t&2){let e=h(2);p(),u("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",ce(2,Eo,e.size))}}function cd(t,n){if(t&1&&(m(0,"div",28),v(1,ad,2,4,"ng-container",0)(2,sd,1,2,"tui-tooltip",29)(3,ud,2,4,"div",30),g()),t&2){let e=h();p(),u("ngIf",e.hasCleaner),p(),u("ngIf",e.showHint),p(),u("ngIf",e.icon)}}function dd(t,n){if(t&1&&E(0,"tui-svg",36),t&2){let e=h();u("src",e.icons.error)}}var pd=[[["tuiContent"]],[["select"]],"*"],md=["tuiContent","select","*"],hd={separator:",",uniqueTags:!0,tagStatus:"primary"},gd=Z(hd);var fd={s:1.25,m:1.5,l:2},_d={s:1,m:1.25,l:1.25},vd=.125,Ys=(()=>{class t extends xr{constructor(e,i,o,r,s,c,d,_,y){super(e,i),this.el=o,this.modeDirective=r,this.mode$=s,this.hintOptions=c,this.controller=d,this.options=_,this.icons=y,this.tags=Jo,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=Gt,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=ge,this.searchChange=new $,this.status$=this.mode$.pipe(z(()=>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 pt(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:i}=this.controller;return e==="s"||i}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}onFocusInOut(){this.cdr.detectChanges()}detectRetargetFromLabel(e){$i(e)&&e.stopImmediatePropagation()}getLeftContent(e){return!this.tagValidator(e)&&this.errorIconTemplate?this.errorIconTemplate:""}onCleanerClick(){this.updateSearch(""),this.clear(),this.focusInput()}onActiveZone(e){this.open=!1,this.addTag(),this.updateFocused(e),!e&&!this.computedFocused&&this.scrollTo(0)}onMouseDown(e){var i;let o=Bi(e);!this.focusableElement||o===this.focusableElement.nativeElement||!Mt(e.target)||!((i=this.cleanerSvg)===null||i===void 0)&&i.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,i){this.focusInput(e===""),this.value=this.filterValue(this.value.map((o,r)=>r!==i?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 i=e.split(this.separator),r=i.map(s=>this.clippedValue(s.trim())).filter((s,c,{length:d})=>s.length>0&&c!==d-1).filter(s=>!this.disabledItemHandler(s));i.length>1?(this.updateSearch(this.clippedValue(i[i.length-1].trim())),this.value=this.filterValue([...this.value,...r])):this.updateSearch(this.clippedValue(e)),this.open=this.hasNativeValue}onPaste(e){let i=lr(e);this.onInput(i||"")}onDrop({dataTransfer:e}){e&&this.onInput(e.getData("text")||"")}setDisabledState(){super.setDisabledState(),this.open=!1}trackByFn(e,i){return i.toString()}scrollTo(e){var i;e===void 0&&(e=(i=this.scrollBar)===null||i===void 0?void 0:i.nativeElement.scrollWidth),setTimeout(()=>{this.scrollBar&&(this.scrollBar.nativeElement.scrollLeft=e||0)})}filterValue(e){let i=new Set;return e.reverse().filter(o=>!this.uniqueTags||o&&!i.has(o)&&i.add(o)).reverse()}onScrollKeyDown(e,i){let o=this.tags.find((r,s)=>s===e+i);!o||!this.scrollBar||(o.nativeElement.focus(),i*this.scrollBar.nativeElement.clientWidth-i*o.nativeElement.offsetLeft-o.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=i*o.nativeElement.clientWidth))}updateSearch(e){this.focusableElement&&(this.focusableElement.nativeElement.value=e),this.search=e,this.searchChange.emit(e)}addTag(){var e,i;let o=(i=(e=this.search)===null||e===void 0?void 0:e.trim())!==null&&i!==void 0?i:"";!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=ar(this.value,e);break}}focusInput(e=!1){var i;(i=this.nativeFocusableElement)===null||i===void 0||i.focus({preventScroll:e})}clippedValue(e){return e.slice(0,this.maxLength||e.length)}get lineHeight(){return this.labelOutside?fd[this.controller.size]+2*vd:_d[this.controller.size]}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(F),l(ni,8),l(nt),l(Et,8),l(Mi),l(gd),l(un))},t.\u0275cmp=S({type:t,selectors:[["tui-input-tag"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,Za,5,_i),e&2){let r;V(r=j())&&(i.datalist=r.first)}},viewQuery:function(e,i){if(e&1&&(K(mi,5),K(Yc,5),K(Gc,5),K(Kc,5,F),K(It,5,F),K(Qc,5),K(Xc,5,F)),e&2){let o;V(o=j())&&(i.hostedDropdown=o.first),V(o=j())&&(i.focusableElement=o.first),V(o=j())&&(i.tagsContainer=o.first),V(o=j())&&(i.cleanerSvg=o.first),V(o=j())&&(i.scrollBar=o.first),V(o=j())&&(i.errorIconTemplate=o.first),V(o=j())&&(i.tags=o)}},hostVars:7,hostBindings:function(e,i){e&1&&f("focusin.capture.silent",function(){return i.onFocusInOut()})("focusout.capture.silent",function(){return i.onFocusInOut()}),e&2&&(L("data-size",i.size),A("_expandable",i.expandable)("_label-outside",i.labelOutside)("_icon-left",i.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:[k.None,"pseudoFocused","pseudoFocusedSetter"]},outputs:{searchChange:"searchChange"},features:[b([Ee(t),tt(t),jr(t),Ln,ot],[Os]),x],ngContentSelectors:md,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,i){if(e&1&&(re(pd),v(0,Zc,1,0,"ng-container",0),Y(1,"async"),m(2,"tui-hosted-dropdown",1),He("openChange",function(r){return Ae(i.open,r)||(i.open=r),r}),f("tuiActiveZoneChange",function(r){return i.onActiveZone(r)}),m(3,"div",2),f("click.prevent.silent",function(r){return i.detectRetargetFromLabel(r)})("mousedown",function(r){return i.onMouseDown(r)}),m(4,"div",3),v(5,Jc,2,4,"div",4),m(6,"div",5)(7,"div",6),v(8,ed,2,2,"div",7),g(),m(9,"tui-scrollbar",8)(10,"div",9),v(11,id,2,2,"ng-container",10)(12,od,1,1,"ng-template",null,11,_e),m(14,"div",12)(15,"div",13),W(16),g(),m(17,"input",14,15),f("drop.prevent",function(r){return i.onDrop(r)})("keydown.arrowLeft",function(r){return i.onFieldKeyDownArrowLeft(r)})("keydown.backspace",function(r){return i.onFieldKeyDownBackspace(r)})("keydown.enter.prevent",function(){return i.onFieldKeyDownEnter()})("ngModelChange",function(r){return i.onInput(r)})("paste.prevent",function(r){return i.onPaste(r)}),g()()(),m(19,"div",16),X(20),g()()(),X(21,1),v(22,cd,4,3,"div",17),g(),v(23,dd,1,1,"ng-template",null,18,_e),g()()),e&2){let o=ee(13),r;u("ngIf",J(1,32,i.hintOptions==null?null:i.hintOptions.change$)),p(2),u("canOpen",i.canOpen)("content",i.datalist||""),Fe("open",i.open),p(),u("appearance",i.appearance)("disabled",i.computedDisabled)("focus",i.computedFocused)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(2),u("ngIf",i.iconLeft),p(3),u("ngIf",i.hasPlaceholder),p(),Ie("max-height",i.computeMaxHeight,"rem"),u("hidden",!i.expandable),p(),A("t-tags_empty",(!i.focused||i.inputHidden)&&!(i.value!=null&&i.value.length)&&!(!(i.search==null||(r=i.search.trim())==null)&&r.length)),p(),u("ngIf",i.labelOutside)("ngIfElse",o),p(3),A("t-input-wrapper_collapsed",i.computedDisabled||i.readOnly||i.inputHidden),p(2),Li(i.search),p(),A("t-native_hidden",i.inputHidden),u("disabled",i.computedDisabled)("id",i.id)("ngModel",i.search)("placeholder",i.placeholder)("readOnly",i.readOnly||i.inputHidden)("tuiFocusable",i.computedFocusable),L("maxLength",i.maxLength),p(5),u("ngIf",i.hasRightIcons)}},dependencies:[mi,Ce,It,$s,jn,ae,ze,$e,te,Yt,rt,qe,Je,Re,ve],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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-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%]{scroll-behavior:smooth;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%}tui-root._reduced-motion[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%], tui-root._reduced-motion [_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}[_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})(),Gs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({providers:[wr],imports:[[N,et,se,at,wt,qt,Te,di,Bn,Vn,Ws,We]]}),t})();var Cd=["type","range","tuiSlider",""];var Td={size:"m",trackColor:"var(--tui-base-03)"},Md=Z(Td);var So=(()=>{class t{constructor(e,i,o,r,s,c){var d;this.control=e,this.options=o,this.el=r,this.userAgent=s,this.injector=c,this.size=this.options.size,this.segments=1,e instanceof Re&&((d=e.valueChanges)===null||d===void 0||d.pipe(Yi(i),jo(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:e,control:i,hasKeySteps:o}=this;return!o&&i instanceof Re?i.viewModel:Number(e.nativeElement.value)||0}set value(e){this.el.nativeElement.value="".concat(e)}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get valuePercentage(){return 100*this.valueRatio}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return nr(qo,this.userAgent)}get hasKeySteps(){return!!this.injector.get(bd,null)}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(Md),l(F),l(Ki),l(Ai))},t.\u0275cmp=S({type:t,selectors:[["input","type","range","tuiSlider",""]],hostVars:11,hostBindings:function(e,i){e&1&&f("input",function(){return 0}),e&2&&(L("data-size",i.size),Ie("--tui-slider-track-color",i.options.trackColor)("--tui-slider-fill-ratio",i.valueRatio)("--tui-slider-fill-percentage",i.valuePercentage,"%")("--tui-slider-segment-width",i.segmentWidth,"%"),A("_old-edge",i.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:Cd,decls:0,vars:0,template:function(e,i){},styles:['[_nghost-%COMP%]{position:relative;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}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]: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 .5rem,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,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),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 .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[_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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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}),ye([Ne],t.prototype,"hasKeySteps",null),t})(),bd=(()=>{class t extends Zi{constructor(e,i,o,r){super(e,i),this.el=o,this.slider=r}get nativeFocusableElement(){return this.computedDisabled?null:this.el.nativeElement}get focused(){return Be(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=cs(this.slider.valuePercentage,this.keySteps)}writeValue(e){if(e===null)return;let i=Tt(e,this.min,this.max);this.slider.value=this.transformToNativeValue(i)}getFallbackValue(){return 0}transformToNativeValue(e){let{min:i,max:o}=this.slider;return ds(e,this.keySteps)*(o-i)/100+i}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(F),l(pe(()=>So)))},t.\u0275dir=M({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(e,i){e&1&&f("input",function(){return i.updateControlValue()})("change",function(){return i.updateControlValue()}),e&2&&(dt("disabled",i.computedDisabled),L("aria-valuenow",i.safeCurrentValue)("aria-valuemin",i.min)("aria-valuemax",i.max))},inputs:{keySteps:"keySteps"},features:[x]}),t})();var Ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N]]}),t})();var yd=["focusableElement"];function Dd(t,n){if(t&1&&E(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",e.value)("size",e.loaderSize)}}function Od(t,n){if(t&1&&E(0,"tui-svg",10),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var Qs=t=>({$implicit:t});function Pd(t,n){if(t&1&&(m(0,"span",8),v(1,Od,1,1,"tui-svg",9),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconOn)("polymorpheusOutletContext",ce(2,Qs,e.size))}}function wd(t,n){if(t&1&&E(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",!e.value)("size",e.loaderSize)}}function xd(t,n){if(t&1&&E(0,"tui-svg",12),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Id(t,n){if(t&1&&(m(0,"span",8),v(1,xd,1,1,"tui-svg",11),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconOff)("polymorpheusOutletContext",ce(2,Qs,e.size))}}var kd={icons:{toggleOff({$implicit:t}){return t==="m"?"tuiIconToggleOff":"tuiIconToggleOffLarge"},toggleOn({$implicit:t}){return t==="m"?"tuiIconToggleOn":"tuiIconToggleOnLarge"}},appearances:{checked:ht.Primary,unchecked:ht.Secondary},singleColor:!1,showIcons:!1,size:"m"},Ed=Z(kd);var Xs=(()=>{class t extends Zi{constructor(e,i,o,r){super(e,i),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,i;return(i=(e=this.focusableElement)===null||e===void 0?void 0:e.nativeElement)!==null&&i!==void 0?i:null}get focused(){return Be(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,i;return(i=(e=this.modeDirective)===null||e===void 0?void 0:e.mode)!==null&&i!==void 0?i: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(we,10),l(me),l(ni,8),l(Ed))},t.\u0275cmp=S({type:t,selectors:[["tui-toggle"]],viewQuery:function(e,i){if(e&1&&K(yd,5),e&2){let o;V(o=j())&&(i.focusableElement=o.first)}},hostVars:4,hostBindings:function(e,i){e&2&&(L("data-size",i.size)("data-mode",i.hostMode),A("_checked",i.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[b([Ee(t),tt(t)]),x],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,i){e&1&&(m(0,"div",0)(1,"div",1),v(2,Dd,1,3,"tui-loader",2)(3,Pd,2,4,"span",3),E(4,"div",4),v(5,wd,1,3,"tui-loader",2)(6,Id,2,4,"span",3),g(),m(7,"input",5,6),He("tuiCheckedChange",function(r){return Ae(i.value,r)||(i.value=r),r}),f("tuiFocusedChange",function(r){return i.onFocused(r)})("tuiFocusVisibleChange",function(r){return i.onFocusVisible(r)}),g()()),e&2&&(u("active",i.pseudoActive)("appearance",i.appearance)("disabled",i.computedDisabled)("focus",i.computedFocusVisible)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(2),u("ngIf",i.showLoader),p(),u("ngIf",i.showIcons&&!i.showLoader),p(2),u("ngIf",i.showLoader),p(),u("ngIf",i.showIcons&&!i.showLoader),p(),u("disabled",i.disabled)("id",i.id)("tuiFocusable",i.focusable),Fe("tuiChecked",i.value),L("aria-checked",i.value))},dependencies:[hn,Ce,$e,ae,te,Cn,rt,yn,Mn],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})(),Zs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Dn,at,si,bn,Tn,We,Te,gn,se]]}),t})();function Sd(t,n){if(t&1&&E(0,"span",17),t&2){let e=h();u("innerHtml",e.purify("Customizable for any use case"),Hi)}}function Fd(t,n){if(t&1&&(m(0,"tui-checkbox-labeled",18),W(1),g()),t&2){let e=n.$implicit,i=h();u("ngModel",e===i.labels[1]),p(),he(" ",e," ")}}function Ad(t,n){if(t&1){let e=U();m(0,"div",19)(1,"div",20),E(2,"img",21),m(3,"h3"),W(4,"Aleksandr Inkin"),g()(),m(5,"div",22)(6,"button",23),f("click",function(){let r=P(e).$implicit;return w(r.complete())}),g(),m(7,"button",24),f("click",function(){let r=P(e).$implicit;return w(r.complete())}),g()()()}}function Hd(t,n){if(t&1){let e=U();m(0,"tui-push",25),f("close",function(){P(e);let o=h();return w(o.toggle(!1))}),E(1,"tui-svg",26),W(2," I have a bad feeling about this... "),m(3,"button",27),f("click",function(){P(e);let o=h();return w(o.toggle(!1))}),W(4," Fortune "),g(),m(5,"button",28),f("click",function(){P(e);let o=h();return w(o.toggle(!1))}),W(6," Glory "),g()()}}var wT=(()=>{let n=class n{constructor(){this.dompurifySanitizer=Si(ea),this.dialogs=Si(vn),this.cd=Si(me),this.labels=["New","Read","Archived","Junk"],this.tags=["Angular","Open source"],this.date=null,this.notification=!1,this.slider=80}onDay(i){this.date=i}call(i){this.dialogs.open(i,{appearance:"call",closeable:!1,dismissible:!1}).subscribe()}toggle(i){this.notification=i,this.cd.detectChanges()}purify(i){return this.dompurifySanitizer.sanitize($o.HTML,i)}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=S({type:n,selectors:[["home"]],standalone:!0,features:[Wo],decls:26,vars:12,consts:[[1,"title"],[1,"tui-space_vertical-10",3,"tuiHintContent","tuiTextfieldLabelOutside","ngModel","ngModelChange"],["hint",""],[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"],[3,"innerHtml"],["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=U();m(0,"h2",0),W(1," Dozens of "),E(2,"br"),W(3," components\n"),g(),m(4,"tui-input-tag",1),He("ngModelChange",function(d){return Ae(r.tags,d)||(r.tags=d),d}),g(),v(5,Sd,1,1,"ng-template",null,2,_e),m(7,"div",3)(8,"div",4)(9,"tui-input-date",5),He("ngModelChange",function(d){return Ae(r.date,d)||(r.date=d),d}),f("click.capture.stop",function(){return 0})("keydown.capture.stop",function(){return 0})("mousedown.capture.stop",function(){return 0}),W(10," Choose date "),g(),m(11,"tui-calendar",6),f("dayClick",function(d){return r.onDay(d)})("event.prevent.silent",function(){return 0}),g()(),m(12,"div"),v(13,Fd,2,2,"tui-checkbox-labeled",7),g(),m(14,"div",8)(15,"label")(16,"tui-toggle",9),He("ngModelChange",function(d){return Ae(r.notification,d)||(r.notification=d),d}),g(),W(17," Push notification "),g(),m(18,"input",10),He("ngModelChange",function(d){return Ae(r.slider,d)||(r.slider=d),d}),g(),m(19,"div",11)(20,"button",12),f("click",function(){return r.slider=0}),g(),E(21,"button",13),m(22,"button",14),f("click",function(){P(s);let d=ee(24);return w(r.call(d))}),g()()()(),v(23,Ad,8,0,"ng-template",null,15,_e)(25,Hd,7,0,"tui-push",16)}if(o&2){let s=ee(6);p(4),u("tuiHintContent",s)("tuiTextfieldLabelOutside",!0),Fe("ngModel",r.tags),p(5),Fe("ngModel",r.date),p(2),u("tuiDropdownOpen",!1)("value",r.date),p(2),u("ngForOf",r.labels),p(3),u("showIcons",!0),Fe("ngModel",r.notification),p(2),u("max",140),Fe("ngModel",r.slider),p(7),u("tuiPush",r.notification)}},dependencies:[N,Yt,et,qe,Xo,Je,Zo,Re,Gs,Ys,Zs,Xs,zn,Nn,Rn,yo,Us,js,Bs,Es,ks,_n,fn,An,Et,Ks,So,Te,Ce,Jr,Xr,Zr,qr,ri,oi,En,Ti,ta],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:var(--tui-shadow-dropdown);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,#5f86f2,#a65ff2,#f25fd0,#f25f61,#f2cb5f,#abf25f,#5ff281,#5ff2f0);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/*# sourceMappingURL=home.component-EJSMLVVN.css.map */\n'],encapsulation:2,changeDetection:0});let t=n;return t})();export{wT as default}; -//# sourceMappingURL=chunk-YKKBUPJP.js.map +import{$ as ct,$a as Ko,$b as lr,$c as wr,A as vt,Aa as Rt,Ac as se,Ad as tn,Ae as Qr,B as ne,Ba as U,Bc as Cr,Bd as nn,C as hi,Ca as dt,Cb as ge,Cc as Tr,Cd as on,Ce as $e,D as Bo,Da as Ri,Db as Gt,Dd as mt,De as We,E as $,Ea as f,Eb as qo,Ec as Ki,Ed as rn,Ee as hn,F as k,Fa as h,Fb as Jo,Fd as vi,Fe as gn,G as S,Ga as re,Gb as Lt,Gd as Jt,Ge as fn,H as C,Ha as X,Hb as er,Hd as an,He as _n,I as M,Ia as Ct,Ib as tr,Id as sn,Ie as oi,J as Ht,Ja as K,Jd as Ci,Je as ri,K as P,Ka as V,Kb as zi,Kd as Ar,Ke as vn,L as w,La as j,Lb as ir,Ld as Hr,Ma as ee,Mb as nr,Md as a,Me as Xr,N as F,Na as W,Nb as or,Nd as ie,Ne as Zr,O as Uo,Oa as Li,Ob as Tt,Oc as Mr,Od as Rr,Oe as qr,P as T,Pa as he,Pb as Nt,Pc as Ee,Pd as ei,Pe as Jr,Q as Ke,Qa as Fe,Qb as Vi,Qc as br,Qd as Lr,Qe as ea,Ra as Ae,Rb as rr,Rc as no,Rd as so,Re as ta,Sa as He,Sb as ar,Sc as Qi,Sd as Nr,T as pe,Ta as b,Tb as Z,Td as zr,U as qn,Ua as Wo,Ub as R,Uc as yr,Ud as lo,V as Si,Va as ce,Vb as sr,Vc as Dr,Vd as uo,W as xe,Wa as Yo,Wb as Kt,Wc as B,Wd as Vr,X as Wt,Xa as Go,Xc as Or,Xd as ht,Y as gi,Ya as Y,Yb as Mt,Yc as oo,Yd as Pt,Z as Fi,Za as J,Zb as ji,Zc as Pr,Zd as Ue,_a as eo,_b as Bi,_c as ro,aa as ue,ab as Qo,ac as ur,ad as Xi,ae as ln,b as Ao,ba as Ai,bb as _e,bc as Ui,bd as Zi,be as un,c as Ho,ca as $o,cb as to,cc as io,cd as tt,ce as jr,d as Ft,da as Hi,dc as $i,dd as Le,de as Br,e as At,eb as Yt,ed as xr,ee as cn,f as Ro,fa as fi,fb as ae,fd as Zt,fe as Ur,g as Lo,ga as p,gb as ve,gc as cr,gd as qi,ge as $r,h as ye,ha as l,hb as N,hc as Qt,hd as Ji,he as Wr,i as No,ia as _i,ic as Be,id as Ir,ie as nt,j as je,jc as pt,k as z,kc as Qe,kd as kr,ke as Yr,l as Xn,lc as dr,ld as Ne,le as Gr,m as xi,ma as me,mc as pr,md as ze,me as co,n as Ii,na as Ze,nc as mr,nd as qt,ne as dn,o as De,oa as Jn,oc as hr,od as yt,p as zo,pa as x,pb as Ni,pc as ke,pd as Dt,pe as pn,q as lt,qa as v,qb as qe,qc as Wi,qd as Er,qe as ti,r as Vo,ra as L,rb as we,rc as gr,rd as Sr,sa as u,sb as Je,sc as fr,sd as Fr,se as Kr,t as jo,ta as Ie,tb as Re,tc as Yi,te as ii,u as ut,ua as A,ub as Xo,uc as _r,v as Ge,va as m,vb as Zo,vc as Xt,vd as ao,ve as mn,w as Zn,wa as g,wb as et,wc as vr,wd as it,we as Ce,x as ki,xa as E,xc as bt,xd as Ot,xe as Te,y as $t,ya as Oe,yc as Gi,yd as zt,ye as ni,z as Ei,za as Pe,zc as te,zd as en,ze as ot}from"./chunk-J7VW2QUP.js";var qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],decls:0,vars:0,template:function(e,i){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),ia=(()=>{class t{constructor(e){this.autofilled=!1,this.tuiAutofilledChange=new $,e.addComponent(qs)}transitionStartHandler({propertyName:e,target:i}){var o;e.includes("box-shadow")&&((o=i)===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(Or))},t.\u0275dir=M({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(e,i){e&1&&f("transitionstart",function(r){return i.transitionStartHandler(r)}),e&2&&A("_autofilled",i.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),na=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Cn=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new $}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=M({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(e,i){e&1&&f("change",function(r){return i.onChange(r.target)}),e&2&&dt("checked",i.isChecked)("indeterminate",i.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),Tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Mn=(()=>{class t{constructor(e){this.tuiFocusVisibleChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(oo))},t.\u0275dir=M({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[b([B,oo])]}),t})(),bn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var rt=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,i){e&2&&dt("tabIndex",i.tabIndex)},inputs:{focusable:[k.None,"tuiFocusable","focusable"]}}),t})(),at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var yn=(()=>{class t{constructor({nativeElement:e},i){this.tuiFocusedChange=De(ke(e,"focusin"),ke(e,"focusout")).pipe(z(()=>Be(e)),Ei(!1),Ge(),$t(1),Xt(i))}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Ze))},t.\u0275dir=M({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),Dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function Js({currentTarget:t,relatedTarget:n}){return!Mt(n)||!Mt(t)||!t.contains(n)}var st=(()=>{class t extends Ho{constructor(e,i){super(o=>this.stream$.subscribe(o)),this.el=e,this.zone=i,this.stream$=De(ke(this.el.nativeElement,"mouseenter").pipe(z(Gt)),ke(this.el.nativeElement,"mouseleave").pipe(z(ge)),ke(this.el.nativeElement,"mouseout").pipe(lt(Js),z(ge))).pipe(Ge(),Xt(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(qn(F),qn(Ze))},t.\u0275prov=Uo({token:t,factory:t.\u0275fac}),t})(),ai=(()=>{class t{constructor(e){this.tuiHoveredChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(st))},t.\u0275dir=M({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[b([st])]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var oa=(()=>{class t{constructor(e,i){this.enabled$=new Ft;let o=i.pipe(z(r=>!!r&&(!e||!r.length||r.every(s=>!e.contains(s)))));this.tuiObscured=this.enabled$.pipe(Wi(()=>o))}set tuiObscuredEnabled(e){this.enabled$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(ze,8),l(ro,2))},t.\u0275dir=M({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[b([ro,Pr,B])]}),t})(),ra=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var On=(()=>{class t{constructor(e,i){this.el=e,this.takeOnlyTrustedEvents=i,this.tuiPressedChange=gr(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Dr))},t.\u0275dir=M({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})(),si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var aa=(()=>{class t{constructor(e,i,o){this.el=e,this.zone=i,this.destroy$=o,this.eventName=""}ngOnInit(){xi(this.el.nativeElement,this.eventName,{passive:!1}).pipe(_r(this.zone),fr(),ne(this.destroy$)).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Ze),l(B,2))},t.\u0275dir=M({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:[k.None,"tuiPreventDefault","eventName"]},features:[b([B])]}),t})(),sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var el=65536,po=class{constructor(n){this.$implicit=n}},Pn=(()=>{class t{constructor(e,i){this.viewContainer=e,this.templateRef=i}set tuiRepeatTimesOf(e){let i=Math.floor(Tt(e,0,el)),{length:o}=this.viewContainer;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function la(t,n,e){return e&&et?n:t}var kn=7;var li=12,xn=1,mo=0,ho=11,go=0,fo=9999,In="".concat(zi).concat(ir).concat(zi),tl=1e3,il=60,nl=60,ua=24,ol=tl*il,rl=ol*nl,um=rl*ua,ui=10,al=2*ui+In.length,_o=Z("DMY"),ca=Z("."),da=(t,n)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,n),Me=class t{constructor(n){this.year=n}static isValidYear(n){return Number.isInteger(n)&&Nt(n,go,fo+1)}static isLeapYear(n){return n%400===0||n%4===0&&n%100!==0}static getAbsoluteLeapYears(n){return Math.ceil(n/400)+(Math.ceil(n/4)-Math.ceil(n/100))}static lengthBetween(n,e){return e.year-n.year}static normalizeYearPart(n){return Vi(n,go,fo)}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:n}){return this.year=n}yearAfter({year:n}){return this.year>n}append({year:n=0}){let e=this.year+n;return new t(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](n){return Date.prototype[Symbol.toPrimitive].call(this,n)}toJSON(){return this.formattedYear}},q=class t extends Me{constructor(n,e){super(n),this.month=e}static isValidMonth(n,e){return Me.isValidYear(n)&&t.isValidMonthPart(e)}static getMonthDaysCount(n,e){switch(n){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 n=new Date;return new t(n.getFullYear(),n.getMonth())}static currentUtc(){let n=new Date;return new t(n.getUTCFullYear(),n.getUTCMonth())}static lengthBetween(n,e){let i=n.month+n.year*12;return e.month+e.year*12-i}static normalizeMonthPart(n){return Vi(n,mo,ho)}static isValidMonthPart(n){return Number.isInteger(n)&&Nt(n,mo,ho+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(n){return this.yearBefore(n)||this.yearSame(n)&&this.month=n.month}monthAfter(n){return this.yearAfter(n)||this.yearSame(n)&&this.month>n.month}append({year:n=0,month:e=0}){let i=(this.year+n)*li+this.month+e;return new t(Math.floor(i/li),i%li)}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))}},de=class t extends q{constructor(n,e,i){super(n,e),this.day=i}static fromLocalNativeDate(n){return new t(n.getFullYear(),n.getMonth(),n.getDate())}static fromUtcNativeDate(n){return new t(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())}static isValidDay(n,e,i){return q.isValidMonth(n,e)&&Number.isInteger(i)&&Nt(i,xn,q.getMonthDaysCount(e,Me.isLeapYear(n))+1)}static currentLocal(){let n=new Date,e=n.getFullYear(),i=n.getMonth(),o=n.getDate();return new t(e,i,o)}static currentUtc(){let n=new Date,e=n.getUTCFullYear(),i=n.getUTCMonth(),o=n.getUTCDate();return new t(e,i,o)}static normalizeOf(n,e,i){let o=Me.normalizeYearPart(n),r=q.normalizeMonthPart(e),s=t.normalizeDayPart(i,r,o);return new t(o,r,s)}static lengthBetween(n,e){return Math.round((e.toLocalNativeDate().getTime()-n.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(n,e="DMY"){switch(e){case"YMD":return{day:parseInt(n.slice(8,10),10),month:parseInt(n.slice(5,7),10)-1,year:parseInt(n.slice(0,4),10)};case"MDY":return{day:parseInt(n.slice(3,5),10),month:parseInt(n.slice(0,2),10)-1,year:parseInt(n.slice(6,10),10)};case"DMY":default:return{day:parseInt(n.slice(0,2),10),month:parseInt(n.slice(3,5),10)-1,year:parseInt(n.slice(6,10),10)}}}static normalizeParse(n,e="DMY"){let{day:i,month:o,year:r}=this.parseRawDateString(n,e);return t.normalizeOf(r,o,i)}static jsonParse(n){let{day:e,month:i,year:o}=this.parseRawDateString(n,"YMD");if(!Me.isValidYear(o))throw new mr(o);if(!q.isValidMonth(o,i))throw new pr(i);if(!Number.isInteger(e)||!Nt(e,xn,q.getMonthDaysCount(i,Me.isLeapYear(o))+1))throw new dr(e);return new t(o,i,e)}static normalizeDayPart(n,e,i){let o=q.getMonthDaysCount(e,Me.isLeapYear(i));return Vi(n,1,o)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let n=this.dayOfWeek(!1);return n===ao.Saturday||n===ao.Sunday}dayOfWeek(n=!0){let e=n?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(n){return this.monthBefore(n)||this.monthSame(n)&&this.day=n.day}dayAfter(n){return this.monthAfter(n)||this.monthSame(n)&&this.day>n.day}dayLimit(n,e){return n!==null&&this.dayBefore(n)?n:e!==null&&this.dayAfter(e)?e:this}append({year:n=0,month:e=0,day:i=0}){let o=(this.year+n)*li+this.month+e,r=Math.floor(o/li),s=o%li,c=Math.min(this.day,q.getMonthDaysCount(s,Me.isLeapYear(r)))+i;for(;c>q.getMonthDaysCount(s,Me.isLeapYear(r));)c-=q.getMonthDaysCount(s,Me.isLeapYear(r)),s===it.December?(r++,s=it.January):s++;for(;c{class t{constructor(e,i,o,r){this.cssRef=e,this.el=i,this.userAgent=o,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||or(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new F(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 i;if(this.delegated)return;let{nativeElement:o}=this.browserScrollRef,{offsetTop:r,offsetLeft:s}=ur(o,e),{clientHeight:c,clientWidth:d}=o,{offsetHeight:_,offsetWidth:y}=e,D=r+_/2-c/2,I=s+y/2-d/2;(i=o.scrollTo)===null||i===void 0||i.call(o,I,D)}}return t.\u0275fac=function(e){return new(e||t)(l(Tr),l(F),l(Ki),l(no))},t.\u0275cmp=S({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(e,i){e&1&&f("tui-scrollable.stop",function(r){return i.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return i.scrollIntoView(r.detail)}),e&2&&A("_legacy",i.showNative)},inputs:{hidden:"hidden"},features:[b([{provide:yr,deps:[t],useFactory:({browserScrollRef:n})=>n}])],ngContentSelectors:ll,decls:3,vars:1,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(e,i){e&1&&(re(),v(0,sl,1,0,"tui-scroll-controls",0),m(1,"div",1),X(2),g()),e&2&&u("ngIf",i.showScrollbars)},dependencies:[Ir,ae],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})(),di=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,kr]]}),t})();function ul(t,n){if(t&1&&(m(0,"div",4),W(1),g()),t&2){let e=n.polymorpheusOutlet;p(),he(" ",e," ")}}var cl=t=>({$implicit:t}),dl=R(()=>gl),Ti=(()=>{class t{constructor(){this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new $}update(e){this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e)}ngOnChanges(){var e;(e=this.dropdown)===null||e===void 0||e.toggle(this.tuiDropdownOpen)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},features:[ct]}),t})(),gt=(()=>{class t{constructor(e,i,o,r,s,c){this.el=i,this.dropdown=o,this.injector=r,this.dropdownService=s,this.open=c,this.refresh$=new Ft,this.dropdownBoxRef=null,this.type="dropdown",this.component=new bt(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe(Bo(0),ne(e)).subscribe(()=>{var d,_;(d=this.dropdownBoxRef)===null||d===void 0||d.changeDetectorRef.detectChanges(),(_=this.dropdownBoxRef)===null||_===void 0||_.changeDetectorRef.markForCheck()})}get position(){return Rr(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngAfterViewInit(){this.open&&this.toggle(this.open.tuiDropdownOpen)}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(e){var i,o;e&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),(i=this.open)===null||i===void 0||i.update(!0)):!e&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,(o=this.open)===null||o===void 0||o.update(!1))}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(F),l(dl),l(Fi),l(Fr),l(Ti,8))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:[k.None,"tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[b([B,Ci(t),tn(t)]),ct]}),ye([Ne],t.prototype,"position",null),t})(),pl={showDelay:200,hideDelay:500},ml=Z(pl);var vo=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=i,this.parentHover=o,this.toggle$=new Ft,this.stream$=De(this.toggle$,this.hovered$).pipe(vt(r=>je(r).pipe(ut(r?this.showDelay:this.hideDelay))),hi(r=>{this.hovered=r}),ki()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(e){var i;(i=this.parentHover)===null||i===void 0||i.toggle(e),this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(ml),l(t,12))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:[k.None,"tuiDropdownShowDelay","showDelay"],hideDelay:[k.None,"tuiDropdownHideDelay","hideDelay"]},features:[b([zt(t),st]),x]}),t})(),ha={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Vt=Z(ha),ga=t=>({provide:Vt,deps:[[new xe,hl],[new xe,new gi,Vt]],useFactory:uo(t,ha)}),hl=(()=>{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(Vt,4))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[k.None,"tuiDropdownAlign","align"],appearance:[k.None,"tuiDropdownAppearance","appearance"],direction:[k.None,"tuiDropdownDirection","direction"],limitWidth:[k.None,"tuiDropdownLimitWidth","limitWidth"],minHeight:[k.None,"tuiDropdownMinHeight","minHeight"],maxHeight:[k.None,"tuiDropdownMaxHeight","maxHeight"],offset:[k.None,"tuiDropdownOffset","offset"]},features:[b([{provide:Vt,useExisting:pe(()=>t)}])]}),t})(),gl=(()=>{class t{constructor(e,i,o,r,s,c,d,_,y,D,I){this.directive=r,this.animation=s,this.el=c,this.accessor=d,this.win=_,this.mode$=y,this.options=D,this.hoverDirective=I,i.pipe(z(O=>this.directive.position==="fixed"?e.correct(O):O),ne(o)).subscribe(([O,G])=>{this.update(O,G)}),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(e){var i;(i=this.hoverDirective)===null||i===void 0||i.toggle(e)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(e,i){var o;let{style:r}=this.el.nativeElement,{right:s}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:c,minHeight:d,offset:_}=this.options,{innerHeight:y}=this.win,D=(o=this.el.nativeElement.offsetParent)===null||o===void 0?void 0:o.getBoundingClientRect(),{position:I}=this.directive,O=this.accessor.getClientRect(),G=I==="fixed"?0:-((D==null?void 0:D.left)||0),Q=I==="fixed"?0:-((D==null?void 0:D.top)||0);e+=Q,i+=G;let be=iO.left&&e=O.right;r.position=I,r.top=Qe(Math.max(e,Q+_)),r.left=Qe(i),r.maxHeight=St?"min(100%, ".concat(c,"px)"):Qe(Math.min(c,Math.max(be,d))),r.width="",r.minWidth="",this.updateWidth(O.width)}updateWidth(e){let{style:i}=this.el.nativeElement;switch(this.options.limitWidth){case"min":i.minWidth=Qe(e);break;case"fixed":i.width=Qe(e);break;case"auto":break}}moveFocusOutside(e){let{nativeElement:i}=this.directive.el,{ownerDocument:o}=i,r=o?o.body:i,s=Qt({initial:i,root:r,previous:e});for(;s!==null&&i.contains(s);)s=Qt({initial:s,root:r,previous:e});s==null||s.focus()}}return t.\u0275fac=function(e){return new(e||t)(l(mn),l(ii),l(B,2),l(gt),l(ln),l(F),l(Jt),l(Cr),l(nt),l(Vt),l(vo,8))},t.\u0275cmp=S({type:t,selectors:[["tui-dropdown"]],hostVars:2,hostBindings:function(e,i){e&1&&f("$.data-mode.attr",function(){return i.mode$}),e&2&&(L("data-appearance",i.options.appearance),Ri("@tuiDropdownAnimation",i.animation))},features:[b([B,ii,rn("dropdown"),an("dropdown",gt),ot])],decls:5,vars:4,consts:[["tuiActiveZone","","tuiOverscroll","all",1,"t-scroll",3,"tuiHoveredChange"],["activeZone","tuiActiveZone"],["tabindex","0",3,"focus"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(e,i){if(e&1&&(m(0,"tui-scrollbar",0,1),f("tuiHoveredChange",function(r){return i.onHoveredChange(r)}),m(2,"div",2),f("focus",function(){return i.onTopFocus()}),g(),v(3,ul,2,1,"div",3),m(4,"div",2),f("focus",function(){return i.onBottomFocus()}),g()()),e&2){let o=ee(1);p(3),u("polymorpheusOutlet",i.directive.content)("polymorpheusOutletContext",ce(2,cl,o))}},dependencies:[It,ze,Er,ai,te],styles:['[_nghost-%COMP%]{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}.ng-animating[_nghost-%COMP%]{pointer-events:none}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}[data-mode=onDark][_nghost-%COMP%]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll[_ngcontent-%COMP%]{flex-grow:1;max-width:100%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}'],data:{animation:[Hr]}}),t})();var fa=(()=>{class t extends nn{constructor(e,i,o){super(e,i,o),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(Ot),l(en))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown",""]],features:[b([B]),x]}),t})();var _a=(()=>{class t extends Ot{constructor(){super(e=>this.stream$.subscribe(e)),this.stream$=new At(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[b([zt(t)]),x,ct]}),t})(),ma=(()=>{class t extends mt{constructor(e,i,o,r){super(),this.options=e,this.viewport=i,this.accessors=o,this.directive=r,this.type="dropdown"}getPosition({width:e,height:i}){var o,r;!e&&!i&&(this.previous=void 0);let s=(r=(o=this.accessor)===null||o===void 0?void 0:o.getClientRect())!==null&&r!==void 0?r:Lt,c=this.viewport.getClientRect(),{minHeight:d,align:_,direction:y,offset:D,limitWidth:I}=this.options,O={top:c.top-D,bottom:c.bottom+D,right:c.right-D,left:c.left+D},G=this.previous||y||"bottom",Q={top:s.top-2*D-O.top,bottom:O.bottom-s.bottom-2*D},fe=I==="fixed"?s.width:e,be=Math.max(s.right-fe,D),St=s.left+eQ.bottom?"top":"bottom";return Q[G]>d&&y||Q[G]>i?[Ut[G],Ut[_]]:(this.previous=Fo,[Ut[Fo],Ut[_]])}get accessor(){return sn("dropdown")(this.accessors,this.directive)}}return t.\u0275fac=function(e){return new(e||t)(l(Vt),l(ti),l(Jt),l(gt))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[b([vi(t)]),x]}),ye([Ne],t.prototype,"accessor",null),t})(),va=(()=>{class t extends mt{constructor(e,i,o){super(),this.options=e,this.viewport=i,this.vertical=o,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var i,o;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:r,width:s}=e,c=(o=(i=this.vertical.accessor)===null||i===void 0?void 0:i.getClientRect())!==null&&o!==void 0?o:Lt,d=this.viewport.getClientRect(),{direction:_,minHeight:y,offset:D}=this.options,I=this.options.align==="center"?"left":this.options.align,O={top:c.bottom-d.top,left:c.left-D-d.left,right:d.right-c.right-D,bottom:d.bottom-c.top},G={top:c.bottom-r+this.tuiDropdownSidedOffset+1,left:c.left-s-D,right:c.right+D,bottom:c.top-this.tuiDropdownSidedOffset-1},Q=O.top>O.bottom?"top":"bottom",fe=O.left>O.right?G.left:G.right,be=O[I]>s?G[I]:fe;return O[this.previous]>y&&_||this.previous===Q?[G[this.previous],be]:(this.previous=Q,[G[Q],be])}}return t.\u0275fac=function(e){return new(e||t)(l(Vt),l(ti),l(ma))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[b([ma,vi(t)]),x]}),t})();var En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[se,qt,Sr,di,wt]]}),t})();function _l(t,n){if(t&1&&E(0,"span",1),t&2){let e=n.polymorpheusOutlet;u("innerHTML",e,Hi)}}var vl=["*"];var Cl=R(()=>bl),Tl={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},Bt=Z(Tl);var Et=(()=>{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)(l(Bt,4))},t.\u0275dir=M({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:[k.None,"tuiHintContent","content"],direction:[k.None,"tuiHintDirection","direction"],appearance:[k.None,"tuiHintAppearance","appearance"],showDelay:[k.None,"tuiHintShowDelay","showDelay"],hideDelay:[k.None,"tuiHintHideDelay","hideDelay"]},features:[b([{provide:Bt,useExisting:pe(()=>t)}]),x]}),t})(),Fn=(()=>{class t{constructor(e,i,o,r,s){this.el=e,this.component=i,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(F),l(bt),l(Kr),l(Bt),l(ze,8))},t.\u0275dir=M({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{content:[k.None,"tuiHint","content"],context:[k.None,"tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[b([Ci(t),tn(t),{provide:bt,deps:[Cl,Fi],useClass:bt}]),ct]}),t})(),pi=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=i,this.el=o,this.visible=!1,this.toggle$=new Ft,this.stream$=De(this.toggle$.pipe(vt(r=>je(r).pipe(ut(r?0:this.hideDelay))),ne(this.hovered$),Zn()),this.hovered$.pipe(vt(r=>je(r).pipe(ut(r?this.showDelay:this.hideDelay))),ne(this.toggle$),Zn())).pipe(lt(()=>this.enabled),z(r=>r&&!lo(this.el.nativeElement)),hi(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(st),l(Bt),l(F))},t.\u0275dir=M({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{showDelay:[k.None,"tuiHintShowDelay","showDelay"],hideDelay:[k.None,"tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[b([zt(t),st]),x]}),t})(),Ml=(()=>{class t extends pi{constructor(){super(...arguments),this.currentRect=Lt}onMove({clientX:e,clientY:i}){this.currentRect=io(e,i)}getClientRect(){return this.currentRect}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(e,i){e&1&&f("mousemove.silent",function(r){return i.onMove(r)})},features:[b([Ci(t),zt(t)]),x]}),t})(),Ca=4,bl=(()=>{class t{constructor(e,i,o,r,s,c,d,_,y,D,I,O){var G;this.animation=r,this.pointer=s,this.accessor=c,this.el=d,this.polymorpheus=_,this.hover=y,this.mode=D,this.visualViewportService=I,this.viewport=O,this.appearance=this.polymorpheus.$implicit.appearance||((G=this.mode)===null||G===void 0?void 0:G.mode),i.pipe(z(Q=>this.visualViewportService.correct(Q)),ne(o)).subscribe(([Q,fe])=>{this.update(Q,fe)}),e.pipe(ne(o)).subscribe(Q=>this.hover.toggle(Q))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(e){(!this.el.nativeElement.contains(e)&&!this.hover.el.nativeElement.contains(e)||lo(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(e,i){let{height:o,width:r}=this.el.nativeElement.getBoundingClientRect(),{style:s}=this.el.nativeElement,c=this.accessor.getClientRect(),d=this.viewport.getClientRect();if(c===Lt)return;let _=Tt(i,Ca,d.width-r-Ca),[y,D]=this.visualViewportService.correct([c.top+c.height/2-e,c.left+c.width/2-_]);s.top=Qe(e),s.left=Qe(_),s.setProperty("--top",Qe(Tt(y,.5,o-1))),s.setProperty("--left",Qe(Tt(D,.5,r-1)))}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(ii),l(B,2),l(ln),l(Ml,8),l(Jt),l(F),l(vr),l(pi),l(ni,8),l(mn),l(ti))},t.\u0275cmp=S({type:t,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(e,i){e&1&&f("click",function(r){return i.onClick(r.target)},!1,fi),e&2&&(L("data-appearance",i.appearance),Ri("@tuiFadeIn",i.animation),A("_untouchable",i.pointer))},features:[b([B,ii,st,rn("hint"),an("hint",Fn)])],ngContentSelectors:vl,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(e,i){e&1&&(re(),X(0),v(1,_l,1,1,"span",0)),e&2&&(p(),u("polymorpheusOutlet",i.content)("polymorpheusOutletContext",i.context))},dependencies:[te],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:[Ar]},changeDetection:0}),ye([Ne],t.prototype,"update",null),t})(),Ta=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.zone=e,this.doc=i,this.el=o,this.id$=new Ro(1),this.stream$=this.id$.pipe(Wi(()=>ke(this.doc,"keydown",{capture:!0}),sr),vt(()=>this.focused?je(!1):De(ke(this.doc,"keyup"),ke(this.element,"blur")).pipe(z(()=>this.focused))),Vo(r=>r?Ii(1e3):je(null)),Ei(!1),Ge(),$t(1),Xt(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return Be(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(l(Ze),l(to),l(F))},t.\u0275dir=M({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[b([zt(t)]),x,ct]}),ye([Ne],t.prototype,"element",null),t})(),Ma=(()=>{class t extends nn{constructor(e,i,o){super(e,i,o),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(Ot),l(en))},t.\u0275dir=M({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],features:[b([B]),x]}),t})();var kt=8,Sn=22,oe=0,le=1,ba=(()=>{class t extends mt{constructor(e,i,o,r){super(),this.options=e,this.viewport=i,this.directive=o,this.accessors=r,this.points=so.reduce((s,c)=>Object.assign(Object.assign({},s),{[c]:[0,0]}),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:e,height:i}){var o,r;let s=(r=(o=this.accessor)===null||o===void 0?void 0:o.getClientRect())!==null&&r!==void 0?r:Lt,c=s.left+s.width/2,d=s.top+s.height/2;if(this.points["top-left"][oe]=s.top-i-kt,this.points["top-left"][le]=c-e+Sn,this.points.top[oe]=this.points["top-left"][oe],this.points.top[le]=c-e/2,this.points["top-right"][oe]=this.points["top-left"][oe],this.points["top-right"][le]=c-Sn,this.points["bottom-left"][oe]=s.bottom+kt,this.points["bottom-left"][le]=this.points["top-left"][le],this.points.bottom[oe]=this.points["bottom-left"][oe],this.points.bottom[le]=this.points.top[le],this.points["bottom-right"][oe]=this.points["bottom-left"][oe],this.points["bottom-right"][le]=this.points["top-right"][le],this.points["left-top"][oe]=d-i+Sn,this.points["left-top"][le]=s.left-e-kt,this.points.left[oe]=d-i/2,this.points.left[le]=this.points["left-top"][le],this.points["left-bottom"][oe]=d-Sn,this.points["left-bottom"][le]=this.points["left-top"][le],this.points["right-top"][oe]=this.points["left-top"][oe],this.points["right-top"][le]=s.right+kt,this.points.right[oe]=this.points.left[oe],this.points.right[le]=this.points["right-top"][le],this.points["right-bottom"][oe]=this.points["left-bottom"][oe],this.points["right-bottom"][le]=this.points["right-top"][le],this.checkPosition(this.points[this.direction],e,i))return this.points[this.direction];let _=so.find(y=>this.checkPosition(this.points[y],e,i));return this.points[_||this.fallback]}get accessor(){return sn("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[oe]>this.viewport.getClientRect().bottom-this.points.bottom[oe]?"top":"bottom"}checkPosition([e,i],o,r){let s=this.viewport.getClientRect();return e>kt&&i>kt&&e+r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,se]]}),t})();var ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[b([{provide:Ni,deps:[[new xe,pn],qe],multi:!0,useFactory:(n,e)=>n?n[0]:e}])]}),t})(),Da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Oa=(()=>{class t{constructor(e,i){this.el=e,this.destroy$=i}set tuiScrollIntoView(e){e&&Ii(0).pipe(ne(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(Lr,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(B,2))},t.\u0275dir=M({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[b([B])]}),t})(),Pa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Co=class{constructor(n,e,i,o,r,s,c,d,_,y,D,I,O){this.change$=n,this.options=e,this.legacyAppearance=i,this.appearanceDirective=o,this.cleanerDirective=r,this.customContentDirective=s,this.iconDirective=c,this.iconLeftDirective=d,this.labelOutsideDirective=_,this.sizeDirective=y,this.prefixDirective=D,this.postfixDirective=I,this.fillerDirective=O}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}},Pl={iconCleaner:"tuiIconClose",hintOnDisabled:!1},To=Z(Pl);var wa=R(()=>new wl),wl=(()=>{class t extends Le{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[k.None,"tuiTextfieldAppearance","appearance"]},features:[b([{provide:wa,useExisting:pe(()=>t)}]),x]}),t})(),xa=R(()=>new xl),xl=(()=>{class t extends Le{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[k.None,"tuiTextfieldCleaner","cleaner"]},features:[b([{provide:xa,useExisting:pe(()=>t)}]),x]}),t})(),Ia=R(()=>new Il),Il=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[k.None,"tuiTextfieldCustomContent","customContent"]},features:[b([{provide:Ia,useExisting:pe(()=>t)}]),x]}),t})(),ka=R(()=>new Mo),Mo=(()=>{class t extends Le{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[k.None,"tuiTextfieldFiller","filler"]},features:[b([{provide:ka,useExisting:pe(()=>t)}]),x]}),t})(),Ea=R(()=>new bo),bo=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[k.None,"tuiTextfieldIcon","icon"]},features:[b([{provide:Ea,useExisting:pe(()=>t)}]),x]}),t})(),Sa=R(()=>new kl),kl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:[k.None,"tuiTextfieldIconLeft","iconLeft"]},features:[b([{provide:Sa,useExisting:pe(()=>t)}]),x]}),t})(),Fa=R(()=>new yo),yo=(()=>{class t extends Le{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[k.None,"tuiTextfieldLabelOutside","labelOutside"]},features:[b([{provide:Fa,useExisting:pe(()=>t)}]),x]}),t})(),Aa=R(()=>new El),El=(()=>{class t extends Le{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[k.None,"tuiTextfieldPostfix","postfix"]},features:[b([{provide:Aa,useExisting:pe(()=>t)}]),x]}),t})(),Ha=R(()=>new Sl),Sl=(()=>{class t extends Le{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[k.None,"tuiTextfieldPrefix","prefix"]},features:[b([{provide:Ha,useExisting:pe(()=>t)}]),x]}),t})(),Hn=R(()=>new Fl),Fl=(()=>{class t extends Le{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[k.None,"tuiTextfieldSize","size"]},features:[b([{provide:Hn,useExisting:pe(()=>t)}]),x]}),t})(),Rn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})(),Mi=new Ke("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Ln=[B,{provide:Mi,deps:[me,B,To,Gr,wa,xa,Ia,Ea,Sa,Fa,Hn,Ha,Aa,ka],useFactory:(t,n,e,i,...o)=>{let r=De(...o.map(({change$:s})=>s||zo)).pipe(Yi(t),ne(n));return r.subscribe(),new Co(r,e,i,...o)}}];function Al(t,n){if(t&1){let e=U();m(0,"div",4),f("click",function(){let r=P(e).tuiLet,s=h(3);return w(s.onItemClick(r))})("tuiHoveredChange",function(o){let s=P(e).tuiLet,c=h(3);return w(c.onItemHovered(o,s))})("tuiPressedChange",function(o){let s=P(e).tuiLet,c=h(3);return w(c.onItemPressed(o,s))}),m(1,"div",5),W(2),g()()}if(t&2){let e=n.tuiLet,i=h(3);A("t-cell_interval",i.itemIsInterval(e))("t-cell_today",i.itemIsToday(e)),u("tuiScrollIntoView",i.scrollItemIntoView(e)),L("data-range",i.getItemRange(e))("data-state",i.getItemState(e)),p(2),Li(e)}}function Hl(t,n){if(t&1&&(Oe(0),v(1,Al,3,8,"div",3),Pe()),t&2){let e=n.$implicit,i=h().$implicit,o=h();p(),u("tuiLet",o.getItem(i,e))}}function Rl(t,n){t&1&&(m(0,"div",1),v(1,Hl,2,1,"ng-container",2),g()),t&2&&(p(),u("tuiRepeatTimesOf",4))}var Ra=100,La=4,Na=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=q.currentLocal().year,this.value=null,this.initialItem=q.currentLocal(),this.min=Se,this.max=Ve,this.disabledItemHandler=ge,this.yearClick=new $}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/La)}get calculatedMin(){let e=this.initialItem.year-Ra,i=this.computedMin;return i.year>e?i.year:e}get calculatedMax(){let e=this.initialItem.year+Ra,i=this.computedMax;return i.yeari.from.year&&i.from.year===e&&i.from.yearSame(i.to)||o!==null&&o===e&&oi.from.year&&i.from.yearSame(i.to)?Ue.End:i.from.yearSame(i.to)&&i.from.year===e?Ue.Single:null:i.find(r=>r.year===e)?Ue.Single:null}itemIsToday(e){return this.currentYear===e}itemIsInterval(e){let{value:i,hoveredItem:o}=this;return i===null||!this.isRange(i)?!1:i.from.yearSame(i.to)?o===null||i.from.year===o?!1:Nt(e,Math.min(i.from.year,o),Math.max(i.from.year,o)):i.from.year<=e&&i.to.year>e}onItemHovered(e,i){this.updateHoveredItem(e,i)}onItemPressed(e,i){this.updatePressedItem(e,i)}onItemClick(e){this.yearClick.emit(new Me(e))}updateHoveredItem(e,i){this.hoveredItem=e?i:null}updatePressedItem(e,i){this.pressedItem=e?i:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,i){e&2&&A("_single",i.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,i){e&1&&v(0,Rl,2,1,"div",0),e&2&&u("tuiRepeatTimesOf",i.rows)},dependencies:[Pn,yt,Oa,ai,On],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})(),za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[wt,si,wn,Dt,Pa]]}),t})();function Nl(t,n){if(t&1){let e=U();Oe(0),m(1,"button",1),f("click",function(){P(e);let o=h();return w(o.onLeftClick())}),g(),m(2,"span",2),X(3),g(),m(4,"button",3),f("click",function(){P(e);let o=h();return w(o.onRightClick())}),g(),Pe()}if(t&2){let e=n.ngIf,i=h();p(),A("t-hidden",i.leftComputedDisabled),u("focusable",i.computedFocusable)("icon",i.icons.decrement)("title",e[0]),p(3),A("t-hidden",i.rightComputedDisabled),u("focusable",i.computedFocusable)("icon",i.icons.increment)("title",e[1])}}var zl=["*"],Va=(()=>{class t extends Xi{constructor(e,i,o){super(),this.el=e,this.icons=i,this.spinTexts$=o,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new $,this.rightClick=new $}get focused(){return pt(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(F),l(Yr),l($r))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(e,i){e&1&&f("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return i.onLeftClick()})("keydown.arrowRight.prevent",function(){return i.onRightClick()})("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)})},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[x],ngContentSelectors:zl,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,i){e&1&&(re(),v(0,Nl,5,10,"ng-container",0),Y(1,"async")),e&2&&u("ngIf",J(1,1,i.spinTexts$))},dependencies:[fn,ae,ve],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})(),ja=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,_n]]}),t})();var jl=(t,n)=>{let e=new Date(t.year,t.month,1).getDay();return e>=n?e-n:kn-(n-e)},Bl=({month:t,rowIndex:n,colIndex:e,firstDayOfWeek:i})=>{let o=n*kn+e-jl(t,i)+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 de(t.year,t.month,o)},Ul=6,Ba=(()=>{class t{constructor(e){this.firstDayOfWeek=e,this.currentMonth=null,this.currentSheet=[]}transform(e,i=!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>O.year||I.month>O.month;if(!(y(_)&&!i)){if(D(_)&&!i)break;c.push(_)}}r.push(c)}return this.currentSheet=r.filter(s=>s.length),this.currentMonth=e,this.currentSheet}}return t.\u0275fac=function(e){return new(e||t)(l(cn,16))},t.\u0275pipe=Ht({name:"tuiCalendarSheet",type:t,pure:!0}),t})(),Ua=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var Do=(()=>{class t{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe(z(i=>i[e]))}}return t.\u0275fac=function(e){return new(e||t)(l(Ur,16))},t.\u0275pipe=Ht({name:"tuiMonth",type:t,pure:!0}),t})(),$a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function $l(t){let n=t.length-1;return[t[n],...t.slice(0,n)]}var Wa=(()=>{class t{constructor(e){this.firstDayOfWeekIndex=e}transform(e){return e.pipe(z($l),z(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}}return t.\u0275fac=function(e){return new(e||t)(l(cn,16))},t.\u0275pipe=Ht({name:"tuiOrderWeekDays",type:t,pure:!0}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function Yl(t,n){if(t&1&&(Oe(0),W(1),Pe()),t&2){let e=h();p(),he(" ",e.value.formattedYear," ")}}function Gl(t,n){if(t&1){let e=U();m(0,"button",3),f("click",function(){P(e);let o=h();return w(o.onYearClick())}),W(1),g()}if(t&2){let e=h();u("tuiFocusable",!1),p(),he(" ",e.value.formattedYear," ")}}var Ga=(()=>{class t{constructor(){this.value=q.currentLocal(),this.min=Se,this.max=Ve,this.valueChange=new $,this.yearClick=new $}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){let{computedMin:e,computedMax:i}=this;return e.year===i.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(e){let i=this.value.append(e),{computedMin:o,computedMax:r}=this;if(o.monthSameOrAfter(i)){this.updateValue(o);return}this.updateValue(r.monthSameOrBefore(i)?r:i)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({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,i){if(e&1&&(m(0,"tui-primitive-spin-button",0),f("leftClick",function(){return i.onPrevMonthClick()})("rightClick",function(){return i.onNextMonthClick()}),W(1),Y(2,"async"),Y(3,"tuiMonth"),v(4,Yl,2,1,"ng-container",1)(5,Gl,2,2,"ng-template",null,2,_e),g()),e&2){let o=ee(6);u("focusable",!1)("leftDisabled",i.prevMonthDisabled)("rightDisabled",i.nextMonthDisabled),p(),he(" ",J(2,6,J(3,8,i.value))," "),p(3),u("ngIf",i.oneYear)("ngIfElse",o)}},dependencies:[Va,oi,ae,rt,ve,Do],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),Ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,at,ja,ri,$a]]}),t})();function Ql(t,n){if(t&1&&E(0,"div",3),t&2){let e=n.$implicit;u("textContent",e)}}function Xl(t,n){if(t&1&&E(0,"div",14),t&2){let e=h().ngIf;Ie("background-color",(e==null?null:e[1])||"")}}function Zl(t,n){if(t&1&&(m(0,"div",13),E(1,"div",14),v(2,Xl,1,2,"div",15),g()),t&2){let e=n.ngIf;p(),Ie("background-color",e==null?null:e[0]),p(),u("ngIf",e.length>1)}}var ql=(t,n,e,i,o)=>[t,n,e,i,o];function Jl(t,n){if(t&1){let e=U();m(0,"div",10),f("click",function(){P(e);let o=h().tuiLet,r=h(4);return w(r.onItemClick(o))})("tuiHoveredChange",function(o){P(e);let r=h().tuiLet,s=h(4);return w(s.onItemHovered(o&&r))})("tuiPressedChange",function(o){P(e);let r=h().tuiLet,s=h(4);return w(s.onItemPressed(o&&r))}),m(1,"div",11),Y(2,"tuiMapper"),W(3),v(4,Zl,3,3,"div",12),Y(5,"tuiMapper"),g()()}if(t&2){let e=h().tuiLet,i=h(4);A("t-cell_interval",i.itemIsInterval(e))("t-cell_today",i.itemIsToday(e))("t-cell_unavailable",i.itemIsUnavailable(e)),L("data-range",i.getItemRange(e))("data-state",i.getItemState(e)),p(),A("t-item_unavailable",i.itemIsUnavailable(e)),L("data-type",eo(2,13,e,i.dayTypeHandler)),p(2),he(" ",e.day," "),p(),u("ngIf",Qo(5,16,Go(22,ql,e,i.toMarkers,i.itemIsToday(e),!!i.getItemRange(e),i.markerHandler)))}}function eu(t,n){if(t&1&&(Oe(0),v(1,Jl,6,28,"div",9),Pe()),t&2){let e=n.tuiLet,i=h(4);p(),u("ngIf",!i.itemIsUnavailable(e)||i.showAdjacent)}}function tu(t,n){if(t&1&&(Oe(0),v(1,eu,2,1,"ng-container",8),Pe()),t&2){let e=n.$implicit,i=h().$implicit,o=h().tuiLet;p(),u("tuiLet",o[i][e])}}function iu(t,n){if(t&1&&(m(0,"div",6),v(1,tu,2,1,"ng-container",7),g()),t&2){let e=n.$implicit,i=h().tuiLet;p(),u("tuiRepeatTimesOf",i[e].length)}}function nu(t,n){if(t&1&&(m(0,"div",4),v(1,iu,2,1,"div",5),g()),t&2){let e=n.tuiLet;p(),u("tuiRepeatTimesOf",e.length)}}var Qa=(()=>{class t{constructor(e,i){this.unorderedWeekDays$=e,this.dayTypeHandler=i,this.pressedItem=null,this.today=de.currentLocal(),this.month=q.currentLocal(),this.disabledItemHandler=ge,this.markerHandler=ei,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new $,this.dayClick=new $,this.toMarkers=(o,r,s,c)=>{if(r||s)return null;let d=c(o);return d.length===0?null:d}}get isSingleDayRange(){return this.value instanceof xt&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(e){let{disabledItemHandler:i,pressedItem:o,hoveredItem:r}=this;return i(e)?Pt.Disabled:o!=null&&o.daySame(e)?Pt.Active:r!=null&&r.daySame(e)?Pt.Hover:null}getItemRange(e){let{value:i,hoveredItem:o}=this;return i?i instanceof de?i.daySame(e)?Ue.Single:null:i instanceof xt?i.from.daySame(e)&&!i.isSingleDay||o!=null&&o.dayAfter(i.from)&&i.from.daySame(e)&&i.isSingleDay||o!=null&&o.daySame(e)&&o.dayBefore(i.from)&&i.isSingleDay?Ue.Start:i.to.daySame(e)&&!i.isSingleDay||o!=null&&o.dayBefore(i.from)&&i.from.daySame(e)&&i.isSingleDay||o!=null&&o.daySame(e)&&o.dayAfter(i.from)&&i.isSingleDay?Ue.End:i.isSingleDay&&i.from.daySame(e)?Ue.Single:null:i.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:i,hoveredItem:o}=this;if(!(i instanceof xt))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(e)&&i.to.dayAfter(e);if(o===null)return!1;let r=xt.sort(i.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){Kt(this.hoveredItem,e,(i,o)=>i.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(l(Wr),l(Br))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,i){e&2&&A("_single",i.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,i){e&1&&(m(0,"div",0),v(1,Ql,1,1,"div",1),Y(2,"async"),Y(3,"tuiOrderWeekDays"),g(),v(4,nu,2,1,"div",2),Y(5,"tuiCalendarSheet")),e&2&&(p(),u("ngForOf",J(2,2,J(3,4,i.unorderedWeekDays$))),p(3),u("tuiLet",eo(5,6,i.month,!0)))},dependencies:[Yt,yt,Pn,ae,ai,On,ve,Wa,Ba,qi],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})(),Xa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Dt,Ji,wn,wt,si,Ua,Ya]]}),t})();function ru(t,n){if(t&1){let e=U();m(0,"tui-scrollbar",2)(1,"tui-primitive-year-picker",3),f("yearClick",function(o){P(e);let r=h();return w(r.onPickerYearClick(o))}),g()()}if(t&2){let e=h();p(),u("initialItem",e.month)("max",e.computedMax)("min",e.computedMin)("value",e.value)}}function au(t,n){if(t&1){let e=U();m(0,"tui-primitive-year-month-pagination",4),f("valueChange",function(o){P(e);let r=h();return w(r.onPaginationValueChange(o))})("yearClick",function(){P(e);let o=h();return w(o.onPaginationYearClick())}),g(),m(1,"tui-primitive-calendar",5),f("dayClick",function(o){P(e);let r=h();return w(r.onDayClick(o))})("hoveredItemChange",function(o){P(e);let r=h();return w(r.onHoveredItemChange(o))}),Y(2,"tuiMapper"),g()}if(t&2){let e=h();u("max",e.computedMaxViewedMonth)("min",e.computedMinViewedMonth)("value",e.month),p(),u("disabledItemHandler",Ko(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 Nn=(()=>{class t{constructor(){this.day=null,this.view="month",this.month=q.currentLocal(),this.disabledItemHandler=ge,this.min=Se,this.max=Ve,this.minViewedMonth=Se,this.maxViewedMonth=Ve,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=ei,this.dayClick=new $,this.monthChange=new $,this.hoveredItemChange=new $,this.disabledItemHandlerMapper=(e,i,o)=>r=>r.dayBefore(i)||r.dayAfter(o)||e(r)}set initialView(e){this.view=e}set value(e){this.day=e,this.showAdjacent&&e instanceof de&&(this.month=e)}get value(){return this.day}get isInYearView(){return this.view==="year"}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get computedMinViewedMonth(){var e;let i=this.computedMin,o=(e=this.minViewedMonth)!==null&&e!==void 0?e:Se;return o.monthSameOrAfter(i)?o:i}get computedMaxViewedMonth(){var e;let i=this.computedMax,o=(e=this.maxViewedMonth)!==null&&e!==void 0?e:Ve;return o.monthSameOrBefore(i)?o:i}onPaginationYearClick(){this.view="year"}onPickerYearClick({year:e}){this.view="month",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){Kt(this.hoveredItem,e,(i,o)=>i.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-calendar"]],inputs:{initialView:"initialView",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,i){if(e&1&&v(0,ru,2,4,"tui-scrollbar",0)(1,au,3,14,"ng-template",null,1,_e),e&2){let o=ee(2);u("ngIf",i.isInYearView)("ngIfElse",o)}},dependencies:[It,Na,Ga,Qa,ae,qi],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})(),zn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Ka,Xa,za,di,Ji]]}),t})();var Za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})();var su=["wrapper"];function lu(t,n){if(t&1&&(m(0,"div",8),W(1),g()),t&2){let e=n.polymorpheusOutlet;p(),he(" ",e," ")}}var uu=(t,n)=>({$implicit:t,close:n});function cu(t,n){if(t&1){let e=U();m(0,"div",5,6),f("keydown",function(o){P(e);let r=h(2);return w(r.onKeydown(o))}),v(2,lu,2,1,"div",7),g(),E(3,"div")}if(t&2){h();let e=ee(1),i=h();p(2),u("polymorpheusOutlet",i.content)("polymorpheusOutletContext",Yo(2,uu,e,i.close))}}function du(t,n){if(t&1){let e=U();m(0,"div",1,2),f("tuiActiveZoneChange",function(o){P(e);let r=h();return w(r.onActiveZone(o))})("tuiObscured",function(o){P(e);let r=h();return w(r.onHostObscured(o))}),X(2),v(3,cu,4,5,"ng-template",3,4,_e),g()}if(t&2){let e=n.tuiLet,i=ee(4),o=h();u("tuiDropdown",i)("tuiDropdownManual",e&&o.canOpen)("tuiDropdownSided",o.sided)("tuiObscuredEnabled",e),p(3),u("polymorpheus",o.context)}}var pu=["*"],qa=(()=>{class t extends mt{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["","tuiAccessorProxy",""]],features:[b([{provide:mt,multi:!0,deps:[[new xe,new gi,t],t],useFactory:(n,e)=>n||e}]),x]}),t})(),Ja=new Ke("[TUI_HOSTED_DROPDOWN_COMPONENT]"),mu=(()=>{class t{constructor(e,i,o,r){r==null||r.tuiDropdownOpenChange.pipe(lt(s=>s&&r.dropdown===o&&!i.focused),ne(e)).subscribe(()=>{var s;(s=i.nativeFocusableElement)===null||s===void 0||s.focus(),i.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(Ja),l(gt,2),l(Ti,8))},t.\u0275dir=M({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[b([B])]}),t})(),hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function gu(t){var n;return"key"in t&&t.key.toLowerCase()==="escape"&&this.canOpen&&this.open&&!(!((n=this.dropdown)===null||n===void 0)&&n.nextElementSibling)}var mi=(()=>{class t{constructor(e,i){this.hover$=e,this.el=i,this.openChange$=new At(!1),this.hostHover$=Xn([ke(this.el.nativeElement,"mouseover").pipe(z(o=>this.computedHost.contains(Bi(o))),vt(o=>{var r,s;return je(o).pipe(ut((o?(r=this.hover$)===null||r===void 0?void 0:r.showDelay:(s=this.hover$)===null||s===void 0?void 0:s.hideDelay)||0))})),this.hover$||Lo]).pipe(z(([o,r])=>o&&r)),this.sided=!1,this.canOpen=!0,this.open$=De(this.openChange$,this.hostHover$).pipe($t(1),Ge(),ki()),this.focusedChange=new $,this.openChange=this.openChange$,this.close=()=>this.updateOpen(!1)}set open(e){this.openChange.next(e)}get open(){return this.openChange.value}get host(){var e;return((e=this.dropdownHost)===null||e===void 0?void 0:e.nativeElement)||this.el.nativeElement}get computedHost(){var e;return((e=this.dropdownHost)===null||e===void 0?void 0:e.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var e,i;return(i=(e=this.dropdownDirective)===null||e===void 0?void 0:e.dropdownBoxRef)===null||i===void 0?void 0:i.location.nativeElement}get nativeFocusableElement(){return cr(this.host)?this.host:Qt({initial:this.host,root:this.el.nativeElement})}get focused(){return pt(this.host)||this.open&&!!this.wrapper&&pt(this.wrapper.nativeElement)}onFocusInOut(){this.el.nativeElement.classList.toggle("_hosted_dropdown_focused",this.focused)}onFocusIn(e){this.computedHost.contains(e)||this.updateOpen(!1)}onClick(e){var i;!this.hostEditable&&this.computedHost.contains(e)&&!(!((i=this.hover$)===null||i===void 0)&&i.hovered)&&this.updateOpen(!this.open)}onKeyDownEsc(e){e.preventDefault(),this.closeDropdown()}onArrow(e,i){this.focusDropdown(e,i)}onKeydown({key:e,target:i,defaultPrevented:o}){!o&&zr(e)&&this.hostEditable&&ji(i)&&!Ui(i)&&this.focusHost()}onActiveZone(e){this.updateFocused(e),e||this.updateOpen(!1)}onHostObscured(e){e&&this.closeDropdown()}updateOpen(e){(!e||this.canOpen)&&(this.open=e)}get hostEditable(){return Ui(this.computedHost)}focusDropdown(e,i){let o=this.nativeFocusableElement;if(!o||!ji(o)||!Mt(e.target)||!o.contains(e.target))return;if(!this.wrapper||!this.open||!this.dropdown||!ji(this.wrapper.nativeElement.nextElementSibling)){this.updateOpen(!0),Ui(o)||e.preventDefault();return}let r=i?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,s=Qt({initial:r,root:this.wrapper.nativeElement,previous:!i});s&&(s.focus(),e.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){let e=this.nativeFocusableElement;e&&e.focus({preventScroll:!0})}updateFocused(e){this.focusedChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(l(vo,10),l(F))},t.\u0275cmp=S({type:t,selectors:[["tui-hosted-dropdown"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,hu,5,F),e&2){let r;V(r=j())&&(i.dropdownHost=r.first)}},viewQuery:function(e,i){if(e&1&&(K(su,5,F),K(gt,5),K(ze,5)),e&2){let o;V(o=j())&&(i.wrapper=o.first),V(o=j())&&(i.dropdownDirective=o.first),V(o=j())&&(i.activeZone=o.first)}},hostBindings:function(e,i){e&1&&f("focusin.capture.silent",function(){return i.onFocusInOut()})("focusout.capture.silent",function(){return i.onFocusInOut()})("focusin",function(r){return i.onFocusIn(r.target)})("click",function(r){return i.onClick(r.target)})("keydown.silent.capture",function(r){return i.onKeyDownEsc(r)},!1,fi)("keydown.arrowDown",function(r){return i.onArrow(r,!0)})("keydown.arrowUp",function(r){return i.onArrow(r,!1)})},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[b([Ee(t),{provide:qa,deps:[[new xe,new Wt,mt]],useFactory:n=>n==null?void 0:n[0]},{provide:Ja,useExisting:t}])],ngContentSelectors:pu,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",""],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(e,i){if(e&1&&(re(),v(0,du,5,5,"div",0),Y(1,"async")),e&2){let o;u("tuiLet",(o=J(1,1,i.open$))!==null&&o!==void 0?o:i.openChange.value)}},dependencies:[yt,qa,mu,gt,fa,_a,va,ze,oa,Gi,te,ve],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%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}"],changeDetection:0}),ye([Qr(gu)],t.prototype,"onKeyDownEsc",null),t})(),Vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,se,Dt,ra,qt,En]]}),t})();function fu(t,n){if(t&1&&E(0,"tui-svg",2),t&2){let e=n.polymorpheusOutlet,i=h();A("t-mark_on",!i.empty),u("src",e)}}var _u=t=>({$implicit:t}),vu=["*"],Cu={size:"m",appearances:{unchecked:ht.Outline,checked:ht.Primary,indeterminate:ht.Primary},icons:{checked:({$implicit:t})=>t==="m"?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>t==="m"?"tuiIconMinus":"tuiIconMinusLarge"}},bi=Z(Cu);var is=(()=>{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(bi))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,i){e&2&&L("data-size",i.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:[k.None,"value","valueSetter"]},ngContentSelectors:vu,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,i){e&1&&(re(),m(0,"div",0),v(1,fu,1,3,"tui-svg",1),X(2),g()),e&2&&(u("active",i.pressed)("appearance",i.appearance)("disabled",i.disabled)("focus",i.focused)("hover",i.hovered)("invalid",i.invalid),p(),u("polymorpheusOutlet",i.icon)("polymorpheusOutletContext",ce(8,_u,i.size)))},dependencies:[Ce,$e,te],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})(),ns=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[Te,We,se]]}),t})();function Tu(t,n){if(t&1&&E(0,"tui-svg",3),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var jn=(()=>{class t extends Et{constructor(e,i,o,r){super(o),this.isMobile=r,this.mode=null,this.describeId="",i.pipe(ne(e)).subscribe(s=>{this.mode=s})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(e){var i;this.isMobile&&(e.preventDefault(),e.stopPropagation()),(i=this.driver$)===null||i===void 0||i.toggle()}}return t.\u0275fac=function(e){return new(e||t)(l(B,2),l(nt),l(Bt),l(Qi))},t.\u0275cmp=S({type:t,selectors:[["tui-tooltip"]],viewQuery:function(e,i){if(e&1&&K(pi,5),e&2){let o;V(o=j())&&(i.driver$=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&f("mousedown",function(r){return i.stopOnMobile(r)}),e&2&&L("data-appearance",i.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[b([B,ot]),x],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,i){if(e&1&&(m(0,"span",0,1),Y(2,"async"),v(3,Tu,1,1,"tui-svg",2),g()),e&2){let o=ee(1);u("hover",J(2,9,o)||null)("tuiHint",i.content)("tuiHintAppearance",i.computedAppearance)("tuiHintContext",i.context)("tuiHintDescribe",i.describeId)("tuiHintDirection",i.direction)("tuiHintHideDelay",i.hideDelay)("tuiHintShowDelay",i.showDelay),p(3),u("polymorpheusOutlet",i.icon)}},dependencies:[Ce,$e,Fn,Ma,pi,ba,Ta,te,ve],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})(),Bn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,We,Te,An,se]]}),t})();var bu=["pre"],yu=["focusableElement"];function Du(t,n){t&1&&Rt(0)}function Ou(t,n){t&1&&Rt(0)}function Pu(t,n){t&1&&(m(0,"div",17),X(1,2),g())}function wu(t,n){if(t&1&&E(0,"tui-svg",20),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var Oo=t=>({$implicit:t});function xu(t,n){if(t&1&&(m(0,"div",18),v(1,wu,1,1,"tui-svg",19),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconLeftContent)("polymorpheusOutletContext",ce(2,Oo,e.size))}}function Iu(t,n){if(t&1&&(m(0,"label",21),X(1,3),g()),t&2){let e=h();A("t-placeholder_raised",e.placeholderRaised),u("for",e.computedId)}}function ku(t,n){if(t&1&&E(0,"tui-svg",24),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Eu(t,n){if(t&1&&(m(0,"div",22),v(1,ku,1,1,"tui-svg",23),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.controller.customContent)}}function Su(t,n){if(t&1&&E(0,"tui-svg",27),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Fu(t,n){if(t&1){let e=U();m(0,"span",25),f("click.stop",function(){P(e);let o=h();return w(o.clear())}),v(1,Su,1,1,"tui-svg",26),g()}if(t&2){let e=h();p(),u("polymorpheusOutlet",e.iconCleaner||e.controller.options.iconCleaner)("polymorpheusOutletContext",ce(2,Oo,e.size))}}function Au(t,n){if(t&1&&E(0,"tui-tooltip",28),t&2){let e=h();u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.computedId)}}function Hu(t,n){if(t&1&&E(0,"tui-svg",20),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Ru(t,n){if(t&1&&(m(0,"div",29),v(1,Hu,1,1,"tui-svg",19),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconContent)("polymorpheusOutletContext",ce(2,Oo,e.size))}}var Lu=[[["input"]],[["select"]],[["tuiContent"]],"*"],Nu=["input","select","tuiContent","*"];var zu=(()=>{class t{constructor(e,i){this.textfield=e,this.fontsReady$=i,this.prefix$=new At(""),this.pre$=De(this.fontsReady$,this.prefix$).pipe(ut(0),lt(()=>{var o;return!!(!((o=this.pre)===null||o===void 0)&&o.nativeElement.isConnected)}),z(()=>{var o;return((o=this.pre)===null||o===void 0?void 0:o.nativeElement.offsetWidth)||0}),Ge())}get isContextTable(){return this.textfield.appearance===ht.Table}get value(){return this.textfield.value}get filler(){let{focused:e,placeholder:i,exampleText:o,value:r,textfield:s}=this;return i&&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(Mr),l(br))},t.\u0275cmp=S({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(e,i){if(e&1&&K(bu,7,F),e&2){let o;V(o=j())&&(i.pre=o.first)}},hostVars:4,hostBindings:function(e,i){e&1&&f("animationstart",function(){return i.ngDoCheck()}),e&2&&A("_table",i.isContextTable)("_filler",i.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,i){e&1&&E(0,"span",0,1)(2,"span",2)(3,"span",3)(4,"span",4),e&2&&(u("textContent",i.prefix),p(2),u("textContent",i.value),p(),u("textContent",i.filler),p(),u("textContent",i.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})(),Vu={s:1.25,m:1.75,l:2.25},yi=(()=>{class t extends Xi{constructor(e,i,o,r){super(),this.controller=e,this.hintOptions=i,this.options=o,this.el=r,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 $,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:e}=this.focusableElement;return e.previousElementSibling||e}get focused(){return pt(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 e;return!!(!((e=this.content)===null||e===void 0)&&e.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var e;let o=(((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!o}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 Nr(!!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 e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.id)||""}onFocused(e){this.updateFocused(e)}getIndent$(e){return xi(e,"scroll").pipe(z(()=>-1*Math.max(e.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(e){let{nativeFocusableElement:i}=this;!i||e.target===i||(e.preventDefault(),i.focus())}onModelChange(e){this.updateValue(e)}onAutofilled(e){this.updateAutofilled(e)}detectRetargetFromLabel(e){$i(e)&&e.stopImmediatePropagation()}get iconPaddingLeft(){return Vu[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(e){this.autofilled!==e&&(this.autofilled=e)}updateValue(e){this.value=e,this.valueChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(l(Mi),l(Et,8),l(To),l(F))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,te,5),e&2){let r;V(r=j())&&(i.content=r)}},viewQuery:function(e,i){if(e&1&&K(yu,5),e&2){let o;V(o=j())&&(i.focusableElement=o.first)}},hostVars:15,hostBindings:function(e,i){e&1&&f("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)}),e&2&&(L("data-size",i.size),Ie("--border-start",i.borderStart,"rem")("--border-end",i.borderEnd,"rem"),A("_autofilled",i.autofilled)("_label-outside",i.controller.labelOutside)("_readonly",i.readOnly)("_invalid",i.computedInvalid)("_hidden",i.inputHidden))},inputs:{editable:"editable",textfieldFiller:[k.None,"filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:[k.None,"prefix","textfieldPrefix"],textfieldPostfix:[k.None,"postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[b([Ee(t),Ln]),x],ngContentSelectors:Nu,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(e,i){if(e&1&&(re(Lu),v(0,Du,1,0,"ng-container",0),Y(1,"async"),v(2,Ou,1,0,"ng-container",0),Y(3,"async"),m(4,"div",1),f("click.prevent.silent",function(r){return i.detectRetargetFromLabel(r)})("mousedown",function(r){return i.onMouseDown(r)})("tuiAutofilledChange",function(r){return i.onAutofilled(r)}),Y(5,"async"),X(6),X(7,1),m(8,"input",2,3),f("ngModelChange",function(r){return i.onModelChange(r)}),g(),v(10,Pu,2,0,"div",4),m(11,"div",5),v(12,xu,2,4,"div",6),m(13,"div",7),v(14,Iu,2,3,"label",8),m(15,"div",9)(16,"tui-value-decoration",10,11),Y(18,"async"),g()()(),m(19,"div",12),v(20,Eu,2,1,"div",13)(21,Fu,2,4,"span",14)(22,Au,1,2,"tui-tooltip",15)(23,Ru,2,4,"div",16),g()()()),e&2){let o=ee(9),r=ee(17);u("ngIf",J(1,29,i.content==null?null:i.content.changes)),p(2),u("ngIf",J(3,31,i.hintOptions==null?null:i.hintOptions.change$)),p(2),Ie("--text-indent",J(5,33,r.pre$),"px"),u("active",i.pseudoActive)("appearance",i.appearance)("disabled",i.disabled)("focus",i.computedFocused)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(4),u("disabled",i.computedDisabled)("id",i.id)("ngModel",i.value)("readOnly",i.readOnly||!i.editable)("tuiFocusable",i.computedFocusable),L("aria-invalid",i.computedInvalid)("name",i.name),p(2),u("ngIf",i.inputHidden),p(2),u("ngIf",i.iconLeftContent),p(2),u("ngIf",i.hasPlaceholder),p(2),Ie("text-indent",J(18,35,i.getIndent$(o)),"px"),A("t-has-value",i.value),p(4),u("ngIf",i.hasCustomContent),p(),u("ngIf",i.hasCleaner),p(),u("ngIf",i.showHint),p(),u("ngIf",i.iconContent)}},dependencies:[Ce,zu,jn,ae,$e,ia,ya,qe,Je,Re,rt,te,ve],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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-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}),ye([Ne],t.prototype,"getIndent$",null),t})(),os=(()=>{class t extends on{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(yi))},t.\u0275dir=M({type:t,selectors:[["tui-primitive-textfield"]],features:[b([dn(t)]),x]}),t})();var rs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,et,se,Da,at,We,Te,Bn,na]]}),t})();function as(t){if(t==="")return"";let n=0;for(let r=0;rs&&n(r)),i=t[e-1]||t[0],o=t[e]||t[t.length-1];return[i,o]}function cs(t,n){let[[e,i],[o,r]]=us(n,([d,_])=>t<=d),s=(t-e)/(o-e),c=(r-i)*s+i;return rr(c,ls)}function ds(t,n){let[[e,i],[o,r]]=us(n,([c,d])=>t<=d),s=(t-i)/(r-i)||0;return(o-e)*s+e}function ps(t,n){return t?hr(t).pipe(z(e=>n?n.fromControlValue(e):e)):je(null)}var ju=new Ke("[TUI_CALENDAR_DATE_STREAM]");function ms(t){return{provide:ju,deps:[[new xe,new Wt,we],[new xe,t]],useFactory:ps}}var q_=Z({[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#-######"}),Po=new Ke("[TUI_DATE_VALUE_TRANSFORMER]"),J_=new Ke("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),ev=new Ke("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),tv=R(ie("prompt")),iv=R(ie("cancel")),nv=R(ie("done")),ov=R(ie("more")),rv=R(ie("hide")),av=R(ie("showAll")),sv=R(ie("otherDate")),lv=R(ie("mobileCalendarTexts")),uv=R(ie("range")),cv=R(ie("countTexts")),dv=R(ie("time")),hs=R(ie("dateTexts")),pv=R(ie("digitalInformationUnits")),mv=R(ie("copyTexts")),hv=R(ie("passwordTexts")),gv=R(ie("shortCalendarMonths")),fv=R(ie("fileTexts")),_v=R(ie("pagination")),vv=R(ie("inputFileTexts")),Cv=R(ie("multiSelectTexts")),Tv=R(ie("countries")),Bu={icon:({$implicit:t})=>t==="s"?"tuiIconCalendar":"tuiIconCalendarLarge",min:Se,max:Ve,nativePicker:!1},gs=Z(Bu);var Uu={stringify:er,identityMatcher:tr,disabledItemHandler:ge},Mv=Z(Uu);var fs=new Ke("[TUI_MOBILE_CALENDAR]"),bv=new Ke("[TUI_MONTH_FORMATTER]"),yv=Z(24),Dv=Z({});var ys=t=>t.querySelector("input,textarea")||t,_t={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},wo=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let n=this.past.pop();n&&this.now&&(this.future.push(this.now),this.updateElement(n,"historyUndo"))}redo(){let n=this.future.pop();n&&this.now&&(this.past.push(this.now),this.updateElement(n,"historyRedo"))}updateHistory(n){if(!this.now){this.now=n;return}let e=this.now.value!==n.value,i=this.now.selection.some((o,r)=>o!==n.selection[r]);!e&&!i||(e&&(this.past.push(this.now),this.future=[]),this.now=n)}updateElement(n,e){this.now=n,this.updateElementState(n,{inputType:e,data:null})}};function $u(t,...n){return n.every(({value:e})=>e===t.value)}function Wu(t,...n){return n.every(({value:e,selection:i})=>e===t.value&&i[0]===t.selection[0]&&i[1]===t.selection[1])}function Yu({value:t,selection:n},e,i){let[o,r]=n,s=typeof i=="function"?i({value:t,selection:n}):i;return{value:t,selection:s==="replace"?[o,o+e.length]:[o,r]}}function Gn(t){return typeof t=="string"}function _s(t,n,e,i){let o="";for(let r=n.length;r{let o=n[i];return Gn(o)?e===o:e.match(o)}):n.test(t)}function Gu(t,n,e){let i=null,o=null,r=Array.from(t.value).reduce((c,d,_)=>{let y=_s(n,c,d,e),D=c+y,I=n[D.length];return Gn(I)?D+I:d.match(I)?(i===null&&_>=t.selection[0]&&(i=D.length),o===null&&_>=t.selection[1]&&(o=D.length),D+d):D},""),s=_s(n,r,"",e);return{value:Ds(r+s,n)?r+s:r,selection:[i!=null?i:r.length,o!=null?o:r.length]}}function Ku({value:t,selection:n},e){let[i,o]=n,r=i,s=o;return{value:Array.from(t).reduce((d,_,y)=>{let D=d+_;return i===y&&(r=d.length),o===y&&(s=d.length),D.match(e)?D:d},""),selection:[r,s]}}function $n(t,n,e=null){if(Ds(t.value,n))return t;let{value:i,selection:o}=Array.isArray(n)?Gu(t,n,e):Ku(t,n);return{selection:o,value:Array.isArray(n)?i.slice(0,n.length):i}}function vs(t,n){if(!Array.isArray(n))return t;let[e,i]=t.selection,o=[],r=Array.from(t.value).reduce((s,c,d)=>{let _=n[d];return d===e&&o.push(s.length),d===i&&o.push(s.length),Gn(_)&&_===c?s:s+c},"");return o.length<2&&o.push(...new Array(2-o.length).fill(r.length)),{value:r,selection:[o[0],o[1]]}}var Oi=class{constructor(n,e){this.initialElementState=n,this.maskOptions=e,this.value="",this.selection=[0,0];let{value:i,selection:o}=$n(n,this.getMaskExpression(n));this.value=i,this.selection=o}addCharacters([n,e],i){let{value:o}=this,r=this.getMaskExpression({value:o.slice(0,n)+i+o.slice(e),selection:[n+i.length,n+i.length]}),s={value:o,selection:[n,e]},c=vs(s,r),[d,_]=Yu(c,i,this.maskOptions.overwriteMode).selection,y=c.value.slice(0,d)+i,D=y.length,I=$n({value:y+c.value.slice(_),selection:[D,D]},r,s);if(o.slice(0,d)===$n({value:y,selection:[D,D]},r,s).value||Wu(this,I))throw new Error("Invalid mask value");this.value=I.value,this.selection=I.selection}deleteCharacters([n,e]){if(n===e||!e)return;let{value:i}=this,o=this.getMaskExpression({value:i.slice(0,n)+i.slice(e),selection:[n,n]}),r={value:i,selection:[n,e]},s=vs(r,o),[c,d]=s.selection,_=s.value.slice(0,c)+s.value.slice(d),y=$n({value:_,selection:[c,c]},o,r);this.value=y.value,this.selection=y.selection}getMaskExpression(n){let{mask:e}=this.maskOptions;return typeof e=="function"?e(n):e}},xo=class{constructor(n){this.element=n,this.listeners=[]}listen(n,e,i){let o=e;this.element.addEventListener(n,o,i),this.listeners.push(()=>this.element.removeEventListener(n,o))}destroy(){this.listeners.forEach(n=>n())}};function Di(t,n,e){return t.ctrlKey===!!(n&1)&&t.altKey===!!(n&2)&&t.shiftKey===!!(n&4)&&t.metaKey===!!(n&8)&&t.keyCode===e}function Qu(t){return Di(t,1,89)||Di(t,5,90)||Di(t,12,90)}function Xu(t){return Di(t,1,90)||Di(t,8,90)}function Zu(t){return"onbeforeinput"in t}function qu({key:t,ctrlKey:n,metaKey:e,altKey:i}){let o=n||e||i,r=/^.$/u.test(t);return!o&&t!=="Backspace"&&r}function Ju({value:t,selection:n},e){let[i,o]=n;if(i!==o)return[i,o];let r=e?t.slice(i).indexOf("\n")+1||t.length:t.slice(0,o).lastIndexOf("\n")+1;return[e?i:r,e?r:o]}function Cs({value:t,selection:n},e){let[i,o]=n;return i!==o?[i,o]:(e?[i,o+1]:[i-1,o]).map(s=>Math.min(Math.max(s,0),t.length))}var Ts=/\s+$/g,Ms=/^\s+/g,bs=/\s/;function ec({value:t,selection:n},e){let[i,o]=n;if(i!==o)return[i,o];if(e){let d=t.slice(i),[_]=d.match(Ms)||[""],y=d.replace(Ms,"").search(bs);return[i,y!==-1?i+_.length+y:t.length]}let r=t.slice(0,o),[s]=r.match(Ts)||[""],c=r.replace(Ts,"").split("").reverse().findIndex(d=>d.match(bs));return[c!==-1?o-s.length-c:0,o]}function Wn(t=[]){return(n,...e)=>t.reduce((i,o)=>Object.assign(Object.assign({},i),o(i,...e)),n)}function Io(t,n){let e=Object.assign(Object.assign({},_t),n),i=Wn(e.preprocessors),o=Wn(e.postprocessors),r=typeof t=="string"?{value:t,selection:[0,0]}:t,{elementState:s}=i({elementState:r,data:""},"validation"),c=new Oi(s,e),{value:d,selection:_}=o(c,r);return typeof t=="string"?d:{value:d,selection:_}}var Yn=class extends wo{constructor(n,e){super(),this.element=n,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new xo(this.element),this.options=Object.assign(Object.assign({},_t),this.maskitoOptions),this.preprocessor=Wn(this.options.preprocessors),this.postprocessor=Wn(this.options.postprocessors),this.teardowns=this.options.plugins.map(i=>i(this.element,this.options)),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",i=>{if(Qu(i))return i.preventDefault(),this.redo();if(Xu(i))return i.preventDefault(),this.undo()}),Zu(n)?this.eventListener.listen("beforeinput",i=>{let o=i.inputType.includes("Forward");switch(this.updateHistory(this.elementState),i.inputType){case"historyUndo":return i.preventDefault(),this.undo();case"historyRedo":return i.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:i,isForward:o,selection:Cs(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:i,isForward:o,selection:ec(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:i,isForward:o,selection:Ju(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertLineBreak":return this.handleEnter(i);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(i,i.data||"")}}):(this.eventListener.listen("keydown",i=>this.handleKeydown(i)),this.eventListener.listen("paste",i=>{var o;return this.handleInsert(i,((o=i.clipboardData)===null||o===void 0?void 0:o.getData("text/plain"))||"")})),this.eventListener.listen("input",({inputType:i})=>{i!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:n,selectionStart:e,selectionEnd:i}=this.element;return{value:n,selection:[e||0,i||0]}}get maxLength(){let{maxLength:n}=this.element;return n===-1?1/0:n}destroy(){this.eventListener.destroy(),this.teardowns.forEach(n=>n==null?void 0:n())}updateElementState({value:n,selection:e},i={inputType:"insertText",data:null}){let o=this.elementState.value;this.updateValue(n),this.updateSelectionRange(e),o!==n&&this.dispatchInputEvent(i)}updateSelectionRange([n,e]){var i,o;(this.element.selectionStart!==n||this.element.selectionEnd!==e)&&((o=(i=this.element).setSelectionRange)===null||o===void 0||o.call(i,n,e))}updateValue(n){this.element.value=n}ensureValueFitsMask(){this.updateElementState(Io(this.elementState,this.options))}dispatchInputEvent(n={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({},n),{bubbles:!0,cancelable:!1})))}handleKeydown(n){let e=n.key,i=e==="Delete";switch(e){case"Backspace":case"Delete":return this.handleDelete({event:n,isForward:i,selection:Cs(this.elementState,i)});case"Enter":return this.handleEnter(n)}qu(n)&&this.handleInsert(n,e)}handleDelete({event:n,selection:e,isForward:i,force:o=!1}){let r={value:this.elementState.value,selection:e},[s,c]=r.selection,{elementState:d}=this.preprocessor({elementState:r,data:""},i?"deleteForward":"deleteBackward"),_=new Oi(d,this.options),[y,D]=d.selection;_.deleteCharacters([y,D]);let I=this.postprocessor(_,r);if(r.value.slice(0,s)+r.value.slice(c)===I.value&&!o)return;if(n.preventDefault(),$u(r,d,_,I))return this.updateSelectionRange(i?[D,D]:[y,y]);let G=i?"deleteContentForward":"deleteContentBackward";this.updateElementState(I,{inputType:"inputType"in n?n.inputType:G,data:null}),this.updateHistory(I)}handleInsert(n,e){let i=this.elementState,{elementState:o,data:r=e}=this.preprocessor({data:e,elementState:i},"insert"),s=new Oi(o,this.options);try{s.addCharacters(o.selection,r)}catch{return n.preventDefault()}let[c,d]=o.selection,_=o.value.slice(0,c)+e+o.value.slice(d),y=this.postprocessor(s,i);if(y.value.length>this.maxLength)return n.preventDefault();_!==y.value&&(n.preventDefault(),this.updateElementState(y,{data:e,inputType:"inputType"in n?n.inputType:"insertText"}),this.updateHistory(y))}handleEnter(n){this.isTextArea&&this.handleInsert(n,"\n")}};var Os=ga({limitWidth:"fixed",align:"right"}),Ps={provide:pn,deps:[[new xe,new Wt,Ni]],useFactory:Ao};var ws=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=M({type:t,selectors:[["","tuiValueAccessor",""]],features:[b([Ps])]}),t})(),xs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();var tc=["focusableElement"],Kn=(()=>{class t extends Zt{constructor(e,i,o){super(e,o),this.options=i,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return Be(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(we,10),l(bi),l(me))},t.\u0275cmp=S({type:t,selectors:[["tui-checkbox"]],viewQuery:function(e,i){if(e&1&&K(tc,5),e&2){let o;V(o=j())&&(i.focusableElement=o.first)}},hostVars:1,hostBindings:function(e,i){e&2&&L("data-size",i.size)},inputs:{size:"size"},features:[b([Ee(t),tt(t)]),x],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,i){e&1&&(m(0,"tui-primitive-checkbox",0)(1,"input",1,2),He("tuiCheckedChange",function(r){return Ae(i.value,r)||(i.value=r),r}),f("tuiFocusedChange",function(r){return i.onFocused(r)})("tuiFocusVisibleChange",function(r){return i.onFocusVisible(r)}),g()()),e&2&&(u("disabled",i.disabled)("focused",i.computedFocusVisible)("hovered",i.pseudoHover)("invalid",i.computedInvalid)("pressed",i.pseudoActive)("size",i.size)("value",i.value),p(),u("disabled",i.disabled)("id",i.id)("tuiFocusable",i.computedFocusable),Fe("tuiChecked",i.value))},dependencies:[is,Cn,rt,yn,Mn],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})(),Is=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Tn,at,Dn,bn,ns]]}),t})();var nc=["*"],ks=(()=>{class t extends Zt{constructor(e,i,o,r){super(e,i),this.mode$=o,this.options=r,this.size=this.options.size}get focused(){return Be(this.nativeFocusableElement)}get nativeFocusableElement(){var e,i;return(i=(e=this.checkbox)===null||e===void 0?void 0:e.nativeFocusableElement)!==null&&i!==void 0?i:null}onFocused(e){this.updateFocused(e)}onModelChange(e){this.value=e}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(nt),l(bi))},t.\u0275cmp=S({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(e,i){if(e&1&&K(Kn,5),e&2){let o;V(o=j())&&(i.checkbox=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&f("$.data-mode.attr",function(){return i.mode$}),e&2&&L("data-size",i.size)},inputs:{size:"size"},features:[b([Ee(t),tt(t),ot]),x],ngContentSelectors:nc,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,i){e&1&&(re(),m(0,"label",0)(1,"tui-checkbox",1),He("ngModelChange",function(r){return Ae(i.value,r)||(i.value=r),r}),f("focusedChange",function(r){return i.onFocused(r)}),g(),m(2,"div",2),X(3),g()()),e&2&&(p(),u("disabled",i.computedDisabled)("focusable",i.focusable)("nativeId",i.nativeId)("pseudoActive",i.pseudoActive)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("pseudoInvalid",i.computedInvalid)("readOnly",i.readOnly)("size",i.size),Fe("ngModel",i.value),p(),A("t-content_disabled",i.computedDisabled))},dependencies:[Kn,Je,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})(),Es=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,et,Is]]}),t})();var oc=new Date("0001-01-01"),rc=new Date("9999-12-31");var ac="\u2013",sc="\u2014",lc="-",uc="\u2212",cc=[lc,ac,sc,uc];var dc=[":","."];function pc(t,n,e){let i=Math.min(Number(e),Math.max(Number(n),Number(t)));return t instanceof Date?new Date(i):i}var Ss=t=>{var n,e,i;return{day:((n=t.match(/d/g))===null||n===void 0?void 0:n.length)||0,month:((e=t.match(/m/g))===null||e===void 0?void 0:e.length)||0,year:((i=t.match(/y/g))===null||i===void 0?void 0:i.length)||0}};function mc(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 hc(t,n){return t.length!e.match(/^0+$/))}function Fs(t,n,e){let i=n.replace(/\W/g,"").length;return t.replace(e,"").match(new RegExp("(\\D*\\d[^\\d\\s]*){1,".concat(i,"}"),"g"))||[]}function As(t){return t.reduce((n,[e,i])=>Object.assign(Object.assign({},n),{[e]:i}),{})}function Hs(t,n){let e=n.replace(/[^dmy]/g,""),i=t.replace(/\D+/g,""),o={day:i.slice(e.indexOf("d"),e.lastIndexOf("d")+1),month:i.slice(e.indexOf("m"),e.lastIndexOf("m")+1),year:i.slice(e.indexOf("y"),e.lastIndexOf("y")+1)};return As(Object.entries(o).filter(([r,s])=>!!s).sort(([r],[s])=>n.toLowerCase().indexOf(r[0])>n.toLowerCase().indexOf(s[0])?1:-1))}function gc(t,n){var e,i,o,r,s,c,d;let _=((e=t.year)===null||e===void 0?void 0:e.length)===2?"20".concat(t.year):t.year,y=new Date(Number(_!=null?_:"0"),Number((i=t.month)!==null&&i!==void 0?i:"1")-1,Number((o=t.day)!==null&&o!==void 0?o:"1"),Number((r=n==null?void 0:n.hours)!==null&&r!==void 0?r:"0"),Number((s=n==null?void 0:n.minutes)!==null&&s!==void 0?s:"0"),Number((c=n==null?void 0:n.seconds)!==null&&c!==void 0?c:"0"),Number((d=n==null?void 0:n.milliseconds)!==null&&d!==void 0?d:"0"));return y.setFullYear(Number(_!=null?_:"0")),y}var wi=", ";function Qn({day:t,month:n,year:e,hours:i,minutes:o,seconds:r,milliseconds:s},c,d){var _;let y=((_=c.match(/y/g))===null||_===void 0?void 0:_.length)===2?e==null?void 0:e.slice(-2):e;return(c+(d?wi+d:"")).replace(/d+/g,t!=null?t:"").replace(/m+/g,n!=null?n:"").replace(/y+/g,y!=null?y:"").replace(/H+/g,i!=null?i:"").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 ko(t,n,e=0){return Number(t.padEnd(n.length,"0"))<=Number(n)?{validatedSegmentValue:t,prefixedZeroesCount:e}:t.endsWith("0")?ko("0".concat(t.slice(0,n.length-1)),n,e+1):ko("".concat(t.slice(0,n.length-1),"0"),n,e)}var fc={day:31,month:12,year:9999};function _c({dateString:t,dateModeTemplate:n,offset:e,selection:[i,o]}){let r=Hs(t,n),s=Object.entries(r),c={},d=0;for(let[D,I]of s){let O=Qn(c,n),G=fc[D],Q=O.length&&1,fe=e+O.length+Q+Ss(n)[D],be=fe>=i&&fe===o;if(be&&Number(I)>Number(G))return{validatedDateString:"",updatedSelection:[i,o]};if(be&&Number(I)<1)return{validatedDateString:"",updatedSelection:[i,o]};let{validatedSegmentValue:St,prefixedZeroesCount:Ut}=ko(I,"".concat(G));d+=Ut,c[D]=St}let _=Qn(c,n),y=_.length-t.length;return{validatedDateString:_,updatedSelection:[i+d+y,o+d+y]}}var Rs=/[\\^$.*+?()[\]{}|]/g,vc=new RegExp(Rs.source);function Ls(t){return t&&vc.test(t)?t.replace(Rs,"\\$&"):t}function Cc(t,n){let e=Ss(n);return As(Object.entries(t).map(([i,o])=>{let r=e[i];return[i,o.length===r&&o.match(/^0+$/)?"1".padStart(r,"0"):o]}))}function Tc({dateModeTemplate:t,min:n=oc,max:e=rc,rangeSeparator:i="",dateSegmentSeparator:o="."}){return({value:r,selection:s})=>{let c=i&&r.endsWith(i),d=Fs(r,t,i),_="";for(let y of d){_+=_?i:"";let D=Hs(y,t);if(!hc(y,t)){let G=Cc(D,t),Q=Qn(G,t),fe=y.endsWith(o)?o:"";_+=Q+fe;continue}let I=gc(D),O=pc(I,n,e);_+=Qn(mc(O),t)}return{selection:s,value:_+(c?i:"")}}}function Mc({dateModeTemplate:t,dateSegmentsSeparator:n,rangeSeparator:e=""}){return({elementState:i,data:o})=>{let r=e?new RegExp("".concat(e,"|-")):wi,s=o.split(r),c=o.includes(wi)?[s[0]]:s;if(c.every(d=>d.trim().split(/\D/).length===t.split(n).length)){let d=c.map(_=>bc(_,t,n)).join(e);return{elementState:i,data:"".concat(d).concat(o.includes(wi)&&wi+s[1]||"")}}return{elementState:i,data:o}}}function bc(t,n,e){let i=t.split(/\D/),o=n.split(e);return i.map((s,c)=>c===o.length-1?s:s.padStart(o[c].length,"0")).join(e)}function yc({dateModeTemplate:t,dateSegmentsSeparator:n,rangeSeparator:e=""}){return({elementState:i,data:o})=>{let{value:r,selection:s}=i;if(o===n)return{elementState:i,data:s[0]===r.length?o:""};if(cc.includes(o))return{elementState:i,data:e};let c=o.replace(new RegExp("[^\\d".concat(Ls(n)).concat(e,"]"),"g"),"");if(!c)return{elementState:i,data:""};let[d,_]=s,y=_+o.length,D=r.slice(0,d)+c+r.slice(y),I=Fs(D,t,e),O="",G=!!e&&D.includes(e);for(let fe of I){let{validatedDateString:be,updatedSelection:St}=_c({dateString:fe,dateModeTemplate:t,offset:O?O.length+e.length:0,selection:[d,y]});if(fe&&!be)return{elementState:i,data:""};y=St[1],O+=G&&O?e+be:be}let Q=O.slice(d,y);return{elementState:{selection:s,value:O.slice(0,d)+Q.split(n).map(fe=>"0".repeat(fe.length)).join(n)+O.slice(y)},data:Q}}}function Dc(){return({elementState:t},n)=>{let{value:e,selection:i}=t;if(!e||Oc(e,i))return{elementState:t};let[o,r]=i,s=e.slice(o,r).replace(/\d/g,"0"),c=e.slice(0,o)+s+e.slice(r);return n==="validation"||n==="insert"&&o===r?{elementState:{selection:i,value:c}}:{elementState:{selection:n==="deleteBackward"||n==="insert"?[o,o]:[r,r],value:c}}}}function Oc(t,[n,e]){return e===t.length}function Ns({mode:t,separator:n=".",max:e,min:i}){let o=t.split("/").join(n);return Object.assign(Object.assign({},_t),{mask:Array.from(o).map(r=>r===n?r:/\d/),overwriteMode:"replace",preprocessors:[Dc(),Mc({dateModeTemplate:o,dateSegmentsSeparator:n}),yc({dateModeTemplate:o,dateSegmentsSeparator:n})],postprocessors:[Tc({min:i,max:e,dateModeTemplate:o,dateSegmentSeparator:n})]})}var c0=new RegExp("[".concat(dc.map(Ls).join(""),"]$"));var zs=(()=>{class t{constructor(e,i){this.ngZone=e,this.elementRef=i,this.maskedElement=null,this.maskito=_t,this.maskitoElement=ys}ngOnChanges(){var e;return No(this,void 0,void 0,function*(){(e=this.maskedElement)===null||e===void 0||e.destroy();let i=this.maskitoElement,o=yield i(this.elementRef.nativeElement);this.maskitoElement===i&&this.ngZone.runOutsideAngular(()=>{var r;this.maskedElement=new Yn(o,(r=this.maskito)!==null&&r!==void 0?r:_t)})})}ngOnDestroy(){var e;(e=this.maskedElement)===null||e===void 0||e.destroy()}}return t.\u0275fac=function(e){return new(e||t)(l(Ze),l(F))},t.\u0275dir=M({type:t,selectors:[["","maskito",""]],inputs:{maskito:"maskito",maskitoElement:"maskitoElement"},features:[ct]}),t})();var Vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({}),t})();function wc(t,n){if(t&1){let e=U();m(0,"tui-primitive-textfield",5),f("focusedChange",function(o){P(e);let r=h();return w(r.onFocused(o))})("valueChange",function(o){P(e);let r=h();return w(r.onValueChange(o))}),X(1),X(2,1,["ngProjectAs","input",5,["input"]]),g()}if(t&2){let e=n.tuiLet,i=h(),o=ee(4);u("disabled",i.computedDisabled)("focusable",i.computedFocusable)("invalid",i.computedInvalid)("maskito",i.computedMask)("nativeId",i.nativeId)("pseudoFocus",i.pseudoFocus)("pseudoHover",i.pseudoHover)("readOnly",i.readOnly)("tuiTextfieldFiller",i.getComputedFiller(e||""))("tuiTextfieldIcon",i.calendarIcon&&o)("value",i.computedValue)}}function xc(t,n){if(t&1){let e=U();m(0,"tui-svg",8),f("click",function(){P(e);let o=h(2);return w(o.onIconClick())}),g()}if(t&2){let e=n.polymorpheusOutlet,i=h(2);A("t-icon",!i.computedDisabled),u("src",e)}}function Ic(t,n){t&1&&E(0,"input",9)}var kc=t=>({$implicit:t});function Ec(t,n){if(t&1&&v(0,xc,1,3,"tui-svg",6)(1,Ic,1,0,"input",7),t&2){let e=h();u("polymorpheusOutlet",e.calendarIcon)("polymorpheusOutletContext",ce(3,kc,e.size)),p(),u("ngIf",e.isMobile&&e.nativePicker)}}function Sc(t,n){if(t&1){let e=U();m(0,"div",12)(1,"button",13),f("click",function(){P(e);let o=h(2);return w(o.onDayClick(o.items[0].day))}),W(2),g()()}if(t&2){let e=h(2);p(2),he(" ",e.items[0]," ")}}function Fc(t,n){if(t&1){let e=U();m(0,"tui-calendar",10),f("dayClick",function(o){P(e);let r=h();return w(r.onDayClick(o))})("monthChange",function(o){P(e);let r=h();return w(r.onMonthChange(o))}),g(),v(1,Sc,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),p(),u("ngIf",e.items.length===1)}}var Ac=["*",[["input"]]],Hc=["*","input"],Rc=(()=>{class t{constructor(e,i){this.host=e,this.dateFormat=i}get value(){return this.host.value.length===ui?de.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?de.normalizeParse(e,"YMD").toString(this.dateFormat):"")}}return t.\u0275fac=function(e){return new(e||t)(l(co),l(_o))},t.\u0275dir=M({type:t,selectors:[["input","tuiDate",""]],hostAttrs:["type","date"],hostVars:4,hostBindings:function(e,i){e&1&&f("change",function(r){return i.onChange(r.target.value)})("click.stop.silent",function(){return 0})("input.stop.silent",function(){return 0})("mousedown.stop.silent",function(){return 0}),e&2&&dt("tabIndex",-1)("value",i.value)("max",i.max)("min",i.min)}}),t})(),js=(()=>{class t extends Zt{constructor(e,i,o,r,s,c,d,_,y,D,I,O){super(e,i,D),this.injector=o,this.isMobile=r,this.dialogs=s,this.mobileCalendar=c,this.dateFormat=d,this.dateSeparator=_,this.dateTexts$=y,this.valueTransformer=D,this.options=I,this.textfieldSize=O,this.month=null,this.min=this.options.min,this.max=this.options.max,this.disabledItemHandler=ge,this.markerHandler=ei,this.items=[],this.defaultActiveYearMonth=q.currentLocal(),this.open=!1,this.filler$=this.dateTexts$.pipe(z(G=>da(G[this.dateFormat],this.dateSeparator)))}get size(){return this.textfieldSize.size}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:this.options.min}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:this.options.max}get nativeFocusableElement(){var e,i;return(i=(e=this.textfield)===null||e===void 0?void 0:e.nativeFocusableElement)!==null&&i!==void 0?i:null}get focused(){var e;return!!(!((e=this.textfield)===null||e===void 0)&&e.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:e,nativeValue:i,activeItem:o}=this;return o?String(o):e?e.toString(this.dateFormat,this.dateSeparator):i}get computedActiveYearMonth(){return this.items[0]&&this.value&&this.value.daySame(this.items[0].day)?this.items[0].displayDay:this.month||this.value||la(this.defaultActiveYearMonth,this.computedMin,this.computedMax)}get nativeValue(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.value)||""}set nativeValue(e){this.nativeFocusableElement&&(this.nativeFocusableElement.value=e)}get canOpen(){return this.interactive&&!this.computedMobile}get computedMask(){return this.activeItem?_t:this.computeMaskOptions(this.dateFormat,this.dateSeparator,this.computedMin,this.computedMax)}get activeItem(){let{value:e}=this;return e&&this.items.find(i=>i.day.daySame(e))||null}onClick(){this.isMobile||(this.open=!this.open)}getComputedFiller(e){return this.activeItem?"":e}onMobileClick(){this.onIconClick()}onIconClick(){!this.computedMobile||!this.mobileCalendar||this.dialogs.open(new bt(this.mobileCalendar,this.injector),{size:"fullscreen",closeable:!1,data:{single:!0,min:this.min,max:this.max,disabledItemHandler:this.disabledItemHandler}}).pipe(ne(this.destroy$)).subscribe(e=>{this.value=e})}onValueChange(e){this.control&&this.control.updateValueAndValidity({emitEvent:!1}),e||this.onOpenChange(!0),this.value=e.length!==ui?null:de.normalizeParse(e,this.dateFormat)}onDayClick(e){this.value=e,this.open=!1}onMonthChange(e){this.month=e}onOpenChange(e){this.open=e}onFocused(e){this.updateFocused(e)}setDisabledState(){super.setDisabledState(),this.open=!1}writeValue(e){super.writeValue(e),this.nativeValue=e?this.computedValue:""}valueIdenticalComparator(e,i){return Kt(e,i,(o,r)=>o.daySame(r))}computeMaskOptions(e,i,o,r){return Ns({separator:i,mode:ss[e],min:o.toLocalNativeDate(),max:r.toLocalNativeDate()})}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(Ai),l(Qi),l(vn),l(fs,8),l(_o),l(ca),l(hs),l(Po,8),l(gs),l(Hn))},t.\u0275cmp=S({type:t,selectors:[["tui-input-date"]],viewQuery:function(e,i){if(e&1&&K(yi,5),e&2){let o;V(o=j())&&(i.textfield=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&f("click",function(){return i.onClick()}),e&2&&L("data-size",i.size)},inputs:{min:"min",max:"max",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",items:"items",defaultActiveYearMonth:"defaultActiveYearMonth"},features:[b([Ee(t),tt(t),ms(Po)]),x],ngContentSelectors:Hc,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(e,i){if(e&1&&(re(Ac),m(0,"tui-hosted-dropdown",0),f("openChange",function(r){return i.onOpenChange(r)}),v(1,wc,3,11,"tui-primitive-textfield",1),Y(2,"async"),v(3,Ec,2,5,"ng-template",null,2,_e)(5,Fc,2,7,"ng-template",3,4,_e),g()),e&2){let o=ee(6);u("canOpen",i.canOpen)("content",o)("open",i.open&&i.canOpen),p(),u("tuiLet",J(2,5,i.filler$)),p(4),u("polymorpheus",i.type)}},dependencies:[mi,yi,Ce,Nn,oi,yt,os,ws,zs,Mo,bo,te,$e,ae,Rc,Gi,aa,ve],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}),ye([Ne],t.prototype,"computeMaskOptions",null),t})(),Bs=(()=>{class t extends on{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 n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=M({type:t,selectors:[["tui-input-date"]],features:[b([dn(t)]),x]}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Vs,se,We,sa,zn,Te,ri,Vn,rs,xs,Dt,Rn]]}),t})();var Lc=["input"];function Nc(t,n){if(t&1&&(Oe(0),W(1),Pe()),t&2){let e=n.polymorpheusOutlet;p(),he(" ",e," ")}}function zc(t,n){if(t&1&&(m(0,"div",6),v(1,Nc,2,1,"ng-container",7),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.leftContent)}}function Vc(t,n){if(t&1&&E(0,"tui-loader",8),t&2){let e=h();u("inheritColor",!0)("size",e.loaderSize)}}function jc(t,n){if(t&1){let e=U();m(0,"tui-svg",9),f("click",function(o){P(e);let r=h();return w(r.remove(o))})("mousedown.stop.prevent.silent",function(){return 0}),g()}if(t&2){let e=h();u("src",e.icons.close)}}function Bc(t,n){if(t&1){let e=U();m(0,"input",10,11),f("blur",function(){P(e);let o=h();return w(o.onBlur())})("keydown",function(o){P(e);let r=h();return w(r.onKeyDown(o))})("ngModelChange",function(o){P(e);let r=h();return w(r.onInput(o))}),g()}if(t&2){let e=h();u("ngModel",e.editedText),L("maxLength",e.maxLength)}}var Uc={size:"m",status:"default",autoColor:!1},$c=Z(Uc);var $s=(()=>{class t{constructor(e,i,o,r){this.el=e,this.mode$=i,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 $,this.editing=!1,this.editedText=null}set input(e){e&&e.nativeElement.focus()}get backgroundColor(){return this.autoColor?as(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 Vr(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 i=e.split(this.separator);if(i.length>1){this.save(String(i));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(F),l(nt),l($c),l(un))},t.\u0275cmp=S({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(e,i){if(e&1&&K(Lc,5,F),e&2){let o;V(o=j())&&(i.input=o.first)}},hostVars:10,hostBindings:function(e,i){e&1&&f("$.data-mode.attr",function(){return i.mode$})("keydown.enter",function(r){return i.edit(r)})("keydown.delete",function(r){return i.remove(r)})("keydown.backspace",function(r){return i.remove(r)}),e&2&&(L("data-size",i.size)("data-status",i.status),A("_hoverable",i.hoverable)("_disabled",i.disabled)("_autocolor",i.autoColor)("_editing",i.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([ot])],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,i){e&1&&(m(0,"div",0),f("dblclick",function(r){return i.edit(r)}),v(1,zc,2,1,"div",1),E(2,"span",2),v(3,Vc,1,2,"tui-loader",3)(4,jc,1,1,"tui-svg",4),g(),v(5,Bc,2,2,"input",5)),e&2&&(Ie("background-color",i.backgroundColor),p(),u("ngIf",i.leftContent),p(),u("textContent",i.displayText),p(),u("ngIf",i.showLoader),p(),u("ngIf",i.canRemove),p(),u("ngIf",i.editing))},dependencies:[hn,Ce,ae,te,qe,Je,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})(),Ws=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,et,Te,gn,se]]}),t})();var Yc=["focusableElement"],Gc=["tagsContainer"],Kc=["cleaner"],Qc=["errorIcon"],Xc=["tag"];function Zc(t,n){t&1&&Rt(0)}function qc(t,n){if(t&1&&E(0,"tui-svg",21),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var Eo=t=>({$implicit:t});function Jc(t,n){if(t&1&&(m(0,"div",19),v(1,qc,1,1,"tui-svg",20),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconLeft)("polymorpheusOutletContext",ce(2,Eo,e.size))}}function ed(t,n){if(t&1&&(m(0,"div",22),X(1,2),g()),t&2){let e=h();A("t-placeholder_raised",e.placeholderRaised)}}function td(t,n){if(t&1){let e=U();m(0,"tui-tag",24,25),f("edited",function(o){let s=P(e).index,c=h(2);return w(c.onTagEdited(o,s))})("keydown.arrowLeft.prevent",function(){let r=P(e).index,s=h(2);return w(s.onTagKeyDownArrowLeft(r))})("keydown.arrowRight.prevent",function(){let r=P(e).index,s=h(2);return w(s.onTagKeyDownArrowRight(r))}),Y(2,"async"),g()}if(t&2){let e=n.$implicit,i=h(2);u("disabled",i.computedDisabled||i.disabledItemHandler(e))("editable",i.editable&&!i.readOnly)("hoverable",!i.readOnly)("leftContent",i.getLeftContent(e))("maxLength",i.maxLength)("removable",!i.readOnly&&i.removable)("separator",i.separator)("size",i.controller.size)("status",J(2,11,i.status$))("tuiFocusable",!1)("value",e.toString())}}function id(t,n){if(t&1&&(Oe(0),v(1,td,3,13,"tui-tag",23),Pe()),t&2){let e=h();p(),u("ngForOf",e.value)("ngForTrackBy",e.trackByFn)}}function nd(t,n){if(t&1&&E(0,"span",27),t&2){let e=n.$implicit,i=h(2);A("t-text_comma",i.computedFocused&&!i.inputHidden)("t-text_disabled",i.disabledItemHandler(e))("t-text_error",!i.tagValidator(e)),u("textContent",e)}}function od(t,n){if(t&1&&v(0,nd,1,7,"span",26),t&2){let e=h();u("ngForOf",e.value)}}function rd(t,n){if(t&1){let e=U();m(0,"tui-svg",32,33),f("click.stop",function(){P(e);let o=h(3);return w(o.onCleanerClick())}),g()}if(t&2){let e=n.polymorpheusOutlet;u("src",e)}}function ad(t,n){if(t&1&&(Oe(0),v(1,rd,2,1,"tui-svg",31),Pe()),t&2){let e=h(2);p(),u("polymorpheusOutlet",e.iconCleaner)("polymorpheusOutletContext",ce(2,Eo,e.size))}}function sd(t,n){if(t&1&&E(0,"tui-tooltip",34),t&2){let e=h(2);u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.id)}}function ld(t,n){if(t&1&&E(0,"tui-svg",21),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function ud(t,n){if(t&1&&(m(0,"div",35),v(1,ld,1,1,"tui-svg",20),g()),t&2){let e=h(2);p(),u("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",ce(2,Eo,e.size))}}function cd(t,n){if(t&1&&(m(0,"div",28),v(1,ad,2,4,"ng-container",0)(2,sd,1,2,"tui-tooltip",29)(3,ud,2,4,"div",30),g()),t&2){let e=h();p(),u("ngIf",e.hasCleaner),p(),u("ngIf",e.showHint),p(),u("ngIf",e.icon)}}function dd(t,n){if(t&1&&E(0,"tui-svg",36),t&2){let e=h();u("src",e.icons.error)}}var pd=[[["tuiContent"]],[["select"]],"*"],md=["tuiContent","select","*"],hd={separator:",",uniqueTags:!0,tagStatus:"primary"},gd=Z(hd);var fd={s:1.25,m:1.5,l:2},_d={s:1,m:1.25,l:1.25},vd=.125,Ys=(()=>{class t extends xr{constructor(e,i,o,r,s,c,d,_,y){super(e,i),this.el=o,this.modeDirective=r,this.mode$=s,this.hintOptions=c,this.controller=d,this.options=_,this.icons=y,this.tags=Jo,this.separator=this.options.separator,this.search="",this.editable=!0,this.tagValidator=Gt,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=ge,this.searchChange=new $,this.status$=this.mode$.pipe(z(()=>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 pt(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:i}=this.controller;return e==="s"||i}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}onFocusInOut(){this.cdr.detectChanges()}detectRetargetFromLabel(e){$i(e)&&e.stopImmediatePropagation()}getLeftContent(e){return!this.tagValidator(e)&&this.errorIconTemplate?this.errorIconTemplate:""}onCleanerClick(){this.updateSearch(""),this.clear(),this.focusInput()}onActiveZone(e){this.open=!1,this.addTag(),this.updateFocused(e),!e&&!this.computedFocused&&this.scrollTo(0)}onMouseDown(e){var i;let o=Bi(e);!this.focusableElement||o===this.focusableElement.nativeElement||!Mt(e.target)||!((i=this.cleanerSvg)===null||i===void 0)&&i.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,i){this.focusInput(e===""),this.value=this.filterValue(this.value.map((o,r)=>r!==i?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 i=e.split(this.separator),r=i.map(s=>this.clippedValue(s.trim())).filter((s,c,{length:d})=>s.length>0&&c!==d-1).filter(s=>!this.disabledItemHandler(s));i.length>1?(this.updateSearch(this.clippedValue(i[i.length-1].trim())),this.value=this.filterValue([...this.value,...r])):this.updateSearch(this.clippedValue(e)),this.open=this.hasNativeValue}onPaste(e){let i=lr(e);this.onInput(i||"")}onDrop({dataTransfer:e}){e&&this.onInput(e.getData("text")||"")}setDisabledState(){super.setDisabledState(),this.open=!1}trackByFn(e,i){return i.toString()}scrollTo(e){var i;e===void 0&&(e=(i=this.scrollBar)===null||i===void 0?void 0:i.nativeElement.scrollWidth),setTimeout(()=>{this.scrollBar&&(this.scrollBar.nativeElement.scrollLeft=e||0)})}filterValue(e){let i=new Set;return e.reverse().filter(o=>!this.uniqueTags||o&&!i.has(o)&&i.add(o)).reverse()}onScrollKeyDown(e,i){let o=this.tags.find((r,s)=>s===e+i);!o||!this.scrollBar||(o.nativeElement.focus(),i*this.scrollBar.nativeElement.clientWidth-i*o.nativeElement.offsetLeft-o.nativeElement.clientWidth<0&&(this.scrollBar.nativeElement.scrollLeft+=i*o.nativeElement.clientWidth))}updateSearch(e){this.focusableElement&&(this.focusableElement.nativeElement.value=e),this.search=e,this.searchChange.emit(e)}addTag(){var e,i;let o=(i=(e=this.search)===null||e===void 0?void 0:e.trim())!==null&&i!==void 0?i:"";!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=ar(this.value,e);break}}focusInput(e=!1){var i;(i=this.nativeFocusableElement)===null||i===void 0||i.focus({preventScroll:e})}clippedValue(e){return e.slice(0,this.maxLength||e.length)}get lineHeight(){return this.labelOutside?fd[this.controller.size]+2*vd:_d[this.controller.size]}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(F),l(ni,8),l(nt),l(Et,8),l(Mi),l(gd),l(un))},t.\u0275cmp=S({type:t,selectors:[["tui-input-tag"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,Za,5,_i),e&2){let r;V(r=j())&&(i.datalist=r.first)}},viewQuery:function(e,i){if(e&1&&(K(mi,5),K(Yc,5),K(Gc,5),K(Kc,5,F),K(It,5,F),K(Qc,5),K(Xc,5,F)),e&2){let o;V(o=j())&&(i.hostedDropdown=o.first),V(o=j())&&(i.focusableElement=o.first),V(o=j())&&(i.tagsContainer=o.first),V(o=j())&&(i.cleanerSvg=o.first),V(o=j())&&(i.scrollBar=o.first),V(o=j())&&(i.errorIconTemplate=o.first),V(o=j())&&(i.tags=o)}},hostVars:7,hostBindings:function(e,i){e&1&&f("focusin.capture.silent",function(){return i.onFocusInOut()})("focusout.capture.silent",function(){return i.onFocusInOut()}),e&2&&(L("data-size",i.size),A("_expandable",i.expandable)("_label-outside",i.labelOutside)("_icon-left",i.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:[k.None,"pseudoFocused","pseudoFocusedSetter"]},outputs:{searchChange:"searchChange"},features:[b([Ee(t),tt(t),jr(t),Ln,ot],[Os]),x],ngContentSelectors:md,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,i){if(e&1&&(re(pd),v(0,Zc,1,0,"ng-container",0),Y(1,"async"),m(2,"tui-hosted-dropdown",1),He("openChange",function(r){return Ae(i.open,r)||(i.open=r),r}),f("tuiActiveZoneChange",function(r){return i.onActiveZone(r)}),m(3,"div",2),f("click.prevent.silent",function(r){return i.detectRetargetFromLabel(r)})("mousedown",function(r){return i.onMouseDown(r)}),m(4,"div",3),v(5,Jc,2,4,"div",4),m(6,"div",5)(7,"div",6),v(8,ed,2,2,"div",7),g(),m(9,"tui-scrollbar",8)(10,"div",9),v(11,id,2,2,"ng-container",10)(12,od,1,1,"ng-template",null,11,_e),m(14,"div",12)(15,"div",13),W(16),g(),m(17,"input",14,15),f("drop.prevent",function(r){return i.onDrop(r)})("keydown.arrowLeft",function(r){return i.onFieldKeyDownArrowLeft(r)})("keydown.backspace",function(r){return i.onFieldKeyDownBackspace(r)})("keydown.enter.prevent",function(){return i.onFieldKeyDownEnter()})("ngModelChange",function(r){return i.onInput(r)})("paste.prevent",function(r){return i.onPaste(r)}),g()()(),m(19,"div",16),X(20),g()()(),X(21,1),v(22,cd,4,3,"div",17),g(),v(23,dd,1,1,"ng-template",null,18,_e),g()()),e&2){let o=ee(13),r;u("ngIf",J(1,32,i.hintOptions==null?null:i.hintOptions.change$)),p(2),u("canOpen",i.canOpen)("content",i.datalist||""),Fe("open",i.open),p(),u("appearance",i.appearance)("disabled",i.computedDisabled)("focus",i.computedFocused)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(2),u("ngIf",i.iconLeft),p(3),u("ngIf",i.hasPlaceholder),p(),Ie("max-height",i.computeMaxHeight,"rem"),u("hidden",!i.expandable),p(),A("t-tags_empty",(!i.focused||i.inputHidden)&&!(i.value!=null&&i.value.length)&&!(!(i.search==null||(r=i.search.trim())==null)&&r.length)),p(),u("ngIf",i.labelOutside)("ngIfElse",o),p(3),A("t-input-wrapper_collapsed",i.computedDisabled||i.readOnly||i.inputHidden),p(2),Li(i.search),p(),A("t-native_hidden",i.inputHidden),u("disabled",i.computedDisabled)("id",i.id)("ngModel",i.search)("placeholder",i.placeholder)("readOnly",i.readOnly||i.inputHidden)("tuiFocusable",i.computedFocusable),L("maxLength",i.maxLength),p(5),u("ngIf",i.hasRightIcons)}},dependencies:[mi,Ce,It,$s,jn,ae,ze,$e,te,Yt,rt,qe,Je,Re,ve],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=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-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%]{scroll-behavior:smooth;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;min-width:100%}tui-root._reduced-motion[_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%], tui-root._reduced-motion [_nghost-%COMP%] .t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}[_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})(),Gs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({providers:[wr],imports:[[N,et,se,at,wt,qt,Te,di,Bn,Vn,Ws,We]]}),t})();var Cd=["type","range","tuiSlider",""];var Td={size:"m",trackColor:"var(--tui-base-03)"},Md=Z(Td);var So=(()=>{class t{constructor(e,i,o,r,s,c){var d;this.control=e,this.options=o,this.el=r,this.userAgent=s,this.injector=c,this.size=this.options.size,this.segments=1,e instanceof Re&&((d=e.valueChanges)===null||d===void 0||d.pipe(Yi(i),jo(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:e,control:i,hasKeySteps:o}=this;return!o&&i instanceof Re?i.viewModel:Number(e.nativeElement.value)||0}set value(e){this.el.nativeElement.value="".concat(e)}get valueRatio(){return(this.value-this.min)/(this.max-this.min)||0}get valuePercentage(){return 100*this.valueRatio}get segmentWidth(){return 100/Math.max(1,this.segments)}get isOldEdge(){return nr(qo,this.userAgent)}get hasKeySteps(){return!!this.injector.get(bd,null)}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(Md),l(F),l(Ki),l(Ai))},t.\u0275cmp=S({type:t,selectors:[["input","type","range","tuiSlider",""]],hostVars:11,hostBindings:function(e,i){e&1&&f("input",function(){return 0}),e&2&&(L("data-size",i.size),Ie("--tui-slider-track-color",i.options.trackColor)("--tui-slider-fill-ratio",i.valueRatio)("--tui-slider-fill-percentage",i.valuePercentage,"%")("--tui-slider-segment-width",i.segmentWidth,"%"),A("_old-edge",i.isOldEdge))},inputs:{size:"size",segments:"segments"},attrs:Cd,decls:0,vars:0,template:function(e,i){},styles:['[_nghost-%COMP%]{position:relative;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}[data-size=s][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.25rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .5rem);width:.5rem;height:.5rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=s][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[data-size=m][_nghost-%COMP%]:not(:disabled):before{transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:.125rem;left:calc(var(--tui-slider-fill-percentage) - var(--tui-slider-fill-ratio) * .75rem);width:.75rem;height:.75rem;border-radius:50%;transform:var(--tui-slider-thumb-transform, scale(1));content:"";cursor:ew-resize;background:currentColor;opacity:0}[data-size=m][_nghost-%COMP%]:active:before{opacity:.2;transform:var(--tui-slider-thumb-transform, scale(1)) scale(2.33)}[_nghost-%COMP%]: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 .5rem,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,.25rem,0;background-size:calc(100% - .75rem),calc(100% - .75rem),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 .5rem,transparent .25rem),repeating-linear-gradient(to right,var(--tui-base-06) 0 .25rem,transparent 0 var(--tui-slider-segment-width));background-position-x:0,.25rem;background-size:calc(100% - .75rem)}[_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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-webkit-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1));margin-top:-.4375rem}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-webkit-slider-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.75rem;width:.75rem;box-sizing:content-box;background-clip:content-box;border:.125rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=m]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.333)}: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-transition-property:transform;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;isolation:isolate;-moz-appearance:none;appearance:none;background-color:currentColor;box-shadow:none;border-radius:50%;height:.5rem;width:.5rem;box-sizing:content-box;background-clip:content-box;border:.25rem solid transparent;border-left:0;border-right:0;transform:var(--tui-slider-thumb-transform, scale(1))}:not(:disabled)[_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-color:var(--tui-primary-hover)}:active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{background-color:var(--tui-primary-active)}:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb:hover, :active:not(:disabled)[_nghost-%COMP%]:not(._old-edge)[data-size=s]::-moz-range-thumb{transform:var(--tui-slider-thumb-transform, scale(1)) scale(1.5)}: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}),ye([Ne],t.prototype,"hasKeySteps",null),t})(),bd=(()=>{class t extends Zi{constructor(e,i,o,r){super(e,i),this.el=o,this.slider=r}get nativeFocusableElement(){return this.computedDisabled?null:this.el.nativeElement}get focused(){return Be(this.nativeFocusableElement)}get min(){return this.keySteps[0][1]}get max(){return this.keySteps[this.keySteps.length-1][1]}updateControlValue(){this.value=cs(this.slider.valuePercentage,this.keySteps)}writeValue(e){if(e===null)return;let i=Tt(e,this.min,this.max);this.slider.value=this.transformToNativeValue(i)}getFallbackValue(){return 0}transformToNativeValue(e){let{min:i,max:o}=this.slider;return ds(e,this.keySteps)*(o-i)/100+i}}return t.\u0275fac=function(e){return new(e||t)(l(we,10),l(me),l(F),l(pe(()=>So)))},t.\u0275dir=M({type:t,selectors:[["input","tuiSlider","","keySteps",""]],hostVars:4,hostBindings:function(e,i){e&1&&f("input",function(){return i.updateControlValue()})("change",function(){return i.updateControlValue()}),e&2&&(dt("disabled",i.computedDisabled),L("aria-valuenow",i.safeCurrentValue)("aria-valuemin",i.min)("aria-valuemax",i.max))},inputs:{keySteps:"keySteps"},features:[x]}),t})();var Ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N]]}),t})();var yd=["focusableElement"];function Dd(t,n){if(t&1&&E(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",e.value)("size",e.loaderSize)}}function Od(t,n){if(t&1&&E(0,"tui-svg",10),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var Qs=t=>({$implicit:t});function Pd(t,n){if(t&1&&(m(0,"span",8),v(1,Od,1,1,"tui-svg",9),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconOn)("polymorpheusOutletContext",ce(2,Qs,e.size))}}function wd(t,n){if(t&1&&E(0,"tui-loader",7),t&2){let e=h();u("inheritColor",!0)("showLoader",!e.value)("size",e.loaderSize)}}function xd(t,n){if(t&1&&E(0,"tui-svg",12),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Id(t,n){if(t&1&&(m(0,"span",8),v(1,xd,1,1,"tui-svg",11),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconOff)("polymorpheusOutletContext",ce(2,Qs,e.size))}}var kd={icons:{toggleOff({$implicit:t}){return t==="m"?"tuiIconToggleOff":"tuiIconToggleOffLarge"},toggleOn({$implicit:t}){return t==="m"?"tuiIconToggleOn":"tuiIconToggleOnLarge"}},appearances:{checked:ht.Primary,unchecked:ht.Secondary},singleColor:!1,showIcons:!1,size:"m"},Ed=Z(kd);var Xs=(()=>{class t extends Zi{constructor(e,i,o,r){super(e,i),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,i;return(i=(e=this.focusableElement)===null||e===void 0?void 0:e.nativeElement)!==null&&i!==void 0?i:null}get focused(){return Be(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,i;return(i=(e=this.modeDirective)===null||e===void 0?void 0:e.mode)!==null&&i!==void 0?i: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(we,10),l(me),l(ni,8),l(Ed))},t.\u0275cmp=S({type:t,selectors:[["tui-toggle"]],viewQuery:function(e,i){if(e&1&&K(yd,5),e&2){let o;V(o=j())&&(i.focusableElement=o.first)}},hostVars:4,hostBindings:function(e,i){e&2&&(L("data-size",i.size)("data-mode",i.hostMode),A("_checked",i.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[b([Ee(t),tt(t)]),x],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,i){e&1&&(m(0,"div",0)(1,"div",1),v(2,Dd,1,3,"tui-loader",2)(3,Pd,2,4,"span",3),E(4,"div",4),v(5,wd,1,3,"tui-loader",2)(6,Id,2,4,"span",3),g(),m(7,"input",5,6),He("tuiCheckedChange",function(r){return Ae(i.value,r)||(i.value=r),r}),f("tuiFocusedChange",function(r){return i.onFocused(r)})("tuiFocusVisibleChange",function(r){return i.onFocusVisible(r)}),g()()),e&2&&(u("active",i.pseudoActive)("appearance",i.appearance)("disabled",i.computedDisabled)("focus",i.computedFocusVisible)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(2),u("ngIf",i.showLoader),p(),u("ngIf",i.showIcons&&!i.showLoader),p(2),u("ngIf",i.showLoader),p(),u("ngIf",i.showIcons&&!i.showLoader),p(),u("disabled",i.disabled)("id",i.id)("tuiFocusable",i.focusable),Fe("tuiChecked",i.value),L("aria-checked",i.value))},dependencies:[hn,Ce,$e,ae,te,Cn,rt,yn,Mn],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})(),Zs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=C({type:t}),t.\u0275inj=T({imports:[[N,Dn,at,si,bn,Tn,We,Te,gn,se]]}),t})();function Sd(t,n){if(t&1&&E(0,"span",17),t&2){let e=h();u("innerHtml",e.purify("Customizable for any use case"),Hi)}}function Fd(t,n){if(t&1&&(m(0,"tui-checkbox-labeled",18),W(1),g()),t&2){let e=n.$implicit,i=h();u("ngModel",e===i.labels[1]),p(),he(" ",e," ")}}function Ad(t,n){if(t&1){let e=U();m(0,"div",19)(1,"div",20),E(2,"img",21),m(3,"h3"),W(4,"Aleksandr Inkin"),g()(),m(5,"div",22)(6,"button",23),f("click",function(){let r=P(e).$implicit;return w(r.complete())}),g(),m(7,"button",24),f("click",function(){let r=P(e).$implicit;return w(r.complete())}),g()()()}}function Hd(t,n){if(t&1){let e=U();m(0,"tui-push",25),f("close",function(){P(e);let o=h();return w(o.toggle(!1))}),E(1,"tui-svg",26),W(2," I have a bad feeling about this... "),m(3,"button",27),f("click",function(){P(e);let o=h();return w(o.toggle(!1))}),W(4," Fortune "),g(),m(5,"button",28),f("click",function(){P(e);let o=h();return w(o.toggle(!1))}),W(6," Glory "),g()()}}var wT=(()=>{let n=class n{constructor(){this.dompurifySanitizer=Si(ea),this.dialogs=Si(vn),this.cd=Si(me),this.labels=["New","Read","Archived","Junk"],this.tags=["Angular","Open source"],this.date=null,this.notification=!1,this.slider=80}onDay(i){this.date=i}call(i){this.dialogs.open(i,{appearance:"call",closeable:!1,dismissible:!1}).subscribe()}toggle(i){this.notification=i,this.cd.detectChanges()}purify(i){return this.dompurifySanitizer.sanitize($o.HTML,i)}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=S({type:n,selectors:[["home"]],standalone:!0,features:[Wo],decls:26,vars:12,consts:[[1,"title"],[1,"tui-space_vertical-10",3,"tuiHintContent","tuiTextfieldLabelOutside","ngModel","ngModelChange"],["hint",""],[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"],[3,"innerHtml"],["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=U();m(0,"h2",0),W(1," Dozens of "),E(2,"br"),W(3," components\n"),g(),m(4,"tui-input-tag",1),He("ngModelChange",function(d){return Ae(r.tags,d)||(r.tags=d),d}),g(),v(5,Sd,1,1,"ng-template",null,2,_e),m(7,"div",3)(8,"div",4)(9,"tui-input-date",5),He("ngModelChange",function(d){return Ae(r.date,d)||(r.date=d),d}),f("click.capture.stop",function(){return 0})("keydown.capture.stop",function(){return 0})("mousedown.capture.stop",function(){return 0}),W(10," Choose date "),g(),m(11,"tui-calendar",6),f("dayClick",function(d){return r.onDay(d)})("event.prevent.silent",function(){return 0}),g()(),m(12,"div"),v(13,Fd,2,2,"tui-checkbox-labeled",7),g(),m(14,"div",8)(15,"label")(16,"tui-toggle",9),He("ngModelChange",function(d){return Ae(r.notification,d)||(r.notification=d),d}),g(),W(17," Push notification "),g(),m(18,"input",10),He("ngModelChange",function(d){return Ae(r.slider,d)||(r.slider=d),d}),g(),m(19,"div",11)(20,"button",12),f("click",function(){return r.slider=0}),g(),E(21,"button",13),m(22,"button",14),f("click",function(){P(s);let d=ee(24);return w(r.call(d))}),g()()()(),v(23,Ad,8,0,"ng-template",null,15,_e)(25,Hd,7,0,"tui-push",16)}if(o&2){let s=ee(6);p(4),u("tuiHintContent",s)("tuiTextfieldLabelOutside",!0),Fe("ngModel",r.tags),p(5),Fe("ngModel",r.date),p(2),u("tuiDropdownOpen",!1)("value",r.date),p(2),u("ngForOf",r.labels),p(3),u("showIcons",!0),Fe("ngModel",r.notification),p(2),u("max",140),Fe("ngModel",r.slider),p(7),u("tuiPush",r.notification)}},dependencies:[N,Yt,et,qe,Xo,Je,Zo,Re,Gs,Ys,Zs,Xs,zn,Nn,Rn,yo,Us,js,Bs,Es,ks,_n,fn,An,Et,Ks,So,Te,Ce,Jr,Xr,Zr,qr,ri,oi,En,Ti,ta],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:var(--tui-shadow-dropdown);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,#5f86f2,#a65ff2,#f25fd0,#f25f61,#f2cb5f,#abf25f,#5ff281,#5ff2f0);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/*# sourceMappingURL=home.component-EJSMLVVN.css.map */\n'],encapsulation:2,changeDetection:0});let t=n;return t})();export{wT as default}; +//# sourceMappingURL=chunk-2KJ7QBPC.js.map diff --git a/chunk-YKKBUPJP.js.map b/chunk-2KJ7QBPC.js.map similarity index 100% rename from chunk-YKKBUPJP.js.map rename to chunk-2KJ7QBPC.js.map diff --git a/chunk-J7MZXETC.js b/chunk-J7VW2QUP.js similarity index 99% rename from chunk-J7MZXETC.js rename to chunk-J7VW2QUP.js index d4f0908d..d31d64d3 100644 --- a/chunk-J7MZXETC.js +++ b/chunk-J7VW2QUP.js @@ -1,2 +1,2 @@ -var Zb=Object.create;var sd=Object.defineProperty,Kb=Object.defineProperties,Qb=Object.getOwnPropertyDescriptor,Xb=Object.getOwnPropertyDescriptors,Jb=Object.getOwnPropertyNames,Va=Object.getOwnPropertySymbols,eI=Object.getPrototypeOf,ad=Object.prototype.hasOwnProperty,Tg=Object.prototype.propertyIsEnumerable;var Sg=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))ad.call(t,n)&&Sg(e,n,t[n]);if(Va)for(var n of Va(t))Tg.call(t,n)&&Sg(e,n,t[n]);return e},je=(e,t)=>Kb(e,Xb(t));var Ua=(e,t)=>{var n={};for(var r in e)ad.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Va)for(var r of Va(e))t.indexOf(r)<0&&Tg.call(e,r)&&(n[r]=e[r]);return n};var tI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var nI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Jb(t))!ad.call(e,i)&&i!==n&&sd(e,i,{get:()=>t[i],enumerable:!(r=Qb(t,i))||r.enumerable});return e};var rI=(e,t,n)=>(n=e!=null?Zb(eI(e)):{},nI(t||!e||!e.__esModule?sd(n,"default",{value:e,enumerable:!0}):n,e));var Ag=(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 wb=tI((Km,Qm)=>{"use strict";(function(e,t){typeof Km=="object"&&typeof Qm<"u"?Qm.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(Km,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(k){return k}),s||(s=function(k){return k}),c||(c=function(k,Ce,pe){return k.apply(Ce,pe)}),u||(u=function(k,Ce){return new k(...Ce)});let l=Te(Array.prototype.forEach),d=Te(Array.prototype.pop),f=Te(Array.prototype.push),p=Te(String.prototype.toLowerCase),g=Te(String.prototype.toString),D=Te(String.prototype.match),S=Te(String.prototype.replace),T=Te(String.prototype.indexOf),z=Te(String.prototype.trim),q=Te(RegExp.prototype.test),fe=Be(TypeError);function Te(De){return function(k){for(var Ce=arguments.length,pe=new Array(Ce>1?Ce-1:0),At=1;At2&&arguments[2]!==void 0?arguments[2]:p;t&&t(De,null);let pe=k.length;for(;pe--;){let At=k[pe];if(typeof At=="string"){let tr=Ce(At);tr!==At&&(n(k)||(k[pe]=tr),At=tr)}De[At]=!0}return De}function wt(De){for(let k=0;k/gm),$e=s(/\${[\w\W]*}/gm),Na=s(/^data-[\-\w.\u00B7-\uFFFF]/),$l=s(/^aria-[\-\w]+$/),ct=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),er=s(/^(?:\w+script|data):/i),jt=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qr=s(/^html$/i);var Vi=Object.freeze({__proto__:null,MUSTACHE_EXPR:Tt,ERB_EXPR:An,TMPLIT_EXPR:$e,DATA_ATTR:Na,ARIA_ATTR:$l,IS_ALLOWED_URI:ct,IS_SCRIPT_OR_DATA:er,ATTR_WHITESPACE:jt,DOCTYPE_NAME:qr});let Ib=function(){return typeof window>"u"?null:window},Cb=function(k,Ce){if(typeof k!="object"||typeof k.createPolicy!="function")return null;let pe=null,At="data-tt-policy-suffix";Ce&&Ce.hasAttribute(At)&&(pe=Ce.getAttribute(At));let tr="dompurify"+(pe?"#"+pe:"");try{return k.createPolicy(tr,{createHTML(Ui){return Ui},createScriptURL(Ui){return Ui}})}catch{return console.warn("TrustedTypes policy "+tr+" could not be created."),null}};function Xm(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ib(),k=j=>Xm(j);if(k.version="3.0.8",k.removed=[],!De||!De.document||De.document.nodeType!==9)return k.isSupported=!1,k;let{document:Ce}=De,pe=Ce,At=pe.currentScript,{DocumentFragment:tr,HTMLTemplateElement:Ui,Node:Hl,Element:Jm,NodeFilter:zl,NamedNodeMap:Sb=De.NamedNodeMap||De.MozNamedAttrMap,HTMLFormElement:Tb,DOMParser:Ab,trustedTypes:Pa}=De,Ra=Jm.prototype,Ob=bt(Ra,"cloneNode"),xb=bt(Ra,"nextSibling"),Nb=bt(Ra,"childNodes"),Gl=bt(Ra,"parentNode");if(typeof Ui=="function"){let j=Ce.createElement("template");j.content&&j.content.ownerDocument&&(Ce=j.content.ownerDocument)}let Ot,Qo="",{implementation:Wl,createNodeIterator:Pb,createDocumentFragment:Rb,getElementsByTagName:Fb}=Ce,{importNode:Lb}=pe,On={};k.isSupported=typeof e=="function"&&typeof Gl=="function"&&Wl&&Wl.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ql,ERB_EXPR:Yl,TMPLIT_EXPR:Zl,DATA_ATTR:kb,ARIA_ATTR:jb,IS_SCRIPT_OR_DATA:Vb,ATTR_WHITESPACE:eg}=Vi,{IS_ALLOWED_URI:tg}=Vi,ft=null,ng=P({},[...Ko,...Jn,...mn,...ji,...L]),ht=null,rg=P({},[...U,...ae,...We,...St]),nt=Object.seal(a(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}})),Xo=null,Kl=null,ig=!0,Ql=!0,og=!1,sg=!0,Bi=!1,Yr=!1,Xl=!1,Jl=!1,$i=!1,Fa=!1,La=!1,ag=!0,cg=!1,Ub="user-content-",ed=!0,Jo=!1,Hi={},zi=null,ug=P({},["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"]),lg=null,dg=P({},["audio","video","img","source","image","track"]),td=null,fg=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ka="http://www.w3.org/1998/Math/MathML",ja="http://www.w3.org/2000/svg",nr="http://www.w3.org/1999/xhtml",Gi=nr,nd=!1,rd=null,Bb=P({},[ka,ja,nr],g),es=null,$b=["application/xhtml+xml","text/html"],Hb="text/html",pt=null,Wi=null,zb=Ce.createElement("form"),hg=function(m){return m instanceof RegExp||m instanceof Function},id=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wi&&Wi===m)){if((!m||typeof m!="object")&&(m={}),m=at(m),es=$b.indexOf(m.PARSER_MEDIA_TYPE)===-1?Hb:m.PARSER_MEDIA_TYPE,pt=es==="application/xhtml+xml"?g:p,ft="ALLOWED_TAGS"in m?P({},m.ALLOWED_TAGS,pt):ng,ht="ALLOWED_ATTR"in m?P({},m.ALLOWED_ATTR,pt):rg,rd="ALLOWED_NAMESPACES"in m?P({},m.ALLOWED_NAMESPACES,g):Bb,td="ADD_URI_SAFE_ATTR"in m?P(at(fg),m.ADD_URI_SAFE_ATTR,pt):fg,lg="ADD_DATA_URI_TAGS"in m?P(at(dg),m.ADD_DATA_URI_TAGS,pt):dg,zi="FORBID_CONTENTS"in m?P({},m.FORBID_CONTENTS,pt):ug,Xo="FORBID_TAGS"in m?P({},m.FORBID_TAGS,pt):{},Kl="FORBID_ATTR"in m?P({},m.FORBID_ATTR,pt):{},Hi="USE_PROFILES"in m?m.USE_PROFILES:!1,ig=m.ALLOW_ARIA_ATTR!==!1,Ql=m.ALLOW_DATA_ATTR!==!1,og=m.ALLOW_UNKNOWN_PROTOCOLS||!1,sg=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Bi=m.SAFE_FOR_TEMPLATES||!1,Yr=m.WHOLE_DOCUMENT||!1,$i=m.RETURN_DOM||!1,Fa=m.RETURN_DOM_FRAGMENT||!1,La=m.RETURN_TRUSTED_TYPE||!1,Jl=m.FORCE_BODY||!1,ag=m.SANITIZE_DOM!==!1,cg=m.SANITIZE_NAMED_PROPS||!1,ed=m.KEEP_CONTENT!==!1,Jo=m.IN_PLACE||!1,tg=m.ALLOWED_URI_REGEXP||ct,Gi=m.NAMESPACE||nr,nt=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&hg(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(nt.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&hg(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(nt.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Bi&&(Ql=!1),Fa&&($i=!0),Hi&&(ft=P({},L),ht=[],Hi.html===!0&&(P(ft,Ko),P(ht,U)),Hi.svg===!0&&(P(ft,Jn),P(ht,ae),P(ht,St)),Hi.svgFilters===!0&&(P(ft,mn),P(ht,ae),P(ht,St)),Hi.mathMl===!0&&(P(ft,ji),P(ht,We),P(ht,St))),m.ADD_TAGS&&(ft===ng&&(ft=at(ft)),P(ft,m.ADD_TAGS,pt)),m.ADD_ATTR&&(ht===rg&&(ht=at(ht)),P(ht,m.ADD_ATTR,pt)),m.ADD_URI_SAFE_ATTR&&P(td,m.ADD_URI_SAFE_ATTR,pt),m.FORBID_CONTENTS&&(zi===ug&&(zi=at(zi)),P(zi,m.FORBID_CONTENTS,pt)),ed&&(ft["#text"]=!0),Yr&&P(ft,["html","head","body"]),ft.table&&(P(ft,["tbody"]),delete Xo.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ot=m.TRUSTED_TYPES_POLICY,Qo=Ot.createHTML("")}else Ot===void 0&&(Ot=Cb(Pa,At)),Ot!==null&&typeof Qo=="string"&&(Qo=Ot.createHTML(""));o&&o(m),Wi=m}},pg=P({},["mi","mo","mn","ms","mtext"]),mg=P({},["foreignobject","desc","title","annotation-xml"]),Gb=P({},["title","style","font","a","script"]),gg=P({},[...Jn,...mn,...xa]),vg=P({},[...ji,...N]),Wb=function(m){let I=Gl(m);(!I||!I.tagName)&&(I={namespaceURI:Gi,tagName:"template"});let F=p(m.tagName),ke=p(I.tagName);return rd[m.namespaceURI]?m.namespaceURI===ja?I.namespaceURI===nr?F==="svg":I.namespaceURI===ka?F==="svg"&&(ke==="annotation-xml"||pg[ke]):!!gg[F]:m.namespaceURI===ka?I.namespaceURI===nr?F==="math":I.namespaceURI===ja?F==="math"&&mg[ke]:!!vg[F]:m.namespaceURI===nr?I.namespaceURI===ja&&!mg[ke]||I.namespaceURI===ka&&!pg[ke]?!1:!vg[F]&&(Gb[F]||!gg[F]):!!(es==="application/xhtml+xml"&&rd[m.namespaceURI]):!1},Zr=function(m){f(k.removed,{element:m});try{m.parentNode.removeChild(m)}catch{m.remove()}},od=function(m,I){try{f(k.removed,{attribute:I.getAttributeNode(m),from:I})}catch{f(k.removed,{attribute:null,from:I})}if(I.removeAttribute(m),m==="is"&&!ht[m])if($i||Fa)try{Zr(I)}catch{}else try{I.setAttribute(m,"")}catch{}},yg=function(m){let I=null,F=null;if(Jl)m=""+m;else{let Ct=D(m,/^[\r\n\t ]+/);F=Ct&&Ct[0]}es==="application/xhtml+xml"&&Gi===nr&&(m=''+m+"");let ke=Ot?Ot.createHTML(m):m;if(Gi===nr)try{I=new Ab().parseFromString(ke,es)}catch{}if(!I||!I.documentElement){I=Wl.createDocument(Gi,"template",null);try{I.documentElement.innerHTML=nd?Qo:ke}catch{}}let It=I.body||I.documentElement;return m&&F&&It.insertBefore(Ce.createTextNode(F),It.childNodes[0]||null),Gi===nr?Fb.call(I,Yr?"html":"body")[0]:Yr?I.documentElement:It},Dg=function(m){return Pb.call(m.ownerDocument||m,m,zl.SHOW_ELEMENT|zl.SHOW_COMMENT|zl.SHOW_TEXT,null)},qb=function(m){return m instanceof Tb&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof Sb)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},_g=function(m){return typeof Hl=="function"&&m instanceof Hl},rr=function(m,I,F){On[m]&&l(On[m],ke=>{ke.call(k,I,F,Wi)})},Eg=function(m){let I=null;if(rr("beforeSanitizeElements",m,null),qb(m))return Zr(m),!0;let F=pt(m.nodeName);if(rr("uponSanitizeElement",m,{tagName:F,allowedTags:ft}),m.hasChildNodes()&&!_g(m.firstElementChild)&&q(/<[/\w]/g,m.innerHTML)&&q(/<[/\w]/g,m.textContent))return Zr(m),!0;if(!ft[F]||Xo[F]){if(!Xo[F]&&bg(F)&&(nt.tagNameCheck instanceof RegExp&&q(nt.tagNameCheck,F)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(F)))return!1;if(ed&&!zi[F]){let ke=Gl(m)||m.parentNode,It=Nb(m)||m.childNodes;if(It&&ke){let Ct=It.length;for(let Vt=Ct-1;Vt>=0;--Vt)ke.insertBefore(Ob(It[Vt],!0),xb(m))}}return Zr(m),!0}return m instanceof Jm&&!Wb(m)||(F==="noscript"||F==="noembed"||F==="noframes")&&q(/<\/no(script|embed|frames)/i,m.innerHTML)?(Zr(m),!0):(Bi&&m.nodeType===3&&(I=m.textContent,l([ql,Yl,Zl],ke=>{I=S(I,ke," ")}),m.textContent!==I&&(f(k.removed,{element:m.cloneNode()}),m.textContent=I)),rr("afterSanitizeElements",m,null),!1)},wg=function(m,I,F){if(ag&&(I==="id"||I==="name")&&(F in Ce||F in zb))return!1;if(!(Ql&&!Kl[I]&&q(kb,I))){if(!(ig&&q(jb,I))){if(!ht[I]||Kl[I]){if(!(bg(m)&&(nt.tagNameCheck instanceof RegExp&&q(nt.tagNameCheck,m)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(m))&&(nt.attributeNameCheck instanceof RegExp&&q(nt.attributeNameCheck,I)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(I))||I==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&q(nt.tagNameCheck,F)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(F))))return!1}else if(!td[I]){if(!q(tg,S(F,eg,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&m!=="script"&&T(F,"data:")===0&&lg[m])){if(!(og&&!q(Vb,S(F,eg,"")))){if(F)return!1}}}}}}return!0},bg=function(m){return m.indexOf("-")>0},Ig=function(m){rr("beforeSanitizeAttributes",m,null);let{attributes:I}=m;if(!I)return;let F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ht},ke=I.length;for(;ke--;){let It=I[ke],{name:Ct,namespaceURI:Vt,value:Kr}=It,ts=pt(Ct),Ut=Ct==="value"?Kr:z(Kr);if(F.attrName=ts,F.attrValue=Ut,F.keepAttr=!0,F.forceKeepAttr=void 0,rr("uponSanitizeAttribute",m,F),Ut=F.attrValue,F.forceKeepAttr||(od(Ct,m),!F.keepAttr))continue;if(!sg&&q(/\/>/i,Ut)){od(Ct,m);continue}Bi&&l([ql,Yl,Zl],Mg=>{Ut=S(Ut,Mg," ")});let Cg=pt(m.nodeName);if(wg(Cg,ts,Ut)){if(cg&&(ts==="id"||ts==="name")&&(od(Ct,m),Ut=Ub+Ut),Ot&&typeof Pa=="object"&&typeof Pa.getAttributeType=="function"&&!Vt)switch(Pa.getAttributeType(Cg,ts)){case"TrustedHTML":{Ut=Ot.createHTML(Ut);break}case"TrustedScriptURL":{Ut=Ot.createScriptURL(Ut);break}}try{Vt?m.setAttributeNS(Vt,Ct,Ut):m.setAttribute(Ct,Ut),d(k.removed)}catch{}}}rr("afterSanitizeAttributes",m,null)},Yb=function j(m){let I=null,F=Dg(m);for(rr("beforeSanitizeShadowDOM",m,null);I=F.nextNode();)rr("uponSanitizeShadowNode",I,null),!Eg(I)&&(I.content instanceof tr&&j(I.content),Ig(I));rr("afterSanitizeShadowDOM",m,null)};return k.sanitize=function(j){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,F=null,ke=null,It=null;if(nd=!j,nd&&(j=""),typeof j!="string"&&!_g(j))if(typeof j.toString=="function"){if(j=j.toString(),typeof j!="string")throw fe("dirty is not a string, aborting")}else throw fe("toString is not a function");if(!k.isSupported)return j;if(Xl||id(m),k.removed=[],typeof j=="string"&&(Jo=!1),Jo){if(j.nodeName){let Kr=pt(j.nodeName);if(!ft[Kr]||Xo[Kr])throw fe("root node is forbidden and cannot be sanitized in-place")}}else if(j instanceof Hl)I=yg(""),F=I.ownerDocument.importNode(j,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!$i&&!Bi&&!Yr&&j.indexOf("<")===-1)return Ot&&La?Ot.createHTML(j):j;if(I=yg(j),!I)return $i?null:La?Qo:""}I&&Jl&&Zr(I.firstChild);let Ct=Dg(Jo?j:I);for(;ke=Ct.nextNode();)Eg(ke)||(ke.content instanceof tr&&Yb(ke.content),Ig(ke));if(Jo)return j;if($i){if(Fa)for(It=Rb.call(I.ownerDocument);I.firstChild;)It.appendChild(I.firstChild);else It=I;return(ht.shadowroot||ht.shadowrootmode)&&(It=Lb.call(pe,It,!0)),It}let Vt=Yr?I.outerHTML:I.innerHTML;return Yr&&ft["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&q(qr,I.ownerDocument.doctype.name)&&(Vt="\n"+Vt),Bi&&l([ql,Yl,Zl],Kr=>{Vt=S(Vt,Kr," ")}),Ot&&La?Ot.createHTML(Vt):Vt},k.setConfig=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};id(j),Xl=!0},k.clearConfig=function(){Wi=null,Xl=!1},k.isValidAttribute=function(j,m,I){Wi||id({});let F=pt(j),ke=pt(m);return wg(F,ke,I)},k.addHook=function(j,m){typeof m=="function"&&(On[j]=On[j]||[],f(On[j],m))},k.removeHook=function(j){if(On[j])return d(On[j])},k.removeHooks=function(j){On[j]&&(On[j]=[])},k.removeAllHooks=function(){On={}},k}var Mb=Xm();return Mb})});var Og=null;var cd=1,ud=Symbol("SIGNAL");function xt(e){let t=Og;return Og=e,t}var xg={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 iI(e){if(!(fd(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cd)){if(!e.producerMustRecompute(e)&&!ld(e)){e.dirty=!1,e.lastCleanEpoch=cd;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=cd}}function Ng(e){return e&&(e.nextProducerIndex=0),xt(e)}function Pg(e,t){if(xt(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(fd(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ld(e){Ba(e);for(let t=0;t0}function Ba(e){var t,n,r;(t=e.producerNode)!=null||(e.producerNode=[]),(n=e.producerIndexOfThis)!=null||(e.producerIndexOfThis=[]),(r=e.producerLastReadVersion)!=null||(e.producerLastReadVersion=[])}function oI(e){var t,n;(t=e.liveConsumerNode)!=null||(e.liveConsumerNode=[]),(n=e.liveConsumerIndexOfThis)!=null||(e.liveConsumerIndexOfThis=[])}function sI(){throw new Error}var aI=sI;function Fg(e){aI=e}function $(e){return typeof e=="function"}function qi(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 $a=qi(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 Qr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var rt=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($(r))try{r()}catch(o){t=o instanceof $a?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Lg(o)}catch(s){t=t!=null?t:[],s instanceof $a?t=[...t,...s.errors]:t.push(s)}}if(t)throw new $a(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Lg(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)&&Qr(n,t)}remove(t){let{_finalizers:n}=this;n&&Qr(n,t),t instanceof e&&t._removeParent(this)}};rt.EMPTY=(()=>{let e=new rt;return e.closed=!0,e})();var hd=rt.EMPTY;function Ha(e){return e instanceof rt||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Lg(e){$(e)?e():e.unsubscribe()}var gn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yi={setTimeout(e,t,...n){let{delegate:r}=Yi;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Yi;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function za(e){Yi.setTimeout(()=>{let{onUnhandledError:t}=gn;if(t)t(e);else throw e})}function Zt(){}var kg=pd("C",void 0,void 0);function jg(e){return pd("E",void 0,e)}function Vg(e){return pd("N",e,void 0)}function pd(e,t,n){return{kind:e,value:t,error:n}}var Xr=null;function Zi(e){if(gn.useDeprecatedSynchronousErrorHandling){let t=!Xr;if(t&&(Xr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Xr;if(Xr=null,n)throw r}}else e()}function Ug(e){gn.useDeprecatedSynchronousErrorHandling&&Xr&&(Xr.errorThrown=!0,Xr.error=e)}var Jr=class extends rt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ha(t)&&t.add(this)):this.destination=lI}static create(t,n,r){return new ir(t,n,r)}next(t){this.isStopped?gd(Vg(t),this):this._next(t)}error(t){this.isStopped?gd(jg(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?gd(kg,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()}}},cI=Function.prototype.bind;function md(e,t){return cI.call(e,t)}var vd=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ga(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ga(r)}else Ga(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ga(n)}}},ir=class extends Jr{constructor(t,n,r){super();let i;if($(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&&gn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&md(t.next,o),error:t.error&&md(t.error,o),complete:t.complete&&md(t.complete,o)}):i=t}this.destination=new vd(i)}};function Ga(e){gn.useDeprecatedSynchronousErrorHandling?Ug(e):za(e)}function uI(e){throw e}function gd(e,t){let{onStoppedNotification:n}=gn;n&&Yi.setTimeout(()=>n(e,t))}var lI={closed:!0,next:Zt,error:uI,complete:Zt};var Ki=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Je(e){return e}function ei(...e){return yd(e)}function yd(e){return e.length===0?Je:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var R=(()=>{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=fI(n)?n:new ir(n,r,i);return Zi(()=>{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=Bg(r),new r((i,o)=>{let s=new ir({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)}[Ki](){return this}pipe(...n){return yd(n)(this)}toPromise(n){return n=Bg(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 Bg(e){var t;return(t=e!=null?e:gn.Promise)!==null&&t!==void 0?t:Promise}function dI(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function fI(e){return e&&e instanceof Jr||dI(e)&&Ha(e)}function Dd(e){return $(e==null?void 0:e.lift)}function V(e){return t=>{if(Dd(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 x(e,t,n,r,i){return new _d(e,t,n,r,i)}var _d=class extends Jr{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 Qi(){return V((e,t)=>{let n=null;e._refCount++;let r=x(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 Xi=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Dd(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 rt;let n=this.getSubject();t.add(this.source.subscribe(x(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=rt.EMPTY)}return t}refCount(){return Qi()(this)}};var $g=qi(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ae=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Wa(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new $g}next(n){Zi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Zi(()=>{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(){Zi(()=>{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?hd:(this.currentObservers=null,o.push(n),new rt(()=>{this.currentObservers=null,Qr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Wa(t,n),e})(),Wa=class extends Ae{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:hd}};var qe=class extends Ae{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 ns={now(){return(ns.delegate||Date).now()},delegate:void 0};var or=class extends Ae{constructor(t=1/0,n=1/0,r=ns){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 Ka(e){return e&&$(e.schedule)}function Ed(e){return e[e.length-1]}function eo(e){return $(Ed(e))?e.pop():void 0}function xn(e){return Ka(Ed(e))?e.pop():void 0}function zg(e,t){return typeof Ed(e)=="number"?e.pop():t}function Wg(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 Xa(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 Gg(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 ni(e){return this instanceof ni?(this.v=e,this):new ni(e)}function qg(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(g,D){o.push([f,p,g,D])>1||a(f,p)})})}function a(f,p){try{c(r[f](p))}catch(g){d(o[0][3],g)}}function c(f){f.value instanceof ni?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 Yg(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 Gg=="function"?Gg(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 to=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ja(e){return $(e==null?void 0:e.then)}function ec(e){return $(e[Ki])}function tc(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function nc(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 hI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rc=hI();function ic(e){return $(e==null?void 0:e[rc])}function oc(e){return qg(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield ni(n.read());if(i)return yield ni(void 0);yield yield ni(r)}}finally{n.releaseLock()}})}function sc(e){return $(e==null?void 0:e.getReader)}function Z(e){if(e instanceof R)return e;if(e!=null){if(ec(e))return pI(e);if(to(e))return mI(e);if(Ja(e))return gI(e);if(tc(e))return Zg(e);if(ic(e))return vI(e);if(sc(e))return yI(e)}throw nc(e)}function pI(e){return new R(t=>{let n=e[Ki]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mI(e){return new R(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,za)})}function vI(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Zg(e){return new R(t=>{DI(e,t).catch(n=>t.error(n))})}function yI(e){return Zg(oc(e))}function DI(e,t){var n,r,i,o;return Xa(this,void 0,void 0,function*(){try{for(n=Yg(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 Bt(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 ac(e,t=0){return V((n,r)=>{n.subscribe(x(r,i=>Bt(r,e,()=>r.next(i),t),()=>Bt(r,e,()=>r.complete(),t),i=>Bt(r,e,()=>r.error(i),t)))})}function cc(e,t=0){return V((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Kg(e,t){return Z(e).pipe(cc(t),ac(t))}function Qg(e,t){return Z(e).pipe(cc(t),ac(t))}function Xg(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Jg(e,t){return new R(n=>{let r;return Bt(n,t,()=>{r=e[rc](),Bt(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)}),()=>$(r==null?void 0:r.return)&&r.return()})}function uc(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{Bt(n,t,()=>{let r=e[Symbol.asyncIterator]();Bt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function ev(e,t){return uc(oc(e),t)}function tv(e,t){if(e!=null){if(ec(e))return Kg(e,t);if(to(e))return Xg(e,t);if(Ja(e))return Qg(e,t);if(tc(e))return uc(e,t);if(ic(e))return Jg(e,t);if(sc(e))return ev(e,t)}throw nc(e)}function xe(e,t){return t?tv(e,t):Z(e)}function A(...e){let t=xn(e);return xe(e,t)}function no(e,t){let n=$(e)?e:()=>e,r=i=>i.error(n());return new R(t?i=>t.schedule(r,0,i):r)}function ri(e){return!!e&&(e instanceof R||$(e.lift)&&$(e.subscribe))}var sr=qi(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nv(e){return e instanceof Date&&!isNaN(e)}function w(e,t){return V((n,r)=>{let i=0;n.subscribe(x(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:_I}=Array;function EI(e,t){return _I(t)?e(...t):e(t)}function ro(e){return w(t=>EI(e,t))}var{isArray:wI}=Array,{getPrototypeOf:bI,prototype:II,keys:CI}=Object;function lc(e){if(e.length===1){let t=e[0];if(wI(t))return{args:t,keys:null};if(MI(t)){let n=CI(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function MI(e){return e&&typeof e=="object"&&bI(e)===II}function dc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function fc(...e){let t=xn(e),n=eo(e),{args:r,keys:i}=lc(e);if(r.length===0)return xe([],t);let o=new R(SI(r,t,i?s=>dc(i,s):Je));return n?o.pipe(ro(n)):o}function SI(e,t,n=Je){return r=>{rv(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let u=xe(e[c],t),l=!1;u.subscribe(x(r,d=>{o[c]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function rv(e,t,n){e?Bt(n,e,t):t()}function iv(e,t,n,r,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=D=>u{o&&t.next(D),u++;let S=!1;Z(n(D,l++)).subscribe(x(t,T=>{i==null||i(T),o?p(T):t.next(T)},()=>{S=!0},void 0,()=>{if(S)try{for(u--;c.length&&ug(T)):g(T)}f()}catch(T){t.error(T)}}))};return e.subscribe(x(t,p,()=>{d=!0,f()})),()=>{a==null||a()}}function Qe(e,t,n=1/0){return $(t)?Qe((r,i)=>w((o,s)=>t(r,o,i,s))(Z(e(r,i))),n):(typeof t=="number"&&(n=t),V((r,i)=>iv(r,i,e,n)))}function is(e=1/0){return Qe(Je,e)}function ov(){return is(1)}function $t(...e){return ov()(xe(e,xn(e)))}function Nn(e){return new R(t=>{Z(e()).subscribe(t)})}function wd(...e){let t=eo(e),{args:n,keys:r}=lc(e),i=new R(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?dc(r,a):a),o.complete())}))}});return t?i.pipe(ro(t)):i}var TI=["addListener","removeListener"],AI=["addEventListener","removeEventListener"],OI=["on","off"];function Pn(e,t,n,r){if($(n)&&(r=n,n=void 0),r)return Pn(e,t,n).pipe(ro(r));let[i,o]=PI(e)?AI.map(s=>a=>e[s](t,a,n)):xI(e)?TI.map(sv(e,t)):NI(e)?OI.map(sv(e,t)):[];if(!i&&to(e))return Qe(s=>Pn(s,t,n))(Z(e));if(!i)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1o(a)})}function sv(e,t){return n=>r=>e[n](t,r)}function xI(e){return $(e.addListener)&&$(e.removeListener)}function NI(e){return $(e.on)&&$(e.off)}function PI(e){return $(e.addEventListener)&&$(e.removeEventListener)}function mt(e=0,t,n=Hg){let r=-1;return t!=null&&(Ka(t)?n=t:r=t),new R(i=>{let o=nv(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 Ve(...e){let t=xn(e),n=zg(e,1/0),r=e;return r.length?r.length===1?Z(r[0]):is(n)(xe(r,t)):Oe}var RI=new R(Zt);var{isArray:FI}=Array;function av(e){return e.length===1&&FI(e[0])?e[0]:e}function Ee(e,t){return V((n,r)=>{let i=0;n.subscribe(x(r,o=>e.call(t,o,i++)&&r.next(o)))})}function bd(...e){return e=av(e),e.length===1?Z(e[0]):new R(LI(e))}function LI(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(x(n,void 0,void 0,s=>{o=Z(e(s,vn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function cv(e,t,n,r,i){return(o,s)=>{let a=n,c=t,u=0;o.subscribe(x(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 ii(e,t){return $(t)?Qe(e,t,1):Qe(e,1)}function kI(e){return V((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(x(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=x(n,s,Zt),Z(e(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function uv(e,t=ti){return V((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 Cr(e){return V((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Xe(e){return e<=0?()=>Oe:V((t,n)=>{let r=0;t.subscribe(x(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function io(){return V((e,t)=>{e.subscribe(x(t,Zt))})}function os(e){return w(()=>e)}function Id(e,t){return t?n=>$t(t.pipe(Xe(1),io()),n.pipe(Id(e))):Qe((n,r)=>Z(e(n,r)).pipe(Xe(1),os(n)))}function ss(e,t=ti){let n=mt(e,t);return Id(()=>n)}function Ye(e,t=Je){return e=e!=null?e:jI,V((n,r)=>{let i,o=!0;n.subscribe(x(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function jI(e,t){return e===t}function hc(e=VI){return V((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function VI(){return new sr}function as(...e){return t=>$t(t,A(...e))}function Mr(e){return V((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function yn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee((i,o)=>e(i,o,r)):Je,Xe(1),n?Cr(t):hc(()=>new sr))}function oo(e){return e<=0?()=>Oe:V((t,n)=>{let r=[];t.subscribe(x(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Cd(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee((i,o)=>e(i,o,r)):Je,oo(1),n?Cr(t):hc(()=>new sr))}function pc(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>Oe:V((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let u=typeof n=="number"?mt(n):Z(n(o)),l=x(i,()=>{l.unsubscribe(),c()});u.subscribe(l)}else c()},c=()=>{let u=!1;s=r.subscribe(x(i,void 0,()=>{++o{let r,i=!1,o,s=!1,a=!1,c=()=>a&&s&&(n.complete(),!0),u=()=>(o||(o=new Ae,Z(e(o)).subscribe(x(n,()=>{r?l():i=!0},()=>{s=!0,c()}))),o),l=()=>{a=!1,r=t.subscribe(x(n,void 0,()=>{a=!0,!c()&&u().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}function mc(e,t){return V(cv(e,t,arguments.length>=2,!0))}function Ht(e={}){let{connector:t=()=>new Ae,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},g=()=>{let D=s;p(),D==null||D.unsubscribe()};return V((D,S)=>{u++,!d&&!l&&f();let T=c=c!=null?c:t();S.add(()=>{u--,u===0&&!d&&!l&&(a=Sd(g,i))}),T.subscribe(S),!s&&u>0&&(s=new ir({next:z=>T.next(z),error:z=>{d=!0,f(),a=Sd(p,n,z),T.error(z)},complete:()=>{l=!0,f(),a=Sd(p,r),T.complete()}}),Z(D).subscribe(s))})(o)}}function Sd(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ir({next:()=>{r.unsubscribe(),e()}});return Z(t(...n)).subscribe(r)}function Kt(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,Ht({connector:()=>new or(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Td(e){return Ee((t,n)=>e<=n)}function Ad(e){return V((t,n)=>{let r=!1,i=0;t.subscribe(x(n,o=>(r||(r=!e(o,i++)))&&n.next(o)))})}function we(...e){let t=xn(e);return V((n,r)=>{(t?$t(e,n,t):$t(e,n)).subscribe(r)})}function ce(e,t){return V((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(x(r,c=>{i==null||i.unsubscribe();let u=0,l=o++;Z(e(c,l)).subscribe(i=x(r,d=>r.next(t?t(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Me(e){return V((t,n)=>{Z(e).subscribe(x(n,()=>n.complete(),Zt)),!n.closed&&t.subscribe(n)})}function gc(e,t=!1){return V((n,r)=>{let i=0;n.subscribe(x(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function Ne(e,t,n){let r=$(e)||t||n?{next:e,error:t,complete:n}:e;return r?V((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(x(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)}))}):Je}function lv(e,t){return V((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=g=>c=Z(e(g)).subscribe(x(r,l,d)),p=()=>{if(s){s=!1;let g=a;a=null,r.next(g),!u&&f(g)}};n.subscribe(x(r,g=>{s=!0,a=g,!(c&&!c.closed)&&(i?p():f(g))},()=>{u=!0,!(o&&s&&c&&!c.closed)&&r.complete()}))})}function Sr(e,t=ti,n){let r=mt(e,t);return lv(()=>r,n)}function cs(...e){let t=eo(e);return V((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(Je))&&(s=null))},Zt));n.subscribe(x(r,c=>{if(a){let u=[c,...o];r.next(t?t(...u):u)}}))})}var Jv="https://g.co/ng/security#xss",b=class extends Error{constructor(t,n){super(eu(t,n)),this.code=t}};function eu(e,t){let n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}var qd=class extends Ae{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=Od(o),i&&(i=Od(i)),s&&(s=Od(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof rt&&t.add(a),a}};function Od(e){return t=>{setTimeout(e,void 0,t)}}var it=qd;var ue=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}(ue||{});function Pt(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Pt).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 dv(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var ey=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ey||{}),Ln=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ln||{});function Is(e){return{toString:e}.toString()}var ar=globalThis;var lo={},Qt=[];function Re(e){for(let t in e)if(e[t]===Re)return t;throw Error("Could not find renamed property on target object.")}function UI(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}var BI=Re({\u0275cmp:Re}),$I=Re({\u0275dir:Re}),HI=Re({\u0275pipe:Re}),zI=Re({\u0275mod:Re}),xc=Re({\u0275fac:Re}),us=Re({__NG_ELEMENT_ID__:Re}),fv=Re({__NG_ENV_ID__:Re}),Ze=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ze||{});function ty(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 Yd(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&&ty(p,u,0)!==-1||r&2&&u!==f){if(Dn(r))return!1;s=!0}}}}return Dn(r)||s}function Dn(e){return(e&1)===0}function KI(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!==""&&!Dn(s)&&(t+=pv(o,i),i=""),r=s,o=o||!Dn(r);n++}return i!==""&&(t+=pv(o,i)),t}function nC(e){return e.map(tC).join(",")}function rC(e){let t=[],n=[],r=1,i=2;for(;r{var i;let t=uy(e),n=je(O({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ey.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||Qt,_:null,schemas:e.schemas||null,tView:null,id:""});ly(n);let r=e.dependencies;return n.directiveDefs=gv(r,!1),n.pipeDefs=gv(r,!0),n.id=sC(n),n})}function iC(e){return si(e)||oy(e)}function oC(e){return e!==null}function K(e){return Is(()=>({type:e.type,bootstrap:e.bootstrap||Qt,declarations:e.declarations||Qt,imports:e.imports||Qt,exports:e.exports||Qt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function mv(e,t){var r;if(e==null)return lo;let n={};for(let i in e)if(e.hasOwnProperty(i)){let o=e[i],s,a,c=Ze.None;Array.isArray(o)?(c=o[0],s=o[1],a=(r=o[2])!=null?r:s):(s=o,a=o),t?(n[s]=c!==Ze.None?[i,c]:i,t[s]=a):n[s]=i}return n}function H(e){return Is(()=>{let t=uy(e);return ly(t),t})}function gi(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 si(e){return e[BI]||null}function oy(e){return e[$I]||null}function sy(e){return e[HI]||null}function ay(e){let t=si(e)||oy(e)||sy(e);return t!==null?t.standalone:!1}function cy(e,t){let n=e[zI]||null;if(!n&&t===!0)throw new Error("Type ".concat(Pt(e)," does not have '\u0275mod' property."));return n}function uy(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||lo,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Qt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mv(e.inputs,t),outputs:mv(e.outputs),debugInfo:null}}function ly(e){var t;(t=e.features)==null||t.forEach(n=>n(e))}function gv(e,t){if(!e)return null;let n=t?sy:iC;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(oC)}function sC(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+=2147483648,"c"+t}var Wt=0,te=1,G=2,gt=3,_n=4,Jt=5,kn=6,hs=7,wn=8,fo=9,ur=10,Ue=11,ps=12,vv=13,vo=14,Xt=15,Cs=16,so=17,En=18,tu=19,dy=20,ls=21,xd=22,ai=23,ot=25,Wf=1,ms=6,lr=7,Nc=8,ho=9,Gt=10,qf=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(qf||{});function cr(e){return Array.isArray(e)&&typeof e[Wf]=="object"}function jn(e){return Array.isArray(e)&&e[Wf]===!0}function Yf(e){return(e.flags&4)!==0}function Ms(e){return e.componentOffset>-1}function nu(e){return(e.flags&1)===1}function dr(e){return!!e.template}function fy(e){return(e[G]&512)!==0}var hy="svg",aC="math",cC=!1;function uC(){return cC}function bn(e){for(;Array.isArray(e);)e=e[Wt];return e}function lC(e){for(;Array.isArray(e);){if(typeof e[Wf]=="object")return e;e=e[Wt]}return null}function py(e,t){return bn(t[e])}function en(e,t){return bn(t[e.index])}function my(e,t){return e.data[t]}function Ss(e,t){return e[t]}function xr(e,t){let n=t[e];return cr(n)?n:n[Wt]}function dC(e){return(e[G]&4)===4}function Zf(e){return(e[G]&128)===128}function fC(e){return jn(e[gt])}function po(e,t){return t==null?null:e[t]}function gy(e){e[so]=0}function hC(e){e[G]&1024||(e[G]|=1024,Zf(e)&&gs(e))}function pC(e,t){for(;e>0;)t=t[vo],e--;return t}function Kf(e){var t;return!!(e[G]&9216||(t=e[ai])!=null&&t.dirty)}function Zd(e){var t;Kf(e)?gs(e):e[G]&64&&(uC()?(e[G]|=1024,gs(e)):(t=e[ur].changeDetectionScheduler)==null||t.notify())}function gs(e){var n;(n=e[ur].changeDetectionScheduler)==null||n.notify();let t=vs(e);for(;t!==null&&!(t[G]&8192||(t[G]|=8192,!Zf(t)));)t=vs(t)}function mC(e,t){if((e[G]&256)===256)throw new b(911,!1);e[ls]===null&&(e[ls]=[]),e[ls].push(t)}function vs(e){let t=e[gt];return jn(t)?t[gt]:t}var ne={lFrame:by(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function gC(){return ne.lFrame.elementDepthCount}function vC(){ne.lFrame.elementDepthCount++}function yC(){ne.lFrame.elementDepthCount--}function vy(){return ne.bindingsEnabled}function yo(){return ne.skipHydrationRootTNode!==null}function DC(e){return ne.skipHydrationRootTNode===e}function _C(e){ne.skipHydrationRootTNode=e}function EC(){ne.skipHydrationRootTNode=null}function re(){return ne.lFrame.lView}function et(){return ne.lFrame.tView}function Vn(e){return ne.lFrame.contextLView=e,e[wn]}function Un(e){return ne.lFrame.contextLView=null,e}function Rt(){let e=yy();for(;e!==null&&e.type===64;)e=e.parent;return e}function yy(){return ne.lFrame.currentTNode}function wC(){let e=ne.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vi(e,t){let n=ne.lFrame;n.currentTNode=e,n.isParent=t}function Qf(){return ne.lFrame.isParent}function Xf(){ne.lFrame.isParent=!1}function bC(){return ne.lFrame.contextLView}function yi(){let e=ne.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function IC(e){return ne.lFrame.bindingIndex=e}function Do(){return ne.lFrame.bindingIndex++}function CC(e){let t=ne.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function MC(){return ne.lFrame.inI18n}function SC(e,t){let n=ne.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kd(t)}function TC(){return ne.lFrame.currentDirectiveIndex}function Kd(e){ne.lFrame.currentDirectiveIndex=e}function Dy(e){let t=ne.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _y(){return ne.lFrame.currentQueryIndex}function Jf(e){ne.lFrame.currentQueryIndex=e}function AC(e){let t=e[te];return t.type===2?t.declTNode:t.type===1?e[Jt]:null}function Ey(e,t,n){if(n&ue.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&ue.Host);)if(i=AC(o),i===null||(o=o[vo],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=ne.lFrame=wy();return r.currentTNode=t,r.lView=e,!0}function eh(e){let t=wy(),n=e[te];ne.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wy(){let e=ne.lFrame,t=e===null?null:e.child;return t===null?by(e):t}function by(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 Iy(){let e=ne.lFrame;return ne.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cy=Iy;function th(){let e=Iy();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 OC(e){return(ne.lFrame.contextLView=pC(e,ne.lFrame.contextLView))[wn]}function _o(){return ne.lFrame.selectedIndex}function ci(e){ne.lFrame.selectedIndex=e}function Ts(){let e=ne.lFrame;return my(e.tView,e.selectedIndex)}function As(){ne.lFrame.currentNamespace=hy}function My(){xC()}function xC(){ne.lFrame.currentNamespace=null}function Sy(){return ne.lFrame.currentNamespace}var Ty=!0;function ru(){return Ty}function Nr(e){Ty=e}function NC(){return Eo(Rt(),re())}function Eo(e,t){return new Q(en(e,t))}var Q=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=NC;let e=t;return e})();function PC(e){return e instanceof Q?e.nativeElement:e}function RC(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?nh(n,t):t(n))}function Ay(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Pc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function LC(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 jC(e,t,n){let r=Os(e,t);return r>=0?e[r|1]=n:(r=~r,kC(e,r,t,n)),r}function Nd(e,t){let n=Os(e,t);if(n>=0)return e[n|1]}function Os(e,t){return VC(e,t,1)}function VC(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<WC}),WC="ng",rh=new _(""),tn=new _("",{providedIn:"platform",factory:()=>"unknown"});var jz=new _(""),ih=new _("",{providedIn:"root",factory:()=>{var e,t;return((t=(e=xs().body)==null?void 0:e.querySelector("[ngCspNonce]"))==null?void 0:t.getAttribute("ngCspNonce"))||null}});var qC=Re({__forward_ref__:Re});function gr(e){return e.__forward_ref__=gr,e.toString=function(){return Pt(this())},e}function Nt(e){return Ly(e)?e():e}function Ly(e){return typeof e=="function"&&e.hasOwnProperty(qC)&&e.__forward_ref__===gr}function ky(e){return e&&!!e.\u0275providers}function Ns(e){return typeof e=="string"?e:e==null?"":String(e)}function YC(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ns(e)}function ZC(e,t){let n=t?". Dependency path: ".concat(t.join(" > ")," > ").concat(e):"";throw new b(-200,e)}function oh(e,t){throw new b(-201,!1)}var Xd;function KC(){return Xd}function zt(e){let t=Xd;return Xd=e,t}function jy(e,t,n){let r=iu(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&ue.Optional)return null;if(t!==void 0)return t;oh(e,"Injector")}var QC={},Ds=QC,Jd="__NG_DI_FLAG__",Fc="ngTempTokenPath",XC="ngTokenPath",JC=/\n/gm,eM="\u0275",Ev="__source",ds;function Ar(e){let t=ds;return ds=e,t}function tM(e,t=ue.Default){if(ds===void 0)throw new b(-203,!1);return ds===null?jy(e,void 0,t):ds.get(e,t&ue.Optional?null:void 0,t)}function M(e,t=ue.Default){return(KC()||tM)(Nt(e),t)}function v(e,t=ue.Default){return M(e,su(t))}function su(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ef(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):Pt(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(JC,"\n "))}function oM(){let e=new Di;return v(tn)==="browser"&&(e.store=sM(xs(),v(ou))),e}var Di=(()=>{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 pM(e,t,n=!1){var l;let r=e.getAttribute(Pd);if(r==null)return null;let[i,o]=r.split("|");if(r=n?o:i,!r)return null;let s=o?"|".concat(o):"",a=n?i:s,c={};if(r!==""){let d=t.get(Di,null,{optional:!0});d!==null&&(c=d.get($y,[])[Number(r)])}let u={data:c,firstChild:(l=e.firstChild)!=null?l:null};return n&&(u.firstChild=e,au(u,0,e.nextSibling)),a?e.setAttribute(Pd,a):e.removeAttribute(Pd),u}function mM(){Hy=pM}function ch(e,t,n=!1){return Hy(e,t,n)}function gM(e){let t=e._lView;return t[te].type===2?null:(fy(t)&&(t=t[ot]),t)}function vM(e){var t;return(t=e.textContent)==null?void 0:t.replace(/\s/gm,"")}function yM(e){let t=xs(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=vM(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 au(e,t,n){var r;(r=e.segmentHeads)!=null||(e.segmentHeads={}),e.segmentHeads[t]=n}function nf(e,t){var n,r;return(r=(n=e.segmentHeads)==null?void 0:n[t])!=null?r:null}function DM(e,t){var i,o,s;let n=e.data,r=(o=(i=n[aM])==null?void 0:i[t])!=null?o:null;return r===null&&((s=n[ah])!=null&&s[t])&&(r=uh(e,t)),r}function zy(e,t){var n,r;return(r=(n=e.data[ah])==null?void 0:n[t])!=null?r:null}function uh(e,t){var i,o;let n=(i=zy(e,t))!=null?i:[],r=0;for(let s of n)r+=s[Lc]*((o=s[By])!=null?o:1);return r}function cu(e,t){var n;if(typeof e.disconnectedNodes>"u"){let r=e.data[dM];e.disconnectedNodes=r?new Set(r):null}return!!((n=e.disconnectedNodes)!=null&&n.has(t))}var vc="__parameters__";function _M(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function lh(e,t,n){return Is(()=>{let r=_M(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(vc)?c[vc]:Object.defineProperty(c,vc,{value:[]})[vc];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})}var vr=sh(lh("Optional"),8),Gy=sh(lh("Self"),2),yr=sh(lh("SkipSelf"),4);function ui(e,t){let n=e.hasOwnProperty(xc);return n?e[xc]:null}var li=new _(""),wo=new _("",-1),Wy=new _(""),kc=class{get(t,n=Ds){if(n===Ds){let r=new Error("NullInjectorError: No provider for ".concat(Pt(t),"!"));throw r.name="NullInjectorError",r}return n}};function _i(e){return{\u0275providers:e}}function EM(...e){return{\u0275providers:qy(!0,e),\u0275fromNgModule:!0}}function qy(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return nh(t,s=>{let a=s;rf(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&Yy(i,o),n}function Yy(e,t){for(let n=0;n{t(o,r)})}}function rf(e,t,n,r){if(e=Nt(e),!e)return!1;let i=null,o=Dv(e),s=!o&&si(e);if(!o&&!s){let c=e.ngModule;if(o=Dv(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)rf(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{nh(o.imports,l=>{rf(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}u!==void 0&&Yy(u,t)}if(!a){let u=ui(i)||(()=>new i);t({provide:i,useFactory:u,deps:Qt},i),t({provide:Wy,useValue:i,multi:!0},i),t({provide:li,useValue:()=>M(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;dh(c,l=>{t(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function dh(e,t){for(let n of e)ky(n)&&(n=n.\u0275providers),Array.isArray(n)?dh(n,t):t(n)}var wM=Re({provide:String,useValue:Re});function Zy(e){return e!==null&&typeof e=="object"&&wM in e}function bM(e){return!!(e&&e.useExisting)}function IM(e){return!!(e&&e.useFactory)}function mo(e){return typeof e=="function"}function CM(e){return!!e.useClass}var uu=new _(""),Cc={},MM={},Rd;function fh(){return Rd===void 0&&(Rd=new kc),Rd}var sn=class{},_s=class extends sn{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,sf(t,s=>this.processProvider(s)),this.records.set(wo,ao(void 0,this)),i.has("environment")&&this.records.set(sn,ao(void 0,this));let o=this.records.get(uu);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Wy,Qt,ue.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=Ar(this),r=zt(void 0),i;try{return t()}finally{Ar(n),zt(r)}}get(t,n=Ds,r=ue.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(fv))return t[fv](this);r=su(r);let i,o=Ar(this),s=zt(void 0);try{if(!(r&ue.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=xM(t)&&iu(t);u&&this.injectableDefInScope(u)?c=ao(of(t),Cc):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&ue.Self?fh():this.parent;return n=r&ue.Optional&&n===Ds?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Fc]=a[Fc]||[]).unshift(Pt(t)),o)throw a;return rM(a,t,"R3InjectorError",this.source)}else throw a}finally{zt(s),Ar(o)}}resolveInjectorInitializers(){let t=Ar(this),n=zt(void 0),r;try{let i=this.get(li,Qt,ue.Self);for(let o of i)o()}finally{Ar(t),zt(n)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Pt(r));return"R3Injector[".concat(t.join(", "),"]")}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=Nt(t);let n=mo(t)?t:Nt(t&&t.provide),r=TM(t);if(!mo(t)&&t.multi===!0){let i=this.records.get(n);i||(i=ao(void 0,Cc,!0),i.factory=()=>ef(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Cc&&(n.value=MM,n.value=n.factory()),typeof n.value=="object"&&n.value&&OM(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Nt(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 of(e){let t=iu(e),n=t!==null?t.factory:ui(e);if(n!==null)return n;if(e instanceof _)throw new b(204,!1);if(e instanceof Function)return SM(e);throw new b(204,!1)}function SM(e){if(e.length>0)throw new b(204,!1);let n=zC(e);return n!==null?()=>n.factory(e):()=>new e}function TM(e){if(Zy(e))return ao(void 0,e.useValue);{let t=Ky(e);return ao(t,Cc)}}function Ky(e,t,n){let r;if(mo(e)){let i=Nt(e);return ui(i)||of(i)}else if(Zy(e))r=()=>Nt(e.useValue);else if(IM(e))r=()=>e.useFactory(...ef(e.deps||[]));else if(bM(e))r=()=>M(Nt(e.useExisting));else{let i=Nt(e&&(e.useClass||e.provide));if(AM(e))r=()=>new i(...ef(e.deps));else return ui(i)||of(i)}return r}function ao(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function AM(e){return!!e.deps}function OM(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xM(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function sf(e,t){for(let n of e)Array.isArray(n)?sf(n,t):n&&ky(n)?sf(n.\u0275providers,t):t(n)}function Pr(e,t){e instanceof _s&&e.assertNotDestroyed();let n,r=Ar(e),i=zt(void 0);try{return t()}finally{Ar(r),zt(i)}}function NM(e){return typeof e=="function"}var af=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Qy(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function cn(){return Xy}function Xy(e){return e.type.prototype.ngOnChanges&&(e.setInput=RM),PM}cn.ngInherit=!0;function PM(){let e=eD(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===lo)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function RM(e,t,n,r,i){let o=this.declaredInputs[r],s=eD(e)||FM(e,{previous:lo,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new af(u&&u.currentValue,n,c===lo),Qy(e,t,i,n)}var Jy="__ngSimpleChanges__";function eD(e){return e[Jy]||null}function FM(e,t){return e[Jy]=t}var wv=null;var Rn=function(e,t,n){wv!=null&&wv(e,t,n)};function LM(e,t,n){var s,a,c,u,l;let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let d=Xy(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 lu(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[so]+=65536),(a>14>16&&(e[G]&3)===t&&(e[G]+=16384,bv(a,o)):bv(a,o)}var uo=-1,di=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function jM(e){return e instanceof di}function VM(e){return(e.flags&8)!==0}function UM(e){return(e.flags&16)!==0}function nD(e){return e!==uo}function jc(e){return e&32767}function BM(e){return e>>16}function Vc(e,t){let n=BM(e),r=t;for(;n>0;)r=r[vo],n--;return r}var cf=!0;function Uc(e){let t=cf;return cf=e,t}var $M=256,rD=$M-1,iD=5,HM=0,Fn={};function zM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(us)&&(r=n[us]),r==null&&(r=n[us]=HM++);let i=r&rD,o=1<>iD)]|=o}function Bc(e,t){let n=oD(e,t);if(n!==-1)return n;let r=t[te];r.firstCreatePass&&(e.injectorIndex=t.length,Ld(r.data,e),Ld(t,null),Ld(r.blueprint,null));let i=hh(e,t),o=e.injectorIndex;if(nD(i)){let s=jc(i),a=Vc(i,t),c=a[te].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function Ld(e,t){e.push(0,0,0,0,0,0,0,0,t)}function oD(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function hh(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=lD(i),r===null)return uo;if(n++,i=i[vo],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return uo}function uf(e,t,n){zM(e,t,n)}function sD(e,t,n){if(n&ue.Optional||e!==void 0)return e;oh(t,"NodeInjector")}function aD(e,t,n,r){if(n&ue.Optional&&r===void 0&&(r=null),!(n&(ue.Self|ue.Host))){let i=e[fo],o=zt(void 0);try{return i?i.get(t,r,n&ue.Optional):jy(t,r,n&ue.Optional)}finally{zt(o)}}return sD(r,t,n)}function cD(e,t,n,r=ue.Default,i){if(e!==null){if(t[G]&2048&&!(r&ue.Self)){let s=YM(e,t,n,r,Fn);if(s!==Fn)return s}let o=uD(e,t,n,r,Fn);if(o!==Fn)return o}return aD(t,n,r,i)}function uD(e,t,n,r,i){let o=WM(n);if(typeof o=="function"){if(!Ey(t,e,r))return r&ue.Host?sD(i,n,r):aD(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&ue.Optional))oh(n);else return s}finally{Cy()}}else if(typeof o=="number"){let s=null,a=oD(e,t),c=uo,u=r&ue.Host?t[Xt][Jt]:null;for((a===-1||r&ue.SkipSelf)&&(c=a===-1?hh(e,t):t[a+8],c===uo||!Cv(r,!1)?a=-1:(s=t[te],a=jc(c),t=Vc(c,t)));a!==-1;){let l=t[te];if(Iv(o,a,l.data)){let d=GM(a,t,n,s,r,u);if(d!==Fn)return d}c=t[a+8],c!==uo&&Cv(r,t[te].data[a+8]===u)&&Iv(o,a,t)?(s=l,a=jc(c),t=Vc(c,t)):a=-1}}return i}function GM(e,t,n,r,i,o){let s=t[te],a=s.data[e+8],c=r==null?Ms(a)&&cf:r!=s&&(a.type&3)!==0,u=i&ue.Host&&o===a,l=Tc(a,s,n,c,u);return l!==null?fi(t,s,l,a):Fn}function Tc(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&&g.type===n)return p}if(i){let p=s[c];if(p&&dr(p)&&p.type===n)return c}return null}function fi(e,t,n,r){let i=e[n],o=t.data;if(jM(i)){let s=i;s.resolving&&ZC(YC(o[n]));let a=Uc(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?zt(s.injectImpl):null,l=Ey(e,r,ue.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&LM(n,o[n],t)}finally{u!==null&&zt(u),Uc(a),s.resolving=!1,Cy()}}return i}function WM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(us)?e[us]:void 0;return typeof t=="number"?t>=0?t&rD:qM:t}function Iv(e,t,n){let r=1<>iD)]&r)}function Cv(e,t){return!(e&ue.Self)&&!(e&ue.Host&&t)}var oi=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return cD(this._tNode,this._lView,t,su(r),n)}};function qM(){return new oi(Rt(),re())}function Fe(e){return Is(()=>{let t=e.prototype.constructor,n=t[xc]||lf(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[xc]||lf(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function lf(e){return Ly(e)?()=>{let t=lf(Nt(e));return t&&t()}:ui(e)}function YM(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[G]&2048&&!(s[G]&512);){let a=uD(o,s,n,r|ue.Self,Fn);if(a!==Fn)return a;let c=o.parent;if(!c){let u=s[dy];if(u){let l=u.get(n,Fn,r);if(l!==Fn)return l}c=lD(s),s=s[vo]}o=c}return i}function lD(e){let t=e[te],n=t.type;return n===2?t.declTNode:n===1?e[Jt]:null}function Mv(e,t=null,n=null,r){let i=dD(e,t,n,r);return i.resolveInjectorInitializers(),i}function dD(e,t=null,n=null,r,i=new Set){let o=[n||Qt,EM(e)];return r=r||(typeof e=="object"?void 0:Pt(e)),new _s(o,t||fh(),r||null,i)}var qt=(()=>{let t=class t{static create(r,i){var o;if(Array.isArray(r))return Mv({name:""},i,r,"");{let s=(o=r.name)!=null?o:"";return Mv({name:s},r.parent,r.providers,s)}}};t.THROW_IF_NOT_FOUND=Ds,t.NULL=new kc,t.\u0275prov=C({token:t,providedIn:"any",factory:()=>M(wo)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})(),ZM="ngOriginalError";function kd(e){return e[ZM]}var fr=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&&kd(t);for(;n&&kd(n);)n=kd(n);return n||null}},fD=new _("",{providedIn:"root",factory:()=>v(fr).handleError.bind(void 0)}),yc=new _(""),hD=!1,pD=new _("",{providedIn:"root",factory:()=>hD}),Dc;function KM(){if(Dc===void 0&&(Dc=null,ar.trustedTypes))try{Dc=ar.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Dc}function du(e){var t;return((t=KM())==null?void 0:t.createHTML(e))||e}var _c;function QM(){if(_c===void 0&&(_c=null,ar.trustedTypes))try{_c=ar.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _c}function Sv(e){var t;return((t=QM())==null?void 0:t.createHTML(e))||e}var hr=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(Jv,")")}},df=class extends hr{getTypeName(){return"HTML"}},ff=class extends hr{getTypeName(){return"Style"}},hf=class extends hr{getTypeName(){return"Script"}},pf=class extends hr{getTypeName(){return"URL"}},mf=class extends hr{getTypeName(){return"ResourceURL"}};function Bn(e){return e instanceof hr?e.changingThisBreaksApplicationSecurity:e}function Rr(e,t){let n=XM(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(Jv,")"))}return n===t}function XM(e){return e instanceof hr&&e.getTypeName()||null}function mD(e){return new df(e)}function gD(e){return new ff(e)}function vD(e){return new hf(e)}function yD(e){return new pf(e)}function DD(e){return new mf(e)}function JM(e){let t=new vf(e);return eS()?new gf(t):t}var gf=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(du(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},vf=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=du(t),n}};function eS(){try{return!!new window.DOMParser().parseFromString(du(""),"text/html")}catch{return!1}}var tS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fu(e){return e=String(e),e.match(tS)?e:"unsafe:"+e}function Dr(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Ps(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var _D=Dr("area,br,col,hr,img,wbr"),ED=Dr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wD=Dr("rp,rt"),nS=Ps(wD,ED),rS=Ps(ED,Dr("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")),iS=Ps(wD,Dr("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")),Tv=Ps(_D,rS,iS,nS),bD=Dr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),oS=Dr("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"),sS=Dr("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"),aS=Ps(bD,oS,sS),cS=Dr("script,style,template"),yf=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(!Tv.hasOwnProperty(n))return this.sanitizedSomething=!0,!cS.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();Tv.hasOwnProperty(n)&&!_D.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Av(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}},uS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lS=/([^\#-~ |!])/g;function Av(e){return e.replace(/&/g,"&").replace(uS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(lS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Ec;function ph(e,t){let n=null;try{Ec=Ec||JM(e);let r=t?String(t):"";n=Ec.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=Ec.getInertBodyElement(r)}while(r!==o);let a=new yf().sanitizeChildren(Ov(n)||n);return du(a)}finally{if(n){let r=Ov(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ov(e){return"content"in e&&dS(e)?e.content:null}function dS(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var yt=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}(yt||{});function bo(e){let t=CD();return t?Sv(t.sanitize(yt.HTML,e)||""):Rr(e,"HTML")?Sv(Bn(e)):ph(xs(),Ns(e))}function ID(e){let t=CD();return t?t.sanitize(yt.URL,e)||"":Rr(e,"URL")?Bn(e):fu(Ns(e))}function CD(){let e=re();return e&&e[ur].sanitizer}var fS=/^>|^->||--!>|)/g,pS="\u200B$1\u200B";function mS(e){return e.replace(fS,t=>t.replace(hS,pS))}var MD=new Map,gS=0;function vS(){return gS++}function yS(e){MD.set(e[tu],e)}function DS(e){MD.delete(e[tu])}var xv="__ngContext__";function Or(e,t){cr(t)?(e[xv]=t[tu],yS(t)):e[xv]=t}function Vz(e){return e.ownerDocument.defaultView}function Uz(e){return e.ownerDocument}function _S(e){return e.ownerDocument.body}function SD(e){return e instanceof Function?e():e}function wc(e){return(e!=null?e:v(qt)).get(tn)==="browser"}var pr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(pr||{}),ES;function mh(e,t){return ES(e,t)}function co(e,t,n,r,i){if(r!=null){let o,s=!1;jn(r)?o=r:cr(r)&&(s=!0,r=r[Wt]);let a=bn(r);e===0&&n!==null?i==null?RD(t,n,a):$c(t,n,a,i||null,!0):e===1&&n!==null?$c(t,n,a,i||null,!0):e===2?kD(t,a,s):e===3&&t.destroyNode(a),o!=null&&LS(t,e,o,n,i)}}function TD(e,t){return e.createText(t)}function wS(e,t,n){e.setValue(t,n)}function AD(e,t){return e.createComment(mS(t))}function gh(e,t,n){return e.createElement(t,n)}function bS(e,t){OD(e,t),t[Wt]=null,t[Jt]=null}function IS(e,t,n,r,i,o){r[Wt]=i,r[Jt]=t,pu(e,r,n,1,i,o)}function OD(e,t){pu(e,t,t[Ue],2,null,null)}function CS(e){let t=e[ps];if(!t)return jd(e[te],e);for(;t;){let n=null;if(cr(t))n=t[ps];else{let r=t[Gt];r&&(n=r)}if(!n){for(;t&&!t[_n]&&t!==e;)cr(t)&&jd(t[te],t),t=t[gt];t===null&&(t=e),cr(t)&&jd(t[te],t),n=t&&t[_n]}t=n}}function MS(e,t,n,r){let i=Gt+r,o=n.length;r>0&&(n[i-1][_n]=t),r0&&(e[n-1][_n]=r[_n]);let o=Pc(e,Gt+t);bS(r[te],r);let s=o[En];s!==null&&s.detachView(o[te]),r[gt]=null,r[_n]=null,r[G]&=-129}return r}function ND(e,t){if(!(t[G]&256)){let n=t[Ue];n.destroyNode&&pu(e,t,n,3,null,null),CS(t)}}function jd(e,t){if(!(t[G]&256)){t[G]&=-129,t[G]|=256,t[ai]&&Rg(t[ai]),AS(e,t),TS(e,t),t[te].type===1&&t[Ue].destroy();let n=t[Cs];if(n!==null&&jn(t[gt])){n!==t[gt]&&xD(n,t);let r=t[En];r!==null&&r.detachView(e)}DS(t)}}function TS(e,t){let n=e.cleanup,r=t[hs];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[hs]=null);let i=t[ls];if(i!==null){t[ls]=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 en(r,n)}}function $c(e,t,n,r,i){e.insertBefore(t,n,r,i)}function RD(e,t,n){e.appendChild(t,n)}function Nv(e,t,n,r,i){r!==null?$c(e,t,n,r,i):RD(e,t,n)}function xS(e,t,n,r){e.removeChild(t,n,r)}function vh(e,t){return e.parentNode(t)}function NS(e,t){return e.nextSibling(t)}function FD(e,t,n){return RS(e,t,n)}function PS(e,t,n){return e.type&40?en(e,n):null}var RS=PS,Pv;function hu(e,t,n,r){let i=PD(e,r,t),o=t[Ue],s=r.parent||t[Jt],a=FD(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;cot&&$D(e,t,ot,!1),Rn(s?2:0,i),n(r,i)}finally{ci(o),Rn(s?3:1,i)}}function _h(e,t,n){if(Yf(t)){let r=xt(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function zS(e){xy(e)?jD(e):yM(e)}function GS(){qD=zS}function WS(e,t,n,r){let i=XD(t);i.push(n),e.firstCreatePass&&JD(e).push(r,i.length-1)}function qS(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return yo()&&(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 Rv(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r!=null||(r={});let a,c=Ze.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}e===0?Fv(r,n,u,a,c):Fv(r,n,u,a)}return r}function Fv(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function YS(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 JS(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Ms(n)&&sT(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Bc(n,t),Or(r,t);let s=n.initialInputs;for(let a=i;a{gs(e.lView)},consumerOnSignalRead(){this.lView[ai]=this}});function n_(e){return i_(e[ps])}function r_(e){return i_(e[_n])}function i_(e){for(;e!==null&&!jn(e);)e=e[_n];return e}var o_=100;function s_(e,t=!0,n=0){var s,a,c;let r=e[ur],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{bT(e,n)}catch(u){throw t&&e_(e,u),u}finally{o||((a=i.end)==null||a.call(i),(c=r.inlineEffectRunner)==null||c.flush())}}function bT(e,t){bf(e,t);let n=0;for(;Kf(e);){if(n===o_)throw new b(103,!1);n++,bf(e,1)}}function IT(e,t,n,r){var c;let i=t[G];if((i&256)===256)return;let o=!1;!o&&((c=t[ur].inlineEffectRunner)==null||c.flush()),eh(t);let s=null,a=null;!o&&CT(e)&&(a=DT(t),s=Ng(a));try{gy(t),IC(e.bindingStartIndex),n!==null&&GD(e,t,n,2,r);let u=(i&3)===3;if(!o)if(u){let f=e.preOrderCheckHooks;f!==null&&Mc(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Sc(t,f,0,null),Fd(t,0)}if(MT(t),a_(t,0),e.contentQueries!==null&&QD(e,t),!o)if(u){let f=e.contentCheckHooks;f!==null&&Mc(t,f)}else{let f=e.contentHooks;f!==null&&Sc(t,f,1),Fd(t,1)}VS(e,t);let l=e.components;l!==null&&u_(t,l,0);let d=e.viewQuery;if(d!==null&&wf(2,d,r),!o)if(u){let f=e.viewCheckHooks;f!==null&&Mc(t,f)}else{let f=e.viewHooks;f!==null&&Sc(t,f,2),Fd(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xd]){for(let f of t[xd])f();t[xd]=null}o||(t[G]&=-73)}catch(u){throw gs(t),u}finally{a!==null&&(Pg(a,s),ET(a)),th()}}function CT(e){return e.type!==2}function a_(e,t){for(let n=n_(e);n!==null;n=r_(n))for(let r=Gt;r-1&&(Df(t,r),Pc(n,r))}this._attachedToViewContainer=!1}ND(this._lView[te],this._lView)}onDestroy(t){mC(this._lView,t)}markForCheck(){Sh(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){Zd(this._lView),this._lView[G]|=128}detectChanges(){this._lView[G]|=1024,s_(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,OD(this._lView[te],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t,Zd(this._lView)}},vt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=OT;let e=t;return e})(),TT=vt,AT=class extends TT{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=gT(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new hi(i)}};function OT(){return yu(Rt(),re())}function yu(e,t){return e.type&4?new AT(t,e,Eo(e,t)):null}function l_(e){var i;let t=(i=e[ms])!=null?i:[],r=e[gt][Ue];for(let o of t)xT(o,r);e[ms]=Qt}function xT(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[Lc];for(;n0&&(s.firstChild=e,e=_u(i[Lc],e)),n.push(s)}return[e,n]}var f_=()=>null;function VT(e,t){let n=e[ms];return!t||n===null||n.length===0?null:n[0].data[uM]===t?n.shift():(l_(e),null)}function UT(){f_=VT}function kv(e,t){return f_(e,t)}var If=class{},Cf=class{},Gc=class{};function BT(e){let t=Error("No component factory found for ".concat(Pt(e),"."));return t[$T]=e,t}var $T="ngComponent";var Mf=class{resolveComponentFactory(t){throw BT(t)}},$n=(()=>{let t=class t{};t.NULL=new Mf;let e=t;return e})(),pi=class{},_r=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>HT();let e=t;return e})();function HT(){let e=re(),t=Rt(),n=xr(t.index,e);return(cr(n)?n:e)[Ue]}var zT=(()=>{let t=class t{};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Ud={};function GT(e){return typeof e=="function"&&e[ud]!==void 0}function h_(e){return GT(e)&&typeof e.set=="function"}function Th(e){let t=xt(null);try{return e()}finally{xt(t)}}function p_(e){return qT(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function WT(e,t){if(Array.isArray(e))for(let n=0;nt,Tf=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||YT}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 Af(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 Wc),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 Wc),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}},Af=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}},Of=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}},Wc=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Of,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 jv(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||Vv()),deps:[[t,new yr,new vr]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new b(901,!1)}};t.\u0275prov=C({token:t,providedIn:"root",factory:Vv});let e=t;return e})();var Dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=ZT;let e=t;return e})();function ZT(e){return KT(Rt(),re(),(e&16)===16)}function KT(e,t,n){if(Ms(e)&&!n){let r=xr(e.index,t);return new hi(r,r)}else if(e.type&47){let r=t[Xt];return new hi(r,t)}return null}var Uv=new Set;function Rs(e){var t;Uv.has(e)||(Uv.add(e),(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_feature_usage",{detail:{feature:e}}))}function Bv(...e){}function QT(){let e=typeof ar.requestAnimationFrame=="function",t=ar[e?"requestAnimationFrame":"setTimeout"],n=ar[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 de=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 it(!1),this.onMicrotaskEmpty=new it(!1),this.onStable=new it(!1),this.onError=new it(!1),typeof Zone>"u")throw new b(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=QT().nativeRequestAnimationFrame,eA(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(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,XT,Bv,Bv);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)}},XT={};function Oh(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 JT(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ar,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xf(e),e.isCheckStableRunning=!0,Oh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xf(e))}function eA(e){let t=()=>{JT(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(tA(a))return n.invokeTask(i,o,s,a);try{return $v(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Hv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return $v(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Hv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,xf(e),Oh(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 xf(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function $v(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hv(e){e._nesting--,Oh(e)}function tA(e){var t;return!Array.isArray(e)||e.length!==1?!1:((t=e[0].data)==null?void 0:t.__ignore_ng_zone__)===!0}var m_=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var i;let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o();(i=this.handler)==null||i.execute()}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function qc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&UD(e,n,o.join(" "))}}function cA(e,t,n){let r=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=lA;let e=t;return e})();function lA(){let e=Rt();return v_(e,re())}var dA=Ft,g_=class extends dA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Eo(this._hostTNode,this._hostLView)}get injector(){return new oi(this._hostTNode,this._hostLView)}get parentInjector(){let t=hh(this._hostTNode,this._hostLView);if(nD(t)){let n=Vc(t,this._hostLView),r=jc(t),i=n[te].data[r+8];return new oi(i,n)}else return new oi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Gv(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=kv(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Lv(this._hostTNode,s)),a}createComponent(t,n,r,i,o){var g,D,S;let s=t&&!NM(t),a;if(s)a=n;else{let T=n||{};a=T.index,r=T.injector,i=T.projectableNodes,o=T.environmentInjector||T.ngModuleRef}let c=s?t:new Es(si(t)),u=r||this.parentInjector;if(!o&&c.ngModule==null){let z=(s?u:this.parentInjector).get(sn,null);z&&(o=z)}let l=si((g=c.componentType)!=null?g:{}),d=kv(this._lContainer,(D=l==null?void 0:l.id)!=null?D:null),f=(S=d==null?void 0:d.firstChild)!=null?S:null,p=c.create(u,i,f,o);return this.insertImpl(p.hostView,a,Lv(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(fC(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[gt],u=new g_(c,c[Jt],c[gt]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return vT(s,i,o,r),t.attachToViewContainerRef(),Ay(Bd(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Gv(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Df(this._lContainer,n);r&&(Pc(Bd(this._lContainer),n),ND(r[te],r))}detach(t){let n=this._adjustIndex(t,-1),r=Df(this._lContainer,n);return r&&Pc(Bd(this._lContainer),n)!=null?new hi(r):null}_adjustIndex(t,n=0){return t==null?this.length+n:t}};function Gv(e){return e[Nc]}function Bd(e){return e[Nc]||(e[Nc]=[])}function v_(e,t){let n,r=t[e.index];return jn(r)?n=r:(n=KD(r,t,null,e),t[e.index]=n,vu(t,n)),y_(n,t,e,r),new g_(n,e,t)}function fA(e,t){let n=e[Ue],r=n.createComment(""),i=en(t,e),o=vh(n,i);return $c(n,o,r,NS(n,i),!1),r}var y_=D_,xh=()=>!1;function hA(e,t,n){return xh(e,t,n)}function D_(e,t,n,r){if(e[lr])return;let i;n.type&8?i=bn(r):i=fA(t,n),e[lr]=i}function pA(e,t,n){var l;if(e[lr]&&e[ms])return!0;let r=n[kn],i=t.index-ot;if(!r||HC(t)||cu(r,i))return!1;let s=nf(r,i),a=(l=r.data[ah])==null?void 0:l[i],[c,u]=jT(s,a);return e[lr]=c,e[ms]=u,!0}function mA(e,t,n,r){xh(e,n,t)||D_(e,t,n,r)}function gA(){y_=mA,xh=pA}var Rf=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ff=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;dt.trim())}function w_(e,t,n){e.queries===null&&(e.queries=new Lf),e.queries.track(new kf(t,n))}function CA(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Nh(e,t){return e.queries.getByIndex(t)}function MA(e,t){let n=e[te],r=Nh(n,t);return r.crossesNgTemplate?jf(n,e,t,[]):__(n,e,r,t)}function SA(e){return Object.getPrototypeOf(e.prototype).constructor}function He(e){let t=SA(e.type),n=!0,r=[e];for(;t;){let i;if(dr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new b(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=bc(e.inputs),s.inputTransforms=bc(e.inputTransforms),s.declaredInputs=bc(e.declaredInputs),s.outputs=bc(e.outputs);let a=i.hostBindings;a&&NA(e,a);let c=i.viewQuery,u=i.contentQueries;if(c&&OA(e,c),u&&xA(e,u),TA(e,i),UI(e.outputs,i.outputs),dr(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=fs(i.hostAttrs,n=fs(n,i.hostAttrs))}}function bc(e){return e===lo?{}:e===Qt?[]:e}function OA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function xA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function NA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var mr=class{},ws=class{};function b_(e,t){return new Kc(e,t!=null?t:null,[])}var Kc=class extends mr{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yc(this);let i=cy(t);this._bootstrapComponents=SD(i.bootstrap),this._r3Injector=dD(t,n,[{provide:mr,useValue:this},{provide:$n,useValue:this.componentFactoryResolver},...r],Pt(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)}},Vf=class extends ws{constructor(t){super(),this.moduleType=t}create(t){return new Kc(this.moduleType,t,[])}};var Qc=class extends mr{constructor(t){super(),this.componentFactoryResolver=new Yc(this),this.instance=null;let n=new _s([...t.providers,{provide:mr,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],t.parent||fh(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ph(e,t,n=null){return new Qc({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Fs=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ls(e,t,n){return e[t]=n}function PA(e,t){return e[t]}function an(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Uf(e,t,n,r){let i=an(e,t,n);return an(e,t+1,r)||i}function I_(e,t,n,r,i,o){let s=Uf(e,t,n,r);return Uf(e,t+2,i,o)||s}function RA(e,t,n,r,i,o,s,a,c){let u=t.consts,l=Io(t,e,4,s||null,po(u,a));Ih(t,n,l,po(u,c)),lu(t,l);let d=l.tView=bh(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 be(e,t,n,r,i,o,s,a){let c=re(),u=et(),l=e+ot,d=u.firstCreatePass?RA(l,u,c,t,n,r,i,o,s):u.data[l];vi(d,!1);let f=C_(u,c,d,e);ru()&&hu(u,c,f,d),Or(f,c);let p=KD(f,c,f,d);return c[l]=p,vu(c,p),hA(p,d,c),nu(d)&&Eh(u,c,d),s!=null&&wh(c,d,a),be}var C_=M_;function M_(e,t,n,r){return Nr(!0),t[Ue].createComment("")}function FA(e,t,n,r){var l,d;let i=t[kn],o=!i||yo()||cu(i,r);if(Nr(o),o)return M_(e,t,n,r);let s=(d=(l=i.data[cM])==null?void 0:l[r])!=null?d:null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=Du(i,e,t,n);au(i,r,a);let c=uh(i,r);return _u(c,a)}function LA(){C_=FA}function lt(e,t,n,r){let i=re(),o=Do();if(an(i,o,t)){let s=et(),a=Ts();aT(a,i,e,t,n,r)}return lt}function kA(e,t,n,r){return an(e,Do(),n)?t+Ns(n)+r:Ei}function Ic(e,t){return e<<17|t<<2}function mi(e){return e>>17&32767}function jA(e){return(e&2)==2}function VA(e,t){return e&131071|t<<17}function Bf(e){return e|2}function go(e){return(e&131068)>>2}function $d(e,t){return e&-131069|t<<2}function UA(e){return(e&1)===1}function $f(e){return e|1}function BA(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=mi(s),c=go(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Os(d,l)>0)&&(u=!0)}else l=n;if(i)if(c!==0){let f=mi(e[a+1]);e[r+1]=Ic(f,a),f!==0&&(e[f+1]=$d(e[f+1],r)),e[a+1]=VA(e[a+1],r)}else e[r+1]=Ic(a,0),a!==0&&(e[a+1]=$d(e[a+1],r)),a=r;else e[r+1]=Ic(c,0),a===0?a=r:e[c+1]=$d(e[c+1],r),c=r;u&&(e[r+1]=Bf(e[r+1])),Wv(e,l,r,!0),Wv(e,l,r,!1),$A(t,l,e,r,o),s=Ic(a,c),o?t.classBindings=s:t.styleBindings=s}function $A(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Os(o,t)>=0&&(n[r+1]=$f(n[r+1]))}function Wv(e,t,n,r){let i=e[n+1],o=t===null,s=r?mi(i):go(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],u=e[s+1];HA(c,t)&&(a=!0,e[s+1]=r?$f(u):Bf(u)),s=r?mi(u):go(u)}a&&(e[n+1]=r?Bf(i):$f(i))}function HA(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Os(e,t)>=0:!1}function B(e,t,n){let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts();gu(o,s,r,e,t,r[Ue],n,!1)}return B}function qv(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Ch(e,n,o[s],s,r)}function wi(e,t,n){return S_(e,t,n,!1),wi}function tt(e,t){return S_(e,t,null,!0),tt}function S_(e,t,n,r){let i=re(),o=et(),s=CC(2);if(o.firstUpdatePass&&GA(o,e,s,r),t!==Ei&&an(i,s,t)){let a=o.data[_o()];KA(o,a,i,i[Ue],e,i[s+1]=QA(t,n),r,s)}}function zA(e,t){return t>=e.expandoStartIndex}function GA(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[_o()],s=zA(e,n);XA(o,r)&&t===null&&!s&&(t=!1),t=WA(i,o,t,r),BA(i,o,t,n,s,r)}}function WA(e,t,n,r){let i=Dy(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Hd(null,e,t,n,r),n=bs(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Hd(i,e,t,n,r),o===null){let c=qA(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Hd(null,e,t,c[1],r),c=bs(c,t.attrs,r),YA(e,t,r,c))}else o=ZA(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function qA(e,t,n){let r=n?t.classBindings:t.styleBindings;if(go(r)!==0)return e[mi(r)]}function YA(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[mi(i)]=r}function ZA(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===Ei&&(f=d?Qt:void 0);let p=d?Nd(f,r):l===r?f:void 0;if(u&&!Xc(p)&&(p=Nd(c,r)),Xc(p)&&(a=p,s))return a;let g=e[i+1];i=s?mi(g):go(g)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=Nd(c,r))}return a}function Xc(e){return e!==void 0}function QA(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Pt(Bn(e)))),e}function XA(e,t){return(e.flags&(t?8:16))!==0}function JA(e,t,n,r,i,o){let s=t.consts,a=po(s,i),c=Io(t,e,2,r,a);return Ih(t,n,c,po(s,o)),c.attrs!==null&&qc(c,c.attrs,!1),c.mergedAttrs!==null&&qc(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function ye(e,t,n,r){let i=re(),o=et(),s=ot+e,a=i[Ue],c=o.firstCreatePass?JA(s,o,i,t,n,r):o.data[s],u=T_(o,i,c,a,t,e);i[s]=u;let l=nu(c);return vi(c,!0),BD(a,u,c),(c.flags&32)!==32&&ru()&&hu(o,i,u,c),gC()===0&&Or(u,i),vC(),l&&(Eh(o,i,c),_h(o,c,i)),r!==null&&wh(i,c),ye}function ve(){let e=Rt();Qf()?Xf():(e=e.parent,vi(e,!1));let t=e;DC(t)&&EC(),yC();let n=et();return n.firstCreatePass&&(lu(n,e),Yf(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&VM(t)&&qv(n,t,re(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&UM(t)&&qv(n,t,re(),t.stylesWithoutHost,!1),ve}function Le(e,t,n,r){return ye(e,t,n,r),ve(),Le}var T_=(e,t,n,r,i,o)=>(Nr(!0),gh(r,i,Sy()));function eO(e,t,n,r,i,o){let s=t[kn],a=!s||yo()||cu(s,o);if(Nr(a),a)return gh(r,i,Sy());let c=Du(s,e,t,n);return zy(s,o)&&au(s,o,c.nextSibling),s&&(Oy(n)||xy(c))&&Ms(n)&&(_C(n),jD(c)),c}function tO(){T_=eO}function nO(e,t,n,r,i){let o=t.consts,s=po(o,r),a=Io(t,e,8,"ng-container",s);s!==null&&qc(a,s,!0);let c=po(o,i);return Ih(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function In(e,t,n){let r=re(),i=et(),o=e+ot,s=i.firstCreatePass?nO(o,i,r,t,n):i.data[o];vi(s,!0);let a=A_(i,r,s,e);return r[o]=a,ru()&&hu(i,r,a,s),Or(a,r),nu(s)&&(Eh(i,r,s),_h(i,s,r)),n!=null&&wh(r,s),In}function Cn(){let e=Rt(),t=et();return Qf()?Xf():(e=e.parent,vi(e,!1)),t.firstCreatePass&&(lu(t,e),Yf(e)&&t.queries.elementEnd(e)),Cn}function bi(e,t,n){return In(e,t,n),Cn(),bi}var A_=(e,t,n,r)=>(Nr(!0),AD(t[Ue],""));function rO(e,t,n,r){let i,o=t[kn],s=!o||yo();if(Nr(s),s)return AD(t[Ue],"");let a=Du(o,e,t,n),c=DM(o,r);return au(o,r,a),i=_u(c,a),i}function iO(){A_=rO}function Hn(){return re()}function Rh(e,t,n){let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts();gu(o,s,r,e,t,r[Ue],n,!0)}return Rh}function ks(e,t,n){let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts(),a=Dy(o.data),c=dT(a,s,r);gu(o,s,r,e,t,c,n,!0)}return ks}var Jc="en-US";var oO=Jc;function sO(e){typeof e=="string"&&(oO=e.toLowerCase().replace(/_/g,"-"))}function st(e,t,n,r){let i=re(),o=et(),s=Rt();return O_(o,i,i[Ue],s,e,t,r),st}function aO(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 O_(e,t,n,r,i,o,s){let a=nu(r),u=e.firstCreatePass&&JD(e),l=t[wn],d=XD(t),f=!0;if(r.type&3||s){let D=en(r,t),S=s?s(D):D,T=d.length,z=s?fe=>s(bn(fe[r.index])):r.index,q=null;if(!s&&a&&(q=aO(e,t,i,r.index)),q!==null){let fe=q.__ngLastListenerFn__||q;fe.__ngNextListenerFn__=o,q.__ngLastListenerFn__=o,f=!1}else{o=Kv(r,t,l,o,!1);let fe=n.listen(S,i,o);d.push(o,fe),u&&u.push(i,z,T,T+1)}}else o=Kv(r,t,l,o,!1);let p=r.outputs,g;if(f&&p!==null&&(g=p[i])){let D=g.length;if(D)for(let S=0;S-1?xr(e.index,t):t;Sh(a);let c=Zv(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=Zv(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function me(e=1){return OC(e)}function cO(e,t){let n=null,r=QI(e);for(let i=0;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Eu(e){let t=bC();return Ss(t,ot+e)}function Gn(e,t=""){let n=re(),r=et(),i=e+ot,o=r.firstCreatePass?Io(r,i,1,t,null):r.data[i],s=N_(r,n,o,t,e);n[i]=s,ru()&&hu(r,n,s,o),vi(o,!1)}var N_=(e,t,n,r,i)=>(Nr(!0),TD(t[Ue],r));function dO(e,t,n,r,i){let o=t[kn],s=!o||yo()||cu(o,i);return Nr(s),s?TD(t[Ue],r):Du(o,e,t,n)}function fO(){N_=dO}function hO(e){return un("",e,""),hO}function un(e,t,n){let r=re(),i=kA(r,e,t,n);return i!==Ei&&fT(r,_o(),i),un}function pO(e,t,n){h_(t)&&(t=t());let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts();gu(o,s,r,e,t,r[Ue],n,!1)}return pO}function Hz(e,t){let n=h_(e);return n&&e.set(t),n}function mO(e,t){let n=re(),r=et(),i=Rt();return O_(r,n,n[Ue],i,e,t),mO}function gO(e,t,n){let r=et();if(r.firstCreatePass){let i=dr(e);Hf(n,r.data,r.blueprint,i,!0),Hf(t,r.data,r.blueprint,i,!1)}}function Hf(e,t,n,r,i){if(e=Nt(e),Array.isArray(e))for(let o=0;o>20;if(mo(e)||!e.multi){let p=new di(u,i,y),g=Gd(c,t,i?l:l+f,d);g===-1?(uf(Bc(a,s),o,c),zd(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{let p=Gd(c,t,l+f,d),g=Gd(c,t,l,l+f),D=p>=0&&n[p],S=g>=0&&n[g];if(i&&!S||!i&&!D){uf(Bc(a,s),o,c);let T=DO(i?yO:vO,n.length,i,r,u);!i&&S&&(n[g].providerFactory=T),zd(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(T),s.push(T)}else{let T=P_(n[i?g:p],u,!i&&r);zd(o,e,p>-1?p:g,T)}!i&&r&&S&&n[g].componentProviders++}}}function zd(e,t,n,r){let i=mo(t),o=CM(t);if(i||o){let c=(o?Nt(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 P_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>gO(r,i?i(e):e,t)}}var _O=(()=>{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=qy(!1,r.type),o=i.length>0?Ph([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=C({token:t,providedIn:"environment",factory:()=>new t(M(sn))});let e=t;return e})();function R_(e){Rs("NgStandalone"),e.getStandaloneInjector=t=>t.get(_O).getOrCreateStandaloneInjector(e)}function zz(e,t,n,r){return F_(re(),yi(),e,t,n,r)}function Gz(e,t,n,r,i){return L_(re(),yi(),e,t,n,r,i)}function Wz(e,t,n,r,i,o,s,a){let c=yi()+e,u=re(),l=I_(u,c,n,r,i,o);return an(u,c+4,s)||l?Ls(u,c+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):PA(u,c+5)}function wu(e,t){let n=e[t];return n===Ei?void 0:n}function F_(e,t,n,r,i,o){let s=t+n;return an(e,s,i)?Ls(e,s+1,o?r.call(o,i):r(i)):wu(e,s+1)}function L_(e,t,n,r,i,o,s){let a=t+n;return Uf(e,a,i,o)?Ls(e,a+2,s?r.call(s,i,o):r(i,o)):wu(e,a+2)}function EO(e,t,n,r,i,o,s,a,c){let u=t+n;return I_(e,u,i,o,s,a)?Ls(e,u+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):wu(e,u+4)}function wO(e,t,n,r,i,o){let s=t+n,a=!1;for(let c=0;c=0;n--){let r=t[n];if(e===r.name)return r}}function dn(e,t,n){let r=e+ot,i=re(),o=Ss(i,r);return bu(i,r)?F_(i,yi(),t,o.transform,n,o):o.transform(n)}function qz(e,t,n,r){let i=e+ot,o=re(),s=Ss(o,i);return bu(o,i)?L_(o,yi(),t,s.transform,n,r,s):s.transform(n,r)}function Yz(e,t,n,r,i,o){let s=e+ot,a=re(),c=Ss(a,s);return bu(a,s)?EO(a,yi(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function Zz(e,t,n){let r=e+ot,i=re(),o=Ss(i,r);return bu(i,r)?wO(i,yi(),t,o.transform,n,o):o.transform.apply(o,n)}function bu(e,t){return e[te].data[t].pure}function Iu(e,t){return yu(e,t)}var Cu=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var k_=new _("");function Fr(e){return!!e&&typeof e.then=="function"}function kh(e){return!!e&&typeof e.subscribe=="function"}var j_=new _(""),V_=(()=>{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=v(j_,{optional:!0}))!=null?r:[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(Fr(s))r.push(s);else if(kh(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Co=new _("");function IO(){Fg(()=>{throw new b(600,!1)})}function CO(e){return e.isBoundToModule}function MO(e,t,n){try{let r=n();return Fr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Lr=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(fD),this.afterRenderEffectManager=v(m_),this.componentTypes=[],this.components=[],this.isStable=v(Fs).hasPendingTasks.pipe(w(r=>!r)),this._injector=v(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Gc;if(!this._injector.get(V_).done){let p=!o&&ay(r),g=!1;throw new b(405,g)}let a;o?a=r:a=this._injector.get($n).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=CO(a)?void 0:this._injector.get(mr),u=i||a.selector,l=a.create(qt.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(k_,null);return f==null||f.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Wd(this.components,l),f==null||f.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let r=0;do{if(r===o_)throw new b(103,!1);let i=r===0;for(let{_lView:o,notifyErrorHandler:s}of this._views)!i&&!Qv(o)||this.detectChangesInView(o,s,i);this.afterRenderEffectManager.execute(),r++}while(this._views.some(({_lView:i})=>Qv(i)))}detectChangesInView(r,i,o){let s;o?(s=0,r[G]|=1024):r[G]&64?s=0:s=1,s_(r,i,s)}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Wd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Co,[]);[...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),()=>Wd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new b(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Wd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Tr;function jh(e){Tr!=null||(Tr=new WeakMap);let t=Tr.get(e);if(t)return t;let n=e.isStable.pipe(yn(r=>r)).toPromise().then(()=>{});return Tr.set(e,n),e.onDestroy(()=>Tr==null?void 0:Tr.delete(e)),n}function Qv(e){return Kf(e)}var Gf=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Vh=(()=>{let t=class t{compileModuleSync(r){return new Vf(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=cy(r),s=SD(o.declarations).reduce((a,c)=>{let u=si(c);return u&&a.push(new Es(u)),a},[]);return new Gf(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var SO=(()=>{let t=class t{constructor(){this.zone=v(de),this.applicationRef=v(Lr)}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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function TO(e){return[{provide:de,useFactory:e},{provide:li,multi:!0,useFactory:()=>{let t=v(SO,{optional:!0});return()=>t.initialize()}},{provide:li,multi:!0,useFactory:()=>{let t=v(NO);return()=>{t.initialize()}}},{provide:fD,useFactory:AO}]}function AO(){let e=v(de),t=v(fr);return n=>e.runOutsideAngular(()=>t.handleError(n))}function OO(e){let t=TO(()=>new de(xO(e)));return _i([[],t])}function xO(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}}var NO=(()=>{let t=class t{constructor(){this.subscription=new rt,this.initialized=!1,this.zone=v(de),this.pendingTasks=v(Fs)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),r!=null||(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function PO(){return typeof $localize<"u"&&$localize.locale||Jc}var js=new _("",{providedIn:"root",factory:()=>v(js,ue.Optional|ue.SkipSelf)||PO()});var U_=new _("");var Oc=null;function RO(e=[],t){return qt.create({name:t,providers:[{provide:uu,useValue:"platform"},{provide:U_,useValue:new Set([()=>Oc=null])},...e]})}function FO(e=[]){if(Oc)return Oc;let t=RO(e);return Oc=t,IO(),LO(t),t}function LO(e){let t=e.get(rh,null);t==null||t.forEach(n=>n())}function B_(){return!1}function $_(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=FO(r),o=[OO(),...n||[]],a=new Qc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(de);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(fr,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:p=>{u.handleError(p)}})});let d=()=>a.destroy(),f=i.get(U_);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),MO(u,c,()=>{let p=a.get(V_);return p.runInitializers(),p.donePromise.then(()=>{let g=a.get(js,Jc);sO(g||Jc);let D=a.get(Lr);return t!==void 0&&D.bootstrap(t),D})})})}catch(t){return Promise.reject(t)}}var Xv=!1;function kO(){Xv||(Xv=!0,mM(),tO(),fO(),iO(),LA(),gA(),UT(),GS())}function jO(e,t){return jh(e)}function H_(){return _i([{provide:yc,useFactory:()=>{let e=!0;if(wc()){let t=v(Di,{optional:!0});e=!!(t!=null&&t.get($y,null))}return e&&Rs("NgHydration"),e}},{provide:li,useValue:()=>{wc()&&v(yc)&&(VO(),kO())},multi:!0},{provide:pD,useFactory:()=>wc()&&v(yc)},{provide:Co,useFactory:()=>{if(wc()&&v(yc)){let e=v(Lr),t=v(qt);return()=>{jO(e,t).then(()=>{de.assertInAngularZone(),NT(e)})}}return()=>{}},multi:!0}])}function VO(){var n;let e=xs(),t;for(let r of e.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&((n=r.textContent)==null?void 0:n.trim())===hM){t=r;break}if(!t)throw new b(-507,!1)}function Vs(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Mu=null;function Er(){return Mu}function Z_(e){Mu!=null||(Mu=e)}var Su=class{};var ge=new _(""),K_=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v($O),providedIn:"platform"});let e=t;return e})();var $O=(()=>{let t=class t extends K_{constructor(){super(),this._doc=v(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Er().getBaseHref(this._doc)}onPopState(r){let i=Er().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Er().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=C({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Q_(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 z_(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 Ii(e){return e&&e[0]!=="?"?"?"+e:e}var Au=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(X_),providedIn:"root"});let e=t;return e})(),HO=new _(""),X_=(()=>{let t=class t extends Au{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=v(ge).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 Q_(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Ii(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+Ii(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Ii(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)(M(K_),M(HO,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Us=(()=>{let t=class t{constructor(r){this._subject=new it,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=WO(z_(G_(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+Ii(i))}normalize(r){return t.stripTrailingSlash(GO(this._basePath,G_(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+Ii(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ii(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){var i;return this._urlChangeListeners.push(r),(i=this._urlChangeSubscription)!=null||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{var s;let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&((s=this._urlChangeSubscription)==null||s.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=Ii,t.joinWithSlash=Q_,t.stripTrailingSlash=z_,t.\u0275fac=function(i){return new(i||t)(M(Au))},t.\u0275prov=C({token:t,factory:()=>zO(),providedIn:"root"});let e=t;return e})();function zO(){return new Us(M(Au))}function GO(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function G_(e){return e.replace(/\/index.html$/,"")}function WO(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function J_(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 vG=(()=>{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=b_(this.ngComponentOutletNgModule,W_(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(W_(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)(y(Ft))},t.\u0275dir=H({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[cn]});let e=t;return e})();function W_(e){return e.get(mr).injector}var Uh=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}},yG=(()=>{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(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Uh(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),q_(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);q_(s,o)})}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(y(Ft),y(vt),y(Ah))},t.\u0275dir=H({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function q_(e,t){e.context.$implicit=t.item}var Lt=(()=>{let t=class t{constructor(r,i){this._viewContainer=r,this._context=new Bh,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){Y_("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Y_("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)(y(Ft),y(vt))},t.\u0275dir=H({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Bh=class{constructor(){this.$implicit=null,this.ngIf=null}};function Y_(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Pt(t),"'."))}function qO(e,t){return new b(2100,!1)}var $h=class{createSubscription(t,n){return Th(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Th(()=>t.unsubscribe())}},Hh=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},YO=new Hh,ZO=new $h,Wn=(()=>{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(Fr(r))return YO;if(kh(r))return ZO;throw qO(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)(y(Dt,16))},t.\u0275pipe=gi({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var kt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=X({});let e=t;return e})(),Gh="browser",KO="server";function e0(e){return e===Gh}function Bs(e){return e===KO}var Tu=class{};var xu=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 a0=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}(a0||{}),Wh=class{constructor(t,n=c0.Ok,r="OK"){this.headers=t.headers||new xu,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 Nu=class e extends Wh{constructor(t={}){super(t),this.type=a0.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 c0=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(c0||{});var XO=new _("");var t0="b",n0="h",r0="s",i0="st",o0="u",s0="rt",Ou=new _(""),JO=["GET","HEAD"];function ex(e,t){var d;let l=v(Ou),{isCacheActive:n}=l,r=Ua(l,["isCacheActive"]),{transferCache:i,method:o}=e;if(!n||o==="POST"&&!r.includePostRequests&&!i||o!=="POST"&&!JO.includes(o)||i===!1||((d=r.filter)==null?void 0:d.call(r,e))===!1)return t(e);let s=v(Di),a=nx(e),c=s.get(a,null),u=r.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(u=i.includeHeaders),c){let{[t0]:f,[s0]:p,[n0]:g,[r0]:D,[i0]:S,[o0]:T}=c,z=f;switch(p){case"arraybuffer":z=new TextEncoder().encode(f).buffer;break;case"blob":z=new Blob([f]);break}let q=new xu(g);return A(new Nu({body:z,headers:q,status:D,statusText:S,url:T}))}return t(e).pipe(Ne(f=>{f instanceof Nu&&s.set(a,{[t0]:f.body,[n0]:tx(f.headers,u),[r0]:f.status,[i0]:f.statusText,[o0]:f.url||"",[s0]:e.responseType})}))}function tx(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 nx(e){let{params:t,method:n,responseType:r,url:i,body:o}=e,s=t.keys().sort().map(l=>"".concat(l,"=").concat(t.getAll(l))).join("&"),c=[n,r,i,typeof o=="string"?o:"",s].join("|"),u=rx(c);return u}function rx(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function u0(e){return[{provide:Ou,useFactory:()=>(Rs("NgHttpTransferCache"),O({isCacheActive:!0},e))},{provide:XO,useValue:ex,multi:!0,deps:[Di,Ou]},{provide:Co,multi:!0,useFactory:()=>{let t=v(Lr),n=v(Ou);return()=>{jh(t).then(()=>{n.isCacheActive=!1})}}}]}var Zh=class extends Su{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kh=class e extends Zh{static makeCurrent(){Z_(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=ix();return n==null?null:ox(n)}resetBaseElement(){$s=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return J_(document.cookie,t)}},$s=null;function ix(){return $s=$s||document.querySelector("base"),$s?$s.getAttribute("href"):null}function ox(e){return new URL(e,document.baseURI).pathname}var sx=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Mo=new _(""),h0=(()=>{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 b(5101,!1);return this._eventNameToPlugin.set(r,i),i}};t.\u0275fac=function(i){return new(i||t)(M(Mo),M(de))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Pu=class{constructor(t){this._doc=t}},qh="ng-app-id",p0=(()=>{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=Bs(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(qh,'="').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(qh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(qh,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)(M(ge),M(ou),M(ih,8),M(tn))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Yh={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/"},Jh=/%COMP%/g,m0="%COMP%",ax="_nghost-".concat(m0),cx="_ngcontent-".concat(m0),ux=!0,lx=new _("",{providedIn:"root",factory:()=>ux});function dx(e){return cx.replace(Jh,e)}function fx(e){return ax.replace(Jh,e)}function g0(e,t){return t.map(n=>n.replace(Jh,e))}var l0=(()=>{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=Bs(c),this.defaultRenderer=new Hs(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ln.ShadowDom&&(i=je(O({},i),{encapsulation:Ln.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Ru?o.applyToHost(r):o instanceof zs&&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 Ru(u,l,i,this.appId,d,a,c,f);break;case Ln.ShadowDom:return new Qh(u,l,r,i,a,c,this.nonce,f);default:s=new zs(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)(M(h0),M(p0),M(ou),M(lx),M(ge),M(tn),M(de),M(ih))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Hs=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(Yh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(d0(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(d0(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 b(-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=Yh[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Yh[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&(pr.DashCase|pr.Important)?t.style.setProperty(n,r,i&pr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&pr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Er().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 d0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Qh=class extends Hs{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=g0(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)}},zs=class extends Hs{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?g0(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ru=class extends zs{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=dx(u),this.hostAttr=fx(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}},hx=(()=>{let t=class t extends Pu{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)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),f0=["alt","control","meta","shift"],px={"\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"},mx={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},gx=(()=>{let t=class t extends Pu{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(()=>Er().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."),f0.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=px[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"),f0.forEach(a=>{if(a!==o){let c=mx[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)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})();function GG(e,t){return $_(O({rootComponent:e},vx(t)))}function vx(e){var t;return{appProviders:[...wx,...(t=e==null?void 0:e.providers)!=null?t:[]],platformProviders:Ex}}function yx(){Kh.makeCurrent()}function Dx(){return new fr}function _x(){return Ny(document),document}var Ex=[{provide:tn,useValue:Gh},{provide:rh,useValue:yx,multi:!0},{provide:ge,useFactory:_x,deps:[]}];var wx=[{provide:uu,useValue:"root"},{provide:fr,useFactory:Dx,deps:[]},{provide:Mo,useClass:hx,multi:!0,deps:[ge,de,tn]},{provide:Mo,useClass:gx,multi:!0,deps:[ge]},l0,p0,h0,{provide:pi,useExisting:l0},{provide:Tu,useClass:sx,deps:[]},[]];var v0=(()=>{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)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=M(bx),o},providedIn:"root"});let e=t;return e})(),bx=(()=>{let t=class t extends Gs{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case yt.NONE:return i;case yt.HTML:return Rr(i,"HTML")?Bn(i):ph(this._doc,String(i)).toString();case yt.STYLE:return Rr(i,"Style")?Bn(i):i;case yt.SCRIPT:if(Rr(i,"Script"))return Bn(i);throw new b(5200,!1);case yt.URL:return Rr(i,"URL")?Bn(i):fu(String(i));case yt.RESOURCE_URL:if(Rr(i,"ResourceURL"))return Bn(i);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(r){return mD(r)}bypassSecurityTrustStyle(r){return gD(r)}bypassSecurityTrustScript(r){return vD(r)}bypassSecurityTrustUrl(r){return yD(r)}bypassSecurityTrustResourceUrl(r){return DD(r)}};t.\u0275fac=function(i){return new(i||t)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xh=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e}(Xh||{});function WG(...e){let t=[],n=new Set,r=n.has(Xh.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of e)n.add(o),i.length&&t.push(i);return _i([[],H_(),n.has(Xh.NoHttpTransferCache)||r?[]:u0({}),t])}var M0=(()=>{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)(y(_r),y(Q))},t.\u0275dir=H({type:t});let e=t;return e})(),S0=(()=>{let t=class t extends M0{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})(),t.\u0275dir=H({type:t,features:[He]});let e=t;return e})(),ip=new _("");var Cx={provide:ip,useExisting:gr(()=>T0),multi:!0};function Mx(){let e=Er()?Er().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Sx=new _(""),T0=(()=>{let t=class t extends M0{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Mx())}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)(y(_r),y(Q),y(Sx,8))},t.\u0275dir=H({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&&st("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:[ze([Cx]),He]});let e=t;return e})();function Tx(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var A0=new _(""),Ax=new _("");function Ox(e){return Tx(e.value)?{required:!0}:null}function y0(e){return null}function O0(e){return e!=null}function x0(e){return Fr(e)?xe(e):e}function N0(e){let t={};return e.forEach(n=>{t=n!=null?O(O({},t),n):t}),Object.keys(t).length===0?null:t}function P0(e,t){return t.map(n=>n(e))}function xx(e){return!e.validate}function R0(e){return e.map(t=>xx(t)?t:n=>t.validate(n))}function Nx(e){if(!e)return null;let t=e.filter(O0);return t.length==0?null:function(n){return N0(P0(n,t))}}function F0(e){return e!=null?Nx(R0(e)):null}function Px(e){if(!e)return null;let t=e.filter(O0);return t.length==0?null:function(n){let r=P0(n,t).map(x0);return wd(r).pipe(w(N0))}}function L0(e){return e!=null?Px(R0(e)):null}function D0(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Rx(e){return e._rawValidators}function Fx(e){return e._rawAsyncValidators}function ep(e){return e?Array.isArray(e)?e:[e]:[]}function Lu(e,t){return Array.isArray(e)?e.includes(t):e===t}function _0(e,t){let n=ep(t);return ep(e).forEach(i=>{Lu(n,i)||n.push(i)}),n}function E0(e,t){return ep(t).filter(n=>!Lu(e,n))}var ku=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=F0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=L0(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}},tp=class extends ku{get formDirective(){return null}get path(){return null}},Mi=class extends ku{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},np=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)}},Lx={"[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"},u3=je(O({},Lx),{"[class.ng-submitted]":"isSubmitted"}),l3=(()=>{let t=class t extends np{constructor(r){super(r)}};t.\u0275fac=function(i){return new(i||t)(y(Mi,2))},t.\u0275dir=H({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&tt("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:[He]});let e=t;return e})();var Ws="VALID",Fu="INVALID",So="PENDING",qs="DISABLED";function kx(e){return(ju(e)?e.validators:e)||null}function jx(e){return Array.isArray(e)?F0(e):e||null}function Vx(e,t){return(ju(t)?t.asyncValidators:e)||null}function Ux(e){return Array.isArray(e)?L0(e):e||null}function ju(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var rp=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===Ws}get invalid(){return this.status===Fu}get pending(){return this.status==So}get disabled(){return this.status===qs}get enabled(){return this.status!==qs}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(_0(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_0(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(E0(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(E0(t,this._rawAsyncValidators))}hasValidator(t){return Lu(this._rawValidators,t)}hasAsyncValidator(t){return Lu(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=So,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=qs,this.errors=null,this._forEachChild(r=>{r.disable(je(O({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(je(O({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ws,this._forEachChild(r=>{r.enable(je(O({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(je(O({},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===Ws||this.status===So)&&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()?qs:Ws}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=So,this._hasOwnPendingAsyncValidator=!0;let n=x0(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 it,this.statusChanges=new it}_calculateStatus(){return this._allControlsDisabled()?qs:this.errors?Fu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(So)?So:this._anyControlsHaveStatus(Fu)?Fu:Ws}_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){ju(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=jx(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ux(this._rawAsyncValidators)}};var k0=new _("CallSetDisabledState",{providedIn:"root",factory:()=>op}),op="always";function Bx(e,t){return[...t.path,e]}function $x(e,t,n=op){var r,i;zx(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&((i=(r=t.valueAccessor).setDisabledState)==null||i.call(r,e.disabled)),Gx(e,t),qx(e,t),Wx(e,t),Hx(e,t)}function w0(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Hx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function zx(e,t){let n=Rx(e);t.validator!==null?e.setValidators(D0(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Fx(e);t.asyncValidator!==null?e.setAsyncValidators(D0(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();w0(t._rawValidators,i),w0(t._rawAsyncValidators,i)}function Gx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&j0(e,t)})}function Wx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&j0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function j0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qx(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Yx(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Zx(e){return Object.getPrototypeOf(e.constructor)===S0}function Kx(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===T0?n=o:Zx(o)?r=o:i=o}),i||r||n||null}function b0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function I0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Qx=class extends rp{constructor(t=null,n,r){super(kx(n),Vx(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}),ju(n)&&(n.nonNullable||n.initialValueIsDefault)&&(I0(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){b0(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){b0(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){I0(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 Xx={provide:Mi,useExisting:gr(()=>Vu)},C0=Promise.resolve(),Vu=(()=>{let t=class t extends Mi{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Qx,this._registered=!1,this.name="",this.update=new it,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Kx(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),Yx(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(){$x(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){C0.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&&Vs(i);C0.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?Bx(r,this._parent):[r]}};t.\u0275fac=function(i){return new(i||t)(y(tp,9),y(A0,10),y(Ax,10),y(ip,10),y(Dt,8),y(k0,8))},t.\u0275dir=H({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ze.None,"disabled","isDisabled"],model:[Ze.None,"ngModel","model"],options:[Ze.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ze([Xx]),He,cn]});let e=t;return e})();var Jx={provide:ip,useExisting:gr(()=>eN),multi:!0},eN=(()=>{let t=class t extends S0{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=Fe(t)))(o||t)}})(),t.\u0275dir=H({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&st("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[ze([Jx]),He]});let e=t;return e})();var tN=(()=>{let t=class t{constructor(){this._validator=y0}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):y0,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=H({type:t,features:[cn]});let e=t;return e})();var nN={provide:A0,useExisting:gr(()=>rN),multi:!0};var rN=(()=>{let t=class t extends tN{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Vs,this.createValidator=r=>Ox}enabled(r){return r}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})(),t.\u0275dir=H({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&<("required",o._enabled?"":null)},inputs:{required:"required"},features:[ze([nN]),He]});let e=t;return e})();var iN=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=X({});let e=t;return e})();var f3=(()=>{let t=class t{static withConfig(r){var i;return{ngModule:t,providers:[{provide:k0,useValue:(i=r.callSetDisabledState)!=null?i:op}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=X({imports:[iN]});let e=t;return e})();var he=new _("An abstraction over global window object",{factory:()=>{let{defaultView:e}=v(ge);if(!e)throw new Error("Window is not available");return e}}),Mn=new _("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{let{requestAnimationFrame:e,cancelAnimationFrame:t}=v(he);return new R(r=>{let i=NaN,o=s=>{r.next(s),i=e(o)};return i=e(o),()=>{t(i)}}).pipe(Ht())}}),y3=new _("An abstraction over window.caches object",{factory:()=>v(he).caches}),D3=new _("An abstraction over window.crypto object",{factory:()=>v(he).crypto}),_3=new _("An abstraction over window.CSS object",{factory:()=>v(he).CSS||{escape:e=>e,supports:()=>!1}}),E3=new _("An abstraction over window.history object",{factory:()=>v(he).history}),w3=new _("An abstraction over window.localStorage object",{factory:()=>v(he).localStorage}),b3=new _("An abstraction over window.location object",{factory:()=>v(he).location}),To=new _("An abstraction over window.navigator object",{factory:()=>v(he).navigator}),I3=new _("An abstraction over window.navigator.mediaDevices object",{factory:()=>v(To).mediaDevices}),C3=new _("An abstraction over window.navigator.connection object",{factory:()=>v(To).connection||null}),M3=new _("Shared Observable based on `document visibility changed`",{factory:()=>{let e=v(ge);return Pn(e,"visibilitychange").pipe(we(0),w(()=>e.visibilityState!=="hidden"),Ye(),Kt({refCount:!1,bufferSize:1}))}}),V0=new _("An abstraction over window.performance object",{factory:()=>v(he).performance}),S3=new _("An abstraction over window.screen object",{factory:()=>v(he).screen}),T3=new _("An abstraction over window.sessionStorage object",{factory:()=>v(he).sessionStorage}),A3=new _("An abstraction over SpeechRecognition class",{factory:()=>{let e=v(he);return e.speechRecognition||e.webkitSpeechRecognition||null}}),O3=new _("An abstraction over window.speechSynthesis object",{factory:()=>v(he).speechSynthesis}),sp=new _("An abstraction over window.navigator.userAgent object",{factory:()=>v(To).userAgent});var J=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(J||{}),qn="*";function Ge(e,t){return{type:J.Trigger,name:e,definitions:t,options:{}}}function W(e,t=null){return{type:J.Animate,styles:t,timings:e}}function U0(e,t=null){return{type:J.Sequence,steps:e,options:t}}function E(e){return{type:J.Style,styles:e,offset:null}}function le(e,t,n=null){return{type:J.Transition,expr:e,animation:t,options:n}}function B0(e=null){return{type:J.AnimateChild,options:e}}function dt(e,t,n=null){return{type:J.Query,selector:e,animation:t,options:n}}function _t(e,t){return{type:J.Stagger,timings:e,animation:t}}var kr=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}},Ys=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}},Uu="!";var jr=()=>!1,Ao=()=>!0,F3=79,$0={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},L3=new ys,ap=[],cp=()=>{},H0=Object.assign(Object.assign({},$0),{toJSON(){return $0}}),k3=e=>String(e);function sN(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}var j3=(e,t)=>e===t||sN(e,t),V3=Ge("tuiParentAnimation",[le(":leave",[dt(":scope > *",[B0()],{optional:!0})])]),U3=Ge("tuiParentStop",[le(":enter",[])]),Oo=1e3/15,z0=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,G0="\xA0",B3="\u2013";var W0="3.66.0";var q0="edge/";function H3(e,t){return parseInt(t.slice(t.toLowerCase().indexOf(q0)+q0.length),10)=t&&e=n?n:Math.round(e)}var aN=292;function cN(e,t,n){if(e===1/0)return e;t=Math.min(t,aN);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 Y3(e,t=0){return cN(e,t,Math.round)}function Z0(e,t){return e.slice(0,Math.max(t,0)).concat(e.slice(Math.max(t+1,0)))}function Sn(e){return typeof e=="string"}function Ie(e){return oe(()=>e)}function oe(e){return new _("",{factory:e})}function K0(e){return e<.5?2*e*e:-1+(4-2*e)*e}function Q0(e){return!e}function Si(e){return e!=null}function Q3(e,t,n){return e===null?t===null:t===null?!1:n(e,t)}function uN(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(D));return g.length===4?g:null}function nW(e,t){let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;for(;xo(i)&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Hu(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:Hu(e.parentElement,t)}function rW(e){return hN(e)&&!e.readOnly||!!e.isContentEditable}function iW(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 oW(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 up({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 eE(e){let t=up(e);xo(t)&&t.blur()}function tE(e){if(e.hasAttribute("disabled")||e.getAttribute("tabIndex")==="-1")return!1;if(xo(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 pN(e){return!e.hasAttribute("disabled")&&(e.getAttribute("tabIndex")==="-1"||tE(e))}function uW({initial:e,root:t,previous:n=!1,keyboard:r=!0}){if(!t.ownerDocument)return null;let i=r?tE:pN,o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,z0);for(o.currentNode=e;n?o.previousNode():o.nextNode();)if(xo(o.currentNode)&&(e=o.currentNode),xo(e)&&i(e))return e;return null}function Po(e){return!!(e!=null&&e.ownerDocument)&&up(e.ownerDocument)===e&&e.ownerDocument.hasFocus()}function nE(e){if(!e.ownerDocument||!e.contains)return!1;let t=up(e.ownerDocument);return t!==null&&e.contains(t)&&e.ownerDocument.hasFocus()}function Ro(e){return"".concat(e,"px")}function mN(e){return e.platform.startsWith("Mac")||e.platform==="iPhone"}var gN=/ipad|iphone|ipod/;function lp(e){return gN.test(e.userAgent.toLowerCase())||mN(e)&&e.maxTouchPoints>1}var vN=/^((?!chrome|android).)*safari/i;function rE(e){return lp(e)||vN.test(e.userAgent.toLowerCase())}function yN(){return Math.floor(Math.random()*Date.now())}function DN(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function _N(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 EN(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}}function zu(e,t=yN(),n="rgba(0, 0, 0, 0.7)"){if(Sn(e)){let i=_N(e).reduce((o,s)=>{let a=DN(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 EN(i,n)}return e}var iE=class extends Error{constructor(t){super("")}},oE=class extends Error{constructor(t){super("")}},sE=class extends Error{constructor(t){super("")}},Gu=class extends Error{constructor(){super("")}},Ks=class extends Error{constructor(){super("")}},Qs=class extends Error{constructor(){super("")}};var Wu=class extends Error{constructor(){super("")}};function bW(e){return new R(t=>{if(!e.valueChanges)throw new Wu;return e.valueChanges.pipe(we(e.value)).subscribe(t)})}function ee(e,t,n={}){return Pn(e,t,n)}function wN(e){return Ve(ee(e,"mouseup"),ee(e,"dragend"))}function aE(e=0){return ei(ce(()=>mt(e).pipe(w(jr),we(!0))),Ye())}var dp,fp;function cE(e){let t=ee(e,"blur"),{ownerDocument:n}=e;if(!n)throw new Ks;return(!fp||!dp)&&(dp=ee(n,"mouseup",{capture:!0}).pipe(aE(),we(!1),Kt({bufferSize:1,refCount:!0})),fp=ee(n,"mousedown",{capture:!0}).pipe(aE(),we(!1),Kt({bufferSize:1,refCount:!0}))),Ve($t(ee(e,"focus").pipe(Xe(1)),t.pipe(Ee(()=>!Po(e)),Xe(1),io())).pipe(pc(),cs(fp,dp,(r,i,o)=>i||o),Ee(Q0))).pipe(ce(()=>t.pipe(w(jr),Xe(1),we(!0))),Ye())}function uE(e,t=Boolean){return ei(ce(n=>t(n)?e(n):Oe))}function lE(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 IW(e,{onlyTrusted:t}={onlyTrusted:!0}){let{ownerDocument:n}=e;if(!n)throw new Ks;return ee(e,"mousedown").pipe(Ee(({isTrusted:r})=>r||!t),ce(()=>wN(n).pipe(w(jr),Xe(1),we(!0))))}function bN(){return Ne(e=>e.preventDefault())}function dE(e){return ee(e===e.ownerDocument.documentElement?e.ownerDocument:e,"scroll")}function fE(){return Ne(e=>{e.stopPropagation()})}function hE(e){return Ne(()=>{e.markForCheck()})}function IN(e){return t=>new R(n=>t.subscribe({next:r=>e.run(()=>n.next(r)),error:r=>e.run(()=>n.error(r)),complete:()=>e.run(()=>n.complete())}))}function Yn(e){return t=>new R(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function Zn(e){return ei(Yn(e),IN(e))}var Xs=new _("POLYMORPHEUS_CONTEXT"),Ti=class{constructor(t,n){this.component=t,this.i=n}createInjector(t,n){return qt.create({parent:this.i||t,providers:[{provide:Xs,useValue:n}]})}},pp=(()=>{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)(y(vt,2),y(Dt))},e.\u0275dir=H({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),qu=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 hp(this.content)?this.content.template:this.content instanceof vt?this.content:this.t}ngOnChanges({content:n}){var r;let i=this.getContext();if((r=this.c)===null||r===void 0||r.injector.get(Dt).markForCheck(),!n)return;this.vcr.clear();let o=i&&new Proxy(i,{get:(s,a)=>{var c;return(c=this.getContext())===null||c===void 0?void 0:c[a]}});pE(this.content)?this.process(this.content,o):(i instanceof qu&&i.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,o)}ngDoCheck(){hp(this.content)&&this.content.check()}static ngTemplateContextGuard(n,r){return!0}getContext(){return CN(this.content)||pE(this.content)?this.context:new qu(typeof this.content=="function"?this.content(this.context):this.content)}process(n,r){let i=n.createInjector(this.i,r);this.c=this.vcr.createComponent(i.get($n).resolveComponentFactory(n.component),0,i)}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(qt),y(vt))},e.\u0275dir=H({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[Ze.None,"polymorpheusOutlet","content"],context:[Ze.None,"polymorpheusOutletContext","context"]},features:[cn]}),e})();function hp(e){return e instanceof pp}function pE(e){return e instanceof Ti}function CN(e){return hp(e)||e instanceof vt}var Br=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function mp(e,t={}){let{selector:n}=t,r=Wg(t,["selector"]);return new R(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?Z(n(d)).subscribe(x(i,void 0,()=>{a=!1,i.complete()},l)):(a=!1,i.next(d),i.complete())}).catch(l),()=>{a&&o.abort()}})}function mE(e){return new b(3e3,!1)}function MN(){return new b(3100,!1)}function SN(){return new b(3101,!1)}function TN(e){return new b(3001,!1)}function AN(e){return new b(3003,!1)}function ON(e){return new b(3004,!1)}function xN(e,t){return new b(3005,!1)}function NN(){return new b(3006,!1)}function PN(){return new b(3007,!1)}function RN(e,t){return new b(3008,!1)}function FN(e){return new b(3002,!1)}function LN(e,t,n,r,i){return new b(3010,!1)}function kN(){return new b(3011,!1)}function jN(){return new b(3012,!1)}function VN(){return new b(3200,!1)}function UN(){return new b(3202,!1)}function BN(){return new b(3013,!1)}function $N(e){return new b(3014,!1)}function HN(e){return new b(3015,!1)}function zN(e){return new b(3016,!1)}function GN(e,t){return new b(3404,!1)}function WN(e){return new b(3502,!1)}function qN(e){return new b(3503,!1)}function YN(){return new b(3300,!1)}function ZN(e){return new b(3504,!1)}function KN(e){return new b(3301,!1)}function QN(e,t){return new b(3302,!1)}function XN(e){return new b(3303,!1)}function JN(e,t){return new b(3400,!1)}function eP(e){return new b(3401,!1)}function tP(e){return new b(3402,!1)}function nP(e,t){return new b(3505,!1)}function $r(e){switch(e.length){case 0:return new kr;case 1:return e[0];default:return new Ys(e)}}function PE(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 g=p,D=f;if(p!=="offset")switch(g=e.normalizePropertyName(g,i),D){case Uu:D=n.get(p);break;case qn:D=r.get(p);break;default:D=e.normalizeStyleValue(p,g,D,i);break}d.set(g,D)}),l||o.push(d),a=d,s=u}),i.length)throw WN(i);return o}function Vp(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&gp(n,"start",e)));break;case"done":e.onDone(()=>r(n&&gp(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&gp(n,"destroy",e)));break}}function gp(e,t,n){let r=n.totalTime,i=!!n.disabled,o=Up(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 Up(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function rn(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function gE(e){let t=e.indexOf(":"),n=e.substring(1,t),r=e.slice(t+1);return[n,r]}var rP=typeof document>"u"?null:document.documentElement;function Bp(e){let t=e.parentNode||e.host||null;return t===rP?null:t}function iP(e){return e.substring(1,6)=="ebkit"}var Ai=null,vE=!1;function oP(e){Ai||(Ai=sP()||{},vE=Ai.style?"WebkitAppearance"in Ai.style:!1);let t=!0;return Ai.style&&!iP(e)&&(t=e in Ai.style,!t&&vE&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Ai.style)),t}function sP(){return typeof document<"u"?document.body:null}function RE(e,t){for(;t;){if(t===e)return!0;t=Bp(t)}return!1}function FE(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let r=e.querySelector(t);return r?[r]:[]}var aP=(()=>{let t=class t{validateStyleProperty(r){return oP(r)}matchesElement(r,i){return!1}containsElement(r,i){return RE(r,i)}getParentElement(r){return Bp(r)}query(r,i,o){return FE(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,c=[],u){return new kr(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Gp=class Gp{};Gp.NOOP=new aP;var yE=Gp,wp=class{};var cP=1e3,LE="{{",uP="}}",kE="ng-enter",bp="ng-leave",Zu="ng-trigger",el=".ng-trigger",DE="ng-animating",Ip=".ng-animating";function br(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Cp(parseFloat(t[1]),t[2])}function Cp(e,t){switch(t){case"s":return e*cP;default:return e}}function tl(e,t,n){return e.hasOwnProperty("duration")?e:lP(e,t,n)}function lP(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(mE(e)),{duration:0,delay:0,easing:""};i=Cp(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Cp(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(MN()),a=!0),o<0&&(t.push(SN()),a=!0),a&&t.splice(c,0,mE(e))}return{duration:i,delay:o,easing:s}}function dP(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function Kn(e,t,n){t.forEach((r,i)=>{let o=$p(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function xi(e,t){t.forEach((n,r)=>{let i=$p(r);e.style[i]=""})}function Js(e){return Array.isArray(e)?e.length==1?e[0]:U0(e):e}function fP(e,t,n){let r=t.params||{},i=jE(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(TN(o))})}var Mp=new RegExp("".concat(LE,"\\s*(.+?)\\s*").concat(uP),"g");function jE(e){let t=[];if(typeof e=="string"){let n;for(;n=Mp.exec(e);)t.push(n[1]);Mp.lastIndex=0}return t}function ta(e,t,n){let r="".concat(e),i=r.replace(Mp,(o,s)=>{let a=t[s];return a==null&&(n.push(AN(s)),a=""),a.toString()});return i==r?e:i}var hP=/-+([a-z0-9])/g;function $p(e){return e.replace(hP,(...t)=>t[1].toUpperCase())}function pP(e,t){return e===0||t===0}function mP(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,Hp(e,a)))}}return t}function nn(e,t,n){switch(t.type){case J.Trigger:return e.visitTrigger(t,n);case J.State:return e.visitState(t,n);case J.Transition:return e.visitTransition(t,n);case J.Sequence:return e.visitSequence(t,n);case J.Group:return e.visitGroup(t,n);case J.Animate:return e.visitAnimate(t,n);case J.Keyframes:return e.visitKeyframes(t,n);case J.Style:return e.visitStyle(t,n);case J.Reference:return e.visitReference(t,n);case J.AnimateChild:return e.visitAnimateChild(t,n);case J.AnimateRef:return e.visitAnimateRef(t,n);case J.Query:return e.visitQuery(t,n);case J.Stagger:return e.visitStagger(t,n);default:throw ON(t.type)}}function Hp(e,t){return window.getComputedStyle(e)[t]}var gP=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 wp{normalizePropertyName(t,n){return $p(t)}normalizeStyleValue(t,n,r,i){let o="",s=r.toString().trim();if(gP.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(xN(t,r))}return s+o}};var nl="*";function vP(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(r=>yP(r,n,t)):n.push(e),n}function yP(e,t,n){if(e[0]==":"){let c=DP(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(HN(e)),t;let i=r[1],o=r[2],s=r[3];t.push(EE(i,s));let a=i==nl&&s==nl;o[0]=="<"&&!a&&t.push(EE(s,i))}function DP(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 Ku=new Set(["true","1"]),Qu=new Set(["false","0"]);function EE(e,t){let n=Ku.has(e)||Qu.has(e),r=Ku.has(t)||Qu.has(t);return(i,o)=>{let s=e==nl||e==i,a=t==nl||t==o;return!s&&n&&typeof i=="boolean"&&(s=i?Ku.has(e):Qu.has(e)),!a&&r&&typeof o=="boolean"&&(a=o?Ku.has(t):Qu.has(t)),s&&a}}var VE=":self",_P=new RegExp("s*".concat(VE,"s*,?"),"g");function UE(e,t,n,r){return new Sp(e).build(t,n,r)}var wE="",Sp=class{constructor(t){this._driver=t}build(t,n,r){let i=new Tp(n);return this._resetContextStyleTimingState(i),nn(this,Js(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=wE,t.collectedStyles=new Map,t.collectedStyles.set(wE,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(NN()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==J.State){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==J.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(PN())}),{type:J.Trigger,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||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{jE(c).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&n.errors.push(RN(t.name,[...o.values()]))}return{type:J.State,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;let r=nn(this,Js(t.animation),n),i=vP(t.expr,n.errors);return{type:J.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Oi(t.options)}}visitSequence(t,n){return{type:J.Sequence,steps:t.steps.map(r=>nn(this,r,n)),options:Oi(t.options)}}visitGroup(t,n){let r=n.currentTime,i=0,o=t.steps.map(s=>{n.currentTime=r;let a=nn(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:J.Group,steps:o,options:Oi(t.options)}}visitAnimate(t,n){let r=IP(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:E({});if(o.type==J.Keyframes)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=E(u)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:J.Animate,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===qn?r.push(a):n.errors.push(FN(a)):r.push(new Map(Object.entries(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(LE)>=0){o=!0;break}}}),{type:J.Style,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(LN(c,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&u.set(c,{startTime:o,endTime:i}),n.options&&fP(a,n.options,n.errors)})})}visitKeyframes(t,n){let r={type:J.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(kN()),r;let i=1,o=0,s=[],a=!1,c=!1,u=0,l=t.steps.map(T=>{let z=this._makeStyleAst(T,n),q=z.offset!=null?z.offset:bP(z.styles),fe=0;return q!=null&&(o++,fe=z.offset=q),c=c||fe<0||fe>1,a=a||fe0&&o{let q=f>0?z==p?1:f*z:s[z],fe=q*S;n.currentTime=g+D.delay+fe,D.duration=fe,this._validateStyleAst(T,n),T.offset=q,r.styles.push(T)}),r}visitReference(t,n){return{type:J.Reference,animation:nn(this,Js(t.animation),n),options:Oi(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:J.AnimateChild,options:Oi(t.options)}}visitAnimateRef(t,n){return{type:J.AnimateRef,animation:this.visitReference(t.animation,n),options:Oi(t.options)}}visitQuery(t,n){let r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;let[o,s]=EP(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,rn(n.collectedStyles,n.currentQuerySelector,new Map);let a=nn(this,Js(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:J.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Oi(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(BN());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:tl(t.timings,n.errors,!0);return{type:J.Stagger,animation:nn(this,Js(t.animation),n),timings:r,options:null}}};function EP(e){let t=!!e.split(/\s*,\s*/).find(n=>n==VE);return t&&(e=e.replace(_P,"")),e=e.replace(/@\*/g,el).replace(/@\w+/g,n=>el+"-"+n.slice(1)).replace(/:animating/g,Ip),[e,t]}function wP(e){return e?O({},e):null}var Tp=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 bP(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 IP(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=tl(e,t).duration;return vp(o,0,"")}let n=e;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=vp(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=tl(n,t);return vp(i.duration,i.delay,i.easing)}function Oi(e){return e?(e=O({},e),e.params&&(e.params=wP(e.params))):e={},e}function vp(e,t,n){return{duration:e,delay:t,easing:n}}function zp(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 na=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()}},CP=1,MP=":enter",SP=new RegExp(MP,"g"),TP=":leave",AP=new RegExp(TP,"g");function BE(e,t,n,r,i,o=new Map,s=new Map,a,c,u=[]){return new Ap().buildKeyframes(e,t,n,r,i,o,s,a,c,u)}var Ap=class{buildKeyframes(t,n,r,i,o,s,a,c,u,l=[]){u=u||new na;let d=new Op(t,n,u,i,o,l,[]);d.options=c;let f=c.delay?br(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),nn(this,r,d);let p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&a.size){let g;for(let D=p.length-1;D>=0;D--){let S=p[D];if(S.element===n){g=S;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,d.errors,c)}return p.length?p.map(g=>g.buildKeyframes()):[zp(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:br(ta(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?br(r.duration):null,a=r.delay!=null?br(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),nn(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==J.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=rl);let s=br(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>nn(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?br(t.options.delay):0;t.steps.forEach(s=>{let a=n.createSubContext(t.options);o&&a.delayNextStep(o),nn(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?ta(r,n.params,n.errors):r;return tl(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==J.Keyframes?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?br(i.delay):0;o&&(n.previousNode.type===J.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=rl);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),nn(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;nn(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},rl={},Op=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=rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new il(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=br(r.duration)),r.delay!=null&&(i.delay=br(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]=ta(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=rl,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 xp(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(SP,"."+this._enterClassName),t=t.replace(AP,"."+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($N(n)),a}},il=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+=CP,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||qn),this._currentKeyframe.set(n,qn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){var a;n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=OP(t,this._globalTimelineStyles);for(let[c,u]of s){let l=ta(u,o,r);this._pendingStyles.set(c,l),this._localTimelineStyles.has(c)||this._backFill.set(c,(a=this._globalTimelineStyles.get(c))!=null?a:qn),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=new Map([...this._backFill,...a]);u.forEach((l,d)=>{l===Uu?t.add(d):l===qn&&n.add(d)}),r||u.set("offset",c/this.duration),i.push(u)});let o=[...t.values()],s=[...n.values()];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return zp(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},xp=class extends il{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=new Map(t[0]);c.set("offset",0),o.push(c);let u=new Map(t[0]);u.set("offset",bE(a)),o.push(u);let l=t.length-1;for(let d=1;d<=l;d++){let f=new Map(t[d]),p=f.get("offset"),g=n+p*r;f.set("offset",bE(g/s)),o.push(f)}r=s,n=0,i="",t=o}return zp(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function bE(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function OP(e,t){let n=new Map,r;return e.forEach(i=>{if(i==="*"){r!=null||(r=t.keys());for(let o of r)n.set(o,qn)}else for(let[o,s]of i)n.set(o,s)}),n}function IE(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 yp={},ol=class{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return xP(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 wt;let d=[],f=this.ast.options&&this.ast.options.params||yp,p=a&&a.params||yp,g=this.buildStyles(r,p,d),D=c&&c.params||yp,S=this.buildStyles(i,D,d),T=new Set,z=new Map,q=new Map,fe=i==="void",Te={params:$E(D,f),delay:(wt=this.ast.options)==null?void 0:wt.delay},Be=l?[]:BE(t,n,this.ast.animation,o,s,g,S,Te,u,d),P=0;return Be.forEach(at=>{P=Math.max(at.duration+at.delay,P)}),d.length?IE(n,this._triggerName,r,i,fe,g,S,[],[],z,q,P,d):(Be.forEach(at=>{let bt=at.element,Ko=rn(z,bt,new Set);at.preStyleProps.forEach(mn=>Ko.add(mn));let Jn=rn(q,bt,new Set);at.postStyleProps.forEach(mn=>Jn.add(mn)),bt!==n&&T.add(bt)}),IE(n,this._triggerName,r,i,fe,g,S,Be,[...T.values()],z,q,P))}};function xP(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}function $E(e,t){let n=O({},t);return Object.entries(e).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var Np=class{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){let r=new Map,i=$E(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ta(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function NP(e,t,n){return new Pp(e,t,n)}var Pp=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 Np(i.style,o,r))}),CE(this.states,"true","1"),CE(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new ol(t,i,this.states))}),this.fallbackTransition=PP(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 PP(e,t,n){let r=[(s,a)=>!0],i={type:J.Sequence,steps:[],options:null},o={type:J.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new ol(e,o,t)}function CE(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 RP=new na,Rp=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=UE(this._driver,n,r,i);if(r.length)throw qN(r);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,n,r){let i=t.element,o=PE(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=BE(this._driver,n,o,kE,bp,new Map,new Map,r,RP,i),s.forEach(l=>{let d=rn(a,l.element,new Map);l.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(YN()),s=[]),i.length)throw ZN(i);a.forEach((l,d)=>{l.forEach((f,p)=>{l.set(p,this._driver.computeStyle(d,p,qn))})});let c=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),u=$r(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 KN(t);return n}listen(t,n,r,i){let o=Up(n,"","","");return Vp(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}}},ME="ng-animate-queued",FP=".ng-animate-queued",Dp="ng-animate-disabled",LP=".ng-animate-disabled",kP="ng-star-inserted",jP=".ng-star-inserted",VP=[],HE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},UP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Tn="__ng_removed",ra=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=$P(i),r){let o=t,{value:s}=o,a=Ua(o,["value"]);this.options=a}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])})}}},ea="void",_p=new ra(ea),Fp=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,fn(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw QN(r,n);if(r==null||r.length==0)throw XN(n);if(!HP(r))throw JN(r,n);let o=rn(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);let a=rn(this._engine.statesByElement,t,new Map);return a.has(n)||(fn(t,Zu),fn(t,Zu+"-"+n),a.set(n,_p)),()=>{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 eP(t);return n}trigger(t,n,r,i=!0){let o=this._getTrigger(n),s=new ia(this.id,n,t),a=this._engine.statesByElement.get(t);a||(fn(t,Zu),fn(t,Zu+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n),u=new ra(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),a.set(n,u),c||(c=_p),!(u.value===ea)&&c.value===u.value){if(!WP(c.params,u.params)){let D=[],S=o.matchStyles(c.value,c.params,D),T=o.matchStyles(u.value,u.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{xi(t,S),Kn(t,T)})}return}let f=rn(this._engine.playersByElement,t,[]);f.forEach(D=>{D.namespaceId==this.id&&D.triggerName==n&&D.queued&&D.destroy()});let p=o.matchTransition(c.value,u.value,t,u.params),g=!1;if(!p){if(!i)return;p=o.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:p,fromState:c,toState:u,player:s,isFallbackTransition:g}),g||(fn(t,ME),s.onStart(()=>{Fo(t,ME)})),s.onDone(()=>{let D=this.players.indexOf(s);D>=0&&this.players.splice(D,1);let S=this._engine.playersByElement.get(t);if(S){let T=S.indexOf(s);T>=0&&S.splice(T,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,el,!0);r.forEach(i=>{if(i[Tn])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,ea,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&$r(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)||_p,l=new ra(ea),d=new ia(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[Tn];(!o||o===HE)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){fn(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=Up(o,r.triggerName,r.fromState.value,r.toState.value);c._data=t,Vp(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)}},Lp=class{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r,i){this.bodyNode=t,this.driver=n,this._normalizer=r,this.scheduler=i,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=(o,s)=>{}}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 Fp(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(Xu(n)){let o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!Xu(n))return;let o=n[Tn];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),fn(t,Dp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fo(t,Dp))}removeNode(t,n,r){var i;if(Xu(n)){(i=this.scheduler)==null||i.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);let s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[Tn]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return Xu(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,el,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(t,Ip,!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 $r(this.players).onDone(()=>t());t()})}processLeaveNode(t){var r;let n=t[Tn];if(n&&n.setForRemoval){if(t[Tn]=HE,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(Dp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,LP,!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?$r(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw tP(t)}_flushAnimations(t,n){let r=new na,i=[],o=new Map,s=[],a=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(N=>{l.add(N);let L=this.driver.query(N,FP,!0);for(let U=0;U{let U=kE+D++;g.set(L,U),N.forEach(ae=>fn(ae,U))});let S=[],T=new Set,z=new Set;for(let N=0;NT.add(ae)):z.add(L))}let q=new Map,fe=AE(f,Array.from(T));fe.forEach((N,L)=>{let U=bp+D++;q.set(L,U),N.forEach(ae=>fn(ae,U))}),t.push(()=>{p.forEach((N,L)=>{let U=g.get(L);N.forEach(ae=>Fo(ae,U))}),fe.forEach((N,L)=>{let U=q.get(L);N.forEach(ae=>Fo(ae,U))}),S.forEach(N=>{this.processLeaveNode(N)})});let Te=[],Be=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(n).forEach(U=>{let ae=U.player,We=U.element;if(Te.push(ae),this.collectedEnterElements.length){let ct=We[Tn];if(ct&&ct.setForMove){if(ct.previousTriggersValues&&ct.previousTriggersValues.has(U.triggerName)){let er=ct.previousTriggersValues.get(U.triggerName),jt=this.statesByElement.get(U.element);if(jt&&jt.has(U.triggerName)){let qr=jt.get(U.triggerName);qr.value=er,jt.set(U.triggerName,qr)}}ae.destroy();return}}let St=!d||!this.driver.containsElement(d,We),Tt=q.get(We),An=g.get(We),$e=this._buildInstruction(U,r,An,Tt,St);if($e.errors&&$e.errors.length){Be.push($e);return}if(St){ae.onStart(()=>xi(We,$e.fromStyles)),ae.onDestroy(()=>Kn(We,$e.toStyles)),i.push(ae);return}if(U.isFallbackTransition){ae.onStart(()=>xi(We,$e.fromStyles)),ae.onDestroy(()=>Kn(We,$e.toStyles)),i.push(ae);return}let Na=[];$e.timelines.forEach(ct=>{ct.stretchStartingKeyframe=!0,this.disabledNodes.has(ct.element)||Na.push(ct)}),$e.timelines=Na,r.append(We,$e.timelines);let $l={instruction:$e,player:ae,element:We};s.push($l),$e.queriedElements.forEach(ct=>rn(a,ct,[]).push(ae)),$e.preStyleProps.forEach((ct,er)=>{if(ct.size){let jt=c.get(er);jt||c.set(er,jt=new Set),ct.forEach((qr,Vi)=>jt.add(Vi))}}),$e.postStyleProps.forEach((ct,er)=>{let jt=u.get(er);jt||u.set(er,jt=new Set),ct.forEach((qr,Vi)=>jt.add(Vi))})});if(Be.length){let N=[];Be.forEach(L=>{N.push(nP(L.triggerName,L.errors))}),Te.forEach(L=>L.destroy()),this.reportError(N)}let P=new Map,wt=new Map;s.forEach(N=>{let L=N.element;r.has(L)&&(wt.set(L,L),this._beforeAnimationBuild(N.player.namespaceId,N.instruction,P))}),i.forEach(N=>{let L=N.element;this._getPreviousPlayers(L,!1,N.namespaceId,N.triggerName,null).forEach(ae=>{rn(P,L,[]).push(ae),ae.destroy()})});let at=S.filter(N=>OE(N,c,u)),bt=new Map;TE(bt,this.driver,z,u,qn).forEach(N=>{OE(N,c,u)&&at.push(N)});let Jn=new Map;p.forEach((N,L)=>{TE(Jn,this.driver,new Set(N),c,Uu)}),at.forEach(N=>{var ae,We;let L=bt.get(N),U=Jn.get(N);bt.set(N,new Map([...(ae=L==null?void 0:L.entries())!=null?ae:[],...(We=U==null?void 0:U.entries())!=null?We:[]]))});let mn=[],xa=[],ji={};s.forEach(N=>{let{element:L,player:U,instruction:ae}=N;if(r.has(L)){if(l.has(L)){U.onDestroy(()=>Kn(L,ae.toStyles)),U.disabled=!0,U.overrideTotalTime(ae.totalTime),i.push(U);return}let We=ji;if(wt.size>1){let Tt=L,An=[];for(;Tt=Tt.parentNode;){let $e=wt.get(Tt);if($e){We=$e;break}An.push(Tt)}An.forEach($e=>wt.set($e,We))}let St=this._buildAnimation(U.namespaceId,ae,P,o,Jn,bt);if(U.setRealPlayer(St),We===ji)mn.push(U);else{let Tt=this.playersByElement.get(We);Tt&&Tt.length&&(U.parentPlayer=$r(Tt)),i.push(U)}}else xi(L,ae.fromStyles),U.onDestroy(()=>Kn(L,ae.toStyles)),xa.push(U),l.has(L)&&i.push(U)}),xa.forEach(N=>{let L=o.get(N.element);if(L&&L.length){let U=$r(L);N.setRealPlayer(U)}}),i.forEach(N=>{N.parentPlayer?N.syncPlayerEvents(N.parentPlayer):N.destroy()});for(let N=0;N!St.destroyed);We.length?zP(this,L,We):this.processLeaveNode(L)}return S.length=0,mn.forEach(N=>{this.players.push(N),N.onDone(()=>{N.destroy();let L=this.players.indexOf(N);this.players.splice(L,1)}),N.play()}),mn}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==ea;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=rn(r,u,[]);this._getPreviousPlayers(u,l,s,a,n.toState).forEach(p=>{let g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}xi(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(g=>{let D=g.element;l.add(D);let S=D[Tn];if(S&&S.removedBeforeQueried)return new kr(g.duration,g.delay);let T=D!==c,z=GP((r.get(D)||VP).map(P=>P.getRealPlayer())).filter(P=>{let wt=P;return wt.element?wt.element===D:!1}),q=o.get(D),fe=s.get(D),Te=PE(this._normalizer,g.keyframes,q,fe),Be=this._buildPlayer(g,Te,z);if(g.subTimeline&&i&&d.add(D),T){let P=new ia(t,a,D);P.setRealPlayer(Be),u.push(P)}return Be});u.forEach(g=>{rn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>BP(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>fn(g,DE));let p=$r(f);return p.onDestroy(()=>{l.forEach(g=>Fo(g,DE)),Kn(c,n.toStyles)}),d.forEach(g=>{rn(i,g,[]).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 kr(t.duration,t.delay)}},ia=class{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new kr,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=>Vp(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){rn(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 BP(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 $P(e){return e!=null?e:null}function Xu(e){return e&&e.nodeType===1}function HP(e){return e=="start"||e=="done"}function SE(e,t){let n=e.style.display;return e.style.display=t!=null?t:"none",n}function TE(e,t,n,r,i){let o=[];n.forEach(c=>o.push(SE(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[Tn]=UP,s.push(u))}),e.set(u,l)});let a=0;return n.forEach(c=>SE(c,o[a++])),s}function AE(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 fn(e,t){var n;(n=e.classList)==null||n.add(t)}function Fo(e,t){var n;(n=e.classList)==null||n.remove(t)}function zP(e,t,n){$r(n).onDone(()=>e.processLeaveNode(t))}function GP(e){let t=[];return zE(e,t),t}function zE(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}var sl=class{constructor(t,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Lp(t.body,n,r,i),this._timelineEngine=new Rp(t.body,n,r),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(t,n,r,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let c=[],u=[],l=UE(this._driver,o,c,u);if(c.length)throw GN(i,c);u.length&&void 0,a=NP(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]=gE(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]=gE(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 qP(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Ep(t[0]),t.length>1&&(r=Ep(t[t.length-1]))):t instanceof Map&&(n=Ep(t)),n||r?new kp(e,n,r):null}var Lo=class Lo{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=Lo.initialStylesByElement.get(t);i||Lo.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Kn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kn(this._element,this._initialStyles),this._endStyles&&(Kn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Lo.initialStylesByElement.delete(this._element),this._startStyles&&(xi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xi(this._element,this._endStyles),this._endStyles=null),Kn(this._element,this._initialStyles),this._state=3)}};Lo.initialStylesByElement=new WeakMap;var kp=Lo;function Ep(e){let t=null;return e.forEach((n,r)=>{YP(r)&&(t=t||new Map,t.set(r,n))}),t}function YP(e){return e==="display"||e==="position"}var al=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:Hp(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let n=t==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},xE=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return RE(t,n)}getParentElement(t){return Bp(t)}query(t,n,r){return FE(t,n,r)}computeStyle(t,n,r){return Hp(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 al);pP(r,i)&&l.forEach(p=>{p.currentSnapshot.forEach((g,D)=>u.set(D,g))});let d=dP(n).map(p=>new Map(p));d=mP(t,d,u);let f=qP(t,d);return new al(t,d,c,f)}};var Ju="@",GE="@.disabled",cl=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)==Ju&&n==GE?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)}},jp=class extends cl{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){n.charAt(0)==Ju?n.charAt(1)=="."&&n==GE?(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)==Ju){let i=ZP(t),o=n.slice(1),s="";return o.charAt(0)!=Ju&&([o,s]=KP(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 ZP(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function KP(e){let t=e.indexOf("."),n=e.substring(0,t),r=e.slice(t+1);return[n,r]}var NE=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 cl(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 jp(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 QP=oe(()=>{let e={onRemovalComplete:()=>{}},t=new qe(null),n=v(sl,ue.Optional)||e,{onRemovalComplete:r=e.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{t.next(i),r.call(n,i,o)},t.pipe(ce(i=>mt(0).pipe(w(()=>null),we(i))),Ht())});function WE(e,t=null){return No(e).activeElement!==e&&!e.matches(":disabled")&&!(t!=null&&t.contains(e))}function XP(e){return Ve(ee(e,"focusin").pipe(w(({target:t})=>t)),ee(e,"focusout").pipe(Ee(({target:t,relatedTarget:n})=>!!n&&WE(t)),w(({relatedTarget:t})=>t)))}var qE=oe(()=>{let e=v(QP),t=v(he),n=v(ge),r=ee(t,"focusout"),i=ee(t,"focusin"),o=ee(t,"blur"),s=ee(t,"mousedown"),a=ee(t,"mouseup");return Ve(r.pipe(Me(s),Md(()=>a),cs(e),Ee(([c,u])=>WE(Vr(c),u)),w(([{relatedTarget:c}])=>c)),o.pipe(w(()=>n.activeElement),Ee(c=>!!(c!=null&&c.matches("iframe")))),i.pipe(ce(c=>{let u=Vr(c),l=No(u);return l===n?A(u):XP(l).pipe(we(u))})),s.pipe(ce(c=>{let u=Vr(c);return!n.activeElement||n.activeElement===n.body?A(u):r.pipe(Xe(1),w(()=>u),Me(mt(0)))}))).pipe(Ye(),Ht())}),YE=Ie([]);var ZE=oe(()=>{var e,t;return(t=(e=v(ge).querySelector("base"))===null||e===void 0?void 0:e.href)!==null&&t!==void 0?t:""}),QW=oe(()=>v(pi).createRenderer(null,null)),JP=Ie([]);function KE(e){return{provide:JP,multi:!0,useExisting:e}}var XW=oe(()=>{var e;let t=(e=v(ge).querySelector("base"))===null||e===void 0?void 0:e.href;if(t)return t;let n=v(ge).createElement("a");return n.href="",n.pathname}),oa=new _("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function ul(e){return{provide:oa,useExisting:e}}var JW=new _("[TUI_FONTS_READY]",{factory:()=>{var e;return xe(((e=v(ge).fonts)===null||e===void 0?void 0:e.ready)||Oe).pipe(Kt({bufferSize:1,refCount:!1}))}}),sa=oe(()=>lp(v(To))),eR=/(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/,tR=/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-/,Wp=oe(()=>eR.test(v(sp).toLowerCase())||tR.test(v(sp).slice(0,4).toLowerCase())),e4=oe(()=>v(Wp)&&!v(sa)),t4=oe(()=>rE(v(To))),n4=oe(()=>!!v(he).chrome),nR=oe(()=>!!v(he).Cypress),rR=oe(jr),r4=oe(()=>v(nR)||v(rR)),i4=oe(()=>{var e;return typeof((e=v(he))===null||e===void 0?void 0:e.mozCancelFullScreen)<"u"}),o4=oe(()=>v(he).location.host.endsWith("stackblitz.io")),QE=oe(()=>{var e;return!!(!((e=v(he))===null||e===void 0)&&e.webkitConvertPointFromNodeToPage)}),s4=Ie("web");var a4=oe(()=>e0(v(tn))?new Range:{}),aa=oe(()=>new Q(v(ge).documentElement)),c4=Ie({timeout:500,threshold:30}),u4=oe(Ao),l4=oe(()=>v(he).matchMedia("(any-pointer: coarse)").matches),qp=new _("[TUI_WINDOW_SIZE]",{factory:()=>{let e=v(he);return ee(e,"resize").pipe(we(null),w(()=>{var t,n;let r=Math.max(e.document.documentElement.clientWidth||0,e.innerWidth||0,((t=e.visualViewport)===null||t===void 0?void 0:t.width)||0),i=Math.max(e.document.documentElement.clientHeight||0,e.innerHeight||0,((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}}),Kt({bufferSize:1,refCount:!0}))}}),d4=oe(()=>v(qp).pipe(w(({height:e})=>e))),f4=Ie({wheelSensitivity:.01});var Ke=(()=>{class e extends or{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),x4=(()=>{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))}ngOnDestroy(){this.map.forEach(n=>n.destroy())}}return e.\u0275fac=function(n){return new(n||e)(M($n),M(wo))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Yp=(()=>{class e extends R{constructor({nativeElement:n},r,i){super(o=>this.focusVisible$.subscribe(o)),this.focusVisible$=cE(n).pipe(hE(r),Me(i))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(Dt),M(Ke,2))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),iR="tui_",JE=(()=>{class e{generate(){return"".concat(iR).concat(e.autoId++).concat(Date.now())}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),oR=(()=>{class e extends R{constructor(n,r){super(i=>this.callback$.subscribe(i)),this.callback$=Nn(()=>{let{nativeElement:i}=n,o=[r,i];for(;i.parentElement;)i=i.parentElement,o.push(i);return Ve(...o.map(s=>ee(s,"scroll")))})}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(he))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),N4=(()=>{class e extends R{constructor(n,{nativeElement:r},i,o,s,a){super(c=>this.obscured$.subscribe(c)),this.obscured$=Ve(Ve(n,Pn(o,"resize")).pipe(ss(0)),a.pipe(Sr(Oo))).pipe(w(()=>$u(r)),we(null),Ye(),Zn(i),Me(s))}}return e.\u0275fac=function(n){return new(n||e)(M(oR,2),M(Q),M(de),M(he),M(Ke,2),M(Mn))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var sR=300;function XE(e){return"scrollX"in e?e.scrollX:e.scrollLeft}function aR(e){return"scrollY"in e?e.scrollY:e.scrollTop}var P4=(()=>{class e{constructor(n,r){this.performanceRef=n,this.animationFrame$=r}scroll$(n,r,i=XE(n),o=sR){let s=aR(n),a=XE(n),c=r-s,u=i-a;return(o?Nn(()=>A(this.performanceRef.now())).pipe(ce(d=>this.animationFrame$.pipe(w(f=>f-d))),w(d=>K0(wr(d/o,0,1))),w(d=>[s+c*d,a+u*d]),Me(mt(o)),as([r,i])):A([r,i])).pipe(Ne(([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)(M(V0),M(Mn))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ew=(()=>{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||Bs(this.platformId)?mp(n):Nn(()=>xe(fetch(n)))).pipe(ce(s=>Xa(this,void 0,void 0,function*(){if(s.ok)return s.text();throw new Error("Failed to load ".concat(n," (").concat(s.statusText,")"))})),Kt({bufferSize:1,refCount:!1}));return this.cache.set(n,o),o}}return e.\u0275fac=function(n){return new(n||e)(M(he),M(tn))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var cR=["viewContainer"],uR="tui_interactive_",Kp=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new it,this.focusVisibleChange=new it,this.focusVisible=!1,this.autoIdString="".concat(uR).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=H({type:e,hostVars:7,hostBindings:function(n,r){n&2&&(lt("data-focused",r.pseudoFocus),tt("_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})(),Zp=class{},ca=(()=>{class e extends Kp{constructor(n,r,i){super(),this.ngControl=n,this.cdr=r,this.valueTransformer=i,this.refresh$=new Ae,this.onTouched=cp,this.onChange=cp,this.fallbackValue=this.getFallbackValue(),this.destroy$=new Ae,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 Vu&&this.previousInternalValue===void 0?n.viewModel:n.value;return this.fromControlValue(r)}ngOnInit(){this.refresh$.pipe(ss(0),we(null),w(()=>{var n;return(n=this.ngControl)===null||n===void 0?void 0:n.control}),Ee(Si),Ye(),ce(n=>Ve(n.valueChanges,n.statusChanges)),Me(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 Vu&&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)(y(Mi,8),y(Dt),y(Zp,8))},e.\u0275dir=H({type:e,hostVars:4,hostBindings:function(n,r){n&2&&tt("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[He]}),e})();function Q4(e){return{provide:ca,useExisting:e}}var tw=(()=>{class e{constructor(){this.change$=new Ae}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,features:[cn]}),e})(),ll=(()=>{class e extends R{constructor(n){super(r=>this.dialogs$.subscribe(r)),this.idService=n,this.dialogs$=new qe([])}open(n,r={}){return new R(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)(M(JE))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var X4=(()=>{class e extends ca{clear(){this.value=[]}getFallbackValue(){return[]}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275dir=H({type:e,features:[He]}),e})(),J4=(()=>{class e extends ca{getFallbackValue(){return null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275dir=H({type:e,features:[He]}),e})(),dl=(()=>{class e{get safeHost(){if(!this.host)throw new Gu;return this.host}attach(n){this.host=n}add(n){return this.safeHost.addComponentChild(n)}remove({hostView:n}){n.destroyed||n.destroy()}addTemplate(n,r){return this.safeHost.addTemplateChild(n,r)}removeTemplate(n){n.destroyed||n.destroy()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),Qp=(()=>{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($n).resolveComponentFactory(n.component),s=[{provide:e,useValue:this}],a=qt.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)(y(wo),y(Q),y(dl))},e.\u0275dir=H({type:e,viewQuery:function(n,r){if(n&1&&x_(cR,5,Ft),n&2){let i;Fh(i=Lh())&&(r.vcr=i.first)}}}),e})();function nw(e){return e!==null&&typeof e<"u"&&"".concat(e)!=="false"}var nq=(()=>{class e{transform(n,r,...i){return r(n,...i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=gi({name:"tuiMapper",type:e,pure:!0}),e})(),rq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function lR(e,t){if(e&1&&(ye(0,"div",3),Le(1,"div",4),ve()),e&2){let n=me().ngIf;tt("t-bar_has-horizontal",n[1])}}function dR(e,t){if(e&1&&(ye(0,"div",5),Le(1,"div",6),ve()),e&2){let n=me().ngIf;tt("t-bar_has-vertical",n[0])}}function fR(e,t){if(e&1&&(In(0),be(1,lR,2,2,"div",1)(2,dR,2,2,"div",2),Cn()),e&2){let n=t.ngIf;ie(),B("ngIf",n[0]),ie(),B("ngIf",n[1])}}var fl=24;function hR({clientY:e},{top:t,height:n}){return(e-t)/n}function pR({clientX:e},{left:t,width:n}){return(e-t)/n}var mR=(()=>{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=ee(c,"mousedown"),l=ee(this.doc,"mousemove"),d=ee(this.doc,"mouseup"),f=ee(this.wrapper,"mousedown");Ve(f.pipe(w(p=>this.getScrolled(p,.5,.5))),u.pipe(fE(),ce(p=>{let g=c.getBoundingClientRect(),D=hR(p,g),S=pR(p,g);return l.pipe(w(T=>this.getScrolled(T,D,S)),Me(d))}))).pipe(Yn(n),Me(r)).subscribe(([p,g])=>{this.tuiScrollbar==="vertical"?this.element.scrollTop=p:this.element.scrollLeft=g}),Ve(i.pipe(Sr(Oo)),dE(this.element)).pipe(Yn(n),Me(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>fl&&this.tuiScrollbar==="vertical"||i*i/o>fl&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?fl/n:fl/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,g=(n-c-s*i)/(d-s),D=(r-u-a*o)/(l-a);return[f*g,p*D]}}return e.\u0275fac=function(n){return new(n||e)(y(de),y(Ke,2),y(Mn),y(aa),y(ge),y(Q))},e.\u0275dir=H({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[ze([Ke])]}),e})(),Eq=(()=>{class e{constructor(n,r,i){this.zone=n,this.scrollRef=r,this.animationFrame$=i,this.refresh$=this.animationFrame$.pipe(Sr(300),w(()=>this.scrollbars),we([!1,!1]),Ye((o,s)=>o[0]===s[0]&&o[1]===s[1]),Zn(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)(y(de),y(aa),y(Mn))},e.\u0275cmp=ut({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&&(be(0,fR,3,2,"ng-container",0),ln(1,"async")),n&2&&B("ngIf",dn(1,1,r.refresh$))},dependencies:[Lt,mR,Wn],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 wq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","tuiScrollRef",""]],features:[ze([{provide:aa,useExisting:Q}])]}),e})(),bq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt]]}),e})();function gR(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 rw(e,t,n=!0){return function(){let i=e.call(this);return Object.defineProperty(this,t,{enumerable:n,value:i}),i}}function hl(e,t,n){if(typeof e=="function"){let c=t;if(c.kind==="getter")return rw(e,c.name);if(c.kind==="method")return gR(e);throw new Qs}let{get:r,enumerable:i,value:o}=n,s=t;if(r)return{configurable:!0,enumerable:i,get:rw(r,s,i)};if(typeof o!="function")throw new Qs;let a=o;return{configurable:!0,enumerable:i,get(){let c=[],u=!1,l,d=(...f)=>(u&&c.length===f.length&&f.every((g,D)=>g===c[D])||(c=f,l=a.apply(this,f),u=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var Bq=(()=>{class e{constructor(n,r,i,o){var s;this.active$=n,this.zone=r,this.el=i,this.directParentActiveZone=o,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(w(a=>!!a&&this.contains(a)),we(!1),Ye(),Td(1),Zn(this.zone)),(s=this.directParentActiveZone)===null||s===void 0||s.addSubActiveZone(this)}set tuiActiveZoneParentSetter(n){this.setZone(n)}ngOnDestroy(){var n,r;(n=this.directParentActiveZone)===null||n===void 0||n.removeSubActiveZone(this),(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this)}contains(n){return this.el.nativeElement.contains(n)||this.subActiveZones.some((r,i,o)=>o.indexOf(r)===i&&r.contains(n))}setZone(n){var r;(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this),n==null||n.addSubActiveZone(this),this.tuiActiveZoneParent=n}addSubActiveZone(n){this.subActiveZones=[...this.subActiveZones,n]}removeSubActiveZone(n){this.subActiveZones=Z0(this.subActiveZones,this.subActiveZones.indexOf(n))}}return e.\u0275fac=function(n){return new(n||e)(y(qE),y(de),y(Q),y(e,12))},e.\u0275dir=H({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:[Ze.None,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),Qa([hl],e.prototype,"setZone",null),e})(),$q=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var iw=(()=>{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){Dh()},e.\u0275dir=H({type:e}),e})(),vR=1e3,yR=".ng-animating",DR=(()=>{class e extends iw{constructor(n,r,i){super(n,r),this.animationFrame$=i}setFocus(){this.isTextFieldElement?bd(mt(vR),this.animationFrame$.pipe(Sr(Oo),w(()=>this.element.closest(yR)),Ad(Boolean),Xe(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return e.\u0275fac=function(n){return new(n||e)(y(oa,10),y(Q),y(Mn))},e.\u0275dir=H({type:e,features:[He]}),e})(),_R=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],ER=(()=>{class e extends iw{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=Ro(r.height),n.style.width=Ro(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=Ro(16),n.style.top=Ro(r.top),n.style.left=Ro(r.left),n}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach(n=>{n.style.setProperty("overflow","auto"),n.style.setProperty("height","100%")})}patchFakeInputFromFocusableElement(n){_R.forEach(r=>{let i=this.element.getAttribute(r);Si(i)&&n.setAttribute(r,i)})}}return e.\u0275fac=function(n){return new(n||e)(y(oa,10),y(Q),y(_r),y(de),y(he))},e.\u0275dir=H({type:e,features:[He]}),e})(),wR={delay:NaN},bR=Ie(wR);var ow=new _("[TUI_AUTOFOCUS_HANDLER]"),IR=[{provide:ow,useFactory:(e,t,n,r,i,o,s)=>s?new ER(e,t,r,i,o):new DR(e,t,n),deps:[[new vr,new Gy,oa],Q,Mn,_r,de,he,sa]},Ke],sw=(()=>{class e{constructor(n,r,i){this.handler=n,this.options=r,this.destroy$=i,this.autoFocus=!0}ngAfterViewInit(){nw(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):mt(this.options.delay).pipe(Me(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return e.\u0275fac=function(n){return new(n||e)(y(ow),y(bR),y(Ke,2))},e.\u0275dir=H({type:e,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:[Ze.None,"tuiAutoFocus","autoFocus"]},features:[ze(IR)]}),e})(),aw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var Xp=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},cw=(()=>{class e{constructor(n,r){n.createEmbeddedView(r,new Xp(this))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(vt))},e.\u0275dir=H({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),uw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var w8=(()=>{class e{constructor({nativeElement:n},r,i){this.mode="scroll",ee(n,"wheel",{passive:!1}).pipe(Ee(()=>this.enabled),Yn(r),Me(i)).subscribe(o=>{this.processEvent(o,!!o.deltaY,o.deltaY?o.deltaY<0:o.deltaX<0)}),ee(n,"touchstart",{passive:!0}).pipe(ce(({touches:o})=>{let{clientX:s,clientY:a}=o[0],c=0,u=0,l;return ee(n,"touchmove",{passive:!1}).pipe(Ee(()=>this.enabled),Ne(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)}))}),Yn(r),Me(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||!Bu(s)||((o=s)===null||o===void 0?void 0:o.type)==="range")){if(this.mode==="all"&&(r&&!a.contains(Hu(s))||!r&&!a.contains(Hu(s,!1)))){n.preventDefault();return}if(r&&(i&&!Zs(s,a,!0,!1)||!i&&!Zs(s,a,!0,!0))){n.preventDefault();return}!r&&(i&&!Zs(s,a,!1,!1)||!i&&!Zs(s,a,!1,!0))&&n.preventDefault()}}}return e.\u0275fac=function(n){return new(n||e)(y(Q),y(de),y(Ke,2))},e.\u0275dir=H({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(n,r){n&2&&wi("overscroll-behavior",r.overscrollBehavior)},inputs:{mode:[Ze.None,"tuiOverscroll","mode"]},features:[ze([Ke])]}),e})(),b8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var CR=["*"],MR=(()=>{class e extends dl{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),M8=(()=>{class e extends Qp{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275cmp=ut({type:e,selectors:[["tui-dropdown-host"]],features:[ze([{provide:dl,useExisting:MR},{provide:Qp,useExisting:e}]),He],ngContentSelectors:CR,decls:3,vars:0,consts:[["viewContainer",""]],template:function(n,r){n&1&&(zn(),Yt(0),bi(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})(),S8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var Jp=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}(Jp||{}),SR=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}(SR||{});var la="?v=".concat(W0);var lw=e=>e.includes(".svg#")?e:"#".concat(e),x8=()=>ap,em={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:G0,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},dw=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];var N8="tui-scroll-into-view";var fw="tui-icon-error",P8=["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 TR={cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]},AR={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"}},OR={previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}},xR={showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}},NR={[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"},PR={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:NR},RR={cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range","Choose days"],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"}},hw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},PR),RR),xR),TR),AR),OR);var FR=new _("[TUI_DEFAULT_LANGUAGE]",{factory:()=>hw}),pw=new _("[TUI_LANGUAGE]",{factory:()=>A(v(FR))}),B8=new _("[TUI_LANGUAGE_LOADER]"),$8=new _("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});function Ni(e){return()=>v(pw).pipe(ce(t=>ri(t)?t:A(t)),w(t=>t[e]))}function LR(e){return!e||typeof getComputedStyle>"u"?!1:getComputedStyle(e).getPropertyValue("position")==="fixed"||LR(e.parentElement)}function pl({document:e,innerWidth:t}){return Math.max(e.documentElement.clientWidth||0,t||0)}var tm='width="',nm='height="',rm="")));if(!(r!=null&&r.includes(tm))||!r.includes(nm))return"".concat(n.replace(rm,'");let i=r.indexOf(tm),o=r.indexOf(nm),s=i+tm.length,a=o+nm.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(rm,'').concat(n,"")}var im=1.5,kR=2.5;function X8(e,t=!1,n=!1,r=!1,i="m"){let o=i==="s"?0:.25,s=0;return e&&(s+=im+o),t&&(s+=im+o),n&&(s+=im+o),r&&(s+=kR+o),s}function ml(e){let t=e.endsWith("/")?e:"".concat(e,"/");return n=>n.startsWith("tuiIcon")?"".concat(t).concat(n,".svg").concat(la,"#").concat(n):lw(n)}function J8(e){return e.length===1||dw.includes(e)}function e5(e,t="tui-hints-host"){var n;return!!(!((n=$u(e))===null||n===void 0)&&n.some(r=>!r.closest(t)))}function vw(e){let t=e.trim();return t.startsWith("<")&&t.endsWith(">")}function t5(e,t){return(n,r)=>{let i=n||Object.assign({},r||t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}var gw={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function yw(e,t="s"){return gw[e]>gw[t]}function Dw(e,{mobile:t}){return pl(e){var e,t,n;return(n=(t=(e=v(ge).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}),UR=300,om=oe(()=>v(VR)?0:UR),_w=oe(()=>({value:"",params:{duration:v(om)}})),g5=oe(()=>B_()),BR={check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"},gl=Ie(BR);var v5=new _("[TUI_DATA_LIST_ACCESSOR]");var $R=new _("[TUI_DATA_LIST_HOST]");function y5(e){return{provide:$R,useExisting:e}}var D5=Ie(e=>e.isWeekend?"weekend":"weekday"),_5=new _("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),E5=new _("[TUI_ELEMENT_REF]"),HR=Ie(Jp.Monday),w5=oe(Ni("months")),vl=oe(Ni("close")),b5=oe(Ni("nothingFoundMessage")),I5=oe(Ni("defaultErrorMessage")),C5=oe(Ni("spinTexts")),zR=oe(Ni("shortWeekDays")),yl="assets/taiga-ui/icons",sm=Ie(yl),Ew=Ie({}),ww=oe(()=>ml(v(sm))),am=Ie({mobile:768,desktopSmall:1024,desktopLarge:1280}),cm=oe(()=>{let e=v(he),t=v(am);return ee(e,"resize").pipe(Ht(),we(null),w(()=>Dw(e,t)),Ye(),Zn(v(de)))}),M5=new _("[TUI_LEGACY_MASK]"),jo=new _("[TUI_MODE]"),GR={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},WR={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:e})=>GR[e],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},S5=Ie(WR);var T5=Ie(em);var A5=Ie(A(Object.assign(Object.assign({},em),{decimalLimit:NaN}))),O5=new _("[TUI_OPTION_CONTENT]");var qR=e=>{let t=e.length-1;return[e[t],...e.slice(0,t)]},x5=oe(()=>{let e=v(HR);return v(zR).pipe(w(qR),w(t=>[...t.slice(e),...t.slice(0,e)]))}),Dl=new _("[TUI_SANITIZER]");var N5=oe(()=>{let e=v(ge);return Ve(ee(e,"selectionchange"),ee(e,"mouseup"),ee(e,"mousedown").pipe(ce(()=>ee(e,"mousemove").pipe(Me(ee(e,"mouseup"))))),ee(e,"keydown"),ee(e,"keyup")).pipe(Ht())}),P5=Ie({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),bw=Ie(zu),Iw=Ie(Je),R5=Ie(da.Textfield),YR=new _("[TUI_TEXTFIELD_HOST]");function F5(e){return{provide:YR,useExisting:e}}var L5=Ie("Taiga"),k5=new _("[TUI_VALUE_ACCESSOR]"),j5=oe(()=>{let e=v(he);return{type:"viewport",getClientRect(){return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight}}}});var _l=class extends R{};function q5(e){return{provide:_l,multi:!0,useExisting:e}}var El=class{};function Y5(e){return{provide:El,multi:!0,useExisting:e}}var Z5=(()=>{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);Ve(...this.drivers.filter(({type:r})=>r===this.type)).pipe(Ye(),Me(this.destroy$)).subscribe(r=>{n==null||n.toggle(r)})}}return e.\u0275fac=function(n){return new(n||e)(y(Ke,2),y(_l),y(El))},e.\u0275dir=H({type:e}),e})(),K5=(()=>{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)(y(ca))},e.\u0275dir=H({type:e}),e})(),Pi=class{};function Q5(e){return{provide:Pi,deps:[[new yr,Pi]],useFactory:t=>t.find(n=>n.type===e)}}function X5(e){return{provide:Pi,multi:!0,useExisting:e}}var fa=class{};function J5(e,t){return{provide:fa,deps:[[new yr,fa],t],useFactory:ZR(e)}}function ZR(e){return(t,n)=>t.find(r=>r!==n&&r.type===e)||n}function e6(e){return{provide:fa,multi:!0,useExisting:e}}var se="primary",Sa=Symbol("RouteTitle"),hm=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 Ho(e){return new hm(e)}function KR(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 xw(e){return e.length>0?e[e.length-1]:null}function Gr(e){return ri(e)?e:Fr(e)?xe(Promise.resolve(e)):A(e)}var XR={exact:Pw,subset:Rw},Nw={exact:JR,subset:eF,ignored:()=>!0};function Cw(e,t,n){return XR[n.paths](e.root,t.root,n.matrixParams)&&Nw[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function JR(e,t){return Qn(e,t)}function Pw(e,t,n){if(!Fi(e.segments,t.segments)||!Il(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Pw(e.children[r],t.children[r],n))return!1;return!0}function eF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Ow(e[n],t[n]))}function Rw(e,t,n){return Fw(e,t,t.segments,n)}function Fw(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Fi(i,n)||t.hasChildren()||!Il(i,n,r))}else if(e.segments.length===n.length){if(!Fi(e.segments,n)||!Il(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Rw(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!Fi(e.segments,i)||!Il(e.segments,i,r)||!e.children[se]?!1:Fw(e.children[se],t,o,r)}}function Il(e,t,n){return t.every((r,i)=>Nw[n](e[i].parameters,r.parameters))}var Hr=class{constructor(t=new Se([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=Ho(this.queryParams)),this._queryParamMap}toString(){return rF.serialize(this)}},Se=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 Cl(this)}},Ri=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){var t;return(t=this._parameterMap)!=null||(this._parameterMap=Ho(this.parameters)),this._parameterMap}toString(){return kw(this)}};function tF(e,t){return Fi(e,t)&&e.every((n,r)=>Qn(n.parameters,t[r].parameters))}function Fi(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function nF(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===se&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==se&&(n=n.concat(t(i,r)))}),n}var Um=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new Sl,providedIn:"root"});let e=t;return e})(),Sl=class{parse(t){let n=new gm(t);return new Hr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n="/".concat(ha(t.root,!0)),r=sF(t.queryParams),i=typeof t.fragment=="string"?"#".concat(iF(t.fragment)):"";return"".concat(n).concat(r).concat(i)}},rF=new Sl;function Cl(e){return e.segments.map(t=>kw(t)).join("/")}function ha(e,t){if(!e.hasChildren())return Cl(e);if(t){let n=e.children[se]?ha(e.children[se],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==se&&r.push("".concat(i,":").concat(ha(o,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}else{let n=nF(e,(r,i)=>i===se?[ha(e.children[se],!1)]:["".concat(i,":").concat(ha(r,!1))]);return Object.keys(e.children).length===1&&e.children[se]!=null?"".concat(Cl(e),"/").concat(n[0]):"".concat(Cl(e),"/(").concat(n.join("//"),")")}}function Lw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(e){return Lw(e).replace(/%3B/gi,";")}function iF(e){return encodeURI(e)}function mm(e){return Lw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ml(e){return decodeURIComponent(e)}function Mw(e){return Ml(e.replace(/\+/g,"%20"))}function kw(e){return"".concat(mm(e.path)).concat(oF(e.parameters))}function oF(e){return Object.entries(e).map(([t,n])=>";".concat(mm(t),"=").concat(mm(n))).join("")}function sF(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>"".concat(wl(n),"=").concat(wl(i))).join("&"):"".concat(wl(n),"=").concat(wl(r))).filter(n=>n);return t.length?"?".concat(t.join("&")):""}var aF=/^[^\/()?;#]+/;function um(e){let t=e.match(aF);return t?t[0]:""}var cF=/^[^\/()?;=#]+/;function uF(e){let t=e.match(cF);return t?t[0]:""}var lF=/^[^=?&#]+/;function dF(e){let t=e.match(lF);return t?t[0]:""}var fF=/^[^&#]+/;function hF(e){let t=e.match(fF);return t?t[0]:""}var gm=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Se([],{}):new Se([],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[se]=new Se(t,n)),r}parseSegment(){let t=um(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(t),new Ri(Ml(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=uF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=um(this.remaining);i&&(r=i,this.capture(r))}t[Ml(n)]=Ml(r)}parseQueryParam(t){let n=dF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=hF(this.remaining);s&&(r=s,this.capture(r))}let i=Mw(n),o=Mw(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=um(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=se);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[se]:new Se([],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 b(4011,!1)}};function jw(e){return e.segments.length>0?new Se([],{[se]:e}):e}function Vw(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Vw(i);if(r===se&&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 Se(e.segments,t);return pF(n)}function pF(e){if(e.numberOfChildren===1&&e.children[se]){let t=e.children[se];return new Se(e.segments.concat(t.segments),t.children)}return e}function zo(e){return e instanceof Hr}function mF(e,t,n=null,r=null){let i=Uw(e);return Bw(i,t,n,r)}function Uw(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 Se(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=jw(r);return t!=null?t:i}function Bw(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return lm(i,i,i,n,r);let o=gF(t);if(o.toRoot())return lm(i,i,new Se([],{}),n,r);let s=vF(o,i,e),a=s.processChildren?ga(s.segmentGroup,s.index,o.commands):Hw(s.segmentGroup,s.index,o.commands);return lm(i,s.segmentGroup,a,n,r)}function Tl(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Da(e){return typeof e=="object"&&e!=null&&e.outlets}function lm(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=$w(e,t,n);let a=jw(Vw(s));return new Hr(a,o,i)}function $w(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=$w(o,t,n)}),new Se(e.segments,r)}var Al=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Tl(r[0]))throw new b(4003,!1);let i=r.find(Da);if(i&&i!==xw(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gF(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Al(!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 Al(n,t,r)}var Bo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function vF(e,t,n){if(e.isAbsolute)return new Bo(t,!0,0);if(!n)return new Bo(t,!1,NaN);if(n.parent===null)return new Bo(n,!0,0);let r=Tl(e.commands[0])?0:1,i=n.segments.length-1+r;return yF(n,i,e.numberOfDoubleDots)}function yF(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new Bo(r,!1,i-o)}function DF(e){return Da(e[0])?e[0].outlets:{[se]:e}}function Hw(e,t,n){if(e!=null||(e=new Se([],{})),e.segments.length===0&&e.hasChildren())return ga(e,t,n);let r=_F(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==se)&&e.children[se]&&e.numberOfChildren===1&&e.children[se].segments.length===0){let o=ga(e.children[se],t,n);return new Se(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Hw(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new Se(e.segments,i)}}function _F(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(Da(a))break;let c="".concat(a),u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Tw(c,u,s))return o;r+=2}else{if(!Tw(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function vm(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=vm(new Se([],{}),0,r))}),t}function Sw(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]="".concat(r)),t}function Tw(e,t,n){return e==n.path&&Qn(t,n.parameters)}var va="imperative",Et=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Et||{}),pn=class{constructor(t,n){this.id=t,this.url=n}},_a=class extends pn{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Et.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}},Li=class extends pn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Et.NavigationEnd}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}},hn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(hn||{}),ym=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ym||{}),zr=class extends pn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Et.NavigationCancel}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}},ki=class extends pn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Et.NavigationSkipped}},Ea=class extends pn{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Et.NavigationError}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}},Ol=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.RoutesRecognized}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Dm=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.GuardsCheckStart}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},_m=class extends pn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Et.GuardsCheckEnd}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}},Em=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.ResolveStart}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},wm=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.ResolveEnd}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},bm=class{constructor(t){this.route=t,this.type=Et.RouteConfigLoadStart}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}},Im=class{constructor(t){this.route=t,this.type=Et.RouteConfigLoadEnd}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}},Cm=class{constructor(t){this.snapshot=t,this.type=Et.ChildActivationStart}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(t,"')")}},Mm=class{constructor(t){this.snapshot=t,this.type=Et.ChildActivationEnd}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(t,"')")}},Sm=class{constructor(t){this.snapshot=t,this.type=Et.ActivationStart}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(t,"')")}},Tm=class{constructor(t){this.snapshot=t,this.type=Et.ActivationEnd}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(t,"')")}};var wa=class{},ba=class{constructor(t){this.url=t}};var Am=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ll,this.attachRef=null}},Ll=(()=>{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 Am,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),xl=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=Om(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Om(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=xm(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return xm(t,this._root).map(n=>n.value)}};function Om(e,t){if(e===t.value)return t;for(let n of t.children){let r=Om(e,n);if(r)return r}return null}function xm(e,t){if(e===t.value)return[t];for(let n of t.children){let r=xm(e,n);if(r.length)return r.unshift(t),r}return[]}var on=class{constructor(t,n){this.value=t,this.children=n}toString(){return"TreeNode(".concat(this.value,")")}};function Uo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Nl=class extends xl{constructor(t,n){super(t),this.snapshot=n,$m(this,t)}toString(){return this.snapshot.toString()}};function zw(e){let t=wF(e),n=new qe([new Ri("",{})]),r=new qe({}),i=new qe({}),o=new qe({}),s=new qe(""),a=new Go(n,r,o,s,i,se,e,t.root);return a.snapshot=t.root,new Nl(new on(a,[]),t)}function wF(e){let t={},n={},r={},i="",o=new Ia([],t,r,i,n,se,e,null,{});return new Pl("",new on(o,[]))}var Go=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(w(d=>d[Sa])))!=null?l:A(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(){var t;return(t=this._paramMap)!=null||(this._paramMap=this.params.pipe(w(n=>Ho(n)))),this._paramMap}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(w(n=>Ho(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}};function Bm(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:O(O({},t.params),e.params),data:O(O({},t.data),e.data),resolve:O(O(O(O({},e.data),t.data),i==null?void 0:i.data),e._resolvedData)}:r={params:O({},e.params),data:O({},e.data),resolve:O(O({},e.data),(s=e._resolvedData)!=null?s:{})},i&&Ww(i)&&(r.resolve[Sa]=i.title),r}var Ia=class{get title(){var t;return(t=this.data)==null?void 0:t[Sa]}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(){var t;return(t=this._paramMap)!=null||(this._paramMap=Ho(this.params)),this._paramMap}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=Ho(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,"')")}},Pl=class extends xl{constructor(t,n){super(n),this.url=t,$m(this,n)}toString(){return Gw(this._root)}};function $m(e,t){t.value._routerState=e,t.children.forEach(n=>$m(e,n))}function Gw(e){let t=e.children.length>0?" { ".concat(e.children.map(Gw).join(", ")," } "):"";return"".concat(e.value).concat(t)}function dm(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Qn(t.params,n.params)||e.paramsSubject.next(n.params),QR(t.url,n.url)||e.urlSubject.next(n.url),Qn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Nm(e,t){let n=Qn(e.params,t.params)&&tF(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Nm(e.parent,t.parent))}function Ww(e){return typeof e.title=="string"||e.title===null}var bF=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=se,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=v(Ll),this.location=v(Ft),this.changeDetector=v(Dt),this.environmentInjector=v(sn),this.inputBinder=v(Hm,{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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(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 b(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Pm(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=H({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[cn]});let e=t;return e})(),Pm=class{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Go?this.route:t===Ll?this.childContexts:this.parent.get(t,n)}},Hm=new _("");function IF(e,t,n){let r=Ca(e,t._root,n?n._root:void 0);return new Nl(r,t)}function Ca(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=CF(e,t,n);return new on(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=>Ca(e,a)),s}}let r=MF(t.value),i=t.children.map(o=>Ca(e,o));return new on(r,i)}}function CF(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ca(e,r,i);return Ca(e,r)})}function MF(e){return new Go(new qe(e.url),new qe(e.params),new qe(e.queryParams),new qe(e.fragment),new qe(e.data),e.outlet,e.component,e)}var qw="ngNavigationCancelingError";function Yw(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Zw(!1,hn.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Zw(e,t){let n=new Error("NavigationCancelingError: ".concat(e||""));return n[qw]=!0,n.cancellationCode=t,n}function SF(e){return Kw(e)&&zo(e.url)}function Kw(e){return!!e&&e[qw]}var TF=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ut({type:t,selectors:[["ng-component"]],standalone:!0,features:[R_],decls:1,vars:0,template:function(i,o){i&1&&Le(0,"router-outlet")},dependencies:[bF],encapsulation:2});let e=t;return e})();function AF(e,t){var n;return e.providers&&!e._injector&&(e._injector=Ph(e.providers,t,"Route: ".concat(e.path))),(n=e._injector)!=null?n:t}function zm(e){let t=e.children&&e.children.map(zm),n=t?je(O({},e),{children:t}):O({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==se&&(n.component=TF),n}function Xn(e){return e.outlet||se}function OF(e,t){let n=e.filter(r=>Xn(r)===t);return n.push(...e.filter(r=>Xn(r)!==t)),n}function Ta(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 xF=(e,t,n,r)=>w(i=>(new Rm(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Rm=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),dm(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Uo(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=Uo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(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=Uo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Uo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tm(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Mm(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(dm(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),dm(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Ta(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)}},Rl=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},$o=class{constructor(t,n){this.component=t,this.route=n}};function NF(e,t,n){let r=e._root,i=t?t._root:null;return pa(r,i,n,[r.value])}function PF(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Py(e)?e:t.get(e):r}function pa(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Uo(t);return e.children.forEach(s=>{RF(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ya(a,n.getContext(s),i)),i}function RF(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=FF(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Rl(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?pa(e,t,a?a.children:null,r,i):pa(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new $o(a.outlet.component,s))}else s&&ya(t,a,i),i.canActivateChecks.push(new Rl(r)),o.component?pa(e,null,a?a.children:null,r,i):pa(e,null,n,r,i);return i}function FF(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Fi(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fi(e.url,t.url)||!Qn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nm(e,t)||!Qn(e.queryParams,t.queryParams);case"paramsChange":default:return!Nm(e,t)}}function ya(e,t,n){let r=Uo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?ya(s,t.children.getContext(o),n):ya(s,null,n):ya(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new $o(t.outlet.component,i)):n.canDeactivateChecks.push(new $o(null,i)):n.canDeactivateChecks.push(new $o(null,i))}function Aa(e){return typeof e=="function"}function LF(e){return typeof e=="boolean"}function kF(e){return e&&Aa(e.canLoad)}function jF(e){return e&&Aa(e.canActivate)}function VF(e){return e&&Aa(e.canActivateChild)}function UF(e){return e&&Aa(e.canDeactivate)}function BF(e){return e&&Aa(e.canMatch)}function Qw(e){return e instanceof sr||(e==null?void 0:e.name)==="EmptyError"}var bl=Symbol("INITIAL_VALUE");function Wo(){return ce(e=>fc(e.map(t=>t.pipe(Xe(1),we(bl)))).pipe(w(t=>{for(let n of t)if(n!==!0){if(n===bl)return bl;if(n===!1||n instanceof Hr)return n}return!0}),Ee(t=>t!==bl),Xe(1)))}function $F(e,t){return Qe(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?A(je(O({},n),{guardsResult:!0})):HF(s,r,i,e).pipe(Qe(a=>a&&LF(a)?zF(r,o,e,t):A(a)),w(a=>je(O({},n),{guardsResult:a})))})}function HF(e,t,n,r){return xe(e).pipe(Qe(i=>ZF(i.component,i.route,n,t,r)),yn(i=>i!==!0,!0))}function zF(e,t,n,r){return xe(t).pipe(ii(i=>$t(WF(i.route.parent,r),GF(i.route,r),YF(e,i.path,n),qF(e,i.route,n))),yn(i=>i!==!0,!0))}function GF(e,t){return e!==null&&t&&t(new Sm(e)),A(!0)}function WF(e,t){return e!==null&&t&&t(new Cm(e)),A(!0)}function qF(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return A(!0);let i=r.map(o=>Nn(()=>{var u;let s=(u=Ta(t))!=null?u:n,a=qo(o,s),c=jF(a)?a.canActivate(t,e):Pr(s,()=>a(t,e));return Gr(c).pipe(yn())}));return A(i).pipe(Wo())}function YF(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>PF(s)).filter(s=>s!==null).map(s=>Nn(()=>{let a=s.guards.map(c=>{var f;let u=(f=Ta(s.node))!=null?f:n,l=qo(c,u),d=VF(l)?l.canActivateChild(r,e):Pr(u,()=>l(r,e));return Gr(d).pipe(yn())});return A(a).pipe(Wo())}));return A(o).pipe(Wo())}function ZF(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return A(!0);let s=o.map(a=>{var d;let c=(d=Ta(t))!=null?d:i,u=qo(a,c),l=UF(u)?u.canDeactivate(e,t,n,r):Pr(c,()=>u(e,t,n,r));return Gr(l).pipe(yn())});return A(s).pipe(Wo())}function KF(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return A(!0);let o=i.map(s=>{let a=qo(s,e),c=kF(a)?a.canLoad(t,n):Pr(e,()=>a(t,n));return Gr(c)});return A(o).pipe(Wo(),Xw(r))}function Xw(e){return ei(Ne(t=>{if(zo(t))throw Yw(e,t)}),w(t=>t===!0))}function QF(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return A(!0);let o=i.map(s=>{let a=qo(s,e),c=BF(a)?a.canMatch(t,n):Pr(e,()=>a(t,n));return Gr(c)});return A(o).pipe(Wo(),Xw(r))}var Ma=class{constructor(t){this.segmentGroup=t||null}},Fl=class extends Error{constructor(t){super(),this.urlTree=t}};function Vo(e){return no(new Ma(e))}function XF(e){return no(new b(4e3,!1))}function JF(e){return no(Zw(!1,hn.GuardRejected))}var Fm=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return A(r);if(i.numberOfChildren>1||!i.children[se])return XF(t.redirectTo);i=i.children[se]}}applyRedirectCommands(t,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Fl(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 Se(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 b(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}},Lm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function e1(e,t,n,r,i){let o=Gm(e,t,n);return o.matched?(r=AF(t,r),QF(r,t,n,i).pipe(w(s=>s===!0?o:O({},Lm)))):A(o)}function Gm(e,t,n){var a,c;if(t.path==="**")return t1(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?O({},Lm):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||KR)(n,e,t);if(!i)return O({},Lm);let o={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([u,l])=>{o[u]=l.path});let s=i.consumed.length>0?O(O({},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 t1(e){return{matched:!0,parameters:e.length>0?xw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Aw(e,t,n,r){return n.length>0&&i1(e,n,r)?{segmentGroup:new Se(t,r1(r,new Se(n,e.children))),slicedSegments:[]}:n.length===0&&o1(e,n,r)?{segmentGroup:new Se(e.segments,n1(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Se(e.segments,e.children),slicedSegments:n}}function n1(e,t,n,r){let i={};for(let o of n)if(kl(e,t,o)&&!r[Xn(o)]){let s=new Se([],{});i[Xn(o)]=s}return O(O({},r),i)}function r1(e,t){let n={};n[se]=t;for(let r of e)if(r.path===""&&Xn(r)!==se){let i=new Se([],{});n[Xn(r)]=i}return n}function i1(e,t,n){return n.some(r=>kl(e,t,r)&&Xn(r)!==se)}function o1(e,t,n){return n.some(r=>kl(e,t,r))}function kl(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function s1(e,t,n,r){return Xn(e)!==r&&(r===se||!kl(t,n,e))?!1:Gm(t,e,n).matched}function a1(e,t,n){return t.length===0&&!e.children[n]}var km=class{};function c1(e,t,n,r,i,o,s="emptyOnly"){return new jm(e,t,n,r,i,s,o).recognize()}var u1=31,jm=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 Fm(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new b(4002,"'".concat(t.segmentGroup,"'"))}recognize(){let t=Aw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(w(n=>{let r=new Ia([],Object.freeze({}),Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,{},se,this.rootComponentType,null,{}),i=new on(r,n),o=new Pl("",i),s=mF(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,se).pipe(vn(r=>{if(r instanceof Fl)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ma?this.noMatchError(r):r}))}inheritParamsAndData(t,n){let r=t.value,i=Bm(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(w(o=>o instanceof on?[o]:[]))}processChildren(t,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return xe(i).pipe(ii(o=>{let s=r.children[o],a=OF(n,o);return this.processSegmentGroup(t,a,s,o)}),mc((o,s)=>(o.push(...s),o)),Cr(null),Cd(),Qe(o=>{if(o===null)return Vo(r);let s=Jw(o);return l1(s),A(s)}))}processSegment(t,n,r,i,o,s){return xe(n).pipe(ii(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:t,n,a,r,i,o,s).pipe(vn(u=>{if(u instanceof Ma)return A(null);throw u}))}),yn(a=>!!a),vn(a=>{if(Qw(a))return a1(r,i,o)?A(new km):Vo(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return s1(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):Vo(i):Vo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=Gm(n,i,o);if(!a)return Vo(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>u1&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(Qe(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){let s=e1(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(ce(a=>{var c;return a.matched?(t=(c=r._injector)!=null?c:t,this.getChildConfig(t,r,i).pipe(ce(({routes:u})=>{var z,q,fe;let l=(z=r._loadedInjector)!=null?z:t,{consumedSegments:d,remainingSegments:f,parameters:p}=a,g=new Ia(d,p,Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,f1(r),Xn(r),(fe=(q=r.component)!=null?q:r._loadedComponent)!=null?fe:null,r,h1(r)),{segmentGroup:D,slicedSegments:S}=Aw(n,d,f,u);if(S.length===0&&D.hasChildren())return this.processChildren(l,u,D).pipe(w(Te=>Te===null?null:new on(g,Te)));if(u.length===0&&S.length===0)return A(new on(g,[]));let T=Xn(r)===o;return this.processSegment(l,u,D,S,T?se:o,!0).pipe(w(Te=>new on(g,Te instanceof on?[Te]:[])))}))):Vo(n)}))}getChildConfig(t,n,r){return n.children?A({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?A({routes:n._loadedRoutes,injector:n._loadedInjector}):KF(t,n,r,this.urlSerializer).pipe(Qe(i=>i?this.configLoader.loadChildren(t,n).pipe(Ne(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):JF(n))):A({routes:[],injector:t})}};function l1(e){e.sort((t,n)=>t.value.outlet===se?-1:n.value.outlet===se?1:t.value.outlet.localeCompare(n.value.outlet))}function d1(e){let t=e.value.routeConfig;return t&&t.path===""}function Jw(e){let t=[],n=new Set;for(let r of e){if(!d1(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=Jw(r.children);t.push(new on(r.value,i))}return t.filter(r=>!n.has(r))}function f1(e){return e.data||{}}function h1(e){return e.resolve||{}}function p1(e,t,n,r,i,o){return Qe(s=>c1(e,t,n,r,s.extractedUrl,i,o).pipe(w(({state:a,tree:c})=>je(O({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function m1(e,t){return Qe(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return A(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of eb(c))s.add(u);let a=0;return xe(s).pipe(ii(c=>o.has(c)?g1(c,r,e,t):(c.data=Bm(c,c.parent,e).resolve,A(void 0))),Ne(()=>a++),oo(1),Qe(c=>a===s.size?A(n):Oe))})}function eb(e){let t=e.children.map(n=>eb(n)).flat();return[e,...t]}function g1(e,t,n,r){let i=e.routeConfig,o=e._resolve;return(i==null?void 0:i.title)!==void 0&&!Ww(i)&&(o[Sa]=i.title),v1(o,e,t,r).pipe(w(s=>(e._resolvedData=s,e.data=Bm(e,e.parent,n).resolve,null)))}function v1(e,t,n,r){let i=pm(e);if(i.length===0)return A({});let o={};return xe(i).pipe(Qe(s=>y1(e[s],t,n,r).pipe(yn(),Ne(a=>{o[s]=a}))),oo(1),os(o),vn(s=>Qw(s)?Oe:no(s)))}function y1(e,t,n,r){var a;let i=(a=Ta(t))!=null?a:r,o=qo(e,i),s=o.resolve?o.resolve(t,n):Pr(i,()=>o(t,n));return Gr(s)}function fm(e){return ce(t=>{let n=e(t);return n?xe(n).pipe(w(()=>t)):A(t)})}var tb=(()=>{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===se);return i}getResolvedTitleForRoute(r){return r.data[Sa]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(D1),providedIn:"root"});let e=t;return e})(),D1=(()=>{let t=class t extends tb{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)(M(v0))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Wm=new _("",{providedIn:"root",factory:()=>({})}),qm=new _(""),_1=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(Vh)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return A(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Gr(r.loadComponent()).pipe(w(nb),Ne(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Mr(()=>{this.componentLoaders.delete(r)})),o=new Xi(i,()=>new Ae).pipe(Qi());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return A({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=E1(i,this.compiler,r,this.onLoadEndListener).pipe(Mr(()=>{this.childrenLoaders.delete(i)})),a=new Xi(s,()=>new Ae).pipe(Qi());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function E1(e,t,n,r){return Gr(e.loadChildren()).pipe(w(nb),Qe(i=>i instanceof ws||Array.isArray(i)?A(i):xe(t.compileModuleAsync(i))),w(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(qm,[],{optional:!0,self:!0}).flat()),{routes:s.map(zm),injector:o}}))}function w1(e){return e&&typeof e=="object"&&"default"in e}function nb(e){return w1(e)?e.default:e}var Ym=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(b1),providedIn:"root"});let e=t;return e})(),b1=(()=>{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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),I1=new _("");var C1=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ae,this.transitionAbortSubject=new Ae,this.configLoader=v(_1),this.environmentInjector=v(sn),this.urlSerializer=v(Um),this.rootContexts=v(Ll),this.location=v(Us),this.inputBindingEnabled=v(Hm,{optional:!0})!==null,this.titleStrategy=v(tb),this.options=v(Wm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(Ym),this.createViewTransition=v(I1,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>A(void 0),this.rootComponentType=null;let r=o=>this.events.next(new bm(o)),i=o=>this.events.next(new Im(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(je(O(O({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new qe({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:va,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ee(s=>s.id!==0),w(s=>je(O({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{this.currentTransition=s;let a=!1,c=!1;return A(s).pipe(Ne(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?je(O({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ce(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 ki(u.id,this.urlSerializer.serialize(u.rawUrl),p,ym.IgnoredSameUrlNavigation)),u.resolve(null),Oe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return A(u).pipe(ce(p=>{var D,S;let g=(D=this.transitions)==null?void 0:D.getValue();return this.events.next(new _a(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),g!==((S=this.transitions)==null?void 0:S.getValue())?Oe:Promise.resolve(p)}),p1(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),Ne(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=je(O({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let g=new Ol(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(g)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:p,extractedUrl:g,source:D,restoredState:S,extras:T}=u,z=new _a(p,this.urlSerializer.serialize(g),D,S);this.events.next(z);let q=zw(this.rootComponentType).snapshot;return this.currentTransition=s=je(O({},u),{targetSnapshot:q,urlAfterRedirects:g,extras:je(O({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,A(s)}else{let p="";return this.events.next(new ki(u.id,this.urlSerializer.serialize(u.extractedUrl),p,ym.IgnoredByUrlHandlingStrategy)),u.resolve(null),Oe}}),Ne(u=>{let l=new Dm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),w(u=>(this.currentTransition=s=je(O({},u),{guards:NF(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),$F(this.environmentInjector,u=>this.events.next(u)),Ne(u=>{if(s.guardsResult=u.guardsResult,zo(u.guardsResult))throw Yw(this.urlSerializer,u.guardsResult);let l=new _m(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Ee(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",hn.GuardRejected),!1)),fm(u=>{if(u.guards.canActivateChecks.length)return A(u).pipe(Ne(l=>{let d=new Em(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return A(l).pipe(m1(this.paramsInheritanceStrategy,this.environmentInjector),Ne({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",hn.NoDataFromResolver)}}))}),Ne(l=>{let d=new wm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),fm(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(Ne(g=>{d.component=g}),w(()=>{})));for(let g of d.children)f.push(...l(g));return f};return fc(l(u.targetSnapshot.root)).pipe(Cr(null),Xe(1))}),fm(()=>this.afterPreactivation()),ce(()=>{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?xe(d).pipe(w(()=>s)):A(s)}),w(u=>{let l=IF(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=je(O({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),Ne(()=>{this.events.next(new wa)}),xF(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Xe(1),Ne({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Li(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}}),Me(this.transitionAbortSubject.pipe(Ne(u=>{throw u}))),Mr(()=>{var u;!a&&!c&&this.cancelNavigationTransition(s,"",hn.SupersededByNewNavigation),((u=this.currentNavigation)==null?void 0:u.id)===s.id&&(this.currentNavigation=null)}),vn(u=>{var l;if(c=!0,Kw(u))this.events.next(new zr(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),SF(u)?this.events.next(new ba(u.url)):s.resolve(!1);else{this.events.next(new Ea(s.id,this.urlSerializer.serialize(s.extractedUrl),u,(l=s.targetSnapshot)!=null?l:void 0));try{s.resolve(r.errorHandler(u))}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Oe}))}))}cancelNavigationTransition(r,i,o){let s=new zr(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function M1(e){return e!==va}var S1=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(T1),providedIn:"root"});let e=t;return e})(),Vm=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},T1=(()=>{let t=class t extends Vm{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),rb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(A1),providedIn:"root"});let e=t;return e})(),A1=(()=>{let t=class t extends rb{constructor(){super(...arguments),this.location=v(Us),this.urlSerializer=v(Um),this.options=v(Wm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(Ym),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Hr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=zw(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 _a)this.stateMemento=this.createStateMemento();else if(r instanceof ki)this.rawUrlTree=i.initialUrl;else if(r instanceof Ol){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof wa?(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 zr&&(r.code===hn.GuardRejected||r.code===hn.NoDataFromResolver)?this.restoreHistory(i):r instanceof Ea?this.restoreHistory(i,!0):r instanceof Li&&(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=O(O({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=O(O({},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=Fe(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ma=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ma||{});function O1(e,t){e.events.pipe(Ee(n=>n instanceof Li||n instanceof zr||n instanceof Ea||n instanceof ki),w(n=>n instanceof Li||n instanceof ki?ma.COMPLETE:(n instanceof zr?n.code===hn.Redirect||n.code===hn.SupersededByNewNavigation:!1)?ma.REDIRECTING:ma.FAILED),Ee(n=>n!==ma.REDIRECTING),Xe(1)).subscribe(()=>{t()})}function x1(e){throw e}var N1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},P1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ib=(()=>{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=v(Cu),this.stateManager=v(rb),this.options=v(Wm,{optional:!0})||{},this.pendingTasks=v(Fs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(C1),this.urlSerializer=v(Um),this.location=v(Us),this.urlHandlingStrategy=v(Ym),this._events=new Ae,this.errorHandler=this.options.errorHandler||x1,this.navigated=!1,this.routeReuseStrategy=v(S1),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(i=(r=v(qm,{optional:!0}))==null?void 0:r.flat())!=null?i:[],this.componentInputBindingEnabled=!!v(Hm,{optional:!0}),this.eventsSubscription=new rt,this.isNgZoneEnabled=v(de)instanceof de&&de.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 zr&&i.code!==hn.Redirect&&i.code!==hn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Li)this.navigated=!0;else if(i instanceof ba){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||M1(o.source)};this.scheduleNavigation(a,va,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}F1(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),va,this.stateManager.restoredState())}setUpLocationChangeListener(){var r;(r=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",o)},0)}))}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let u=O({},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(zm),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=O(O({},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=Uw(p)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),f=this.currentUrlTree.root}return Bw(f,r,d,l!=null?l:null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=zo(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,va,null,i)}navigate(r,i={skipLocationChange:!1}){return R1(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=O({},N1):i===!1?o=O({},P1):o=i,zo(r))return Cw(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Cw(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(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 O1(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function R1(e){for(let t=0;tn.\u0275providers)])}function k1(e){return e.routerState.root}function j1(){let e=v(qt);return t=>{var o,s;let n=e.get(Lr);if(t!==n.components[0])return;let r=e.get(ib),i=e.get(V1);e.get(U1)===1&&r.initialNavigation(),(o=e.get(B1,null,ue.Optional))==null||o.setUpPreloading(),(s=e.get(L1,null,ue.Optional))==null||s.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var V1=new _("",{factory:()=>new Ae}),U1=new _("",{providedIn:"root",factory:()=>1});var B1=new _("");var B6=(()=>{class e extends R{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(w(({width:o})=>this.sorted.find(s=>s>o)),w(o=>this.invert[o||this.sorted[this.sorted.length-1]]),Ye(),Zn(this.ngZone),Kt({bufferSize:1,refCount:!0}))}}return e.\u0275fac=function(n){return new(n||e)(M(am),M(de),M(qp))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ob=(()=>{class e{constructor(n){this.locale=n}format(n){return A(new Date(n).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}}return e.\u0275fac=function(n){return new(n||e)(M(js))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$6=(()=>{class e extends qe{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=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var H6=(()=>{class e extends R{constructor(n,r,i,o){super(s=>r.pipe(w(()=>n.nativeElement.getBoundingClientRect()),w(a=>o.getPosition(a)),Yn(i),Mr(()=>o.getPosition(H0))).subscribe(s))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(Mn),M(de),M(Pi))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var sb=(()=>{class e{constructor(n,r,i){this.tuiSanitizer=n,this.sanitizer=r,this.originals={},this.items$=new qe(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(mw(r,n))}sanitize(n){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(yt.HTML,n):this.sanitizer.sanitize(yt.HTML,n))||"")}}return e.\u0275fac=function(n){return new(n||e)(M(Dl,8),M(Gs),M(Ew))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),z6=(()=>{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)(M(he),M(QE))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function H1(e,t){if(e&1&&Le(0,"div",3),e&2){let n=me().tuiLet;B("innerHTML",n,bo)}}function z1(e,t){if(e&1){let n=Hn();As(),ye(0,"svg",4),st("error",function(){Vn(n);let i=me(2);return Un(i.onError())}),Le(1,"use"),ve()}if(e&2){let n=me(2);ie(),lt("href",n.use,null,"xlink")}}function G1(e,t){if(e&1&&(In(0),be(1,H1,1,1,"div",1)(2,z1,2,1,"ng-template",null,2,Iu),Cn()),e&2){let n=Eu(3),r=me();ie(),B("ngIf",r.isInnerHTML)("ngIfElse",n)}}var W1={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"},q1={iconsPlace:yl,path:ml(yl),srcProcessor:Je,contentProcessor:zu,deprecated:e=>{let t=e.replace("Large","").replace("Outline",""),n=W1[t];return n?"".concat(t,"/(Large|Outline) is deprecated, use ").concat(n,"/(Large|Outline) instead"):""}},Y1=oe(()=>({iconsPlace:v(sm),path:v(ww),deprecated:q1.deprecated,srcProcessor:v(Iw),contentProcessor:v(bw)})),Z1=new _("[TUI_SVG_SRC_INTERCEPTORS]");var K1="Attempted to use undefined named icon",Q1="External icon is missing on the given URL",X1="Failed to load external SVG",Yo=(()=>{class e{constructor(n,r,i,o,s,a,c,u,l,d){this.doc=n,this.win=r,this.options=i,this.srcInterceptors=o,this.tuiSanitizer=s,this.svgService=a,this.staticRequestService=c,this.sanitizer=u,this.el=l,this.baseHref=d,this.src$=new or(1),this.icon="",this.innerHTML$=this.src$.pipe(ce(()=>Sn(this.icon)?this.isExternal?this.getExternalIcon(this.icon):A(this.getSafeHtml(this.icon)):A(this.icon)),we(""))}set src(n){var r;let i=this.options.deprecated(String(n));this.icon=((r=this.srcInterceptors)!==null&&r!==void 0?r:[]).reduce((o,s)=>s(o,this.options),this.options.srcProcessor(n||"")),this.src$.next()}get src(){return this.icon}get use(){return Sn(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!Sn(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return No(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(la,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Sn(this.icon)&&this.icon.replace(la,"").endsWith(".svg")}get isSrc(){return Sn(this.icon)&&vw(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:n,isUse:r,win:i}=this;return r&&n.startsWith("http")&&!!i.origin&&!n.startsWith(i.origin)}onError(n=Q1){let{icon:r}=this,i=new CustomEvent(fw,{bubbles:!0,detail:{message:n,icon:r}});this.el.nativeElement.dispatchEvent(i)}resolveName(n,r){return r(n,this.baseHref)}getSafeHtml(n){return this.isSrc?this.sanitize(n):this.process(n)}process(n){let r=this.svgService.getOriginal(n);return this.isName&&!r&&n&&this.onError(K1),!this.isShadowDOM||!this.isName?"":this.sanitize(r||"")}sanitize(n){return n=this.options.contentProcessor(n),this.tuiSanitizer&&Sn(n)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(yt.HTML,n)||""):n}getExternalIcon(n){let r=n.includes(".svg")?n:this.use;return this.staticRequestService.request(r).pipe(vn(()=>(this.onError(X1),A(""))),w(i=>this.sanitize(i.replace("{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,uw]]}),e})();var Y="{{duration}}ms ease-in-out",_e={params:{duration:300}},Mt=300,cb=Ge("tuiHeightCollapse",[le(":enter",[E({height:0}),W(Y,E({height:"*"}))],_e),le(":leave",[E({height:"*"}),W(Y,E({height:0}))],_e)]),fY=Ge("tuiHeightCollapseList",[le("* => *",[dt(":enter",[E({height:0}),_t(Mt,[W(Y,E({height:"*"}))])],{optional:!0}),dt(":leave",[E({height:"*"}),_t(Mt,[W(Y,E({height:0}))])],{optional:!0})],_e)]),hY=Ge("tuiWidthCollapse",[le(":enter",[E({width:0}),W(Y,E({width:"*"}))],_e),le(":leave",[E({width:"*"}),W(Y,E({width:0}))],_e)]),pY=Ge("tuiWidthCollapseList",[le("* => *",[dt(":enter",[E({width:0}),_t(Mt,[W(Y,E({width:"*"}))])],{optional:!0}),dt(":leave",[E({width:"*"}),_t(Mt,[W(Y,E({width:0}))])],{optional:!0})],_e)]),jl=Ge("tuiFadeIn",[le(":enter",[E({opacity:0}),W(Y,E({opacity:1}))],_e),le(":leave",[E({opacity:1}),W(Y,E({opacity:0}))],_e)]),mY=Ge("tuiFadeInList",[le("* => *",[dt(":enter",[E({opacity:0}),_t(Mt,[W(Y,E({opacity:1}))])],{optional:!0}),dt(":leave",[E({opacity:1}),_t(Mt,[W(Y,E({opacity:0}))])],{optional:!0})],_e)]),gY=Ge("tuiFadeInTop",[le(":enter",[E({transform:"translateY(-10px)",opacity:0}),W(Y,E({transform:"translateY(0)",opacity:1}))],_e),le(":leave",[E({transform:"translateY(0)",opacity:1}),W(Y,E({transform:"translateY(-10px)",opacity:0}))],_e)]),vY=Ge("tuiFadeInBottom",[le(":enter",[E({transform:"translateY(10px)",opacity:0}),W(Y,E({transform:"translateY(0)",opacity:1}))],_e),le(":leave",[E({transform:"translateY(0)",opacity:1}),W(Y,E({transform:"translateY(10px)",opacity:0}))],_e)]),yY=Ge("tuiDropdownAnimation",[le(":enter",[E({transform:"translateY(-10px)",opacity:0}),W(Y,E({transform:"translateY(0)",opacity:1}))],_e),le(":leave",[E({transform:"translateY(0)",opacity:1}),W(Y,E({transform:"translateY(-10px)",opacity:0}))],_e)]),DY=Ge("tuiScaleIn",[le(":enter",[E({transform:"scale(0)"}),W(Y,E({transform:"scale(1)"}))],_e),le(":leave",[E({transform:"scale(1)"}),W(Y,E({transform:"scale(0)"}))],_e)]),_Y=Ge("tuiPop",[le(":enter",[E({transform:"scale(0)"}),W(Y,E({transform:"scale(1.1)"})),W(Y,E({transform:"scale(1)"}))],_e),le(":leave",[E({transform:"scale(1)"}),W(Y,E({transform:"scale(1.1)"})),W(Y,E({transform:"scale(0)"}))],_e)]),EY=Ge("tuiScaleInList",[le("* => *",[dt(":enter",[E({transform:"scale(0)"}),_t(Mt,[W(Y,E({transform:"scale(1)"}))])],{optional:!0}),dt(":leave",[E({transform:"scale(1)"}),_t(Mt,[W(Y,E({transform:"scale(0)"}))])],{optional:!0})],_e)]),wY=Ge("tuiSlideIn",[le("* => left",[E({transform:"translateX(-100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le("left => *",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(-100%)"}))],_e),le("* => right",[E({transform:"translateX(100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le("right => *",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(100%)"}))],_e)]),bY=Ge("tuiSlideInLeft",[le(":enter",[E({transform:"translateX(-100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le(":leave",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(-100%)"}))],_e)]),IY=Ge("tuiSlideInLeftList",[le("* => *",[dt(":enter",[E({transform:"translateX(-100%)"}),_t(Mt,[W(Y,E({transform:"translateX(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateX(0)"}),_t(Mt,[W(Y,E({transform:"translateX(-100%)"}))])],{optional:!0})],_e)]),ub=Ge("tuiSlideInRight",[le(":enter",[E({transform:"translateX(100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le(":leave",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(100%)"}))],_e)]),CY=Ge("tuiSlideInRightList",[le("* => *",[dt(":enter",[E({transform:"translateX(100%)"}),_t(Mt,[W(Y,E({transform:"translateX(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateX(0)"}),_t(Mt,[W(Y,E({transform:"translateX(100%)"}))])],{optional:!0})],_e)]),lb=Ge("tuiSlideInTop",[le(":enter",[E({transform:"translate3d(0,{{start}},0)"}),W(Y,E({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),le(":leave",[E({transform:"translate3d(0,{{end}},0)"}),W(Y,E({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),MY=Ge("tuiSlideInTopList",[le("* => *",[dt(":enter",[E({transform:"translateY(100%)"}),_t(Mt,[W(Y,E({transform:"translateY(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateY(0)"}),_t(Mt,[W(Y,E({transform:"translateY(100%)"}))])],{optional:!0})],_e)]),SY=Ge("tuiSlideInBottom",[le(":enter",[E({transform:"translateY(-100%)"}),W(Y,E({transform:"translateY(0)"}))],_e),le(":leave",[E({transform:"translateY(0)"}),W(Y,E({transform:"translateY(-100%)"}))],_e)]),TY=Ge("tuiSlideInBottomList",[le("* => *",[dt(":enter",[E({transform:"translateY(-100%)"}),_t(Mt,[W(Y,E({transform:"translateY(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateY(0)"}),_t(Mt,[W(Y,E({transform:"translateY(-100%)"}))])],{optional:!0})],_e)]);var Wr=(()=>{class e extends tw{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275dir=H({type:e,selectors:[["","tuiMode",""]],inputs:{mode:[Ze.None,"tuiMode","mode"]},features:[He]}),e})();var kY={provide:cm,deps:[[new yr,cm],Q],useFactory:(e,{nativeElement:t})=>(t["$.class._mobile"]=e,e)},Vl={provide:jo,deps:[[new vr,Wr],Q],useFactory:(e,{nativeElement:t})=>{let n=e?e.change$.pipe(we(null),w(()=>e.mode)):A(null);return t["$.data-mode.attr"]=n,n}};function J1(e){return e.replace(/[a-z][A-Z]/g,t=>"".concat(t[0],"-").concat(t[1].toLowerCase()))}var Ir=class{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(n=>!this.modifier.includes(n)).join(".")}},eL=(()=>{class e extends Ir{constructor(){super(...arguments),this.modifier="$"}addEventListener(n,r){n[r]=n[r]||Oe;let i=this.getMethod(n,r),o=this.manager.getZone().onStable,s=$t(o.pipe(gc(()=>n[r]===Oe)),Nn(()=>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(J1(o),"".concat(a).concat(s)):a=>n[i]=a}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),tL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),nL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),rL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),Ul=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),iL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),oL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),sL=[Ul,eL,tL,nL,rL,iL,oL],aL=sL.map(e=>({provide:Mo,multi:!0,useClass:e}));function $Y(e){return(t,n,r)=>{let{value:i}=r;r.value=function(...o){e.apply(this,o)&&(Ul.ngZone?Ul.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var HY=(()=>{class e{constructor([n]){console.assert(!(n instanceof Ul)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(n){return new(n||e)(M(Mo))},e.\u0275mod=K({type:e}),e.\u0275inj=X({providers:aL}),e})();var db=(()=>{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?ko.Disabled:this.readOnly?ko.Readonly:this.active?ko.Active:this.hover?ko.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)(y(jo))},e.\u0275dir=H({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(n,r){n&1&&st("$.data-mode.attr",function(){return r.mode$}),n&2&&(lt("data-appearance",r.appearance)("data-state",r.interactiveState),tt("_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:[ze([Vl])]}),e})(),fb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function uL(e,t){if(e&1&&(In(0),Gn(1),Cn()),e&2){let n=t.polymorpheusOutlet;ie(),un(" ",n," ")}}function lL(e,t){if(e&1&&(As(),My(),ye(0,"div",6),be(1,uL,2,1,"ng-container",7),ve()),e&2){let n=me(2);tt("t-text_horizontal",n.isHorizontal),ie(),B("polymorpheusOutlet",n.textContent)}}function dL(e,t){if(e&1&&(ye(0,"div",2),As(),ye(1,"svg",3),Le(2,"circle",4),ve(),be(3,lL,2,3,"div",5),ve()),e&2){let n=me();tt("t-loader_horizontal",n.isHorizontal)("t-loader_inherit-color",n.inheritColor),lt("data-size",n.size),ie(3),B("ngIf",n.hasText)}}var fL=["*"],hL={size:"m",inheritColor:!1,overlay:!1},pL=Ie(hL);var hb=(()=>{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=Y0(this.el.nativeElement)||this.isIos}set showLoader(n){n&&this.focused&&eE(this.doc),this.loading=n}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!yw(this.size)}get focused(){return nE(this.el.nativeElement)}}return e.\u0275fac=function(n){return new(n||e)(y(ge),y(Q),y(sa),y(pL))},e.\u0275cmp=ut({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(n,r){n&2&&tt("_loading",r.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:fL,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&&(zn(),ye(0,"fieldset",0),Yt(1),ve(),be(2,dL,4,6,"div",1)),n&2&&(tt("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),B("disabled",r.loading&&!r.isApple),lt("inert",r.loading||null),ie(2),B("ngIf",r.loading))},dependencies:[Lt,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})(),pb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,Br]]}),e})();var gL=["tuiButton",""];function vL(e,t){e&1&&bi(0)}function yL(e,t){if(e&1&&Le(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;B("src",n)}}function DL(e,t){if(e&1&&(ye(0,"span",6),be(1,yL,1,1,"tui-svg",7),ve()),e&2){let n=me();ie(),B("polymorpheusOutlet",n.icon)}}function _L(e,t){if(e&1&&Le(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;B("src",n)}}function EL(e,t){if(e&1&&(ye(0,"span",9),be(1,_L,1,1,"tui-svg",7),ve()),e&2){let n=me();ie(),B("polymorpheusOutlet",n.iconRight)}}function wL(e,t){if(e&1&&Le(0,"tui-loader",10),e&2){let n=me();B("inheritColor",!0)("size",n.loaderSize)}}var bL=["*"],IL={size:"l",shape:null,appearance:da.Primary},Zm=Ie(IL);var Oa=(()=>{class e extends Kp{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$)||Oe,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(we(null),w(()=>this.computedAppearance),Ye())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&Po(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)(y(Wr,8),y(Q),y(Zm))},e.\u0275cmp=ut({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(n,r){n&1&&st("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),n&2&&(Rh("tabIndex",r.tabIndex),lt("data-shape",r.shape)("data-size",r.size)("data-appearance",r.computedAppearance)("disabled",r.nativeDisabled),tt("_loading",r.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[ze([ul(e),Ke]),He],attrs:gL,ngContentSelectors:bL,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&&(zn(),be(0,vL,1,0,"ng-container",0),ln(1,"async"),ye(2,"div",1)(3,"span",2),be(4,DL,2,1,"span",3),Yt(5),be(6,EL,2,1,"span",4),ve(),be(7,wL,1,2,"tui-loader",5),ve()),n&2&&(B("ngIf",dn(1,8,r.appearance$)),ie(2),B("active",r.pseudoActive)("appearance",r.computedAppearance)("disabled",r.computedDisabled)("hover",r.pseudoHover),ie(2),B("ngIf",r.icon),ie(2),B("ngIf",r.iconRight),ie(),B("ngIf",r.showLoader))},dependencies:[Yo,hb,Lt,db,Ur,Wn],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;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%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][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})(),Bl=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,Br,fb,Zo,pb]]}),e})();var ML=["tuiLink",""];function SL(e,t){if(e&1&&Le(0,"tui-svg",3),e&2){let n=me();B("src",n.icon||"")}}function TL(e,t){if(e&1&&Le(0,"tui-svg",4),e&2){let n=me();B("src",n.icon||"")}}var AL=["*"],mb=(()=>{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=Ve(ee(this.el.nativeElement,"focusin").pipe(w(Ao)),ee(this.el.nativeElement,"focusout").pipe(w(jr))),i.subscribe(o=>{this.focusVisible=o})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return Po(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)(y(Q),y(jo),y(Yp))},e.\u0275cmp=ut({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(n,r){n&1&&st("$.data-mode.attr",function(){return r.mode$}),n&2&&(lt("data-host-mode",r.mode),tt("_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:[ze([ul(e),Yp,Ke,Vl])],attrs:ML,ngContentSelectors:AL,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&&(zn(),be(0,SL,1,1,"tui-svg",0),ye(1,"span",1),Yt(2),ve(),be(3,TL,1,1,"tui-svg",2)),n&2&&(B("ngIf",r.iconAlignLeft),ie(3),B("ngIf",r.iconAlignRight))},dependencies:[Yo,Lt],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);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})(),gb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,Zo]]}),e})();function OL(e,t){if(e&1&&(In(0),Gn(1),Cn()),e&2){let n=t.polymorpheusOutlet;ie(),un(" ",n," ")}}function xL(e,t){if(e&1&&(ye(0,"header",6),be(1,OL,2,1,"ng-container",3),ve()),e&2){let n=me();ie(),B("polymorpheusOutlet",n.header)("polymorpheusOutletContext",n.context)}}function NL(e,t){if(e&1){let n=Hn();In(0),Le(1,"div",7),ye(2,"div",8)(3,"button",9),st("click",function(){Vn(n);let i=me();return Un(i.context.$implicit.complete())}),Gn(4),ve()(),Cn()}if(e&2){let n=t.polymorpheusOutlet,r=me(),i;ie(),B("innerHTML",n,bo),ie(3),un(" ",((i=r.context.data)==null?null:i.button)||"OK"," ")}}function PL(e,t){if(e&1){let n=Hn();ye(0,"div",10)(1,"button",11),st("click",function(){Vn(n);let i=me();return Un(i.close$.next())})("mousedown.prevent.silent",function(){return 0}),ln(2,"async"),ve()()}if(e&2){let n=me();ie(),B("appearance",n.fullscreen?"secondary":"")("icon",n.icons.close)("title",dn(2,3,n.closeWord$))}}var RL={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},FL=Ie(Oe),LL=Ie(RL);var kL=17,vb=(()=>{class e extends R{constructor(n,r,i){super(o=>Ve(this.esc$,this.mousedown$).subscribe(o)),this.win=n,this.doc=r,this.el=i,this.esc$=ee(this.doc,"keydown").pipe(Ee(o=>{let s=Vr(o);return o.key==="Escape"&&!o.defaultPrevented&&(this.element.contains(s)||this.isOutside(s))})),this.mousedown$=ee(this.doc,"mousedown").pipe(Ee(o=>pl(this.win)-o.clientX>kL&&this.isOutside(Vr(o))),ce(()=>ee(this.doc,"mouseup").pipe(Xe(1),w(Vr),Ee(o=>this.isOutside(o)))))}get element(){return this.el.nativeElement}isOutside(n){return Bu(n)&&(!J0(this.element,n)||n===this.element)}}return e.\u0275fac=function(n){return new(n||e)(M(he),M(ge),M(Q))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),jL=new Error("Required dialog was dismissed");function yb(e){return ri(e)?e:A(e)}var VL=(()=>{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 Ae,Ve(this.close$.pipe(ce(()=>yb(i.closeable))),s.pipe(ce(()=>yb(i.dismissible))),a.pipe(w(Ao))).pipe(Ee(Boolean),Me(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(jL):this.context.$implicit.complete()}}return e.\u0275fac=function(n){return new(n||e)(y(om),y(Wp),y(Xs),y(Ke,2),y(vb),y(FL),y(vl),y(gl))},e.\u0275cmp=ut({type:e,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&(lt("data-appearance",r.context.appearance)("data-size",r.size),ks("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),tt("_centered",r.header))},features:[ze([Ke,vb])],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&&(be(0,xL,2,2,"header",0),ye(1,"div",1),Le(2,"h2",2),ye(3,"section"),be(4,NL,5,2,"ng-container",3),ve()(),Le(5,"div",4),be(6,PL,3,5,"div",5)),n&2&&(B("ngIf",r.header),ie(2),B("id",r.context.id)("textContent",r.context.label),ie(2),B("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),ie(2),B("ngIf",r.context.closeable))},dependencies:[Oa,Lt,Ur,sw,Wn],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%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-modal)}[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:[lb,jl]}}),e})(),UL=new Ti(VL),BL=(()=>{class e extends ll{constructor(){super(...arguments),this.component=UL,this.defaultOptions=Object.assign(Object.assign({},v(LL)),{data:void 0})}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var oZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({providers:[KE(BL)],imports:[[Br,Bl,kt,aw]]}),e})();var Db=(()=>{class e{constructor(n){this.service=n}transform(n){return this.service.format(n.valueOf())}}return e.\u0275fac=function(n){return new(n||e)(y(ob,16))},e.\u0275pipe=gi({name:"tuiFormatDate",type:e,pure:!0}),e})(),_b=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function $L(e,t){if(e&1){let n=Hn();ye(0,"button",10),st("click",function(){Vn(n);let i=me();return Un(i.close.emit())}),ln(1,"async"),ve()}if(e&2){let n=me();B("icon",n.icons.close)("title",dn(1,2,n.closeWord$))}}function HL(e,t){if(e&1&&(Le(0,"span",11),ln(1,"async"),ln(2,"tuiFormatDate")),e&2){let n=me();B("textContent",n.isString(n.timestamp)?n.timestamp:dn(1,1,dn(2,3,n.timestamp)))}}var zL=[[["img"]],[["tui-svg"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],GL=["img","tui-svg","*","[tuiButton]","[tuiLink]"];function WL(e,t){if(e&1&&Le(0,"img",8),e&2){let n=me(2);B("src",n.context.image,ID)}}function qL(e,t){if(e&1&&Le(0,"tui-svg",9),e&2){let n=me(2);wi("color",n.context.iconColor),B("src",n.context.icon)}}function YL(e,t){if(e&1&&Le(0,"div",10),e&2){let n=t.polymorpheusOutlet;B("innerHTML",n,bo)}}function ZL(e,t){if(e&1){let n=Hn();ye(0,"button",11),st("click",function(){Vn(n);let i=me(2);return Un(i.context.$implicit.next(i.context.buttons[0]))}),Gn(1),ve()}if(e&2){let n=me(2);ie(),un(" ",n.context.buttons[0]," ")}}function KL(e,t){if(e&1){let n=Hn();ye(0,"button",12),st("click",function(){Vn(n);let i=me(2);return Un(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),Gn(1),ve()}if(e&2){let n=me(2);ie(),un(" ",n.context.buttons[n.context.buttons.length-1]," ")}}function QL(e,t){if(e&1){let n=Hn();ye(0,"tui-push",2),st("close",function(){Vn(n);let i=me();return Un(i.context.$implicit.complete())}),be(1,WL,1,1,"img",3)(2,qL,1,3,"tui-svg",4)(3,YL,1,1,"div",5)(4,ZL,2,1,"button",6)(5,KL,2,1,"button",7),ve()}if(e&2){let n=me();B("heading",n.context.heading)("timestamp",n.context.timestamp)("type",n.context.type),ie(),B("ngIf",n.context.image),ie(),B("ngIf",n.context.icon),ie(),B("polymorpheusOutlet",n.context.content),ie(),B("ngIf",n.context.buttons.length>1),ie(),B("ngIf",n.context.buttons.length)}}function XL(e,t){e&1&&bi(0)}function JL(e,t){if(e&1&&be(0,XL,1,0,"ng-container",13),e&2){let n=me();B("polymorpheusOutlet",n.context.content)}}var ek=(()=>{class e{constructor(n,r){this.closeWord$=n,this.icons=r,this.heading="",this.type="",this.lines=2,this.timestamp="",this.close=new it,this.isString=Sn}get closeable(){return lE(this.close)}}return e.\u0275fac=function(n){return new(n||e)(y(vl),y(gl))},e.\u0275cmp=ut({type:e,selectors:[["tui-push"]],hostVars:2,hostBindings:function(n,r){n&2&&wi("--t-lines",r.lines)},inputs:{heading:"heading",type:"type",lines:"lines",timestamp:"timestamp"},outputs:{close:"close"},ngContentSelectors:GL,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&&(zn(zL),ye(0,"div",0),Yt(1),ve(),be(2,$L,2,4,"button",1),ye(3,"div",2)(4,"span",3),Yt(5,1),ve(),Gn(6),be(7,HL,3,5,"span",4),ve(),ye(8,"h3",5),Gn(9),ve(),ye(10,"div",6),Yt(11,2),ve(),ye(12,"div",7)(13,"span",8),Yt(14,3),ve(),ye(15,"span",9),Yt(16,4),ve()()),n&2&&(ie(2),B("ngIf",r.closeable),ie(4),un(" ",r.type," "),ie(),B("ngIf",r.timestamp),ie(2),un(" ",r.heading,"\n"))},dependencies:[Oa,Lt,Wn,Db],styles:['[_nghost-%COMP%]{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);box-shadow:var(--tui-shadow)}.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:var(--t-lines);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})(),tk=(()=>{class e extends Wr{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 Ae}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)(y(Wr,12))},e.\u0275dir=H({type:e,selectors:[["tui-push"]],features:[ze([{provide:Wr,useExisting:e},{provide:Zm,useExisting:e}]),He]}),e})(),nk={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},rk=Ie(nk);var ik=(()=>{class e extends pp{constructor(n,r,i,o){super(n,r),this.show$=new Ae,this.show$.pipe(uE(()=>o.open(this)),Me(i)).subscribe()}set tuiPush(n){this.show$.next(n)}}return e.\u0275fac=function(n){return new(n||e)(y(vt),y(Dt),y(Ke,2),y(gr(()=>Eb)))},e.\u0275dir=H({type:e,selectors:[["","tuiPush",""]],inputs:{tuiPush:"tuiPush"},features:[ze([Ke]),He]}),e})(),ok=(()=>{class e{constructor(n,r){this.animation=n,this.context=r}get isDirective(){return this.context.content instanceof ik}}return e.\u0275fac=function(n){return new(n||e)(y(_w),y(Xs))},e.\u0275cmp=ut({type:e,selectors:[["tui-push-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(n,r){n&2&&ks("@tuiFadeIn",r.animation)("@tuiSlideInRight",r.animation)("@tuiHeightCollapse",r.animation)},decls:3,vars:2,consts:[[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],["directive",""],[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"],[4,"polymorpheusOutlet"]],template:function(n,r){if(n&1&&be(0,QL,6,8,"tui-push",0)(1,JL,1,1,"ng-template",null,1,Iu),n&2){let i=Eu(2);B("ngIf",!r.isDirective)("ngIfElse",i)}},dependencies:[ek,Yo,Oa,mb,Lt,tk,Ur],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[jl,ub,cb]},changeDetection:0}),e})(),Eb=(()=>{class e extends ll{constructor(){super(...arguments),this.component=new Ti(ok),this.defaultOptions=v(rk)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({providers:[{provide:YE,useExisting:Eb,multi:!0}],imports:[[kt,Br,Bl,gb,Zo,_b]]}),e})();var bb=rI(wb());var sk=new _("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),ak=new _("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),ck=new _("A function that sanitizes value for a CSS rule",{factory:()=>e=>e,providedIn:"root"}),uk=bb.default,LZ=(()=>{class e{constructor(n,r,{defaultView:i},o){this.config=n,this.sanitizeStyle=r,this.domPurify=uk(i),o.forEach(({name:s,hook:a})=>{this.domPurify.addHook(s,a)})}sanitize(n,r,i=this.config){if(n===yt.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return n===yt.STYLE?this.sanitizeStyle(String(r)):this.domPurify.sanitize(String(r||""),i)}}return e.\u0275fac=function(n){return new(n||e)(M(sk),M(ck),M(ge),M(ak))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var kZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();export{Ag as a,Je as b,R as c,Ae as d,qe as e,or as f,Oe as g,Qa as h,Xa as i,A as j,w as k,fc as l,Pn as m,mt as n,Ve as o,RI as p,Ee as q,kI as r,uv as s,Xe as t,ss as u,Ye as v,pc as w,Ht as x,Td as y,we as z,ce as A,Me as B,Ne as C,Sr as D,it as E,Ze as F,ut as G,K as H,H as I,gi as J,Vn as K,Un as L,As as M,Q as N,C as O,X as P,_ as Q,tn as R,jz as S,gr as T,M as U,v as V,vr as W,Gy as X,yr as Y,wo as Z,EM as _,cn as $,Fe as aa,qt as ba,yt as ca,bo as da,Vz as ea,Uz as fa,ie as ga,y as ha,vt as ia,If as ja,pi as ka,_r as la,Dt as ma,de as na,Ft as oa,He as pa,be as qa,lt as ra,B as sa,wi as ta,tt as ua,ye as va,ve as wa,Le as xa,In as ya,Cn as za,bi as Aa,Hn as Ba,Rh as Ca,ks as Da,st as Ea,me as Fa,zn as Ga,Yt as Ha,uO as Ia,x_ as Ja,Fh as Ka,Lh as La,Eu as Ma,Gn as Na,hO as Oa,un as Pa,pO as Qa,Hz as Ra,mO as Sa,ze as Ta,R_ as Ua,zz as Va,Gz as Wa,Wz as Xa,ln as Ya,dn as Za,qz as _a,Yz as $a,Zz as ab,Iu as bb,ge as cb,vG as db,yG as eb,Lt as fb,Wn as gb,kt as hb,Bs as ib,l0 as jb,GG as kb,v0 as lb,WG as mb,bF as nb,I6 as ob,ip as pb,T0 as qb,Mi as rb,l3 as sb,Vu as tb,eN as ub,rN as vb,f3 as wb,Ge as xb,E as yb,le as zb,B0 as Ab,dt as Bb,jr as Cb,Ao as Db,F3 as Eb,L3 as Fb,H0 as Gb,k3 as Hb,j3 as Ib,V3 as Jb,G0 as Kb,B3 as Lb,H3 as Mb,z3 as Nb,wr as Ob,W3 as Pb,q3 as Qb,Y3 as Rb,Z0 as Sb,Ie as Tb,oe as Ub,Si as Vb,Q3 as Wb,J0 as Xb,Bu as Yb,xo as Zb,Vr as _b,tW as $b,nW as ac,rW as bc,iW as cc,oW as dc,up as ec,eE as fc,tE as gc,uW as hc,Po as ic,nE as jc,Ro as kc,iE as lc,oE as mc,sE as nc,bW as oc,ee as pc,uE as qc,IW as rc,bN as sc,hE as tc,Yn as uc,Zn as vc,Xs as wc,Ti as xc,pp as yc,Ur as zc,Br as Ac,he as Bc,_3 as Cc,E3 as Dc,sp as Ec,aP as Fc,yE as Gc,wp as Hc,_E as Ic,sl as Jc,xE as Kc,NE as Lc,YE as Mc,JP as Nc,oa as Oc,ul as Pc,JW as Qc,sa as Rc,Wp as Sc,e4 as Tc,aa as Uc,u4 as Vc,Ke as Wc,x4 as Xc,Yp as Yc,oR as Zc,N4 as _c,P4 as $c,Kp as ad,ca as bd,Q4 as cd,tw as dd,X4 as ed,J4 as fd,nq as gd,rq as hd,Eq as id,wq as jd,bq as kd,hl as ld,Bq as md,$q as nd,cw as od,uw as pd,w8 as qd,b8 as rd,MR as sd,M8 as td,S8 as ud,Jp as vd,SR as wd,_l as xd,q5 as yd,El as zd,Y5 as Ad,Z5 as Bd,K5 as Cd,Pi as Dd,Q5 as Ed,X5 as Fd,fa as Gd,J5 as Hd,ZR as Id,e6 as Jd,jl as Kd,yY as Ld,h as Md,Ni as Nd,LR as Od,x8 as Pd,N8 as Qd,P8 as Rd,X8 as Sd,J8 as Td,e5 as Ud,t5 as Vd,yw as Wd,da as Xd,ko as Yd,jR as Zd,VR as _d,om as $d,_w as ae,gl as be,y5 as ce,D5 as de,HR as ee,w5 as fe,C5 as ge,zR as he,jo as ie,Dl as je,P5 as ke,R5 as le,YR as me,F5 as ne,L5 as oe,k5 as pe,j5 as qe,B6 as re,$6 as se,H6 as te,sb as ue,z6 as ve,Yo as we,Zo as xe,Wr as ye,Vl as ze,$Y as Ae,HY as Be,db as Ce,fb as De,hb as Ee,pb as Fe,Oa as Ge,Bl as He,mb as Ie,gb as Je,BL as Ke,oZ as Le,ek as Me,tk as Ne,ik as Oe,TZ as Pe,LZ as Qe,kZ as Re}; -//# sourceMappingURL=chunk-J7MZXETC.js.map +var Zb=Object.create;var sd=Object.defineProperty,Kb=Object.defineProperties,Qb=Object.getOwnPropertyDescriptor,Xb=Object.getOwnPropertyDescriptors,Jb=Object.getOwnPropertyNames,Va=Object.getOwnPropertySymbols,eI=Object.getPrototypeOf,ad=Object.prototype.hasOwnProperty,Tg=Object.prototype.propertyIsEnumerable;var Sg=(e,t,n)=>t in e?sd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))ad.call(t,n)&&Sg(e,n,t[n]);if(Va)for(var n of Va(t))Tg.call(t,n)&&Sg(e,n,t[n]);return e},je=(e,t)=>Kb(e,Xb(t));var Ua=(e,t)=>{var n={};for(var r in e)ad.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Va)for(var r of Va(e))t.indexOf(r)<0&&Tg.call(e,r)&&(n[r]=e[r]);return n};var tI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var nI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Jb(t))!ad.call(e,i)&&i!==n&&sd(e,i,{get:()=>t[i],enumerable:!(r=Qb(t,i))||r.enumerable});return e};var rI=(e,t,n)=>(n=e!=null?Zb(eI(e)):{},nI(t||!e||!e.__esModule?sd(n,"default",{value:e,enumerable:!0}):n,e));var Ag=(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 wb=tI((Km,Qm)=>{"use strict";(function(e,t){typeof Km=="object"&&typeof Qm<"u"?Qm.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(Km,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(k){return k}),s||(s=function(k){return k}),c||(c=function(k,Ce,pe){return k.apply(Ce,pe)}),u||(u=function(k,Ce){return new k(...Ce)});let l=Te(Array.prototype.forEach),d=Te(Array.prototype.pop),f=Te(Array.prototype.push),p=Te(String.prototype.toLowerCase),g=Te(String.prototype.toString),D=Te(String.prototype.match),S=Te(String.prototype.replace),T=Te(String.prototype.indexOf),z=Te(String.prototype.trim),q=Te(RegExp.prototype.test),fe=Be(TypeError);function Te(De){return function(k){for(var Ce=arguments.length,pe=new Array(Ce>1?Ce-1:0),At=1;At2&&arguments[2]!==void 0?arguments[2]:p;t&&t(De,null);let pe=k.length;for(;pe--;){let At=k[pe];if(typeof At=="string"){let tr=Ce(At);tr!==At&&(n(k)||(k[pe]=tr),At=tr)}De[At]=!0}return De}function wt(De){for(let k=0;k/gm),$e=s(/\${[\w\W]*}/gm),Na=s(/^data-[\-\w.\u00B7-\uFFFF]/),$l=s(/^aria-[\-\w]+$/),ct=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),er=s(/^(?:\w+script|data):/i),jt=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qr=s(/^html$/i);var Vi=Object.freeze({__proto__:null,MUSTACHE_EXPR:Tt,ERB_EXPR:An,TMPLIT_EXPR:$e,DATA_ATTR:Na,ARIA_ATTR:$l,IS_ALLOWED_URI:ct,IS_SCRIPT_OR_DATA:er,ATTR_WHITESPACE:jt,DOCTYPE_NAME:qr});let Ib=function(){return typeof window>"u"?null:window},Cb=function(k,Ce){if(typeof k!="object"||typeof k.createPolicy!="function")return null;let pe=null,At="data-tt-policy-suffix";Ce&&Ce.hasAttribute(At)&&(pe=Ce.getAttribute(At));let tr="dompurify"+(pe?"#"+pe:"");try{return k.createPolicy(tr,{createHTML(Ui){return Ui},createScriptURL(Ui){return Ui}})}catch{return console.warn("TrustedTypes policy "+tr+" could not be created."),null}};function Xm(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ib(),k=j=>Xm(j);if(k.version="3.0.8",k.removed=[],!De||!De.document||De.document.nodeType!==9)return k.isSupported=!1,k;let{document:Ce}=De,pe=Ce,At=pe.currentScript,{DocumentFragment:tr,HTMLTemplateElement:Ui,Node:Hl,Element:Jm,NodeFilter:zl,NamedNodeMap:Sb=De.NamedNodeMap||De.MozNamedAttrMap,HTMLFormElement:Tb,DOMParser:Ab,trustedTypes:Pa}=De,Ra=Jm.prototype,Ob=bt(Ra,"cloneNode"),xb=bt(Ra,"nextSibling"),Nb=bt(Ra,"childNodes"),Gl=bt(Ra,"parentNode");if(typeof Ui=="function"){let j=Ce.createElement("template");j.content&&j.content.ownerDocument&&(Ce=j.content.ownerDocument)}let Ot,Qo="",{implementation:Wl,createNodeIterator:Pb,createDocumentFragment:Rb,getElementsByTagName:Fb}=Ce,{importNode:Lb}=pe,On={};k.isSupported=typeof e=="function"&&typeof Gl=="function"&&Wl&&Wl.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ql,ERB_EXPR:Yl,TMPLIT_EXPR:Zl,DATA_ATTR:kb,ARIA_ATTR:jb,IS_SCRIPT_OR_DATA:Vb,ATTR_WHITESPACE:eg}=Vi,{IS_ALLOWED_URI:tg}=Vi,ft=null,ng=P({},[...Ko,...Jn,...mn,...ji,...L]),ht=null,rg=P({},[...U,...ae,...We,...St]),nt=Object.seal(a(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}})),Xo=null,Kl=null,ig=!0,Ql=!0,og=!1,sg=!0,Bi=!1,Yr=!1,Xl=!1,Jl=!1,$i=!1,Fa=!1,La=!1,ag=!0,cg=!1,Ub="user-content-",ed=!0,Jo=!1,Hi={},zi=null,ug=P({},["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"]),lg=null,dg=P({},["audio","video","img","source","image","track"]),td=null,fg=P({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ka="http://www.w3.org/1998/Math/MathML",ja="http://www.w3.org/2000/svg",nr="http://www.w3.org/1999/xhtml",Gi=nr,nd=!1,rd=null,Bb=P({},[ka,ja,nr],g),es=null,$b=["application/xhtml+xml","text/html"],Hb="text/html",pt=null,Wi=null,zb=Ce.createElement("form"),hg=function(m){return m instanceof RegExp||m instanceof Function},id=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Wi&&Wi===m)){if((!m||typeof m!="object")&&(m={}),m=at(m),es=$b.indexOf(m.PARSER_MEDIA_TYPE)===-1?Hb:m.PARSER_MEDIA_TYPE,pt=es==="application/xhtml+xml"?g:p,ft="ALLOWED_TAGS"in m?P({},m.ALLOWED_TAGS,pt):ng,ht="ALLOWED_ATTR"in m?P({},m.ALLOWED_ATTR,pt):rg,rd="ALLOWED_NAMESPACES"in m?P({},m.ALLOWED_NAMESPACES,g):Bb,td="ADD_URI_SAFE_ATTR"in m?P(at(fg),m.ADD_URI_SAFE_ATTR,pt):fg,lg="ADD_DATA_URI_TAGS"in m?P(at(dg),m.ADD_DATA_URI_TAGS,pt):dg,zi="FORBID_CONTENTS"in m?P({},m.FORBID_CONTENTS,pt):ug,Xo="FORBID_TAGS"in m?P({},m.FORBID_TAGS,pt):{},Kl="FORBID_ATTR"in m?P({},m.FORBID_ATTR,pt):{},Hi="USE_PROFILES"in m?m.USE_PROFILES:!1,ig=m.ALLOW_ARIA_ATTR!==!1,Ql=m.ALLOW_DATA_ATTR!==!1,og=m.ALLOW_UNKNOWN_PROTOCOLS||!1,sg=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Bi=m.SAFE_FOR_TEMPLATES||!1,Yr=m.WHOLE_DOCUMENT||!1,$i=m.RETURN_DOM||!1,Fa=m.RETURN_DOM_FRAGMENT||!1,La=m.RETURN_TRUSTED_TYPE||!1,Jl=m.FORCE_BODY||!1,ag=m.SANITIZE_DOM!==!1,cg=m.SANITIZE_NAMED_PROPS||!1,ed=m.KEEP_CONTENT!==!1,Jo=m.IN_PLACE||!1,tg=m.ALLOWED_URI_REGEXP||ct,Gi=m.NAMESPACE||nr,nt=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&hg(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(nt.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&hg(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(nt.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Bi&&(Ql=!1),Fa&&($i=!0),Hi&&(ft=P({},L),ht=[],Hi.html===!0&&(P(ft,Ko),P(ht,U)),Hi.svg===!0&&(P(ft,Jn),P(ht,ae),P(ht,St)),Hi.svgFilters===!0&&(P(ft,mn),P(ht,ae),P(ht,St)),Hi.mathMl===!0&&(P(ft,ji),P(ht,We),P(ht,St))),m.ADD_TAGS&&(ft===ng&&(ft=at(ft)),P(ft,m.ADD_TAGS,pt)),m.ADD_ATTR&&(ht===rg&&(ht=at(ht)),P(ht,m.ADD_ATTR,pt)),m.ADD_URI_SAFE_ATTR&&P(td,m.ADD_URI_SAFE_ATTR,pt),m.FORBID_CONTENTS&&(zi===ug&&(zi=at(zi)),P(zi,m.FORBID_CONTENTS,pt)),ed&&(ft["#text"]=!0),Yr&&P(ft,["html","head","body"]),ft.table&&(P(ft,["tbody"]),delete Xo.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ot=m.TRUSTED_TYPES_POLICY,Qo=Ot.createHTML("")}else Ot===void 0&&(Ot=Cb(Pa,At)),Ot!==null&&typeof Qo=="string"&&(Qo=Ot.createHTML(""));o&&o(m),Wi=m}},pg=P({},["mi","mo","mn","ms","mtext"]),mg=P({},["foreignobject","desc","title","annotation-xml"]),Gb=P({},["title","style","font","a","script"]),gg=P({},[...Jn,...mn,...xa]),vg=P({},[...ji,...N]),Wb=function(m){let I=Gl(m);(!I||!I.tagName)&&(I={namespaceURI:Gi,tagName:"template"});let F=p(m.tagName),ke=p(I.tagName);return rd[m.namespaceURI]?m.namespaceURI===ja?I.namespaceURI===nr?F==="svg":I.namespaceURI===ka?F==="svg"&&(ke==="annotation-xml"||pg[ke]):!!gg[F]:m.namespaceURI===ka?I.namespaceURI===nr?F==="math":I.namespaceURI===ja?F==="math"&&mg[ke]:!!vg[F]:m.namespaceURI===nr?I.namespaceURI===ja&&!mg[ke]||I.namespaceURI===ka&&!pg[ke]?!1:!vg[F]&&(Gb[F]||!gg[F]):!!(es==="application/xhtml+xml"&&rd[m.namespaceURI]):!1},Zr=function(m){f(k.removed,{element:m});try{m.parentNode.removeChild(m)}catch{m.remove()}},od=function(m,I){try{f(k.removed,{attribute:I.getAttributeNode(m),from:I})}catch{f(k.removed,{attribute:null,from:I})}if(I.removeAttribute(m),m==="is"&&!ht[m])if($i||Fa)try{Zr(I)}catch{}else try{I.setAttribute(m,"")}catch{}},yg=function(m){let I=null,F=null;if(Jl)m=""+m;else{let Ct=D(m,/^[\r\n\t ]+/);F=Ct&&Ct[0]}es==="application/xhtml+xml"&&Gi===nr&&(m=''+m+"");let ke=Ot?Ot.createHTML(m):m;if(Gi===nr)try{I=new Ab().parseFromString(ke,es)}catch{}if(!I||!I.documentElement){I=Wl.createDocument(Gi,"template",null);try{I.documentElement.innerHTML=nd?Qo:ke}catch{}}let It=I.body||I.documentElement;return m&&F&&It.insertBefore(Ce.createTextNode(F),It.childNodes[0]||null),Gi===nr?Fb.call(I,Yr?"html":"body")[0]:Yr?I.documentElement:It},Dg=function(m){return Pb.call(m.ownerDocument||m,m,zl.SHOW_ELEMENT|zl.SHOW_COMMENT|zl.SHOW_TEXT,null)},qb=function(m){return m instanceof Tb&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof Sb)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},_g=function(m){return typeof Hl=="function"&&m instanceof Hl},rr=function(m,I,F){On[m]&&l(On[m],ke=>{ke.call(k,I,F,Wi)})},Eg=function(m){let I=null;if(rr("beforeSanitizeElements",m,null),qb(m))return Zr(m),!0;let F=pt(m.nodeName);if(rr("uponSanitizeElement",m,{tagName:F,allowedTags:ft}),m.hasChildNodes()&&!_g(m.firstElementChild)&&q(/<[/\w]/g,m.innerHTML)&&q(/<[/\w]/g,m.textContent))return Zr(m),!0;if(!ft[F]||Xo[F]){if(!Xo[F]&&bg(F)&&(nt.tagNameCheck instanceof RegExp&&q(nt.tagNameCheck,F)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(F)))return!1;if(ed&&!zi[F]){let ke=Gl(m)||m.parentNode,It=Nb(m)||m.childNodes;if(It&&ke){let Ct=It.length;for(let Vt=Ct-1;Vt>=0;--Vt)ke.insertBefore(Ob(It[Vt],!0),xb(m))}}return Zr(m),!0}return m instanceof Jm&&!Wb(m)||(F==="noscript"||F==="noembed"||F==="noframes")&&q(/<\/no(script|embed|frames)/i,m.innerHTML)?(Zr(m),!0):(Bi&&m.nodeType===3&&(I=m.textContent,l([ql,Yl,Zl],ke=>{I=S(I,ke," ")}),m.textContent!==I&&(f(k.removed,{element:m.cloneNode()}),m.textContent=I)),rr("afterSanitizeElements",m,null),!1)},wg=function(m,I,F){if(ag&&(I==="id"||I==="name")&&(F in Ce||F in zb))return!1;if(!(Ql&&!Kl[I]&&q(kb,I))){if(!(ig&&q(jb,I))){if(!ht[I]||Kl[I]){if(!(bg(m)&&(nt.tagNameCheck instanceof RegExp&&q(nt.tagNameCheck,m)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(m))&&(nt.attributeNameCheck instanceof RegExp&&q(nt.attributeNameCheck,I)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(I))||I==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&q(nt.tagNameCheck,F)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(F))))return!1}else if(!td[I]){if(!q(tg,S(F,eg,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&m!=="script"&&T(F,"data:")===0&&lg[m])){if(!(og&&!q(Vb,S(F,eg,"")))){if(F)return!1}}}}}}return!0},bg=function(m){return m.indexOf("-")>0},Ig=function(m){rr("beforeSanitizeAttributes",m,null);let{attributes:I}=m;if(!I)return;let F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ht},ke=I.length;for(;ke--;){let It=I[ke],{name:Ct,namespaceURI:Vt,value:Kr}=It,ts=pt(Ct),Ut=Ct==="value"?Kr:z(Kr);if(F.attrName=ts,F.attrValue=Ut,F.keepAttr=!0,F.forceKeepAttr=void 0,rr("uponSanitizeAttribute",m,F),Ut=F.attrValue,F.forceKeepAttr||(od(Ct,m),!F.keepAttr))continue;if(!sg&&q(/\/>/i,Ut)){od(Ct,m);continue}Bi&&l([ql,Yl,Zl],Mg=>{Ut=S(Ut,Mg," ")});let Cg=pt(m.nodeName);if(wg(Cg,ts,Ut)){if(cg&&(ts==="id"||ts==="name")&&(od(Ct,m),Ut=Ub+Ut),Ot&&typeof Pa=="object"&&typeof Pa.getAttributeType=="function"&&!Vt)switch(Pa.getAttributeType(Cg,ts)){case"TrustedHTML":{Ut=Ot.createHTML(Ut);break}case"TrustedScriptURL":{Ut=Ot.createScriptURL(Ut);break}}try{Vt?m.setAttributeNS(Vt,Ct,Ut):m.setAttribute(Ct,Ut),d(k.removed)}catch{}}}rr("afterSanitizeAttributes",m,null)},Yb=function j(m){let I=null,F=Dg(m);for(rr("beforeSanitizeShadowDOM",m,null);I=F.nextNode();)rr("uponSanitizeShadowNode",I,null),!Eg(I)&&(I.content instanceof tr&&j(I.content),Ig(I));rr("afterSanitizeShadowDOM",m,null)};return k.sanitize=function(j){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,F=null,ke=null,It=null;if(nd=!j,nd&&(j=""),typeof j!="string"&&!_g(j))if(typeof j.toString=="function"){if(j=j.toString(),typeof j!="string")throw fe("dirty is not a string, aborting")}else throw fe("toString is not a function");if(!k.isSupported)return j;if(Xl||id(m),k.removed=[],typeof j=="string"&&(Jo=!1),Jo){if(j.nodeName){let Kr=pt(j.nodeName);if(!ft[Kr]||Xo[Kr])throw fe("root node is forbidden and cannot be sanitized in-place")}}else if(j instanceof Hl)I=yg(""),F=I.ownerDocument.importNode(j,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!$i&&!Bi&&!Yr&&j.indexOf("<")===-1)return Ot&&La?Ot.createHTML(j):j;if(I=yg(j),!I)return $i?null:La?Qo:""}I&&Jl&&Zr(I.firstChild);let Ct=Dg(Jo?j:I);for(;ke=Ct.nextNode();)Eg(ke)||(ke.content instanceof tr&&Yb(ke.content),Ig(ke));if(Jo)return j;if($i){if(Fa)for(It=Rb.call(I.ownerDocument);I.firstChild;)It.appendChild(I.firstChild);else It=I;return(ht.shadowroot||ht.shadowrootmode)&&(It=Lb.call(pe,It,!0)),It}let Vt=Yr?I.outerHTML:I.innerHTML;return Yr&&ft["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&q(qr,I.ownerDocument.doctype.name)&&(Vt="\n"+Vt),Bi&&l([ql,Yl,Zl],Kr=>{Vt=S(Vt,Kr," ")}),Ot&&La?Ot.createHTML(Vt):Vt},k.setConfig=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};id(j),Xl=!0},k.clearConfig=function(){Wi=null,Xl=!1},k.isValidAttribute=function(j,m,I){Wi||id({});let F=pt(j),ke=pt(m);return wg(F,ke,I)},k.addHook=function(j,m){typeof m=="function"&&(On[j]=On[j]||[],f(On[j],m))},k.removeHook=function(j){if(On[j])return d(On[j])},k.removeHooks=function(j){On[j]&&(On[j]=[])},k.removeAllHooks=function(){On={}},k}var Mb=Xm();return Mb})});var Og=null;var cd=1,ud=Symbol("SIGNAL");function xt(e){let t=Og;return Og=e,t}var xg={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 iI(e){if(!(fd(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cd)){if(!e.producerMustRecompute(e)&&!ld(e)){e.dirty=!1,e.lastCleanEpoch=cd;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=cd}}function Ng(e){return e&&(e.nextProducerIndex=0),xt(e)}function Pg(e,t){if(xt(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(fd(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ld(e){Ba(e);for(let t=0;t0}function Ba(e){var t,n,r;(t=e.producerNode)!=null||(e.producerNode=[]),(n=e.producerIndexOfThis)!=null||(e.producerIndexOfThis=[]),(r=e.producerLastReadVersion)!=null||(e.producerLastReadVersion=[])}function oI(e){var t,n;(t=e.liveConsumerNode)!=null||(e.liveConsumerNode=[]),(n=e.liveConsumerIndexOfThis)!=null||(e.liveConsumerIndexOfThis=[])}function sI(){throw new Error}var aI=sI;function Fg(e){aI=e}function $(e){return typeof e=="function"}function qi(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 $a=qi(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 Qr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var rt=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($(r))try{r()}catch(o){t=o instanceof $a?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Lg(o)}catch(s){t=t!=null?t:[],s instanceof $a?t=[...t,...s.errors]:t.push(s)}}if(t)throw new $a(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Lg(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)&&Qr(n,t)}remove(t){let{_finalizers:n}=this;n&&Qr(n,t),t instanceof e&&t._removeParent(this)}};rt.EMPTY=(()=>{let e=new rt;return e.closed=!0,e})();var hd=rt.EMPTY;function Ha(e){return e instanceof rt||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Lg(e){$(e)?e():e.unsubscribe()}var gn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yi={setTimeout(e,t,...n){let{delegate:r}=Yi;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Yi;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function za(e){Yi.setTimeout(()=>{let{onUnhandledError:t}=gn;if(t)t(e);else throw e})}function Zt(){}var kg=pd("C",void 0,void 0);function jg(e){return pd("E",void 0,e)}function Vg(e){return pd("N",e,void 0)}function pd(e,t,n){return{kind:e,value:t,error:n}}var Xr=null;function Zi(e){if(gn.useDeprecatedSynchronousErrorHandling){let t=!Xr;if(t&&(Xr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Xr;if(Xr=null,n)throw r}}else e()}function Ug(e){gn.useDeprecatedSynchronousErrorHandling&&Xr&&(Xr.errorThrown=!0,Xr.error=e)}var Jr=class extends rt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ha(t)&&t.add(this)):this.destination=lI}static create(t,n,r){return new ir(t,n,r)}next(t){this.isStopped?gd(Vg(t),this):this._next(t)}error(t){this.isStopped?gd(jg(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?gd(kg,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()}}},cI=Function.prototype.bind;function md(e,t){return cI.call(e,t)}var vd=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ga(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ga(r)}else Ga(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ga(n)}}},ir=class extends Jr{constructor(t,n,r){super();let i;if($(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&&gn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&md(t.next,o),error:t.error&&md(t.error,o),complete:t.complete&&md(t.complete,o)}):i=t}this.destination=new vd(i)}};function Ga(e){gn.useDeprecatedSynchronousErrorHandling?Ug(e):za(e)}function uI(e){throw e}function gd(e,t){let{onStoppedNotification:n}=gn;n&&Yi.setTimeout(()=>n(e,t))}var lI={closed:!0,next:Zt,error:uI,complete:Zt};var Ki=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Je(e){return e}function ei(...e){return yd(e)}function yd(e){return e.length===0?Je:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var R=(()=>{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=fI(n)?n:new ir(n,r,i);return Zi(()=>{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=Bg(r),new r((i,o)=>{let s=new ir({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)}[Ki](){return this}pipe(...n){return yd(n)(this)}toPromise(n){return n=Bg(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 Bg(e){var t;return(t=e!=null?e:gn.Promise)!==null&&t!==void 0?t:Promise}function dI(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function fI(e){return e&&e instanceof Jr||dI(e)&&Ha(e)}function Dd(e){return $(e==null?void 0:e.lift)}function V(e){return t=>{if(Dd(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 x(e,t,n,r,i){return new _d(e,t,n,r,i)}var _d=class extends Jr{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 Qi(){return V((e,t)=>{let n=null;e._refCount++;let r=x(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 Xi=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Dd(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 rt;let n=this.getSubject();t.add(this.source.subscribe(x(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=rt.EMPTY)}return t}refCount(){return Qi()(this)}};var $g=qi(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ae=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Wa(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new $g}next(n){Zi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Zi(()=>{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(){Zi(()=>{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?hd:(this.currentObservers=null,o.push(n),new rt(()=>{this.currentObservers=null,Qr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Wa(t,n),e})(),Wa=class extends Ae{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:hd}};var qe=class extends Ae{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 ns={now(){return(ns.delegate||Date).now()},delegate:void 0};var or=class extends Ae{constructor(t=1/0,n=1/0,r=ns){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 Ka(e){return e&&$(e.schedule)}function Ed(e){return e[e.length-1]}function eo(e){return $(Ed(e))?e.pop():void 0}function xn(e){return Ka(Ed(e))?e.pop():void 0}function zg(e,t){return typeof Ed(e)=="number"?e.pop():t}function Wg(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 Xa(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 Gg(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 ni(e){return this instanceof ni?(this.v=e,this):new ni(e)}function qg(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(g,D){o.push([f,p,g,D])>1||a(f,p)})})}function a(f,p){try{c(r[f](p))}catch(g){d(o[0][3],g)}}function c(f){f.value instanceof ni?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 Yg(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 Gg=="function"?Gg(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 to=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ja(e){return $(e==null?void 0:e.then)}function ec(e){return $(e[Ki])}function tc(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function nc(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 hI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rc=hI();function ic(e){return $(e==null?void 0:e[rc])}function oc(e){return qg(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield ni(n.read());if(i)return yield ni(void 0);yield yield ni(r)}}finally{n.releaseLock()}})}function sc(e){return $(e==null?void 0:e.getReader)}function Z(e){if(e instanceof R)return e;if(e!=null){if(ec(e))return pI(e);if(to(e))return mI(e);if(Ja(e))return gI(e);if(tc(e))return Zg(e);if(ic(e))return vI(e);if(sc(e))return yI(e)}throw nc(e)}function pI(e){return new R(t=>{let n=e[Ki]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mI(e){return new R(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,za)})}function vI(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Zg(e){return new R(t=>{DI(e,t).catch(n=>t.error(n))})}function yI(e){return Zg(oc(e))}function DI(e,t){var n,r,i,o;return Xa(this,void 0,void 0,function*(){try{for(n=Yg(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 Bt(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 ac(e,t=0){return V((n,r)=>{n.subscribe(x(r,i=>Bt(r,e,()=>r.next(i),t),()=>Bt(r,e,()=>r.complete(),t),i=>Bt(r,e,()=>r.error(i),t)))})}function cc(e,t=0){return V((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Kg(e,t){return Z(e).pipe(cc(t),ac(t))}function Qg(e,t){return Z(e).pipe(cc(t),ac(t))}function Xg(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Jg(e,t){return new R(n=>{let r;return Bt(n,t,()=>{r=e[rc](),Bt(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)}),()=>$(r==null?void 0:r.return)&&r.return()})}function uc(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{Bt(n,t,()=>{let r=e[Symbol.asyncIterator]();Bt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function ev(e,t){return uc(oc(e),t)}function tv(e,t){if(e!=null){if(ec(e))return Kg(e,t);if(to(e))return Xg(e,t);if(Ja(e))return Qg(e,t);if(tc(e))return uc(e,t);if(ic(e))return Jg(e,t);if(sc(e))return ev(e,t)}throw nc(e)}function xe(e,t){return t?tv(e,t):Z(e)}function A(...e){let t=xn(e);return xe(e,t)}function no(e,t){let n=$(e)?e:()=>e,r=i=>i.error(n());return new R(t?i=>t.schedule(r,0,i):r)}function ri(e){return!!e&&(e instanceof R||$(e.lift)&&$(e.subscribe))}var sr=qi(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function nv(e){return e instanceof Date&&!isNaN(e)}function w(e,t){return V((n,r)=>{let i=0;n.subscribe(x(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:_I}=Array;function EI(e,t){return _I(t)?e(...t):e(t)}function ro(e){return w(t=>EI(e,t))}var{isArray:wI}=Array,{getPrototypeOf:bI,prototype:II,keys:CI}=Object;function lc(e){if(e.length===1){let t=e[0];if(wI(t))return{args:t,keys:null};if(MI(t)){let n=CI(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function MI(e){return e&&typeof e=="object"&&bI(e)===II}function dc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function fc(...e){let t=xn(e),n=eo(e),{args:r,keys:i}=lc(e);if(r.length===0)return xe([],t);let o=new R(SI(r,t,i?s=>dc(i,s):Je));return n?o.pipe(ro(n)):o}function SI(e,t,n=Je){return r=>{rv(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let u=xe(e[c],t),l=!1;u.subscribe(x(r,d=>{o[c]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function rv(e,t,n){e?Bt(n,e,t):t()}function iv(e,t,n,r,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},p=D=>u{o&&t.next(D),u++;let S=!1;Z(n(D,l++)).subscribe(x(t,T=>{i==null||i(T),o?p(T):t.next(T)},()=>{S=!0},void 0,()=>{if(S)try{for(u--;c.length&&ug(T)):g(T)}f()}catch(T){t.error(T)}}))};return e.subscribe(x(t,p,()=>{d=!0,f()})),()=>{a==null||a()}}function Qe(e,t,n=1/0){return $(t)?Qe((r,i)=>w((o,s)=>t(r,o,i,s))(Z(e(r,i))),n):(typeof t=="number"&&(n=t),V((r,i)=>iv(r,i,e,n)))}function is(e=1/0){return Qe(Je,e)}function ov(){return is(1)}function $t(...e){return ov()(xe(e,xn(e)))}function Nn(e){return new R(t=>{Z(e()).subscribe(t)})}function wd(...e){let t=eo(e),{args:n,keys:r}=lc(e),i=new R(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?dc(r,a):a),o.complete())}))}});return t?i.pipe(ro(t)):i}var TI=["addListener","removeListener"],AI=["addEventListener","removeEventListener"],OI=["on","off"];function Pn(e,t,n,r){if($(n)&&(r=n,n=void 0),r)return Pn(e,t,n).pipe(ro(r));let[i,o]=PI(e)?AI.map(s=>a=>e[s](t,a,n)):xI(e)?TI.map(sv(e,t)):NI(e)?OI.map(sv(e,t)):[];if(!i&&to(e))return Qe(s=>Pn(s,t,n))(Z(e));if(!i)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1o(a)})}function sv(e,t){return n=>r=>e[n](t,r)}function xI(e){return $(e.addListener)&&$(e.removeListener)}function NI(e){return $(e.on)&&$(e.off)}function PI(e){return $(e.addEventListener)&&$(e.removeEventListener)}function mt(e=0,t,n=Hg){let r=-1;return t!=null&&(Ka(t)?n=t:r=t),new R(i=>{let o=nv(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 Ve(...e){let t=xn(e),n=zg(e,1/0),r=e;return r.length?r.length===1?Z(r[0]):is(n)(xe(r,t)):Oe}var RI=new R(Zt);var{isArray:FI}=Array;function av(e){return e.length===1&&FI(e[0])?e[0]:e}function Ee(e,t){return V((n,r)=>{let i=0;n.subscribe(x(r,o=>e.call(t,o,i++)&&r.next(o)))})}function bd(...e){return e=av(e),e.length===1?Z(e[0]):new R(LI(e))}function LI(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(x(n,void 0,void 0,s=>{o=Z(e(s,vn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function cv(e,t,n,r,i){return(o,s)=>{let a=n,c=t,u=0;o.subscribe(x(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 ii(e,t){return $(t)?Qe(e,t,1):Qe(e,1)}function kI(e){return V((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(x(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=x(n,s,Zt),Z(e(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function uv(e,t=ti){return V((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 Cr(e){return V((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Xe(e){return e<=0?()=>Oe:V((t,n)=>{let r=0;t.subscribe(x(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function io(){return V((e,t)=>{e.subscribe(x(t,Zt))})}function os(e){return w(()=>e)}function Id(e,t){return t?n=>$t(t.pipe(Xe(1),io()),n.pipe(Id(e))):Qe((n,r)=>Z(e(n,r)).pipe(Xe(1),os(n)))}function ss(e,t=ti){let n=mt(e,t);return Id(()=>n)}function Ye(e,t=Je){return e=e!=null?e:jI,V((n,r)=>{let i,o=!0;n.subscribe(x(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function jI(e,t){return e===t}function hc(e=VI){return V((t,n)=>{let r=!1;t.subscribe(x(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function VI(){return new sr}function as(...e){return t=>$t(t,A(...e))}function Mr(e){return V((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function yn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee((i,o)=>e(i,o,r)):Je,Xe(1),n?Cr(t):hc(()=>new sr))}function oo(e){return e<=0?()=>Oe:V((t,n)=>{let r=[];t.subscribe(x(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Cd(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ee((i,o)=>e(i,o,r)):Je,oo(1),n?Cr(t):hc(()=>new sr))}function pc(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>Oe:V((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let u=typeof n=="number"?mt(n):Z(n(o)),l=x(i,()=>{l.unsubscribe(),c()});u.subscribe(l)}else c()},c=()=>{let u=!1;s=r.subscribe(x(i,void 0,()=>{++o{let r,i=!1,o,s=!1,a=!1,c=()=>a&&s&&(n.complete(),!0),u=()=>(o||(o=new Ae,Z(e(o)).subscribe(x(n,()=>{r?l():i=!0},()=>{s=!0,c()}))),o),l=()=>{a=!1,r=t.subscribe(x(n,void 0,()=>{a=!0,!c()&&u().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}function mc(e,t){return V(cv(e,t,arguments.length>=2,!0))}function Ht(e={}){let{connector:t=()=>new Ae,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},g=()=>{let D=s;p(),D==null||D.unsubscribe()};return V((D,S)=>{u++,!d&&!l&&f();let T=c=c!=null?c:t();S.add(()=>{u--,u===0&&!d&&!l&&(a=Sd(g,i))}),T.subscribe(S),!s&&u>0&&(s=new ir({next:z=>T.next(z),error:z=>{d=!0,f(),a=Sd(p,n,z),T.error(z)},complete:()=>{l=!0,f(),a=Sd(p,r),T.complete()}}),Z(D).subscribe(s))})(o)}}function Sd(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ir({next:()=>{r.unsubscribe(),e()}});return Z(t(...n)).subscribe(r)}function Kt(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,Ht({connector:()=>new or(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Td(e){return Ee((t,n)=>e<=n)}function Ad(e){return V((t,n)=>{let r=!1,i=0;t.subscribe(x(n,o=>(r||(r=!e(o,i++)))&&n.next(o)))})}function we(...e){let t=xn(e);return V((n,r)=>{(t?$t(e,n,t):$t(e,n)).subscribe(r)})}function ce(e,t){return V((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(x(r,c=>{i==null||i.unsubscribe();let u=0,l=o++;Z(e(c,l)).subscribe(i=x(r,d=>r.next(t?t(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Me(e){return V((t,n)=>{Z(e).subscribe(x(n,()=>n.complete(),Zt)),!n.closed&&t.subscribe(n)})}function gc(e,t=!1){return V((n,r)=>{let i=0;n.subscribe(x(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function Ne(e,t,n){let r=$(e)||t||n?{next:e,error:t,complete:n}:e;return r?V((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(x(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)}))}):Je}function lv(e,t){return V((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=g=>c=Z(e(g)).subscribe(x(r,l,d)),p=()=>{if(s){s=!1;let g=a;a=null,r.next(g),!u&&f(g)}};n.subscribe(x(r,g=>{s=!0,a=g,!(c&&!c.closed)&&(i?p():f(g))},()=>{u=!0,!(o&&s&&c&&!c.closed)&&r.complete()}))})}function Sr(e,t=ti,n){let r=mt(e,t);return lv(()=>r,n)}function cs(...e){let t=eo(e);return V((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(Je))&&(s=null))},Zt));n.subscribe(x(r,c=>{if(a){let u=[c,...o];r.next(t?t(...u):u)}}))})}var Jv="https://g.co/ng/security#xss",b=class extends Error{constructor(t,n){super(eu(t,n)),this.code=t}};function eu(e,t){let n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}var qd=class extends Ae{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=Od(o),i&&(i=Od(i)),s&&(s=Od(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof rt&&t.add(a),a}};function Od(e){return t=>{setTimeout(e,void 0,t)}}var it=qd;var ue=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}(ue||{});function Pt(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Pt).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 dv(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var ey=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ey||{}),Ln=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ln||{});function Is(e){return{toString:e}.toString()}var ar=globalThis;var lo={},Qt=[];function Re(e){for(let t in e)if(e[t]===Re)return t;throw Error("Could not find renamed property on target object.")}function UI(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}var BI=Re({\u0275cmp:Re}),$I=Re({\u0275dir:Re}),HI=Re({\u0275pipe:Re}),zI=Re({\u0275mod:Re}),xc=Re({\u0275fac:Re}),us=Re({__NG_ELEMENT_ID__:Re}),fv=Re({__NG_ENV_ID__:Re}),Ze=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Ze||{});function ty(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 Yd(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&&ty(p,u,0)!==-1||r&2&&u!==f){if(Dn(r))return!1;s=!0}}}}return Dn(r)||s}function Dn(e){return(e&1)===0}function KI(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!==""&&!Dn(s)&&(t+=pv(o,i),i=""),r=s,o=o||!Dn(r);n++}return i!==""&&(t+=pv(o,i)),t}function nC(e){return e.map(tC).join(",")}function rC(e){let t=[],n=[],r=1,i=2;for(;r{var i;let t=uy(e),n=je(O({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ey.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||Qt,_:null,schemas:e.schemas||null,tView:null,id:""});ly(n);let r=e.dependencies;return n.directiveDefs=gv(r,!1),n.pipeDefs=gv(r,!0),n.id=sC(n),n})}function iC(e){return si(e)||oy(e)}function oC(e){return e!==null}function K(e){return Is(()=>({type:e.type,bootstrap:e.bootstrap||Qt,declarations:e.declarations||Qt,imports:e.imports||Qt,exports:e.exports||Qt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function mv(e,t){var r;if(e==null)return lo;let n={};for(let i in e)if(e.hasOwnProperty(i)){let o=e[i],s,a,c=Ze.None;Array.isArray(o)?(c=o[0],s=o[1],a=(r=o[2])!=null?r:s):(s=o,a=o),t?(n[s]=c!==Ze.None?[i,c]:i,t[s]=a):n[s]=i}return n}function H(e){return Is(()=>{let t=uy(e);return ly(t),t})}function gi(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 si(e){return e[BI]||null}function oy(e){return e[$I]||null}function sy(e){return e[HI]||null}function ay(e){let t=si(e)||oy(e)||sy(e);return t!==null?t.standalone:!1}function cy(e,t){let n=e[zI]||null;if(!n&&t===!0)throw new Error("Type ".concat(Pt(e)," does not have '\u0275mod' property."));return n}function uy(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||lo,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Qt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mv(e.inputs,t),outputs:mv(e.outputs),debugInfo:null}}function ly(e){var t;(t=e.features)==null||t.forEach(n=>n(e))}function gv(e,t){if(!e)return null;let n=t?sy:iC;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(oC)}function sC(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+=2147483648,"c"+t}var Wt=0,te=1,G=2,gt=3,_n=4,Jt=5,kn=6,hs=7,wn=8,fo=9,ur=10,Ue=11,ps=12,vv=13,vo=14,Xt=15,Cs=16,so=17,En=18,tu=19,dy=20,ls=21,xd=22,ai=23,ot=25,Wf=1,ms=6,lr=7,Nc=8,ho=9,Gt=10,qf=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(qf||{});function cr(e){return Array.isArray(e)&&typeof e[Wf]=="object"}function jn(e){return Array.isArray(e)&&e[Wf]===!0}function Yf(e){return(e.flags&4)!==0}function Ms(e){return e.componentOffset>-1}function nu(e){return(e.flags&1)===1}function dr(e){return!!e.template}function fy(e){return(e[G]&512)!==0}var hy="svg",aC="math",cC=!1;function uC(){return cC}function bn(e){for(;Array.isArray(e);)e=e[Wt];return e}function lC(e){for(;Array.isArray(e);){if(typeof e[Wf]=="object")return e;e=e[Wt]}return null}function py(e,t){return bn(t[e])}function en(e,t){return bn(t[e.index])}function my(e,t){return e.data[t]}function Ss(e,t){return e[t]}function xr(e,t){let n=t[e];return cr(n)?n:n[Wt]}function dC(e){return(e[G]&4)===4}function Zf(e){return(e[G]&128)===128}function fC(e){return jn(e[gt])}function po(e,t){return t==null?null:e[t]}function gy(e){e[so]=0}function hC(e){e[G]&1024||(e[G]|=1024,Zf(e)&&gs(e))}function pC(e,t){for(;e>0;)t=t[vo],e--;return t}function Kf(e){var t;return!!(e[G]&9216||(t=e[ai])!=null&&t.dirty)}function Zd(e){var t;Kf(e)?gs(e):e[G]&64&&(uC()?(e[G]|=1024,gs(e)):(t=e[ur].changeDetectionScheduler)==null||t.notify())}function gs(e){var n;(n=e[ur].changeDetectionScheduler)==null||n.notify();let t=vs(e);for(;t!==null&&!(t[G]&8192||(t[G]|=8192,!Zf(t)));)t=vs(t)}function mC(e,t){if((e[G]&256)===256)throw new b(911,!1);e[ls]===null&&(e[ls]=[]),e[ls].push(t)}function vs(e){let t=e[gt];return jn(t)?t[gt]:t}var ne={lFrame:by(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function gC(){return ne.lFrame.elementDepthCount}function vC(){ne.lFrame.elementDepthCount++}function yC(){ne.lFrame.elementDepthCount--}function vy(){return ne.bindingsEnabled}function yo(){return ne.skipHydrationRootTNode!==null}function DC(e){return ne.skipHydrationRootTNode===e}function _C(e){ne.skipHydrationRootTNode=e}function EC(){ne.skipHydrationRootTNode=null}function re(){return ne.lFrame.lView}function et(){return ne.lFrame.tView}function Vn(e){return ne.lFrame.contextLView=e,e[wn]}function Un(e){return ne.lFrame.contextLView=null,e}function Rt(){let e=yy();for(;e!==null&&e.type===64;)e=e.parent;return e}function yy(){return ne.lFrame.currentTNode}function wC(){let e=ne.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vi(e,t){let n=ne.lFrame;n.currentTNode=e,n.isParent=t}function Qf(){return ne.lFrame.isParent}function Xf(){ne.lFrame.isParent=!1}function bC(){return ne.lFrame.contextLView}function yi(){let e=ne.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function IC(e){return ne.lFrame.bindingIndex=e}function Do(){return ne.lFrame.bindingIndex++}function CC(e){let t=ne.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function MC(){return ne.lFrame.inI18n}function SC(e,t){let n=ne.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kd(t)}function TC(){return ne.lFrame.currentDirectiveIndex}function Kd(e){ne.lFrame.currentDirectiveIndex=e}function Dy(e){let t=ne.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function _y(){return ne.lFrame.currentQueryIndex}function Jf(e){ne.lFrame.currentQueryIndex=e}function AC(e){let t=e[te];return t.type===2?t.declTNode:t.type===1?e[Jt]:null}function Ey(e,t,n){if(n&ue.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&ue.Host);)if(i=AC(o),i===null||(o=o[vo],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=ne.lFrame=wy();return r.currentTNode=t,r.lView=e,!0}function eh(e){let t=wy(),n=e[te];ne.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function wy(){let e=ne.lFrame,t=e===null?null:e.child;return t===null?by(e):t}function by(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 Iy(){let e=ne.lFrame;return ne.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Cy=Iy;function th(){let e=Iy();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 OC(e){return(ne.lFrame.contextLView=pC(e,ne.lFrame.contextLView))[wn]}function _o(){return ne.lFrame.selectedIndex}function ci(e){ne.lFrame.selectedIndex=e}function Ts(){let e=ne.lFrame;return my(e.tView,e.selectedIndex)}function As(){ne.lFrame.currentNamespace=hy}function My(){xC()}function xC(){ne.lFrame.currentNamespace=null}function Sy(){return ne.lFrame.currentNamespace}var Ty=!0;function ru(){return Ty}function Nr(e){Ty=e}function NC(){return Eo(Rt(),re())}function Eo(e,t){return new Q(en(e,t))}var Q=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=NC;let e=t;return e})();function PC(e){return e instanceof Q?e.nativeElement:e}function RC(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?nh(n,t):t(n))}function Ay(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Pc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function LC(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 jC(e,t,n){let r=Os(e,t);return r>=0?e[r|1]=n:(r=~r,kC(e,r,t,n)),r}function Nd(e,t){let n=Os(e,t);if(n>=0)return e[n|1]}function Os(e,t){return VC(e,t,1)}function VC(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<WC}),WC="ng",rh=new _(""),tn=new _("",{providedIn:"platform",factory:()=>"unknown"});var jz=new _(""),ih=new _("",{providedIn:"root",factory:()=>{var e,t;return((t=(e=xs().body)==null?void 0:e.querySelector("[ngCspNonce]"))==null?void 0:t.getAttribute("ngCspNonce"))||null}});var qC=Re({__forward_ref__:Re});function gr(e){return e.__forward_ref__=gr,e.toString=function(){return Pt(this())},e}function Nt(e){return Ly(e)?e():e}function Ly(e){return typeof e=="function"&&e.hasOwnProperty(qC)&&e.__forward_ref__===gr}function ky(e){return e&&!!e.\u0275providers}function Ns(e){return typeof e=="string"?e:e==null?"":String(e)}function YC(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ns(e)}function ZC(e,t){let n=t?". Dependency path: ".concat(t.join(" > ")," > ").concat(e):"";throw new b(-200,e)}function oh(e,t){throw new b(-201,!1)}var Xd;function KC(){return Xd}function zt(e){let t=Xd;return Xd=e,t}function jy(e,t,n){let r=iu(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&ue.Optional)return null;if(t!==void 0)return t;oh(e,"Injector")}var QC={},Ds=QC,Jd="__NG_DI_FLAG__",Fc="ngTempTokenPath",XC="ngTokenPath",JC=/\n/gm,eM="\u0275",Ev="__source",ds;function Ar(e){let t=ds;return ds=e,t}function tM(e,t=ue.Default){if(ds===void 0)throw new b(-203,!1);return ds===null?jy(e,void 0,t):ds.get(e,t&ue.Optional?null:void 0,t)}function M(e,t=ue.Default){return(KC()||tM)(Nt(e),t)}function v(e,t=ue.Default){return M(e,su(t))}function su(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ef(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):Pt(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(JC,"\n "))}function oM(){let e=new Di;return v(tn)==="browser"&&(e.store=sM(xs(),v(ou))),e}var Di=(()=>{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 pM(e,t,n=!1){var l;let r=e.getAttribute(Pd);if(r==null)return null;let[i,o]=r.split("|");if(r=n?o:i,!r)return null;let s=o?"|".concat(o):"",a=n?i:s,c={};if(r!==""){let d=t.get(Di,null,{optional:!0});d!==null&&(c=d.get($y,[])[Number(r)])}let u={data:c,firstChild:(l=e.firstChild)!=null?l:null};return n&&(u.firstChild=e,au(u,0,e.nextSibling)),a?e.setAttribute(Pd,a):e.removeAttribute(Pd),u}function mM(){Hy=pM}function ch(e,t,n=!1){return Hy(e,t,n)}function gM(e){let t=e._lView;return t[te].type===2?null:(fy(t)&&(t=t[ot]),t)}function vM(e){var t;return(t=e.textContent)==null?void 0:t.replace(/\s/gm,"")}function yM(e){let t=xs(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=vM(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 au(e,t,n){var r;(r=e.segmentHeads)!=null||(e.segmentHeads={}),e.segmentHeads[t]=n}function nf(e,t){var n,r;return(r=(n=e.segmentHeads)==null?void 0:n[t])!=null?r:null}function DM(e,t){var i,o,s;let n=e.data,r=(o=(i=n[aM])==null?void 0:i[t])!=null?o:null;return r===null&&((s=n[ah])!=null&&s[t])&&(r=uh(e,t)),r}function zy(e,t){var n,r;return(r=(n=e.data[ah])==null?void 0:n[t])!=null?r:null}function uh(e,t){var i,o;let n=(i=zy(e,t))!=null?i:[],r=0;for(let s of n)r+=s[Lc]*((o=s[By])!=null?o:1);return r}function cu(e,t){var n;if(typeof e.disconnectedNodes>"u"){let r=e.data[dM];e.disconnectedNodes=r?new Set(r):null}return!!((n=e.disconnectedNodes)!=null&&n.has(t))}var vc="__parameters__";function _M(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function lh(e,t,n){return Is(()=>{let r=_M(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(vc)?c[vc]:Object.defineProperty(c,vc,{value:[]})[vc];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})}var vr=sh(lh("Optional"),8),Gy=sh(lh("Self"),2),yr=sh(lh("SkipSelf"),4);function ui(e,t){let n=e.hasOwnProperty(xc);return n?e[xc]:null}var li=new _(""),wo=new _("",-1),Wy=new _(""),kc=class{get(t,n=Ds){if(n===Ds){let r=new Error("NullInjectorError: No provider for ".concat(Pt(t),"!"));throw r.name="NullInjectorError",r}return n}};function _i(e){return{\u0275providers:e}}function EM(...e){return{\u0275providers:qy(!0,e),\u0275fromNgModule:!0}}function qy(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return nh(t,s=>{let a=s;rf(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&Yy(i,o),n}function Yy(e,t){for(let n=0;n{t(o,r)})}}function rf(e,t,n,r){if(e=Nt(e),!e)return!1;let i=null,o=Dv(e),s=!o&&si(e);if(!o&&!s){let c=e.ngModule;if(o=Dv(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)rf(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{nh(o.imports,l=>{rf(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}u!==void 0&&Yy(u,t)}if(!a){let u=ui(i)||(()=>new i);t({provide:i,useFactory:u,deps:Qt},i),t({provide:Wy,useValue:i,multi:!0},i),t({provide:li,useValue:()=>M(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;dh(c,l=>{t(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function dh(e,t){for(let n of e)ky(n)&&(n=n.\u0275providers),Array.isArray(n)?dh(n,t):t(n)}var wM=Re({provide:String,useValue:Re});function Zy(e){return e!==null&&typeof e=="object"&&wM in e}function bM(e){return!!(e&&e.useExisting)}function IM(e){return!!(e&&e.useFactory)}function mo(e){return typeof e=="function"}function CM(e){return!!e.useClass}var uu=new _(""),Cc={},MM={},Rd;function fh(){return Rd===void 0&&(Rd=new kc),Rd}var sn=class{},_s=class extends sn{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,sf(t,s=>this.processProvider(s)),this.records.set(wo,ao(void 0,this)),i.has("environment")&&this.records.set(sn,ao(void 0,this));let o=this.records.get(uu);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Wy,Qt,ue.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=Ar(this),r=zt(void 0),i;try{return t()}finally{Ar(n),zt(r)}}get(t,n=Ds,r=ue.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(fv))return t[fv](this);r=su(r);let i,o=Ar(this),s=zt(void 0);try{if(!(r&ue.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=xM(t)&&iu(t);u&&this.injectableDefInScope(u)?c=ao(of(t),Cc):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&ue.Self?fh():this.parent;return n=r&ue.Optional&&n===Ds?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Fc]=a[Fc]||[]).unshift(Pt(t)),o)throw a;return rM(a,t,"R3InjectorError",this.source)}else throw a}finally{zt(s),Ar(o)}}resolveInjectorInitializers(){let t=Ar(this),n=zt(void 0),r;try{let i=this.get(li,Qt,ue.Self);for(let o of i)o()}finally{Ar(t),zt(n)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Pt(r));return"R3Injector[".concat(t.join(", "),"]")}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=Nt(t);let n=mo(t)?t:Nt(t&&t.provide),r=TM(t);if(!mo(t)&&t.multi===!0){let i=this.records.get(n);i||(i=ao(void 0,Cc,!0),i.factory=()=>ef(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Cc&&(n.value=MM,n.value=n.factory()),typeof n.value=="object"&&n.value&&OM(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Nt(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 of(e){let t=iu(e),n=t!==null?t.factory:ui(e);if(n!==null)return n;if(e instanceof _)throw new b(204,!1);if(e instanceof Function)return SM(e);throw new b(204,!1)}function SM(e){if(e.length>0)throw new b(204,!1);let n=zC(e);return n!==null?()=>n.factory(e):()=>new e}function TM(e){if(Zy(e))return ao(void 0,e.useValue);{let t=Ky(e);return ao(t,Cc)}}function Ky(e,t,n){let r;if(mo(e)){let i=Nt(e);return ui(i)||of(i)}else if(Zy(e))r=()=>Nt(e.useValue);else if(IM(e))r=()=>e.useFactory(...ef(e.deps||[]));else if(bM(e))r=()=>M(Nt(e.useExisting));else{let i=Nt(e&&(e.useClass||e.provide));if(AM(e))r=()=>new i(...ef(e.deps));else return ui(i)||of(i)}return r}function ao(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function AM(e){return!!e.deps}function OM(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xM(e){return typeof e=="function"||typeof e=="object"&&e instanceof _}function sf(e,t){for(let n of e)Array.isArray(n)?sf(n,t):n&&ky(n)?sf(n.\u0275providers,t):t(n)}function Pr(e,t){e instanceof _s&&e.assertNotDestroyed();let n,r=Ar(e),i=zt(void 0);try{return t()}finally{Ar(r),zt(i)}}function NM(e){return typeof e=="function"}var af=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Qy(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function cn(){return Xy}function Xy(e){return e.type.prototype.ngOnChanges&&(e.setInput=RM),PM}cn.ngInherit=!0;function PM(){let e=eD(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===lo)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function RM(e,t,n,r,i){let o=this.declaredInputs[r],s=eD(e)||FM(e,{previous:lo,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new af(u&&u.currentValue,n,c===lo),Qy(e,t,i,n)}var Jy="__ngSimpleChanges__";function eD(e){return e[Jy]||null}function FM(e,t){return e[Jy]=t}var wv=null;var Rn=function(e,t,n){wv!=null&&wv(e,t,n)};function LM(e,t,n){var s,a,c,u,l;let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let d=Xy(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 lu(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[so]+=65536),(a>14>16&&(e[G]&3)===t&&(e[G]+=16384,bv(a,o)):bv(a,o)}var uo=-1,di=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function jM(e){return e instanceof di}function VM(e){return(e.flags&8)!==0}function UM(e){return(e.flags&16)!==0}function nD(e){return e!==uo}function jc(e){return e&32767}function BM(e){return e>>16}function Vc(e,t){let n=BM(e),r=t;for(;n>0;)r=r[vo],n--;return r}var cf=!0;function Uc(e){let t=cf;return cf=e,t}var $M=256,rD=$M-1,iD=5,HM=0,Fn={};function zM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(us)&&(r=n[us]),r==null&&(r=n[us]=HM++);let i=r&rD,o=1<>iD)]|=o}function Bc(e,t){let n=oD(e,t);if(n!==-1)return n;let r=t[te];r.firstCreatePass&&(e.injectorIndex=t.length,Ld(r.data,e),Ld(t,null),Ld(r.blueprint,null));let i=hh(e,t),o=e.injectorIndex;if(nD(i)){let s=jc(i),a=Vc(i,t),c=a[te].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function Ld(e,t){e.push(0,0,0,0,0,0,0,0,t)}function oD(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function hh(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=lD(i),r===null)return uo;if(n++,i=i[vo],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return uo}function uf(e,t,n){zM(e,t,n)}function sD(e,t,n){if(n&ue.Optional||e!==void 0)return e;oh(t,"NodeInjector")}function aD(e,t,n,r){if(n&ue.Optional&&r===void 0&&(r=null),!(n&(ue.Self|ue.Host))){let i=e[fo],o=zt(void 0);try{return i?i.get(t,r,n&ue.Optional):jy(t,r,n&ue.Optional)}finally{zt(o)}}return sD(r,t,n)}function cD(e,t,n,r=ue.Default,i){if(e!==null){if(t[G]&2048&&!(r&ue.Self)){let s=YM(e,t,n,r,Fn);if(s!==Fn)return s}let o=uD(e,t,n,r,Fn);if(o!==Fn)return o}return aD(t,n,r,i)}function uD(e,t,n,r,i){let o=WM(n);if(typeof o=="function"){if(!Ey(t,e,r))return r&ue.Host?sD(i,n,r):aD(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&ue.Optional))oh(n);else return s}finally{Cy()}}else if(typeof o=="number"){let s=null,a=oD(e,t),c=uo,u=r&ue.Host?t[Xt][Jt]:null;for((a===-1||r&ue.SkipSelf)&&(c=a===-1?hh(e,t):t[a+8],c===uo||!Cv(r,!1)?a=-1:(s=t[te],a=jc(c),t=Vc(c,t)));a!==-1;){let l=t[te];if(Iv(o,a,l.data)){let d=GM(a,t,n,s,r,u);if(d!==Fn)return d}c=t[a+8],c!==uo&&Cv(r,t[te].data[a+8]===u)&&Iv(o,a,t)?(s=l,a=jc(c),t=Vc(c,t)):a=-1}}return i}function GM(e,t,n,r,i,o){let s=t[te],a=s.data[e+8],c=r==null?Ms(a)&&cf:r!=s&&(a.type&3)!==0,u=i&ue.Host&&o===a,l=Tc(a,s,n,c,u);return l!==null?fi(t,s,l,a):Fn}function Tc(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&&g.type===n)return p}if(i){let p=s[c];if(p&&dr(p)&&p.type===n)return c}return null}function fi(e,t,n,r){let i=e[n],o=t.data;if(jM(i)){let s=i;s.resolving&&ZC(YC(o[n]));let a=Uc(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?zt(s.injectImpl):null,l=Ey(e,r,ue.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&LM(n,o[n],t)}finally{u!==null&&zt(u),Uc(a),s.resolving=!1,Cy()}}return i}function WM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(us)?e[us]:void 0;return typeof t=="number"?t>=0?t&rD:qM:t}function Iv(e,t,n){let r=1<>iD)]&r)}function Cv(e,t){return!(e&ue.Self)&&!(e&ue.Host&&t)}var oi=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return cD(this._tNode,this._lView,t,su(r),n)}};function qM(){return new oi(Rt(),re())}function Fe(e){return Is(()=>{let t=e.prototype.constructor,n=t[xc]||lf(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[xc]||lf(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function lf(e){return Ly(e)?()=>{let t=lf(Nt(e));return t&&t()}:ui(e)}function YM(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[G]&2048&&!(s[G]&512);){let a=uD(o,s,n,r|ue.Self,Fn);if(a!==Fn)return a;let c=o.parent;if(!c){let u=s[dy];if(u){let l=u.get(n,Fn,r);if(l!==Fn)return l}c=lD(s),s=s[vo]}o=c}return i}function lD(e){let t=e[te],n=t.type;return n===2?t.declTNode:n===1?e[Jt]:null}function Mv(e,t=null,n=null,r){let i=dD(e,t,n,r);return i.resolveInjectorInitializers(),i}function dD(e,t=null,n=null,r,i=new Set){let o=[n||Qt,EM(e)];return r=r||(typeof e=="object"?void 0:Pt(e)),new _s(o,t||fh(),r||null,i)}var qt=(()=>{let t=class t{static create(r,i){var o;if(Array.isArray(r))return Mv({name:""},i,r,"");{let s=(o=r.name)!=null?o:"";return Mv({name:s},r.parent,r.providers,s)}}};t.THROW_IF_NOT_FOUND=Ds,t.NULL=new kc,t.\u0275prov=C({token:t,providedIn:"any",factory:()=>M(wo)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})(),ZM="ngOriginalError";function kd(e){return e[ZM]}var fr=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&&kd(t);for(;n&&kd(n);)n=kd(n);return n||null}},fD=new _("",{providedIn:"root",factory:()=>v(fr).handleError.bind(void 0)}),yc=new _(""),hD=!1,pD=new _("",{providedIn:"root",factory:()=>hD}),Dc;function KM(){if(Dc===void 0&&(Dc=null,ar.trustedTypes))try{Dc=ar.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Dc}function du(e){var t;return((t=KM())==null?void 0:t.createHTML(e))||e}var _c;function QM(){if(_c===void 0&&(_c=null,ar.trustedTypes))try{_c=ar.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _c}function Sv(e){var t;return((t=QM())==null?void 0:t.createHTML(e))||e}var hr=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(Jv,")")}},df=class extends hr{getTypeName(){return"HTML"}},ff=class extends hr{getTypeName(){return"Style"}},hf=class extends hr{getTypeName(){return"Script"}},pf=class extends hr{getTypeName(){return"URL"}},mf=class extends hr{getTypeName(){return"ResourceURL"}};function Bn(e){return e instanceof hr?e.changingThisBreaksApplicationSecurity:e}function Rr(e,t){let n=XM(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(Jv,")"))}return n===t}function XM(e){return e instanceof hr&&e.getTypeName()||null}function mD(e){return new df(e)}function gD(e){return new ff(e)}function vD(e){return new hf(e)}function yD(e){return new pf(e)}function DD(e){return new mf(e)}function JM(e){let t=new vf(e);return eS()?new gf(t):t}var gf=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(du(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},vf=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=du(t),n}};function eS(){try{return!!new window.DOMParser().parseFromString(du(""),"text/html")}catch{return!1}}var tS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fu(e){return e=String(e),e.match(tS)?e:"unsafe:"+e}function Dr(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Ps(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var _D=Dr("area,br,col,hr,img,wbr"),ED=Dr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wD=Dr("rp,rt"),nS=Ps(wD,ED),rS=Ps(ED,Dr("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")),iS=Ps(wD,Dr("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")),Tv=Ps(_D,rS,iS,nS),bD=Dr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),oS=Dr("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"),sS=Dr("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"),aS=Ps(bD,oS,sS),cS=Dr("script,style,template"),yf=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(!Tv.hasOwnProperty(n))return this.sanitizedSomething=!0,!cS.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();Tv.hasOwnProperty(n)&&!_D.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Av(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}},uS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lS=/([^\#-~ |!])/g;function Av(e){return e.replace(/&/g,"&").replace(uS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(lS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Ec;function ph(e,t){let n=null;try{Ec=Ec||JM(e);let r=t?String(t):"";n=Ec.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=Ec.getInertBodyElement(r)}while(r!==o);let a=new yf().sanitizeChildren(Ov(n)||n);return du(a)}finally{if(n){let r=Ov(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ov(e){return"content"in e&&dS(e)?e.content:null}function dS(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var yt=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}(yt||{});function bo(e){let t=CD();return t?Sv(t.sanitize(yt.HTML,e)||""):Rr(e,"HTML")?Sv(Bn(e)):ph(xs(),Ns(e))}function ID(e){let t=CD();return t?t.sanitize(yt.URL,e)||"":Rr(e,"URL")?Bn(e):fu(Ns(e))}function CD(){let e=re();return e&&e[ur].sanitizer}var fS=/^>|^->||--!>|)/g,pS="\u200B$1\u200B";function mS(e){return e.replace(fS,t=>t.replace(hS,pS))}var MD=new Map,gS=0;function vS(){return gS++}function yS(e){MD.set(e[tu],e)}function DS(e){MD.delete(e[tu])}var xv="__ngContext__";function Or(e,t){cr(t)?(e[xv]=t[tu],yS(t)):e[xv]=t}function Vz(e){return e.ownerDocument.defaultView}function Uz(e){return e.ownerDocument}function _S(e){return e.ownerDocument.body}function SD(e){return e instanceof Function?e():e}function wc(e){return(e!=null?e:v(qt)).get(tn)==="browser"}var pr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(pr||{}),ES;function mh(e,t){return ES(e,t)}function co(e,t,n,r,i){if(r!=null){let o,s=!1;jn(r)?o=r:cr(r)&&(s=!0,r=r[Wt]);let a=bn(r);e===0&&n!==null?i==null?RD(t,n,a):$c(t,n,a,i||null,!0):e===1&&n!==null?$c(t,n,a,i||null,!0):e===2?kD(t,a,s):e===3&&t.destroyNode(a),o!=null&&LS(t,e,o,n,i)}}function TD(e,t){return e.createText(t)}function wS(e,t,n){e.setValue(t,n)}function AD(e,t){return e.createComment(mS(t))}function gh(e,t,n){return e.createElement(t,n)}function bS(e,t){OD(e,t),t[Wt]=null,t[Jt]=null}function IS(e,t,n,r,i,o){r[Wt]=i,r[Jt]=t,pu(e,r,n,1,i,o)}function OD(e,t){pu(e,t,t[Ue],2,null,null)}function CS(e){let t=e[ps];if(!t)return jd(e[te],e);for(;t;){let n=null;if(cr(t))n=t[ps];else{let r=t[Gt];r&&(n=r)}if(!n){for(;t&&!t[_n]&&t!==e;)cr(t)&&jd(t[te],t),t=t[gt];t===null&&(t=e),cr(t)&&jd(t[te],t),n=t&&t[_n]}t=n}}function MS(e,t,n,r){let i=Gt+r,o=n.length;r>0&&(n[i-1][_n]=t),r0&&(e[n-1][_n]=r[_n]);let o=Pc(e,Gt+t);bS(r[te],r);let s=o[En];s!==null&&s.detachView(o[te]),r[gt]=null,r[_n]=null,r[G]&=-129}return r}function ND(e,t){if(!(t[G]&256)){let n=t[Ue];n.destroyNode&&pu(e,t,n,3,null,null),CS(t)}}function jd(e,t){if(!(t[G]&256)){t[G]&=-129,t[G]|=256,t[ai]&&Rg(t[ai]),AS(e,t),TS(e,t),t[te].type===1&&t[Ue].destroy();let n=t[Cs];if(n!==null&&jn(t[gt])){n!==t[gt]&&xD(n,t);let r=t[En];r!==null&&r.detachView(e)}DS(t)}}function TS(e,t){let n=e.cleanup,r=t[hs];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[hs]=null);let i=t[ls];if(i!==null){t[ls]=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 en(r,n)}}function $c(e,t,n,r,i){e.insertBefore(t,n,r,i)}function RD(e,t,n){e.appendChild(t,n)}function Nv(e,t,n,r,i){r!==null?$c(e,t,n,r,i):RD(e,t,n)}function xS(e,t,n,r){e.removeChild(t,n,r)}function vh(e,t){return e.parentNode(t)}function NS(e,t){return e.nextSibling(t)}function FD(e,t,n){return RS(e,t,n)}function PS(e,t,n){return e.type&40?en(e,n):null}var RS=PS,Pv;function hu(e,t,n,r){let i=PD(e,r,t),o=t[Ue],s=r.parent||t[Jt],a=FD(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;cot&&$D(e,t,ot,!1),Rn(s?2:0,i),n(r,i)}finally{ci(o),Rn(s?3:1,i)}}function _h(e,t,n){if(Yf(t)){let r=xt(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function zS(e){xy(e)?jD(e):yM(e)}function GS(){qD=zS}function WS(e,t,n,r){let i=XD(t);i.push(n),e.firstCreatePass&&JD(e).push(r,i.length-1)}function qS(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return yo()&&(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 Rv(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r!=null||(r={});let a,c=Ze.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}e===0?Fv(r,n,u,a,c):Fv(r,n,u,a)}return r}function Fv(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function YS(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 JS(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Ms(n)&&sT(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Bc(n,t),Or(r,t);let s=n.initialInputs;for(let a=i;a{gs(e.lView)},consumerOnSignalRead(){this.lView[ai]=this}});function n_(e){return i_(e[ps])}function r_(e){return i_(e[_n])}function i_(e){for(;e!==null&&!jn(e);)e=e[_n];return e}var o_=100;function s_(e,t=!0,n=0){var s,a,c;let r=e[ur],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{bT(e,n)}catch(u){throw t&&e_(e,u),u}finally{o||((a=i.end)==null||a.call(i),(c=r.inlineEffectRunner)==null||c.flush())}}function bT(e,t){bf(e,t);let n=0;for(;Kf(e);){if(n===o_)throw new b(103,!1);n++,bf(e,1)}}function IT(e,t,n,r){var c;let i=t[G];if((i&256)===256)return;let o=!1;!o&&((c=t[ur].inlineEffectRunner)==null||c.flush()),eh(t);let s=null,a=null;!o&&CT(e)&&(a=DT(t),s=Ng(a));try{gy(t),IC(e.bindingStartIndex),n!==null&&GD(e,t,n,2,r);let u=(i&3)===3;if(!o)if(u){let f=e.preOrderCheckHooks;f!==null&&Mc(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Sc(t,f,0,null),Fd(t,0)}if(MT(t),a_(t,0),e.contentQueries!==null&&QD(e,t),!o)if(u){let f=e.contentCheckHooks;f!==null&&Mc(t,f)}else{let f=e.contentHooks;f!==null&&Sc(t,f,1),Fd(t,1)}VS(e,t);let l=e.components;l!==null&&u_(t,l,0);let d=e.viewQuery;if(d!==null&&wf(2,d,r),!o)if(u){let f=e.viewCheckHooks;f!==null&&Mc(t,f)}else{let f=e.viewHooks;f!==null&&Sc(t,f,2),Fd(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[xd]){for(let f of t[xd])f();t[xd]=null}o||(t[G]&=-73)}catch(u){throw gs(t),u}finally{a!==null&&(Pg(a,s),ET(a)),th()}}function CT(e){return e.type!==2}function a_(e,t){for(let n=n_(e);n!==null;n=r_(n))for(let r=Gt;r-1&&(Df(t,r),Pc(n,r))}this._attachedToViewContainer=!1}ND(this._lView[te],this._lView)}onDestroy(t){mC(this._lView,t)}markForCheck(){Sh(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){Zd(this._lView),this._lView[G]|=128}detectChanges(){this._lView[G]|=1024,s_(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,OD(this._lView[te],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t,Zd(this._lView)}},vt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=OT;let e=t;return e})(),TT=vt,AT=class extends TT{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=gT(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new hi(i)}};function OT(){return yu(Rt(),re())}function yu(e,t){return e.type&4?new AT(t,e,Eo(e,t)):null}function l_(e){var i;let t=(i=e[ms])!=null?i:[],r=e[gt][Ue];for(let o of t)xT(o,r);e[ms]=Qt}function xT(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[Lc];for(;n0&&(s.firstChild=e,e=_u(i[Lc],e)),n.push(s)}return[e,n]}var f_=()=>null;function VT(e,t){let n=e[ms];return!t||n===null||n.length===0?null:n[0].data[uM]===t?n.shift():(l_(e),null)}function UT(){f_=VT}function kv(e,t){return f_(e,t)}var If=class{},Cf=class{},Gc=class{};function BT(e){let t=Error("No component factory found for ".concat(Pt(e),"."));return t[$T]=e,t}var $T="ngComponent";var Mf=class{resolveComponentFactory(t){throw BT(t)}},$n=(()=>{let t=class t{};t.NULL=new Mf;let e=t;return e})(),pi=class{},_r=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>HT();let e=t;return e})();function HT(){let e=re(),t=Rt(),n=xr(t.index,e);return(cr(n)?n:e)[Ue]}var zT=(()=>{let t=class t{};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Ud={};function GT(e){return typeof e=="function"&&e[ud]!==void 0}function h_(e){return GT(e)&&typeof e.set=="function"}function Th(e){let t=xt(null);try{return e()}finally{xt(t)}}function p_(e){return qT(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function WT(e,t){if(Array.isArray(e))for(let n=0;nt,Tf=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||YT}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 Af(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 Wc),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 Wc),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}},Af=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}},Of=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}},Wc=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Of,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 jv(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||Vv()),deps:[[t,new yr,new vr]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new b(901,!1)}};t.\u0275prov=C({token:t,providedIn:"root",factory:Vv});let e=t;return e})();var Dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=ZT;let e=t;return e})();function ZT(e){return KT(Rt(),re(),(e&16)===16)}function KT(e,t,n){if(Ms(e)&&!n){let r=xr(e.index,t);return new hi(r,r)}else if(e.type&47){let r=t[Xt];return new hi(r,t)}return null}var Uv=new Set;function Rs(e){var t;Uv.has(e)||(Uv.add(e),(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_feature_usage",{detail:{feature:e}}))}function Bv(...e){}function QT(){let e=typeof ar.requestAnimationFrame=="function",t=ar[e?"requestAnimationFrame":"setTimeout"],n=ar[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 de=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 it(!1),this.onMicrotaskEmpty=new it(!1),this.onStable=new it(!1),this.onError=new it(!1),typeof Zone>"u")throw new b(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=QT().nativeRequestAnimationFrame,eA(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(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,XT,Bv,Bv);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)}},XT={};function Oh(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 JT(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ar,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xf(e),e.isCheckStableRunning=!0,Oh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xf(e))}function eA(e){let t=()=>{JT(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(tA(a))return n.invokeTask(i,o,s,a);try{return $v(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Hv(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return $v(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Hv(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,xf(e),Oh(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 xf(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function $v(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hv(e){e._nesting--,Oh(e)}function tA(e){var t;return!Array.isArray(e)||e.length!==1?!1:((t=e[0].data)==null?void 0:t.__ignore_ng_zone__)===!0}var m_=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var i;let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o();(i=this.handler)==null||i.execute()}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function qc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&UD(e,n,o.join(" "))}}function cA(e,t,n){let r=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=lA;let e=t;return e})();function lA(){let e=Rt();return v_(e,re())}var dA=Ft,g_=class extends dA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Eo(this._hostTNode,this._hostLView)}get injector(){return new oi(this._hostTNode,this._hostLView)}get parentInjector(){let t=hh(this._hostTNode,this._hostLView);if(nD(t)){let n=Vc(t,this._hostLView),r=jc(t),i=n[te].data[r+8];return new oi(i,n)}else return new oi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Gv(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=kv(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Lv(this._hostTNode,s)),a}createComponent(t,n,r,i,o){var g,D,S;let s=t&&!NM(t),a;if(s)a=n;else{let T=n||{};a=T.index,r=T.injector,i=T.projectableNodes,o=T.environmentInjector||T.ngModuleRef}let c=s?t:new Es(si(t)),u=r||this.parentInjector;if(!o&&c.ngModule==null){let z=(s?u:this.parentInjector).get(sn,null);z&&(o=z)}let l=si((g=c.componentType)!=null?g:{}),d=kv(this._lContainer,(D=l==null?void 0:l.id)!=null?D:null),f=(S=d==null?void 0:d.firstChild)!=null?S:null,p=c.create(u,i,f,o);return this.insertImpl(p.hostView,a,Lv(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(fC(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[gt],u=new g_(c,c[Jt],c[gt]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return vT(s,i,o,r),t.attachToViewContainerRef(),Ay(Bd(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Gv(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Df(this._lContainer,n);r&&(Pc(Bd(this._lContainer),n),ND(r[te],r))}detach(t){let n=this._adjustIndex(t,-1),r=Df(this._lContainer,n);return r&&Pc(Bd(this._lContainer),n)!=null?new hi(r):null}_adjustIndex(t,n=0){return t==null?this.length+n:t}};function Gv(e){return e[Nc]}function Bd(e){return e[Nc]||(e[Nc]=[])}function v_(e,t){let n,r=t[e.index];return jn(r)?n=r:(n=KD(r,t,null,e),t[e.index]=n,vu(t,n)),y_(n,t,e,r),new g_(n,e,t)}function fA(e,t){let n=e[Ue],r=n.createComment(""),i=en(t,e),o=vh(n,i);return $c(n,o,r,NS(n,i),!1),r}var y_=D_,xh=()=>!1;function hA(e,t,n){return xh(e,t,n)}function D_(e,t,n,r){if(e[lr])return;let i;n.type&8?i=bn(r):i=fA(t,n),e[lr]=i}function pA(e,t,n){var l;if(e[lr]&&e[ms])return!0;let r=n[kn],i=t.index-ot;if(!r||HC(t)||cu(r,i))return!1;let s=nf(r,i),a=(l=r.data[ah])==null?void 0:l[i],[c,u]=jT(s,a);return e[lr]=c,e[ms]=u,!0}function mA(e,t,n,r){xh(e,n,t)||D_(e,t,n,r)}function gA(){y_=mA,xh=pA}var Rf=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ff=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;dt.trim())}function w_(e,t,n){e.queries===null&&(e.queries=new Lf),e.queries.track(new kf(t,n))}function CA(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Nh(e,t){return e.queries.getByIndex(t)}function MA(e,t){let n=e[te],r=Nh(n,t);return r.crossesNgTemplate?jf(n,e,t,[]):__(n,e,r,t)}function SA(e){return Object.getPrototypeOf(e.prototype).constructor}function He(e){let t=SA(e.type),n=!0,r=[e];for(;t;){let i;if(dr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new b(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=bc(e.inputs),s.inputTransforms=bc(e.inputTransforms),s.declaredInputs=bc(e.declaredInputs),s.outputs=bc(e.outputs);let a=i.hostBindings;a&&NA(e,a);let c=i.viewQuery,u=i.contentQueries;if(c&&OA(e,c),u&&xA(e,u),TA(e,i),UI(e.outputs,i.outputs),dr(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=fs(i.hostAttrs,n=fs(n,i.hostAttrs))}}function bc(e){return e===lo?{}:e===Qt?[]:e}function OA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function xA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function NA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var mr=class{},ws=class{};function b_(e,t){return new Kc(e,t!=null?t:null,[])}var Kc=class extends mr{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Yc(this);let i=cy(t);this._bootstrapComponents=SD(i.bootstrap),this._r3Injector=dD(t,n,[{provide:mr,useValue:this},{provide:$n,useValue:this.componentFactoryResolver},...r],Pt(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)}},Vf=class extends ws{constructor(t){super(),this.moduleType=t}create(t){return new Kc(this.moduleType,t,[])}};var Qc=class extends mr{constructor(t){super(),this.componentFactoryResolver=new Yc(this),this.instance=null;let n=new _s([...t.providers,{provide:mr,useValue:this},{provide:$n,useValue:this.componentFactoryResolver}],t.parent||fh(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ph(e,t,n=null){return new Qc({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Fs=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new qe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ls(e,t,n){return e[t]=n}function PA(e,t){return e[t]}function an(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Uf(e,t,n,r){let i=an(e,t,n);return an(e,t+1,r)||i}function I_(e,t,n,r,i,o){let s=Uf(e,t,n,r);return Uf(e,t+2,i,o)||s}function RA(e,t,n,r,i,o,s,a,c){let u=t.consts,l=Io(t,e,4,s||null,po(u,a));Ih(t,n,l,po(u,c)),lu(t,l);let d=l.tView=bh(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 be(e,t,n,r,i,o,s,a){let c=re(),u=et(),l=e+ot,d=u.firstCreatePass?RA(l,u,c,t,n,r,i,o,s):u.data[l];vi(d,!1);let f=C_(u,c,d,e);ru()&&hu(u,c,f,d),Or(f,c);let p=KD(f,c,f,d);return c[l]=p,vu(c,p),hA(p,d,c),nu(d)&&Eh(u,c,d),s!=null&&wh(c,d,a),be}var C_=M_;function M_(e,t,n,r){return Nr(!0),t[Ue].createComment("")}function FA(e,t,n,r){var l,d;let i=t[kn],o=!i||yo()||cu(i,r);if(Nr(o),o)return M_(e,t,n,r);let s=(d=(l=i.data[cM])==null?void 0:l[r])!=null?d:null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=Du(i,e,t,n);au(i,r,a);let c=uh(i,r);return _u(c,a)}function LA(){C_=FA}function lt(e,t,n,r){let i=re(),o=Do();if(an(i,o,t)){let s=et(),a=Ts();aT(a,i,e,t,n,r)}return lt}function kA(e,t,n,r){return an(e,Do(),n)?t+Ns(n)+r:Ei}function Ic(e,t){return e<<17|t<<2}function mi(e){return e>>17&32767}function jA(e){return(e&2)==2}function VA(e,t){return e&131071|t<<17}function Bf(e){return e|2}function go(e){return(e&131068)>>2}function $d(e,t){return e&-131069|t<<2}function UA(e){return(e&1)===1}function $f(e){return e|1}function BA(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=mi(s),c=go(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Os(d,l)>0)&&(u=!0)}else l=n;if(i)if(c!==0){let f=mi(e[a+1]);e[r+1]=Ic(f,a),f!==0&&(e[f+1]=$d(e[f+1],r)),e[a+1]=VA(e[a+1],r)}else e[r+1]=Ic(a,0),a!==0&&(e[a+1]=$d(e[a+1],r)),a=r;else e[r+1]=Ic(c,0),a===0?a=r:e[c+1]=$d(e[c+1],r),c=r;u&&(e[r+1]=Bf(e[r+1])),Wv(e,l,r,!0),Wv(e,l,r,!1),$A(t,l,e,r,o),s=Ic(a,c),o?t.classBindings=s:t.styleBindings=s}function $A(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Os(o,t)>=0&&(n[r+1]=$f(n[r+1]))}function Wv(e,t,n,r){let i=e[n+1],o=t===null,s=r?mi(i):go(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],u=e[s+1];HA(c,t)&&(a=!0,e[s+1]=r?$f(u):Bf(u)),s=r?mi(u):go(u)}a&&(e[n+1]=r?Bf(i):$f(i))}function HA(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Os(e,t)>=0:!1}function B(e,t,n){let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts();gu(o,s,r,e,t,r[Ue],n,!1)}return B}function qv(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Ch(e,n,o[s],s,r)}function wi(e,t,n){return S_(e,t,n,!1),wi}function tt(e,t){return S_(e,t,null,!0),tt}function S_(e,t,n,r){let i=re(),o=et(),s=CC(2);if(o.firstUpdatePass&&GA(o,e,s,r),t!==Ei&&an(i,s,t)){let a=o.data[_o()];KA(o,a,i,i[Ue],e,i[s+1]=QA(t,n),r,s)}}function zA(e,t){return t>=e.expandoStartIndex}function GA(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[_o()],s=zA(e,n);XA(o,r)&&t===null&&!s&&(t=!1),t=WA(i,o,t,r),BA(i,o,t,n,s,r)}}function WA(e,t,n,r){let i=Dy(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Hd(null,e,t,n,r),n=bs(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Hd(i,e,t,n,r),o===null){let c=qA(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Hd(null,e,t,c[1],r),c=bs(c,t.attrs,r),YA(e,t,r,c))}else o=ZA(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function qA(e,t,n){let r=n?t.classBindings:t.styleBindings;if(go(r)!==0)return e[mi(r)]}function YA(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[mi(i)]=r}function ZA(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===Ei&&(f=d?Qt:void 0);let p=d?Nd(f,r):l===r?f:void 0;if(u&&!Xc(p)&&(p=Nd(c,r)),Xc(p)&&(a=p,s))return a;let g=e[i+1];i=s?mi(g):go(g)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=Nd(c,r))}return a}function Xc(e){return e!==void 0}function QA(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Pt(Bn(e)))),e}function XA(e,t){return(e.flags&(t?8:16))!==0}function JA(e,t,n,r,i,o){let s=t.consts,a=po(s,i),c=Io(t,e,2,r,a);return Ih(t,n,c,po(s,o)),c.attrs!==null&&qc(c,c.attrs,!1),c.mergedAttrs!==null&&qc(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function ye(e,t,n,r){let i=re(),o=et(),s=ot+e,a=i[Ue],c=o.firstCreatePass?JA(s,o,i,t,n,r):o.data[s],u=T_(o,i,c,a,t,e);i[s]=u;let l=nu(c);return vi(c,!0),BD(a,u,c),(c.flags&32)!==32&&ru()&&hu(o,i,u,c),gC()===0&&Or(u,i),vC(),l&&(Eh(o,i,c),_h(o,c,i)),r!==null&&wh(i,c),ye}function ve(){let e=Rt();Qf()?Xf():(e=e.parent,vi(e,!1));let t=e;DC(t)&&EC(),yC();let n=et();return n.firstCreatePass&&(lu(n,e),Yf(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&VM(t)&&qv(n,t,re(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&UM(t)&&qv(n,t,re(),t.stylesWithoutHost,!1),ve}function Le(e,t,n,r){return ye(e,t,n,r),ve(),Le}var T_=(e,t,n,r,i,o)=>(Nr(!0),gh(r,i,Sy()));function eO(e,t,n,r,i,o){let s=t[kn],a=!s||yo()||cu(s,o);if(Nr(a),a)return gh(r,i,Sy());let c=Du(s,e,t,n);return zy(s,o)&&au(s,o,c.nextSibling),s&&(Oy(n)||xy(c))&&Ms(n)&&(_C(n),jD(c)),c}function tO(){T_=eO}function nO(e,t,n,r,i){let o=t.consts,s=po(o,r),a=Io(t,e,8,"ng-container",s);s!==null&&qc(a,s,!0);let c=po(o,i);return Ih(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function In(e,t,n){let r=re(),i=et(),o=e+ot,s=i.firstCreatePass?nO(o,i,r,t,n):i.data[o];vi(s,!0);let a=A_(i,r,s,e);return r[o]=a,ru()&&hu(i,r,a,s),Or(a,r),nu(s)&&(Eh(i,r,s),_h(i,s,r)),n!=null&&wh(r,s),In}function Cn(){let e=Rt(),t=et();return Qf()?Xf():(e=e.parent,vi(e,!1)),t.firstCreatePass&&(lu(t,e),Yf(e)&&t.queries.elementEnd(e)),Cn}function bi(e,t,n){return In(e,t,n),Cn(),bi}var A_=(e,t,n,r)=>(Nr(!0),AD(t[Ue],""));function rO(e,t,n,r){let i,o=t[kn],s=!o||yo();if(Nr(s),s)return AD(t[Ue],"");let a=Du(o,e,t,n),c=DM(o,r);return au(o,r,a),i=_u(c,a),i}function iO(){A_=rO}function Hn(){return re()}function Rh(e,t,n){let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts();gu(o,s,r,e,t,r[Ue],n,!0)}return Rh}function ks(e,t,n){let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts(),a=Dy(o.data),c=dT(a,s,r);gu(o,s,r,e,t,c,n,!0)}return ks}var Jc="en-US";var oO=Jc;function sO(e){typeof e=="string"&&(oO=e.toLowerCase().replace(/_/g,"-"))}function st(e,t,n,r){let i=re(),o=et(),s=Rt();return O_(o,i,i[Ue],s,e,t,r),st}function aO(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 O_(e,t,n,r,i,o,s){let a=nu(r),u=e.firstCreatePass&&JD(e),l=t[wn],d=XD(t),f=!0;if(r.type&3||s){let D=en(r,t),S=s?s(D):D,T=d.length,z=s?fe=>s(bn(fe[r.index])):r.index,q=null;if(!s&&a&&(q=aO(e,t,i,r.index)),q!==null){let fe=q.__ngLastListenerFn__||q;fe.__ngNextListenerFn__=o,q.__ngLastListenerFn__=o,f=!1}else{o=Kv(r,t,l,o,!1);let fe=n.listen(S,i,o);d.push(o,fe),u&&u.push(i,z,T,T+1)}}else o=Kv(r,t,l,o,!1);let p=r.outputs,g;if(f&&p!==null&&(g=p[i])){let D=g.length;if(D)for(let S=0;S-1?xr(e.index,t):t;Sh(a);let c=Zv(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=Zv(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function me(e=1){return OC(e)}function cO(e,t){let n=null,r=QI(e);for(let i=0;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Eu(e){let t=bC();return Ss(t,ot+e)}function Gn(e,t=""){let n=re(),r=et(),i=e+ot,o=r.firstCreatePass?Io(r,i,1,t,null):r.data[i],s=N_(r,n,o,t,e);n[i]=s,ru()&&hu(r,n,s,o),vi(o,!1)}var N_=(e,t,n,r,i)=>(Nr(!0),TD(t[Ue],r));function dO(e,t,n,r,i){let o=t[kn],s=!o||yo()||cu(o,i);return Nr(s),s?TD(t[Ue],r):Du(o,e,t,n)}function fO(){N_=dO}function hO(e){return un("",e,""),hO}function un(e,t,n){let r=re(),i=kA(r,e,t,n);return i!==Ei&&fT(r,_o(),i),un}function pO(e,t,n){h_(t)&&(t=t());let r=re(),i=Do();if(an(r,i,t)){let o=et(),s=Ts();gu(o,s,r,e,t,r[Ue],n,!1)}return pO}function Hz(e,t){let n=h_(e);return n&&e.set(t),n}function mO(e,t){let n=re(),r=et(),i=Rt();return O_(r,n,n[Ue],i,e,t),mO}function gO(e,t,n){let r=et();if(r.firstCreatePass){let i=dr(e);Hf(n,r.data,r.blueprint,i,!0),Hf(t,r.data,r.blueprint,i,!1)}}function Hf(e,t,n,r,i){if(e=Nt(e),Array.isArray(e))for(let o=0;o>20;if(mo(e)||!e.multi){let p=new di(u,i,y),g=Gd(c,t,i?l:l+f,d);g===-1?(uf(Bc(a,s),o,c),zd(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{let p=Gd(c,t,l+f,d),g=Gd(c,t,l,l+f),D=p>=0&&n[p],S=g>=0&&n[g];if(i&&!S||!i&&!D){uf(Bc(a,s),o,c);let T=DO(i?yO:vO,n.length,i,r,u);!i&&S&&(n[g].providerFactory=T),zd(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(T),s.push(T)}else{let T=P_(n[i?g:p],u,!i&&r);zd(o,e,p>-1?p:g,T)}!i&&r&&S&&n[g].componentProviders++}}}function zd(e,t,n,r){let i=mo(t),o=CM(t);if(i||o){let c=(o?Nt(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 P_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>gO(r,i?i(e):e,t)}}var _O=(()=>{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=qy(!1,r.type),o=i.length>0?Ph([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=C({token:t,providedIn:"environment",factory:()=>new t(M(sn))});let e=t;return e})();function R_(e){Rs("NgStandalone"),e.getStandaloneInjector=t=>t.get(_O).getOrCreateStandaloneInjector(e)}function zz(e,t,n,r){return F_(re(),yi(),e,t,n,r)}function Gz(e,t,n,r,i){return L_(re(),yi(),e,t,n,r,i)}function Wz(e,t,n,r,i,o,s,a){let c=yi()+e,u=re(),l=I_(u,c,n,r,i,o);return an(u,c+4,s)||l?Ls(u,c+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):PA(u,c+5)}function wu(e,t){let n=e[t];return n===Ei?void 0:n}function F_(e,t,n,r,i,o){let s=t+n;return an(e,s,i)?Ls(e,s+1,o?r.call(o,i):r(i)):wu(e,s+1)}function L_(e,t,n,r,i,o,s){let a=t+n;return Uf(e,a,i,o)?Ls(e,a+2,s?r.call(s,i,o):r(i,o)):wu(e,a+2)}function EO(e,t,n,r,i,o,s,a,c){let u=t+n;return I_(e,u,i,o,s,a)?Ls(e,u+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):wu(e,u+4)}function wO(e,t,n,r,i,o){let s=t+n,a=!1;for(let c=0;c=0;n--){let r=t[n];if(e===r.name)return r}}function dn(e,t,n){let r=e+ot,i=re(),o=Ss(i,r);return bu(i,r)?F_(i,yi(),t,o.transform,n,o):o.transform(n)}function qz(e,t,n,r){let i=e+ot,o=re(),s=Ss(o,i);return bu(o,i)?L_(o,yi(),t,s.transform,n,r,s):s.transform(n,r)}function Yz(e,t,n,r,i,o){let s=e+ot,a=re(),c=Ss(a,s);return bu(a,s)?EO(a,yi(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function Zz(e,t,n){let r=e+ot,i=re(),o=Ss(i,r);return bu(i,r)?wO(i,yi(),t,o.transform,n,o):o.transform.apply(o,n)}function bu(e,t){return e[te].data[t].pure}function Iu(e,t){return yu(e,t)}var Cu=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var k_=new _("");function Fr(e){return!!e&&typeof e.then=="function"}function kh(e){return!!e&&typeof e.subscribe=="function"}var j_=new _(""),V_=(()=>{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=v(j_,{optional:!0}))!=null?r:[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(Fr(s))r.push(s);else if(kh(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Co=new _("");function IO(){Fg(()=>{throw new b(600,!1)})}function CO(e){return e.isBoundToModule}function MO(e,t,n){try{let r=n();return Fr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Lr=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(fD),this.afterRenderEffectManager=v(m_),this.componentTypes=[],this.components=[],this.isStable=v(Fs).hasPendingTasks.pipe(w(r=>!r)),this._injector=v(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Gc;if(!this._injector.get(V_).done){let p=!o&&ay(r),g=!1;throw new b(405,g)}let a;o?a=r:a=this._injector.get($n).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=CO(a)?void 0:this._injector.get(mr),u=i||a.selector,l=a.create(qt.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(k_,null);return f==null||f.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Wd(this.components,l),f==null||f.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let r=0;do{if(r===o_)throw new b(103,!1);let i=r===0;for(let{_lView:o,notifyErrorHandler:s}of this._views)!i&&!Qv(o)||this.detectChangesInView(o,s,i);this.afterRenderEffectManager.execute(),r++}while(this._views.some(({_lView:i})=>Qv(i)))}detectChangesInView(r,i,o){let s;o?(s=0,r[G]|=1024):r[G]&64?s=0:s=1,s_(r,i,s)}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Wd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Co,[]);[...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),()=>Wd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new b(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Wd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Tr;function jh(e){Tr!=null||(Tr=new WeakMap);let t=Tr.get(e);if(t)return t;let n=e.isStable.pipe(yn(r=>r)).toPromise().then(()=>{});return Tr.set(e,n),e.onDestroy(()=>Tr==null?void 0:Tr.delete(e)),n}function Qv(e){return Kf(e)}var Gf=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Vh=(()=>{let t=class t{compileModuleSync(r){return new Vf(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=cy(r),s=SD(o.declarations).reduce((a,c)=>{let u=si(c);return u&&a.push(new Es(u)),a},[]);return new Gf(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var SO=(()=>{let t=class t{constructor(){this.zone=v(de),this.applicationRef=v(Lr)}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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function TO(e){return[{provide:de,useFactory:e},{provide:li,multi:!0,useFactory:()=>{let t=v(SO,{optional:!0});return()=>t.initialize()}},{provide:li,multi:!0,useFactory:()=>{let t=v(NO);return()=>{t.initialize()}}},{provide:fD,useFactory:AO}]}function AO(){let e=v(de),t=v(fr);return n=>e.runOutsideAngular(()=>t.handleError(n))}function OO(e){let t=TO(()=>new de(xO(e)));return _i([[],t])}function xO(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}}var NO=(()=>{let t=class t{constructor(){this.subscription=new rt,this.initialized=!1,this.zone=v(de),this.pendingTasks=v(Fs)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{de.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{de.assertInAngularZone(),r!=null||(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function PO(){return typeof $localize<"u"&&$localize.locale||Jc}var js=new _("",{providedIn:"root",factory:()=>v(js,ue.Optional|ue.SkipSelf)||PO()});var U_=new _("");var Oc=null;function RO(e=[],t){return qt.create({name:t,providers:[{provide:uu,useValue:"platform"},{provide:U_,useValue:new Set([()=>Oc=null])},...e]})}function FO(e=[]){if(Oc)return Oc;let t=RO(e);return Oc=t,IO(),LO(t),t}function LO(e){let t=e.get(rh,null);t==null||t.forEach(n=>n())}function B_(){return!1}function $_(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=FO(r),o=[OO(),...n||[]],a=new Qc({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(de);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(fr,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:p=>{u.handleError(p)}})});let d=()=>a.destroy(),f=i.get(U_);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),MO(u,c,()=>{let p=a.get(V_);return p.runInitializers(),p.donePromise.then(()=>{let g=a.get(js,Jc);sO(g||Jc);let D=a.get(Lr);return t!==void 0&&D.bootstrap(t),D})})})}catch(t){return Promise.reject(t)}}var Xv=!1;function kO(){Xv||(Xv=!0,mM(),tO(),fO(),iO(),LA(),gA(),UT(),GS())}function jO(e,t){return jh(e)}function H_(){return _i([{provide:yc,useFactory:()=>{let e=!0;if(wc()){let t=v(Di,{optional:!0});e=!!(t!=null&&t.get($y,null))}return e&&Rs("NgHydration"),e}},{provide:li,useValue:()=>{wc()&&v(yc)&&(VO(),kO())},multi:!0},{provide:pD,useFactory:()=>wc()&&v(yc)},{provide:Co,useFactory:()=>{if(wc()&&v(yc)){let e=v(Lr),t=v(qt);return()=>{jO(e,t).then(()=>{de.assertInAngularZone(),NT(e)})}}return()=>{}},multi:!0}])}function VO(){var n;let e=xs(),t;for(let r of e.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&((n=r.textContent)==null?void 0:n.trim())===hM){t=r;break}if(!t)throw new b(-507,!1)}function Vs(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Mu=null;function Er(){return Mu}function Z_(e){Mu!=null||(Mu=e)}var Su=class{};var ge=new _(""),K_=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v($O),providedIn:"platform"});let e=t;return e})();var $O=(()=>{let t=class t extends K_{constructor(){super(),this._doc=v(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Er().getBaseHref(this._doc)}onPopState(r){let i=Er().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Er().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=C({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Q_(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 z_(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 Ii(e){return e&&e[0]!=="?"?"?"+e:e}var Au=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(X_),providedIn:"root"});let e=t;return e})(),HO=new _(""),X_=(()=>{let t=class t extends Au{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=v(ge).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 Q_(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Ii(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+Ii(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Ii(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)(M(K_),M(HO,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Us=(()=>{let t=class t{constructor(r){this._subject=new it,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=WO(z_(G_(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+Ii(i))}normalize(r){return t.stripTrailingSlash(GO(this._basePath,G_(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+Ii(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Ii(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){var i;return this._urlChangeListeners.push(r),(i=this._urlChangeSubscription)!=null||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{var s;let o=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&((s=this._urlChangeSubscription)==null||s.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=Ii,t.joinWithSlash=Q_,t.stripTrailingSlash=z_,t.\u0275fac=function(i){return new(i||t)(M(Au))},t.\u0275prov=C({token:t,factory:()=>zO(),providedIn:"root"});let e=t;return e})();function zO(){return new Us(M(Au))}function GO(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function G_(e){return e.replace(/\/index.html$/,"")}function WO(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function J_(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 vG=(()=>{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=b_(this.ngComponentOutletNgModule,W_(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(W_(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)(y(Ft))},t.\u0275dir=H({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[cn]});let e=t;return e})();function W_(e){return e.get(mr).injector}var Uh=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}},yG=(()=>{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(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Uh(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),q_(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);q_(s,o)})}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(y(Ft),y(vt),y(Ah))},t.\u0275dir=H({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function q_(e,t){e.context.$implicit=t.item}var Lt=(()=>{let t=class t{constructor(r,i){this._viewContainer=r,this._context=new Bh,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){Y_("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Y_("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)(y(Ft),y(vt))},t.\u0275dir=H({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Bh=class{constructor(){this.$implicit=null,this.ngIf=null}};function Y_(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Pt(t),"'."))}function qO(e,t){return new b(2100,!1)}var $h=class{createSubscription(t,n){return Th(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Th(()=>t.unsubscribe())}},Hh=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},YO=new Hh,ZO=new $h,Wn=(()=>{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(Fr(r))return YO;if(kh(r))return ZO;throw qO(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)(y(Dt,16))},t.\u0275pipe=gi({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var kt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=X({});let e=t;return e})(),Gh="browser",KO="server";function e0(e){return e===Gh}function Bs(e){return e===KO}var Tu=class{};var xu=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 a0=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}(a0||{}),Wh=class{constructor(t,n=c0.Ok,r="OK"){this.headers=t.headers||new xu,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 Nu=class e extends Wh{constructor(t={}){super(t),this.type=a0.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 c0=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(c0||{});var XO=new _("");var t0="b",n0="h",r0="s",i0="st",o0="u",s0="rt",Ou=new _(""),JO=["GET","HEAD"];function ex(e,t){var d;let l=v(Ou),{isCacheActive:n}=l,r=Ua(l,["isCacheActive"]),{transferCache:i,method:o}=e;if(!n||o==="POST"&&!r.includePostRequests&&!i||o!=="POST"&&!JO.includes(o)||i===!1||((d=r.filter)==null?void 0:d.call(r,e))===!1)return t(e);let s=v(Di),a=nx(e),c=s.get(a,null),u=r.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(u=i.includeHeaders),c){let{[t0]:f,[s0]:p,[n0]:g,[r0]:D,[i0]:S,[o0]:T}=c,z=f;switch(p){case"arraybuffer":z=new TextEncoder().encode(f).buffer;break;case"blob":z=new Blob([f]);break}let q=new xu(g);return A(new Nu({body:z,headers:q,status:D,statusText:S,url:T}))}return t(e).pipe(Ne(f=>{f instanceof Nu&&s.set(a,{[t0]:f.body,[n0]:tx(f.headers,u),[r0]:f.status,[i0]:f.statusText,[o0]:f.url||"",[s0]:e.responseType})}))}function tx(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 nx(e){let{params:t,method:n,responseType:r,url:i,body:o}=e,s=t.keys().sort().map(l=>"".concat(l,"=").concat(t.getAll(l))).join("&"),c=[n,r,i,typeof o=="string"?o:"",s].join("|"),u=rx(c);return u}function rx(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function u0(e){return[{provide:Ou,useFactory:()=>(Rs("NgHttpTransferCache"),O({isCacheActive:!0},e))},{provide:XO,useValue:ex,multi:!0,deps:[Di,Ou]},{provide:Co,multi:!0,useFactory:()=>{let t=v(Lr),n=v(Ou);return()=>{jh(t).then(()=>{n.isCacheActive=!1})}}}]}var Zh=class extends Su{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Kh=class e extends Zh{static makeCurrent(){Z_(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=ix();return n==null?null:ox(n)}resetBaseElement(){$s=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return J_(document.cookie,t)}},$s=null;function ix(){return $s=$s||document.querySelector("base"),$s?$s.getAttribute("href"):null}function ox(e){return new URL(e,document.baseURI).pathname}var sx=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Mo=new _(""),h0=(()=>{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 b(5101,!1);return this._eventNameToPlugin.set(r,i),i}};t.\u0275fac=function(i){return new(i||t)(M(Mo),M(de))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Pu=class{constructor(t){this._doc=t}},qh="ng-app-id",p0=(()=>{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=Bs(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(qh,'="').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(qh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(qh,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)(M(ge),M(ou),M(ih,8),M(tn))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Yh={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/"},Jh=/%COMP%/g,m0="%COMP%",ax="_nghost-".concat(m0),cx="_ngcontent-".concat(m0),ux=!0,lx=new _("",{providedIn:"root",factory:()=>ux});function dx(e){return cx.replace(Jh,e)}function fx(e){return ax.replace(Jh,e)}function g0(e,t){return t.map(n=>n.replace(Jh,e))}var l0=(()=>{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=Bs(c),this.defaultRenderer=new Hs(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ln.ShadowDom&&(i=je(O({},i),{encapsulation:Ln.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Ru?o.applyToHost(r):o instanceof zs&&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 Ru(u,l,i,this.appId,d,a,c,f);break;case Ln.ShadowDom:return new Qh(u,l,r,i,a,c,this.nonce,f);default:s=new zs(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)(M(h0),M(p0),M(ou),M(lx),M(ge),M(tn),M(de),M(ih))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Hs=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(Yh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(d0(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(d0(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 b(-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=Yh[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Yh[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&(pr.DashCase|pr.Important)?t.style.setProperty(n,r,i&pr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&pr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Er().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 d0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Qh=class extends Hs{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=g0(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)}},zs=class extends Hs{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?g0(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ru=class extends zs{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=dx(u),this.hostAttr=fx(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}},hx=(()=>{let t=class t extends Pu{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)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),f0=["alt","control","meta","shift"],px={"\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"},mx={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},gx=(()=>{let t=class t extends Pu{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(()=>Er().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."),f0.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=px[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"),f0.forEach(a=>{if(a!==o){let c=mx[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)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})();function GG(e,t){return $_(O({rootComponent:e},vx(t)))}function vx(e){var t;return{appProviders:[...wx,...(t=e==null?void 0:e.providers)!=null?t:[]],platformProviders:Ex}}function yx(){Kh.makeCurrent()}function Dx(){return new fr}function _x(){return Ny(document),document}var Ex=[{provide:tn,useValue:Gh},{provide:rh,useValue:yx,multi:!0},{provide:ge,useFactory:_x,deps:[]}];var wx=[{provide:uu,useValue:"root"},{provide:fr,useFactory:Dx,deps:[]},{provide:Mo,useClass:hx,multi:!0,deps:[ge,de,tn]},{provide:Mo,useClass:gx,multi:!0,deps:[ge]},l0,p0,h0,{provide:pi,useExisting:l0},{provide:Tu,useClass:sx,deps:[]},[]];var v0=(()=>{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)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=M(bx),o},providedIn:"root"});let e=t;return e})(),bx=(()=>{let t=class t extends Gs{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case yt.NONE:return i;case yt.HTML:return Rr(i,"HTML")?Bn(i):ph(this._doc,String(i)).toString();case yt.STYLE:return Rr(i,"Style")?Bn(i):i;case yt.SCRIPT:if(Rr(i,"Script"))return Bn(i);throw new b(5200,!1);case yt.URL:return Rr(i,"URL")?Bn(i):fu(String(i));case yt.RESOURCE_URL:if(Rr(i,"ResourceURL"))return Bn(i);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(r){return mD(r)}bypassSecurityTrustStyle(r){return gD(r)}bypassSecurityTrustScript(r){return vD(r)}bypassSecurityTrustUrl(r){return yD(r)}bypassSecurityTrustResourceUrl(r){return DD(r)}};t.\u0275fac=function(i){return new(i||t)(M(ge))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Xh=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e}(Xh||{});function WG(...e){let t=[],n=new Set,r=n.has(Xh.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of e)n.add(o),i.length&&t.push(i);return _i([[],H_(),n.has(Xh.NoHttpTransferCache)||r?[]:u0({}),t])}var M0=(()=>{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)(y(_r),y(Q))},t.\u0275dir=H({type:t});let e=t;return e})(),S0=(()=>{let t=class t extends M0{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})(),t.\u0275dir=H({type:t,features:[He]});let e=t;return e})(),ip=new _("");var Cx={provide:ip,useExisting:gr(()=>T0),multi:!0};function Mx(){let e=Er()?Er().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Sx=new _(""),T0=(()=>{let t=class t extends M0{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Mx())}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)(y(_r),y(Q),y(Sx,8))},t.\u0275dir=H({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&&st("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:[ze([Cx]),He]});let e=t;return e})();function Tx(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var A0=new _(""),Ax=new _("");function Ox(e){return Tx(e.value)?{required:!0}:null}function y0(e){return null}function O0(e){return e!=null}function x0(e){return Fr(e)?xe(e):e}function N0(e){let t={};return e.forEach(n=>{t=n!=null?O(O({},t),n):t}),Object.keys(t).length===0?null:t}function P0(e,t){return t.map(n=>n(e))}function xx(e){return!e.validate}function R0(e){return e.map(t=>xx(t)?t:n=>t.validate(n))}function Nx(e){if(!e)return null;let t=e.filter(O0);return t.length==0?null:function(n){return N0(P0(n,t))}}function F0(e){return e!=null?Nx(R0(e)):null}function Px(e){if(!e)return null;let t=e.filter(O0);return t.length==0?null:function(n){let r=P0(n,t).map(x0);return wd(r).pipe(w(N0))}}function L0(e){return e!=null?Px(R0(e)):null}function D0(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Rx(e){return e._rawValidators}function Fx(e){return e._rawAsyncValidators}function ep(e){return e?Array.isArray(e)?e:[e]:[]}function Lu(e,t){return Array.isArray(e)?e.includes(t):e===t}function _0(e,t){let n=ep(t);return ep(e).forEach(i=>{Lu(n,i)||n.push(i)}),n}function E0(e,t){return ep(t).filter(n=>!Lu(e,n))}var ku=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=F0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=L0(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}},tp=class extends ku{get formDirective(){return null}get path(){return null}},Mi=class extends ku{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},np=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)}},Lx={"[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"},u3=je(O({},Lx),{"[class.ng-submitted]":"isSubmitted"}),l3=(()=>{let t=class t extends np{constructor(r){super(r)}};t.\u0275fac=function(i){return new(i||t)(y(Mi,2))},t.\u0275dir=H({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&tt("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:[He]});let e=t;return e})();var Ws="VALID",Fu="INVALID",So="PENDING",qs="DISABLED";function kx(e){return(ju(e)?e.validators:e)||null}function jx(e){return Array.isArray(e)?F0(e):e||null}function Vx(e,t){return(ju(t)?t.asyncValidators:e)||null}function Ux(e){return Array.isArray(e)?L0(e):e||null}function ju(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var rp=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===Ws}get invalid(){return this.status===Fu}get pending(){return this.status==So}get disabled(){return this.status===qs}get enabled(){return this.status!==qs}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(_0(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_0(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(E0(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(E0(t,this._rawAsyncValidators))}hasValidator(t){return Lu(this._rawValidators,t)}hasAsyncValidator(t){return Lu(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=So,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=qs,this.errors=null,this._forEachChild(r=>{r.disable(je(O({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(je(O({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ws,this._forEachChild(r=>{r.enable(je(O({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(je(O({},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===Ws||this.status===So)&&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()?qs:Ws}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=So,this._hasOwnPendingAsyncValidator=!0;let n=x0(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 it,this.statusChanges=new it}_calculateStatus(){return this._allControlsDisabled()?qs:this.errors?Fu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(So)?So:this._anyControlsHaveStatus(Fu)?Fu:Ws}_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){ju(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=jx(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ux(this._rawAsyncValidators)}};var k0=new _("CallSetDisabledState",{providedIn:"root",factory:()=>op}),op="always";function Bx(e,t){return[...t.path,e]}function $x(e,t,n=op){var r,i;zx(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&((i=(r=t.valueAccessor).setDisabledState)==null||i.call(r,e.disabled)),Gx(e,t),qx(e,t),Wx(e,t),Hx(e,t)}function w0(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Hx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function zx(e,t){let n=Rx(e);t.validator!==null?e.setValidators(D0(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Fx(e);t.asyncValidator!==null?e.setAsyncValidators(D0(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();w0(t._rawValidators,i),w0(t._rawAsyncValidators,i)}function Gx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&j0(e,t)})}function Wx(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&j0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function j0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qx(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Yx(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Zx(e){return Object.getPrototypeOf(e.constructor)===S0}function Kx(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===T0?n=o:Zx(o)?r=o:i=o}),i||r||n||null}function b0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function I0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Qx=class extends rp{constructor(t=null,n,r){super(kx(n),Vx(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}),ju(n)&&(n.nonNullable||n.initialValueIsDefault)&&(I0(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){b0(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){b0(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){I0(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 Xx={provide:Mi,useExisting:gr(()=>Vu)},C0=Promise.resolve(),Vu=(()=>{let t=class t extends Mi{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Qx,this._registered=!1,this.name="",this.update=new it,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Kx(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),Yx(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(){$x(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){C0.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&&Vs(i);C0.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?Bx(r,this._parent):[r]}};t.\u0275fac=function(i){return new(i||t)(y(tp,9),y(A0,10),y(Ax,10),y(ip,10),y(Dt,8),y(k0,8))},t.\u0275dir=H({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ze.None,"disabled","isDisabled"],model:[Ze.None,"ngModel","model"],options:[Ze.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ze([Xx]),He,cn]});let e=t;return e})();var Jx={provide:ip,useExisting:gr(()=>eN),multi:!0},eN=(()=>{let t=class t extends S0{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=Fe(t)))(o||t)}})(),t.\u0275dir=H({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&st("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[ze([Jx]),He]});let e=t;return e})();var tN=(()=>{let t=class t{constructor(){this._validator=y0}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):y0,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=H({type:t,features:[cn]});let e=t;return e})();var nN={provide:A0,useExisting:gr(()=>rN),multi:!0};var rN=(()=>{let t=class t extends tN{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Vs,this.createValidator=r=>Ox}enabled(r){return r}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})(),t.\u0275dir=H({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&<("required",o._enabled?"":null)},inputs:{required:"required"},features:[ze([nN]),He]});let e=t;return e})();var iN=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=X({});let e=t;return e})();var f3=(()=>{let t=class t{static withConfig(r){var i;return{ngModule:t,providers:[{provide:k0,useValue:(i=r.callSetDisabledState)!=null?i:op}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=X({imports:[iN]});let e=t;return e})();var he=new _("An abstraction over global window object",{factory:()=>{let{defaultView:e}=v(ge);if(!e)throw new Error("Window is not available");return e}}),Mn=new _("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{let{requestAnimationFrame:e,cancelAnimationFrame:t}=v(he);return new R(r=>{let i=NaN,o=s=>{r.next(s),i=e(o)};return i=e(o),()=>{t(i)}}).pipe(Ht())}}),y3=new _("An abstraction over window.caches object",{factory:()=>v(he).caches}),D3=new _("An abstraction over window.crypto object",{factory:()=>v(he).crypto}),_3=new _("An abstraction over window.CSS object",{factory:()=>v(he).CSS||{escape:e=>e,supports:()=>!1}}),E3=new _("An abstraction over window.history object",{factory:()=>v(he).history}),w3=new _("An abstraction over window.localStorage object",{factory:()=>v(he).localStorage}),b3=new _("An abstraction over window.location object",{factory:()=>v(he).location}),To=new _("An abstraction over window.navigator object",{factory:()=>v(he).navigator}),I3=new _("An abstraction over window.navigator.mediaDevices object",{factory:()=>v(To).mediaDevices}),C3=new _("An abstraction over window.navigator.connection object",{factory:()=>v(To).connection||null}),M3=new _("Shared Observable based on `document visibility changed`",{factory:()=>{let e=v(ge);return Pn(e,"visibilitychange").pipe(we(0),w(()=>e.visibilityState!=="hidden"),Ye(),Kt({refCount:!1,bufferSize:1}))}}),V0=new _("An abstraction over window.performance object",{factory:()=>v(he).performance}),S3=new _("An abstraction over window.screen object",{factory:()=>v(he).screen}),T3=new _("An abstraction over window.sessionStorage object",{factory:()=>v(he).sessionStorage}),A3=new _("An abstraction over SpeechRecognition class",{factory:()=>{let e=v(he);return e.speechRecognition||e.webkitSpeechRecognition||null}}),O3=new _("An abstraction over window.speechSynthesis object",{factory:()=>v(he).speechSynthesis}),sp=new _("An abstraction over window.navigator.userAgent object",{factory:()=>v(To).userAgent});var J=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(J||{}),qn="*";function Ge(e,t){return{type:J.Trigger,name:e,definitions:t,options:{}}}function W(e,t=null){return{type:J.Animate,styles:t,timings:e}}function U0(e,t=null){return{type:J.Sequence,steps:e,options:t}}function E(e){return{type:J.Style,styles:e,offset:null}}function le(e,t,n=null){return{type:J.Transition,expr:e,animation:t,options:n}}function B0(e=null){return{type:J.AnimateChild,options:e}}function dt(e,t,n=null){return{type:J.Query,selector:e,animation:t,options:n}}function _t(e,t){return{type:J.Stagger,timings:e,animation:t}}var kr=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}},Ys=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}},Uu="!";var jr=()=>!1,Ao=()=>!0,F3=79,$0={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},L3=new ys,ap=[],cp=()=>{},H0=Object.assign(Object.assign({},$0),{toJSON(){return $0}}),k3=e=>String(e);function sN(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}var j3=(e,t)=>e===t||sN(e,t),V3=Ge("tuiParentAnimation",[le(":leave",[dt(":scope > *",[B0()],{optional:!0})])]),U3=Ge("tuiParentStop",[le(":enter",[])]),Oo=1e3/15,z0=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,G0="\xA0",B3="\u2013";var W0="3.66.0";var q0="edge/";function H3(e,t){return parseInt(t.slice(t.toLowerCase().indexOf(q0)+q0.length),10)=t&&e=n?n:Math.round(e)}var aN=292;function cN(e,t,n){if(e===1/0)return e;t=Math.min(t,aN);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 Y3(e,t=0){return cN(e,t,Math.round)}function Z0(e,t){return e.slice(0,Math.max(t,0)).concat(e.slice(Math.max(t+1,0)))}function Sn(e){return typeof e=="string"}function Ie(e){return oe(()=>e)}function oe(e){return new _("",{factory:e})}function K0(e){return e<.5?2*e*e:-1+(4-2*e)*e}function Q0(e){return!e}function Si(e){return e!=null}function Q3(e,t,n){return e===null?t===null:t===null?!1:n(e,t)}function uN(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(D));return g.length===4?g:null}function nW(e,t){let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;for(;xo(i)&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Hu(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:Hu(e.parentElement,t)}function rW(e){return hN(e)&&!e.readOnly||!!e.isContentEditable}function iW(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 oW(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 up({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 eE(e){let t=up(e);xo(t)&&t.blur()}function tE(e){if(e.hasAttribute("disabled")||e.getAttribute("tabIndex")==="-1")return!1;if(xo(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 pN(e){return!e.hasAttribute("disabled")&&(e.getAttribute("tabIndex")==="-1"||tE(e))}function uW({initial:e,root:t,previous:n=!1,keyboard:r=!0}){if(!t.ownerDocument)return null;let i=r?tE:pN,o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,z0);for(o.currentNode=e;n?o.previousNode():o.nextNode();)if(xo(o.currentNode)&&(e=o.currentNode),xo(e)&&i(e))return e;return null}function Po(e){return!!(e!=null&&e.ownerDocument)&&up(e.ownerDocument)===e&&e.ownerDocument.hasFocus()}function nE(e){if(!e.ownerDocument||!e.contains)return!1;let t=up(e.ownerDocument);return t!==null&&e.contains(t)&&e.ownerDocument.hasFocus()}function Ro(e){return"".concat(e,"px")}function mN(e){return e.platform.startsWith("Mac")||e.platform==="iPhone"}var gN=/ipad|iphone|ipod/;function lp(e){return gN.test(e.userAgent.toLowerCase())||mN(e)&&e.maxTouchPoints>1}var vN=/^((?!chrome|android).)*safari/i;function rE(e){return lp(e)||vN.test(e.userAgent.toLowerCase())}function yN(){return Math.floor(Math.random()*Date.now())}function DN(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function _N(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 EN(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}}function zu(e,t=yN(),n="rgba(0, 0, 0, 0.7)"){if(Sn(e)){let i=_N(e).reduce((o,s)=>{let a=DN(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 EN(i,n)}return e}var iE=class extends Error{constructor(t){super("")}},oE=class extends Error{constructor(t){super("")}},sE=class extends Error{constructor(t){super("")}},Gu=class extends Error{constructor(){super("")}},Ks=class extends Error{constructor(){super("")}},Qs=class extends Error{constructor(){super("")}};var Wu=class extends Error{constructor(){super("")}};function bW(e){return new R(t=>{if(!e.valueChanges)throw new Wu;return e.valueChanges.pipe(we(e.value)).subscribe(t)})}function ee(e,t,n={}){return Pn(e,t,n)}function wN(e){return Ve(ee(e,"mouseup"),ee(e,"dragend"))}function aE(e=0){return ei(ce(()=>mt(e).pipe(w(jr),we(!0))),Ye())}var dp,fp;function cE(e){let t=ee(e,"blur"),{ownerDocument:n}=e;if(!n)throw new Ks;return(!fp||!dp)&&(dp=ee(n,"mouseup",{capture:!0}).pipe(aE(),we(!1),Kt({bufferSize:1,refCount:!0})),fp=ee(n,"mousedown",{capture:!0}).pipe(aE(),we(!1),Kt({bufferSize:1,refCount:!0}))),Ve($t(ee(e,"focus").pipe(Xe(1)),t.pipe(Ee(()=>!Po(e)),Xe(1),io())).pipe(pc(),cs(fp,dp,(r,i,o)=>i||o),Ee(Q0))).pipe(ce(()=>t.pipe(w(jr),Xe(1),we(!0))),Ye())}function uE(e,t=Boolean){return ei(ce(n=>t(n)?e(n):Oe))}function lE(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 IW(e,{onlyTrusted:t}={onlyTrusted:!0}){let{ownerDocument:n}=e;if(!n)throw new Ks;return ee(e,"mousedown").pipe(Ee(({isTrusted:r})=>r||!t),ce(()=>wN(n).pipe(w(jr),Xe(1),we(!0))))}function bN(){return Ne(e=>e.preventDefault())}function dE(e){return ee(e===e.ownerDocument.documentElement?e.ownerDocument:e,"scroll")}function fE(){return Ne(e=>{e.stopPropagation()})}function hE(e){return Ne(()=>{e.markForCheck()})}function IN(e){return t=>new R(n=>t.subscribe({next:r=>e.run(()=>n.next(r)),error:r=>e.run(()=>n.error(r)),complete:()=>e.run(()=>n.complete())}))}function Yn(e){return t=>new R(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function Zn(e){return ei(Yn(e),IN(e))}var Xs=new _("POLYMORPHEUS_CONTEXT"),Ti=class{constructor(t,n){this.component=t,this.i=n}createInjector(t,n){return qt.create({parent:this.i||t,providers:[{provide:Xs,useValue:n}]})}},pp=(()=>{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)(y(vt,2),y(Dt))},e.\u0275dir=H({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),qu=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 hp(this.content)?this.content.template:this.content instanceof vt?this.content:this.t}ngOnChanges({content:n}){var r;let i=this.getContext();if((r=this.c)===null||r===void 0||r.injector.get(Dt).markForCheck(),!n)return;this.vcr.clear();let o=i&&new Proxy(i,{get:(s,a)=>{var c;return(c=this.getContext())===null||c===void 0?void 0:c[a]}});pE(this.content)?this.process(this.content,o):(i instanceof qu&&i.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,o)}ngDoCheck(){hp(this.content)&&this.content.check()}static ngTemplateContextGuard(n,r){return!0}getContext(){return CN(this.content)||pE(this.content)?this.context:new qu(typeof this.content=="function"?this.content(this.context):this.content)}process(n,r){let i=n.createInjector(this.i,r);this.c=this.vcr.createComponent(i.get($n).resolveComponentFactory(n.component),0,i)}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(qt),y(vt))},e.\u0275dir=H({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[Ze.None,"polymorpheusOutlet","content"],context:[Ze.None,"polymorpheusOutletContext","context"]},features:[cn]}),e})();function hp(e){return e instanceof pp}function pE(e){return e instanceof Ti}function CN(e){return hp(e)||e instanceof vt}var Br=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function mp(e,t={}){let{selector:n}=t,r=Wg(t,["selector"]);return new R(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?Z(n(d)).subscribe(x(i,void 0,()=>{a=!1,i.complete()},l)):(a=!1,i.next(d),i.complete())}).catch(l),()=>{a&&o.abort()}})}function mE(e){return new b(3e3,!1)}function MN(){return new b(3100,!1)}function SN(){return new b(3101,!1)}function TN(e){return new b(3001,!1)}function AN(e){return new b(3003,!1)}function ON(e){return new b(3004,!1)}function xN(e,t){return new b(3005,!1)}function NN(){return new b(3006,!1)}function PN(){return new b(3007,!1)}function RN(e,t){return new b(3008,!1)}function FN(e){return new b(3002,!1)}function LN(e,t,n,r,i){return new b(3010,!1)}function kN(){return new b(3011,!1)}function jN(){return new b(3012,!1)}function VN(){return new b(3200,!1)}function UN(){return new b(3202,!1)}function BN(){return new b(3013,!1)}function $N(e){return new b(3014,!1)}function HN(e){return new b(3015,!1)}function zN(e){return new b(3016,!1)}function GN(e,t){return new b(3404,!1)}function WN(e){return new b(3502,!1)}function qN(e){return new b(3503,!1)}function YN(){return new b(3300,!1)}function ZN(e){return new b(3504,!1)}function KN(e){return new b(3301,!1)}function QN(e,t){return new b(3302,!1)}function XN(e){return new b(3303,!1)}function JN(e,t){return new b(3400,!1)}function eP(e){return new b(3401,!1)}function tP(e){return new b(3402,!1)}function nP(e,t){return new b(3505,!1)}function $r(e){switch(e.length){case 0:return new kr;case 1:return e[0];default:return new Ys(e)}}function PE(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 g=p,D=f;if(p!=="offset")switch(g=e.normalizePropertyName(g,i),D){case Uu:D=n.get(p);break;case qn:D=r.get(p);break;default:D=e.normalizeStyleValue(p,g,D,i);break}d.set(g,D)}),l||o.push(d),a=d,s=u}),i.length)throw WN(i);return o}function Vp(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&gp(n,"start",e)));break;case"done":e.onDone(()=>r(n&&gp(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&gp(n,"destroy",e)));break}}function gp(e,t,n){let r=n.totalTime,i=!!n.disabled,o=Up(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 Up(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function rn(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function gE(e){let t=e.indexOf(":"),n=e.substring(1,t),r=e.slice(t+1);return[n,r]}var rP=typeof document>"u"?null:document.documentElement;function Bp(e){let t=e.parentNode||e.host||null;return t===rP?null:t}function iP(e){return e.substring(1,6)=="ebkit"}var Ai=null,vE=!1;function oP(e){Ai||(Ai=sP()||{},vE=Ai.style?"WebkitAppearance"in Ai.style:!1);let t=!0;return Ai.style&&!iP(e)&&(t=e in Ai.style,!t&&vE&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Ai.style)),t}function sP(){return typeof document<"u"?document.body:null}function RE(e,t){for(;t;){if(t===e)return!0;t=Bp(t)}return!1}function FE(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let r=e.querySelector(t);return r?[r]:[]}var aP=(()=>{let t=class t{validateStyleProperty(r){return oP(r)}matchesElement(r,i){return!1}containsElement(r,i){return RE(r,i)}getParentElement(r){return Bp(r)}query(r,i,o){return FE(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,c=[],u){return new kr(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),Gp=class Gp{};Gp.NOOP=new aP;var yE=Gp,wp=class{};var cP=1e3,LE="{{",uP="}}",kE="ng-enter",bp="ng-leave",Zu="ng-trigger",el=".ng-trigger",DE="ng-animating",Ip=".ng-animating";function br(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Cp(parseFloat(t[1]),t[2])}function Cp(e,t){switch(t){case"s":return e*cP;default:return e}}function tl(e,t,n){return e.hasOwnProperty("duration")?e:lP(e,t,n)}function lP(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(mE(e)),{duration:0,delay:0,easing:""};i=Cp(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Cp(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(MN()),a=!0),o<0&&(t.push(SN()),a=!0),a&&t.splice(c,0,mE(e))}return{duration:i,delay:o,easing:s}}function dP(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function Kn(e,t,n){t.forEach((r,i)=>{let o=$p(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function xi(e,t){t.forEach((n,r)=>{let i=$p(r);e.style[i]=""})}function Js(e){return Array.isArray(e)?e.length==1?e[0]:U0(e):e}function fP(e,t,n){let r=t.params||{},i=jE(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(TN(o))})}var Mp=new RegExp("".concat(LE,"\\s*(.+?)\\s*").concat(uP),"g");function jE(e){let t=[];if(typeof e=="string"){let n;for(;n=Mp.exec(e);)t.push(n[1]);Mp.lastIndex=0}return t}function ta(e,t,n){let r="".concat(e),i=r.replace(Mp,(o,s)=>{let a=t[s];return a==null&&(n.push(AN(s)),a=""),a.toString()});return i==r?e:i}var hP=/-+([a-z0-9])/g;function $p(e){return e.replace(hP,(...t)=>t[1].toUpperCase())}function pP(e,t){return e===0||t===0}function mP(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,Hp(e,a)))}}return t}function nn(e,t,n){switch(t.type){case J.Trigger:return e.visitTrigger(t,n);case J.State:return e.visitState(t,n);case J.Transition:return e.visitTransition(t,n);case J.Sequence:return e.visitSequence(t,n);case J.Group:return e.visitGroup(t,n);case J.Animate:return e.visitAnimate(t,n);case J.Keyframes:return e.visitKeyframes(t,n);case J.Style:return e.visitStyle(t,n);case J.Reference:return e.visitReference(t,n);case J.AnimateChild:return e.visitAnimateChild(t,n);case J.AnimateRef:return e.visitAnimateRef(t,n);case J.Query:return e.visitQuery(t,n);case J.Stagger:return e.visitStagger(t,n);default:throw ON(t.type)}}function Hp(e,t){return window.getComputedStyle(e)[t]}var gP=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 wp{normalizePropertyName(t,n){return $p(t)}normalizeStyleValue(t,n,r,i){let o="",s=r.toString().trim();if(gP.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(xN(t,r))}return s+o}};var nl="*";function vP(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(r=>yP(r,n,t)):n.push(e),n}function yP(e,t,n){if(e[0]==":"){let c=DP(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(HN(e)),t;let i=r[1],o=r[2],s=r[3];t.push(EE(i,s));let a=i==nl&&s==nl;o[0]=="<"&&!a&&t.push(EE(s,i))}function DP(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 Ku=new Set(["true","1"]),Qu=new Set(["false","0"]);function EE(e,t){let n=Ku.has(e)||Qu.has(e),r=Ku.has(t)||Qu.has(t);return(i,o)=>{let s=e==nl||e==i,a=t==nl||t==o;return!s&&n&&typeof i=="boolean"&&(s=i?Ku.has(e):Qu.has(e)),!a&&r&&typeof o=="boolean"&&(a=o?Ku.has(t):Qu.has(t)),s&&a}}var VE=":self",_P=new RegExp("s*".concat(VE,"s*,?"),"g");function UE(e,t,n,r){return new Sp(e).build(t,n,r)}var wE="",Sp=class{constructor(t){this._driver=t}build(t,n,r){let i=new Tp(n);return this._resetContextStyleTimingState(i),nn(this,Js(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=wE,t.collectedStyles=new Map,t.collectedStyles.set(wE,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(NN()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==J.State){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==J.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(PN())}),{type:J.Trigger,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||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{jE(c).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&n.errors.push(RN(t.name,[...o.values()]))}return{type:J.State,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;let r=nn(this,Js(t.animation),n),i=vP(t.expr,n.errors);return{type:J.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Oi(t.options)}}visitSequence(t,n){return{type:J.Sequence,steps:t.steps.map(r=>nn(this,r,n)),options:Oi(t.options)}}visitGroup(t,n){let r=n.currentTime,i=0,o=t.steps.map(s=>{n.currentTime=r;let a=nn(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:J.Group,steps:o,options:Oi(t.options)}}visitAnimate(t,n){let r=IP(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:E({});if(o.type==J.Keyframes)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=E(u)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:J.Animate,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===qn?r.push(a):n.errors.push(FN(a)):r.push(new Map(Object.entries(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(LE)>=0){o=!0;break}}}),{type:J.Style,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(LN(c,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&u.set(c,{startTime:o,endTime:i}),n.options&&fP(a,n.options,n.errors)})})}visitKeyframes(t,n){let r={type:J.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(kN()),r;let i=1,o=0,s=[],a=!1,c=!1,u=0,l=t.steps.map(T=>{let z=this._makeStyleAst(T,n),q=z.offset!=null?z.offset:bP(z.styles),fe=0;return q!=null&&(o++,fe=z.offset=q),c=c||fe<0||fe>1,a=a||fe0&&o{let q=f>0?z==p?1:f*z:s[z],fe=q*S;n.currentTime=g+D.delay+fe,D.duration=fe,this._validateStyleAst(T,n),T.offset=q,r.styles.push(T)}),r}visitReference(t,n){return{type:J.Reference,animation:nn(this,Js(t.animation),n),options:Oi(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:J.AnimateChild,options:Oi(t.options)}}visitAnimateRef(t,n){return{type:J.AnimateRef,animation:this.visitReference(t.animation,n),options:Oi(t.options)}}visitQuery(t,n){let r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;let[o,s]=EP(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,rn(n.collectedStyles,n.currentQuerySelector,new Map);let a=nn(this,Js(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:J.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Oi(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(BN());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:tl(t.timings,n.errors,!0);return{type:J.Stagger,animation:nn(this,Js(t.animation),n),timings:r,options:null}}};function EP(e){let t=!!e.split(/\s*,\s*/).find(n=>n==VE);return t&&(e=e.replace(_P,"")),e=e.replace(/@\*/g,el).replace(/@\w+/g,n=>el+"-"+n.slice(1)).replace(/:animating/g,Ip),[e,t]}function wP(e){return e?O({},e):null}var Tp=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 bP(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 IP(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=tl(e,t).duration;return vp(o,0,"")}let n=e;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=vp(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=tl(n,t);return vp(i.duration,i.delay,i.easing)}function Oi(e){return e?(e=O({},e),e.params&&(e.params=wP(e.params))):e={},e}function vp(e,t,n){return{duration:e,delay:t,easing:n}}function zp(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 na=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()}},CP=1,MP=":enter",SP=new RegExp(MP,"g"),TP=":leave",AP=new RegExp(TP,"g");function BE(e,t,n,r,i,o=new Map,s=new Map,a,c,u=[]){return new Ap().buildKeyframes(e,t,n,r,i,o,s,a,c,u)}var Ap=class{buildKeyframes(t,n,r,i,o,s,a,c,u,l=[]){u=u||new na;let d=new Op(t,n,u,i,o,l,[]);d.options=c;let f=c.delay?br(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),nn(this,r,d);let p=d.timelines.filter(g=>g.containsAnimation());if(p.length&&a.size){let g;for(let D=p.length-1;D>=0;D--){let S=p[D];if(S.element===n){g=S;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([a],null,d.errors,c)}return p.length?p.map(g=>g.buildKeyframes()):[zp(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:br(ta(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?br(r.duration):null,a=r.delay!=null?br(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),nn(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==J.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=rl);let s=br(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>nn(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?br(t.options.delay):0;t.steps.forEach(s=>{let a=n.createSubContext(t.options);o&&a.delayNextStep(o),nn(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?ta(r,n.params,n.errors):r;return tl(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==J.Keyframes?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?br(i.delay):0;o&&(n.previousNode.type===J.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=rl);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),nn(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;nn(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},rl={},Op=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=rl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new il(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=br(r.duration)),r.delay!=null&&(i.delay=br(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]=ta(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=rl,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 xp(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(SP,"."+this._enterClassName),t=t.replace(AP,"."+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($N(n)),a}},il=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+=CP,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||qn),this._currentKeyframe.set(n,qn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){var a;n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=OP(t,this._globalTimelineStyles);for(let[c,u]of s){let l=ta(u,o,r);this._pendingStyles.set(c,l),this._localTimelineStyles.has(c)||this._backFill.set(c,(a=this._globalTimelineStyles.get(c))!=null?a:qn),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=new Map([...this._backFill,...a]);u.forEach((l,d)=>{l===Uu?t.add(d):l===qn&&n.add(d)}),r||u.set("offset",c/this.duration),i.push(u)});let o=[...t.values()],s=[...n.values()];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return zp(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},xp=class extends il{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=new Map(t[0]);c.set("offset",0),o.push(c);let u=new Map(t[0]);u.set("offset",bE(a)),o.push(u);let l=t.length-1;for(let d=1;d<=l;d++){let f=new Map(t[d]),p=f.get("offset"),g=n+p*r;f.set("offset",bE(g/s)),o.push(f)}r=s,n=0,i="",t=o}return zp(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function bE(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function OP(e,t){let n=new Map,r;return e.forEach(i=>{if(i==="*"){r!=null||(r=t.keys());for(let o of r)n.set(o,qn)}else for(let[o,s]of i)n.set(o,s)}),n}function IE(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 yp={},ol=class{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return xP(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 wt;let d=[],f=this.ast.options&&this.ast.options.params||yp,p=a&&a.params||yp,g=this.buildStyles(r,p,d),D=c&&c.params||yp,S=this.buildStyles(i,D,d),T=new Set,z=new Map,q=new Map,fe=i==="void",Te={params:$E(D,f),delay:(wt=this.ast.options)==null?void 0:wt.delay},Be=l?[]:BE(t,n,this.ast.animation,o,s,g,S,Te,u,d),P=0;return Be.forEach(at=>{P=Math.max(at.duration+at.delay,P)}),d.length?IE(n,this._triggerName,r,i,fe,g,S,[],[],z,q,P,d):(Be.forEach(at=>{let bt=at.element,Ko=rn(z,bt,new Set);at.preStyleProps.forEach(mn=>Ko.add(mn));let Jn=rn(q,bt,new Set);at.postStyleProps.forEach(mn=>Jn.add(mn)),bt!==n&&T.add(bt)}),IE(n,this._triggerName,r,i,fe,g,S,Be,[...T.values()],z,q,P))}};function xP(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}function $E(e,t){let n=O({},t);return Object.entries(e).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var Np=class{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){let r=new Map,i=$E(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=ta(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function NP(e,t,n){return new Pp(e,t,n)}var Pp=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 Np(i.style,o,r))}),CE(this.states,"true","1"),CE(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new ol(t,i,this.states))}),this.fallbackTransition=PP(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 PP(e,t,n){let r=[(s,a)=>!0],i={type:J.Sequence,steps:[],options:null},o={type:J.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new ol(e,o,t)}function CE(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 RP=new na,Rp=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=UE(this._driver,n,r,i);if(r.length)throw qN(r);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,n,r){let i=t.element,o=PE(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=BE(this._driver,n,o,kE,bp,new Map,new Map,r,RP,i),s.forEach(l=>{let d=rn(a,l.element,new Map);l.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(YN()),s=[]),i.length)throw ZN(i);a.forEach((l,d)=>{l.forEach((f,p)=>{l.set(p,this._driver.computeStyle(d,p,qn))})});let c=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),u=$r(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 KN(t);return n}listen(t,n,r,i){let o=Up(n,"","","");return Vp(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}}},ME="ng-animate-queued",FP=".ng-animate-queued",Dp="ng-animate-disabled",LP=".ng-animate-disabled",kP="ng-star-inserted",jP=".ng-star-inserted",VP=[],HE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},UP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Tn="__ng_removed",ra=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=$P(i),r){let o=t,{value:s}=o,a=Ua(o,["value"]);this.options=a}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])})}}},ea="void",_p=new ra(ea),Fp=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,fn(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw QN(r,n);if(r==null||r.length==0)throw XN(n);if(!HP(r))throw JN(r,n);let o=rn(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);let a=rn(this._engine.statesByElement,t,new Map);return a.has(n)||(fn(t,Zu),fn(t,Zu+"-"+n),a.set(n,_p)),()=>{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 eP(t);return n}trigger(t,n,r,i=!0){let o=this._getTrigger(n),s=new ia(this.id,n,t),a=this._engine.statesByElement.get(t);a||(fn(t,Zu),fn(t,Zu+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n),u=new ra(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),a.set(n,u),c||(c=_p),!(u.value===ea)&&c.value===u.value){if(!WP(c.params,u.params)){let D=[],S=o.matchStyles(c.value,c.params,D),T=o.matchStyles(u.value,u.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{xi(t,S),Kn(t,T)})}return}let f=rn(this._engine.playersByElement,t,[]);f.forEach(D=>{D.namespaceId==this.id&&D.triggerName==n&&D.queued&&D.destroy()});let p=o.matchTransition(c.value,u.value,t,u.params),g=!1;if(!p){if(!i)return;p=o.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:p,fromState:c,toState:u,player:s,isFallbackTransition:g}),g||(fn(t,ME),s.onStart(()=>{Fo(t,ME)})),s.onDone(()=>{let D=this.players.indexOf(s);D>=0&&this.players.splice(D,1);let S=this._engine.playersByElement.get(t);if(S){let T=S.indexOf(s);T>=0&&S.splice(T,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,el,!0);r.forEach(i=>{if(i[Tn])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,ea,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&$r(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)||_p,l=new ra(ea),d=new ia(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[Tn];(!o||o===HE)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){fn(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=Up(o,r.triggerName,r.fromState.value,r.toState.value);c._data=t,Vp(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)}},Lp=class{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r,i){this.bodyNode=t,this.driver=n,this._normalizer=r,this.scheduler=i,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=(o,s)=>{}}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 Fp(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(Xu(n)){let o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!Xu(n))return;let o=n[Tn];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),fn(t,Dp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Fo(t,Dp))}removeNode(t,n,r){var i;if(Xu(n)){(i=this.scheduler)==null||i.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);let s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[Tn]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return Xu(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,el,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(t,Ip,!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 $r(this.players).onDone(()=>t());t()})}processLeaveNode(t){var r;let n=t[Tn];if(n&&n.setForRemoval){if(t[Tn]=HE,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(Dp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,LP,!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?$r(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw tP(t)}_flushAnimations(t,n){let r=new na,i=[],o=new Map,s=[],a=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(N=>{l.add(N);let L=this.driver.query(N,FP,!0);for(let U=0;U{let U=kE+D++;g.set(L,U),N.forEach(ae=>fn(ae,U))});let S=[],T=new Set,z=new Set;for(let N=0;NT.add(ae)):z.add(L))}let q=new Map,fe=AE(f,Array.from(T));fe.forEach((N,L)=>{let U=bp+D++;q.set(L,U),N.forEach(ae=>fn(ae,U))}),t.push(()=>{p.forEach((N,L)=>{let U=g.get(L);N.forEach(ae=>Fo(ae,U))}),fe.forEach((N,L)=>{let U=q.get(L);N.forEach(ae=>Fo(ae,U))}),S.forEach(N=>{this.processLeaveNode(N)})});let Te=[],Be=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(n).forEach(U=>{let ae=U.player,We=U.element;if(Te.push(ae),this.collectedEnterElements.length){let ct=We[Tn];if(ct&&ct.setForMove){if(ct.previousTriggersValues&&ct.previousTriggersValues.has(U.triggerName)){let er=ct.previousTriggersValues.get(U.triggerName),jt=this.statesByElement.get(U.element);if(jt&&jt.has(U.triggerName)){let qr=jt.get(U.triggerName);qr.value=er,jt.set(U.triggerName,qr)}}ae.destroy();return}}let St=!d||!this.driver.containsElement(d,We),Tt=q.get(We),An=g.get(We),$e=this._buildInstruction(U,r,An,Tt,St);if($e.errors&&$e.errors.length){Be.push($e);return}if(St){ae.onStart(()=>xi(We,$e.fromStyles)),ae.onDestroy(()=>Kn(We,$e.toStyles)),i.push(ae);return}if(U.isFallbackTransition){ae.onStart(()=>xi(We,$e.fromStyles)),ae.onDestroy(()=>Kn(We,$e.toStyles)),i.push(ae);return}let Na=[];$e.timelines.forEach(ct=>{ct.stretchStartingKeyframe=!0,this.disabledNodes.has(ct.element)||Na.push(ct)}),$e.timelines=Na,r.append(We,$e.timelines);let $l={instruction:$e,player:ae,element:We};s.push($l),$e.queriedElements.forEach(ct=>rn(a,ct,[]).push(ae)),$e.preStyleProps.forEach((ct,er)=>{if(ct.size){let jt=c.get(er);jt||c.set(er,jt=new Set),ct.forEach((qr,Vi)=>jt.add(Vi))}}),$e.postStyleProps.forEach((ct,er)=>{let jt=u.get(er);jt||u.set(er,jt=new Set),ct.forEach((qr,Vi)=>jt.add(Vi))})});if(Be.length){let N=[];Be.forEach(L=>{N.push(nP(L.triggerName,L.errors))}),Te.forEach(L=>L.destroy()),this.reportError(N)}let P=new Map,wt=new Map;s.forEach(N=>{let L=N.element;r.has(L)&&(wt.set(L,L),this._beforeAnimationBuild(N.player.namespaceId,N.instruction,P))}),i.forEach(N=>{let L=N.element;this._getPreviousPlayers(L,!1,N.namespaceId,N.triggerName,null).forEach(ae=>{rn(P,L,[]).push(ae),ae.destroy()})});let at=S.filter(N=>OE(N,c,u)),bt=new Map;TE(bt,this.driver,z,u,qn).forEach(N=>{OE(N,c,u)&&at.push(N)});let Jn=new Map;p.forEach((N,L)=>{TE(Jn,this.driver,new Set(N),c,Uu)}),at.forEach(N=>{var ae,We;let L=bt.get(N),U=Jn.get(N);bt.set(N,new Map([...(ae=L==null?void 0:L.entries())!=null?ae:[],...(We=U==null?void 0:U.entries())!=null?We:[]]))});let mn=[],xa=[],ji={};s.forEach(N=>{let{element:L,player:U,instruction:ae}=N;if(r.has(L)){if(l.has(L)){U.onDestroy(()=>Kn(L,ae.toStyles)),U.disabled=!0,U.overrideTotalTime(ae.totalTime),i.push(U);return}let We=ji;if(wt.size>1){let Tt=L,An=[];for(;Tt=Tt.parentNode;){let $e=wt.get(Tt);if($e){We=$e;break}An.push(Tt)}An.forEach($e=>wt.set($e,We))}let St=this._buildAnimation(U.namespaceId,ae,P,o,Jn,bt);if(U.setRealPlayer(St),We===ji)mn.push(U);else{let Tt=this.playersByElement.get(We);Tt&&Tt.length&&(U.parentPlayer=$r(Tt)),i.push(U)}}else xi(L,ae.fromStyles),U.onDestroy(()=>Kn(L,ae.toStyles)),xa.push(U),l.has(L)&&i.push(U)}),xa.forEach(N=>{let L=o.get(N.element);if(L&&L.length){let U=$r(L);N.setRealPlayer(U)}}),i.forEach(N=>{N.parentPlayer?N.syncPlayerEvents(N.parentPlayer):N.destroy()});for(let N=0;N!St.destroyed);We.length?zP(this,L,We):this.processLeaveNode(L)}return S.length=0,mn.forEach(N=>{this.players.push(N),N.onDone(()=>{N.destroy();let L=this.players.indexOf(N);this.players.splice(L,1)}),N.play()}),mn}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==ea;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=rn(r,u,[]);this._getPreviousPlayers(u,l,s,a,n.toState).forEach(p=>{let g=p.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),p.destroy(),d.push(p)})}xi(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(g=>{let D=g.element;l.add(D);let S=D[Tn];if(S&&S.removedBeforeQueried)return new kr(g.duration,g.delay);let T=D!==c,z=GP((r.get(D)||VP).map(P=>P.getRealPlayer())).filter(P=>{let wt=P;return wt.element?wt.element===D:!1}),q=o.get(D),fe=s.get(D),Te=PE(this._normalizer,g.keyframes,q,fe),Be=this._buildPlayer(g,Te,z);if(g.subTimeline&&i&&d.add(D),T){let P=new ia(t,a,D);P.setRealPlayer(Be),u.push(P)}return Be});u.forEach(g=>{rn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>BP(this.playersByQueriedElement,g.element,g))}),l.forEach(g=>fn(g,DE));let p=$r(f);return p.onDestroy(()=>{l.forEach(g=>Fo(g,DE)),Kn(c,n.toStyles)}),d.forEach(g=>{rn(i,g,[]).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 kr(t.duration,t.delay)}},ia=class{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new kr,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=>Vp(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){rn(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 BP(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 $P(e){return e!=null?e:null}function Xu(e){return e&&e.nodeType===1}function HP(e){return e=="start"||e=="done"}function SE(e,t){let n=e.style.display;return e.style.display=t!=null?t:"none",n}function TE(e,t,n,r,i){let o=[];n.forEach(c=>o.push(SE(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[Tn]=UP,s.push(u))}),e.set(u,l)});let a=0;return n.forEach(c=>SE(c,o[a++])),s}function AE(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 fn(e,t){var n;(n=e.classList)==null||n.add(t)}function Fo(e,t){var n;(n=e.classList)==null||n.remove(t)}function zP(e,t,n){$r(n).onDone(()=>e.processLeaveNode(t))}function GP(e){let t=[];return zE(e,t),t}function zE(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}var sl=class{constructor(t,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Lp(t.body,n,r,i),this._timelineEngine=new Rp(t.body,n,r),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(t,n,r,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let c=[],u=[],l=UE(this._driver,o,c,u);if(c.length)throw GN(i,c);u.length&&void 0,a=NP(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]=gE(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]=gE(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 qP(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Ep(t[0]),t.length>1&&(r=Ep(t[t.length-1]))):t instanceof Map&&(n=Ep(t)),n||r?new kp(e,n,r):null}var Lo=class Lo{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=Lo.initialStylesByElement.get(t);i||Lo.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Kn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kn(this._element,this._initialStyles),this._endStyles&&(Kn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Lo.initialStylesByElement.delete(this._element),this._startStyles&&(xi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xi(this._element,this._endStyles),this._endStyles=null),Kn(this._element,this._initialStyles),this._state=3)}};Lo.initialStylesByElement=new WeakMap;var kp=Lo;function Ep(e){let t=null;return e.forEach((n,r)=>{YP(r)&&(t=t||new Map,t.set(r,n))}),t}function YP(e){return e==="display"||e==="position"}var al=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:Hp(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let n=t==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},xE=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return RE(t,n)}getParentElement(t){return Bp(t)}query(t,n,r){return FE(t,n,r)}computeStyle(t,n,r){return Hp(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 al);pP(r,i)&&l.forEach(p=>{p.currentSnapshot.forEach((g,D)=>u.set(D,g))});let d=dP(n).map(p=>new Map(p));d=mP(t,d,u);let f=qP(t,d);return new al(t,d,c,f)}};var Ju="@",GE="@.disabled",cl=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)==Ju&&n==GE?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)}},jp=class extends cl{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){n.charAt(0)==Ju?n.charAt(1)=="."&&n==GE?(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)==Ju){let i=ZP(t),o=n.slice(1),s="";return o.charAt(0)!=Ju&&([o,s]=KP(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 ZP(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function KP(e){let t=e.indexOf("."),n=e.substring(0,t),r=e.slice(t+1);return[n,r]}var NE=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 cl(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 jp(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 QP=oe(()=>{let e={onRemovalComplete:()=>{}},t=new qe(null),n=v(sl,ue.Optional)||e,{onRemovalComplete:r=e.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{t.next(i),r.call(n,i,o)},t.pipe(ce(i=>mt(0).pipe(w(()=>null),we(i))),Ht())});function WE(e,t=null){return No(e).activeElement!==e&&!e.matches(":disabled")&&!(t!=null&&t.contains(e))}function XP(e){return Ve(ee(e,"focusin").pipe(w(({target:t})=>t)),ee(e,"focusout").pipe(Ee(({target:t,relatedTarget:n})=>!!n&&WE(t)),w(({relatedTarget:t})=>t)))}var qE=oe(()=>{let e=v(QP),t=v(he),n=v(ge),r=ee(t,"focusout"),i=ee(t,"focusin"),o=ee(t,"blur"),s=ee(t,"mousedown"),a=ee(t,"mouseup");return Ve(r.pipe(Me(s),Md(()=>a),cs(e),Ee(([c,u])=>WE(Vr(c),u)),w(([{relatedTarget:c}])=>c)),o.pipe(w(()=>n.activeElement),Ee(c=>!!(c!=null&&c.matches("iframe")))),i.pipe(ce(c=>{let u=Vr(c),l=No(u);return l===n?A(u):XP(l).pipe(we(u))})),s.pipe(ce(c=>{let u=Vr(c);return!n.activeElement||n.activeElement===n.body?A(u):r.pipe(Xe(1),w(()=>u),Me(mt(0)))}))).pipe(Ye(),Ht())}),YE=Ie([]);var ZE=oe(()=>{var e,t;return(t=(e=v(ge).querySelector("base"))===null||e===void 0?void 0:e.href)!==null&&t!==void 0?t:""}),QW=oe(()=>v(pi).createRenderer(null,null)),JP=Ie([]);function KE(e){return{provide:JP,multi:!0,useExisting:e}}var XW=oe(()=>{var e;let t=(e=v(ge).querySelector("base"))===null||e===void 0?void 0:e.href;if(t)return t;let n=v(ge).createElement("a");return n.href="",n.pathname}),oa=new _("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function ul(e){return{provide:oa,useExisting:e}}var JW=new _("[TUI_FONTS_READY]",{factory:()=>{var e;return xe(((e=v(ge).fonts)===null||e===void 0?void 0:e.ready)||Oe).pipe(Kt({bufferSize:1,refCount:!1}))}}),sa=oe(()=>lp(v(To))),eR=/(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/,tR=/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-/,Wp=oe(()=>eR.test(v(sp).toLowerCase())||tR.test(v(sp).slice(0,4).toLowerCase())),e4=oe(()=>v(Wp)&&!v(sa)),t4=oe(()=>rE(v(To))),n4=oe(()=>!!v(he).chrome),nR=oe(()=>!!v(he).Cypress),rR=oe(jr),r4=oe(()=>v(nR)||v(rR)),i4=oe(()=>{var e;return typeof((e=v(he))===null||e===void 0?void 0:e.mozCancelFullScreen)<"u"}),o4=oe(()=>v(he).location.host.endsWith("stackblitz.io")),QE=oe(()=>{var e;return!!(!((e=v(he))===null||e===void 0)&&e.webkitConvertPointFromNodeToPage)}),s4=Ie("web");var a4=oe(()=>e0(v(tn))?new Range:{}),aa=oe(()=>new Q(v(ge).documentElement)),c4=Ie({timeout:500,threshold:30}),u4=oe(Ao),l4=oe(()=>v(he).matchMedia("(any-pointer: coarse)").matches),qp=new _("[TUI_WINDOW_SIZE]",{factory:()=>{let e=v(he);return ee(e,"resize").pipe(we(null),w(()=>{var t,n;let r=Math.max(e.document.documentElement.clientWidth||0,e.innerWidth||0,((t=e.visualViewport)===null||t===void 0?void 0:t.width)||0),i=Math.max(e.document.documentElement.clientHeight||0,e.innerHeight||0,((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}}),Kt({bufferSize:1,refCount:!0}))}}),d4=oe(()=>v(qp).pipe(w(({height:e})=>e))),f4=Ie({wheelSensitivity:.01});var Ke=(()=>{class e extends or{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),x4=(()=>{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))}ngOnDestroy(){this.map.forEach(n=>n.destroy())}}return e.\u0275fac=function(n){return new(n||e)(M($n),M(wo))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Yp=(()=>{class e extends R{constructor({nativeElement:n},r,i){super(o=>this.focusVisible$.subscribe(o)),this.focusVisible$=cE(n).pipe(hE(r),Me(i))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(Dt),M(Ke,2))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),iR="tui_",JE=(()=>{class e{generate(){return"".concat(iR).concat(e.autoId++).concat(Date.now())}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),oR=(()=>{class e extends R{constructor(n,r){super(i=>this.callback$.subscribe(i)),this.callback$=Nn(()=>{let{nativeElement:i}=n,o=[r,i];for(;i.parentElement;)i=i.parentElement,o.push(i);return Ve(...o.map(s=>ee(s,"scroll")))})}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(he))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),N4=(()=>{class e extends R{constructor(n,{nativeElement:r},i,o,s,a){super(c=>this.obscured$.subscribe(c)),this.obscured$=Ve(Ve(n,Pn(o,"resize")).pipe(ss(0)),a.pipe(Sr(Oo))).pipe(w(()=>$u(r)),we(null),Ye(),Zn(i),Me(s))}}return e.\u0275fac=function(n){return new(n||e)(M(oR,2),M(Q),M(de),M(he),M(Ke,2),M(Mn))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var sR=300;function XE(e){return"scrollX"in e?e.scrollX:e.scrollLeft}function aR(e){return"scrollY"in e?e.scrollY:e.scrollTop}var P4=(()=>{class e{constructor(n,r){this.performanceRef=n,this.animationFrame$=r}scroll$(n,r,i=XE(n),o=sR){let s=aR(n),a=XE(n),c=r-s,u=i-a;return(o?Nn(()=>A(this.performanceRef.now())).pipe(ce(d=>this.animationFrame$.pipe(w(f=>f-d))),w(d=>K0(wr(d/o,0,1))),w(d=>[s+c*d,a+u*d]),Me(mt(o)),as([r,i])):A([r,i])).pipe(Ne(([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)(M(V0),M(Mn))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ew=(()=>{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||Bs(this.platformId)?mp(n):Nn(()=>xe(fetch(n)))).pipe(ce(s=>Xa(this,void 0,void 0,function*(){if(s.ok)return s.text();throw new Error("Failed to load ".concat(n," (").concat(s.statusText,")"))})),Kt({bufferSize:1,refCount:!1}));return this.cache.set(n,o),o}}return e.\u0275fac=function(n){return new(n||e)(M(he),M(tn))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var cR=["viewContainer"],uR="tui_interactive_",Kp=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new it,this.focusVisibleChange=new it,this.focusVisible=!1,this.autoIdString="".concat(uR).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=H({type:e,hostVars:7,hostBindings:function(n,r){n&2&&(lt("data-focused",r.pseudoFocus),tt("_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})(),Zp=class{},ca=(()=>{class e extends Kp{constructor(n,r,i){super(),this.ngControl=n,this.cdr=r,this.valueTransformer=i,this.refresh$=new Ae,this.onTouched=cp,this.onChange=cp,this.fallbackValue=this.getFallbackValue(),this.destroy$=new Ae,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 Vu&&this.previousInternalValue===void 0?n.viewModel:n.value;return this.fromControlValue(r)}ngOnInit(){this.refresh$.pipe(ss(0),we(null),w(()=>{var n;return(n=this.ngControl)===null||n===void 0?void 0:n.control}),Ee(Si),Ye(),ce(n=>Ve(n.valueChanges,n.statusChanges)),Me(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 Vu&&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)(y(Mi,8),y(Dt),y(Zp,8))},e.\u0275dir=H({type:e,hostVars:4,hostBindings:function(n,r){n&2&&tt("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[He]}),e})();function Q4(e){return{provide:ca,useExisting:e}}var tw=(()=>{class e{constructor(){this.change$=new Ae}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,features:[cn]}),e})(),ll=(()=>{class e extends R{constructor(n){super(r=>this.dialogs$.subscribe(r)),this.idService=n,this.dialogs$=new qe([])}open(n,r={}){return new R(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)(M(JE))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var X4=(()=>{class e extends ca{clear(){this.value=[]}getFallbackValue(){return[]}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275dir=H({type:e,features:[He]}),e})(),J4=(()=>{class e extends ca{getFallbackValue(){return null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275dir=H({type:e,features:[He]}),e})(),dl=(()=>{class e{get safeHost(){if(!this.host)throw new Gu;return this.host}attach(n){this.host=n}add(n){return this.safeHost.addComponentChild(n)}remove({hostView:n}){n.destroyed||n.destroy()}addTemplate(n,r){return this.safeHost.addTemplateChild(n,r)}removeTemplate(n){n.destroyed||n.destroy()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),Qp=(()=>{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($n).resolveComponentFactory(n.component),s=[{provide:e,useValue:this}],a=qt.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)(y(wo),y(Q),y(dl))},e.\u0275dir=H({type:e,viewQuery:function(n,r){if(n&1&&x_(cR,5,Ft),n&2){let i;Fh(i=Lh())&&(r.vcr=i.first)}}}),e})();function nw(e){return e!==null&&typeof e<"u"&&"".concat(e)!=="false"}var nq=(()=>{class e{transform(n,r,...i){return r(n,...i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=gi({name:"tuiMapper",type:e,pure:!0}),e})(),rq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function lR(e,t){if(e&1&&(ye(0,"div",3),Le(1,"div",4),ve()),e&2){let n=me().ngIf;tt("t-bar_has-horizontal",n[1])}}function dR(e,t){if(e&1&&(ye(0,"div",5),Le(1,"div",6),ve()),e&2){let n=me().ngIf;tt("t-bar_has-vertical",n[0])}}function fR(e,t){if(e&1&&(In(0),be(1,lR,2,2,"div",1)(2,dR,2,2,"div",2),Cn()),e&2){let n=t.ngIf;ie(),B("ngIf",n[0]),ie(),B("ngIf",n[1])}}var fl=24;function hR({clientY:e},{top:t,height:n}){return(e-t)/n}function pR({clientX:e},{left:t,width:n}){return(e-t)/n}var mR=(()=>{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=ee(c,"mousedown"),l=ee(this.doc,"mousemove"),d=ee(this.doc,"mouseup"),f=ee(this.wrapper,"mousedown");Ve(f.pipe(w(p=>this.getScrolled(p,.5,.5))),u.pipe(fE(),ce(p=>{let g=c.getBoundingClientRect(),D=hR(p,g),S=pR(p,g);return l.pipe(w(T=>this.getScrolled(T,D,S)),Me(d))}))).pipe(Yn(n),Me(r)).subscribe(([p,g])=>{this.tuiScrollbar==="vertical"?this.element.scrollTop=p:this.element.scrollLeft=g}),Ve(i.pipe(Sr(Oo)),dE(this.element)).pipe(Yn(n),Me(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>fl&&this.tuiScrollbar==="vertical"||i*i/o>fl&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?fl/n:fl/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,g=(n-c-s*i)/(d-s),D=(r-u-a*o)/(l-a);return[f*g,p*D]}}return e.\u0275fac=function(n){return new(n||e)(y(de),y(Ke,2),y(Mn),y(aa),y(ge),y(Q))},e.\u0275dir=H({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[ze([Ke])]}),e})(),Eq=(()=>{class e{constructor(n,r,i){this.zone=n,this.scrollRef=r,this.animationFrame$=i,this.refresh$=this.animationFrame$.pipe(Sr(300),w(()=>this.scrollbars),we([!1,!1]),Ye((o,s)=>o[0]===s[0]&&o[1]===s[1]),Zn(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)(y(de),y(aa),y(Mn))},e.\u0275cmp=ut({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&&(be(0,fR,3,2,"ng-container",0),ln(1,"async")),n&2&&B("ngIf",dn(1,1,r.refresh$))},dependencies:[Lt,mR,Wn],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 wq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["","tuiScrollRef",""]],features:[ze([{provide:aa,useExisting:Q}])]}),e})(),bq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt]]}),e})();function gR(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 rw(e,t,n=!0){return function(){let i=e.call(this);return Object.defineProperty(this,t,{enumerable:n,value:i}),i}}function hl(e,t,n){if(typeof e=="function"){let c=t;if(c.kind==="getter")return rw(e,c.name);if(c.kind==="method")return gR(e);throw new Qs}let{get:r,enumerable:i,value:o}=n,s=t;if(r)return{configurable:!0,enumerable:i,get:rw(r,s,i)};if(typeof o!="function")throw new Qs;let a=o;return{configurable:!0,enumerable:i,get(){let c=[],u=!1,l,d=(...f)=>(u&&c.length===f.length&&f.every((g,D)=>g===c[D])||(c=f,l=a.apply(this,f),u=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var Bq=(()=>{class e{constructor(n,r,i,o){var s;this.active$=n,this.zone=r,this.el=i,this.directParentActiveZone=o,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(w(a=>!!a&&this.contains(a)),we(!1),Ye(),Td(1),Zn(this.zone)),(s=this.directParentActiveZone)===null||s===void 0||s.addSubActiveZone(this)}set tuiActiveZoneParentSetter(n){this.setZone(n)}ngOnDestroy(){var n,r;(n=this.directParentActiveZone)===null||n===void 0||n.removeSubActiveZone(this),(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this)}contains(n){return this.el.nativeElement.contains(n)||this.subActiveZones.some((r,i,o)=>o.indexOf(r)===i&&r.contains(n))}setZone(n){var r;(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this),n==null||n.addSubActiveZone(this),this.tuiActiveZoneParent=n}addSubActiveZone(n){this.subActiveZones=[...this.subActiveZones,n]}removeSubActiveZone(n){this.subActiveZones=Z0(this.subActiveZones,this.subActiveZones.indexOf(n))}}return e.\u0275fac=function(n){return new(n||e)(y(qE),y(de),y(Q),y(e,12))},e.\u0275dir=H({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:[Ze.None,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),Qa([hl],e.prototype,"setZone",null),e})(),$q=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var iw=(()=>{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){Dh()},e.\u0275dir=H({type:e}),e})(),vR=1e3,yR=".ng-animating",DR=(()=>{class e extends iw{constructor(n,r,i){super(n,r),this.animationFrame$=i}setFocus(){this.isTextFieldElement?bd(mt(vR),this.animationFrame$.pipe(Sr(Oo),w(()=>this.element.closest(yR)),Ad(Boolean),Xe(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return e.\u0275fac=function(n){return new(n||e)(y(oa,10),y(Q),y(Mn))},e.\u0275dir=H({type:e,features:[He]}),e})(),_R=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],ER=(()=>{class e extends iw{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=Ro(r.height),n.style.width=Ro(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=Ro(16),n.style.top=Ro(r.top),n.style.left=Ro(r.left),n}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach(n=>{n.style.setProperty("overflow","auto"),n.style.setProperty("height","100%")})}patchFakeInputFromFocusableElement(n){_R.forEach(r=>{let i=this.element.getAttribute(r);Si(i)&&n.setAttribute(r,i)})}}return e.\u0275fac=function(n){return new(n||e)(y(oa,10),y(Q),y(_r),y(de),y(he))},e.\u0275dir=H({type:e,features:[He]}),e})(),wR={delay:NaN},bR=Ie(wR);var ow=new _("[TUI_AUTOFOCUS_HANDLER]"),IR=[{provide:ow,useFactory:(e,t,n,r,i,o,s)=>s?new ER(e,t,r,i,o):new DR(e,t,n),deps:[[new vr,new Gy,oa],Q,Mn,_r,de,he,sa]},Ke],sw=(()=>{class e{constructor(n,r,i){this.handler=n,this.options=r,this.destroy$=i,this.autoFocus=!0}ngAfterViewInit(){nw(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):mt(this.options.delay).pipe(Me(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return e.\u0275fac=function(n){return new(n||e)(y(ow),y(bR),y(Ke,2))},e.\u0275dir=H({type:e,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:[Ze.None,"tuiAutoFocus","autoFocus"]},features:[ze(IR)]}),e})(),aw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var Xp=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},cw=(()=>{class e{constructor(n,r){n.createEmbeddedView(r,new Xp(this))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(vt))},e.\u0275dir=H({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),uw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var w8=(()=>{class e{constructor({nativeElement:n},r,i){this.mode="scroll",ee(n,"wheel",{passive:!1}).pipe(Ee(()=>this.enabled),Yn(r),Me(i)).subscribe(o=>{this.processEvent(o,!!o.deltaY,o.deltaY?o.deltaY<0:o.deltaX<0)}),ee(n,"touchstart",{passive:!0}).pipe(ce(({touches:o})=>{let{clientX:s,clientY:a}=o[0],c=0,u=0,l;return ee(n,"touchmove",{passive:!1}).pipe(Ee(()=>this.enabled),Ne(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)}))}),Yn(r),Me(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||!Bu(s)||((o=s)===null||o===void 0?void 0:o.type)==="range")){if(this.mode==="all"&&(r&&!a.contains(Hu(s))||!r&&!a.contains(Hu(s,!1)))){n.preventDefault();return}if(r&&(i&&!Zs(s,a,!0,!1)||!i&&!Zs(s,a,!0,!0))){n.preventDefault();return}!r&&(i&&!Zs(s,a,!1,!1)||!i&&!Zs(s,a,!1,!0))&&n.preventDefault()}}}return e.\u0275fac=function(n){return new(n||e)(y(Q),y(de),y(Ke,2))},e.\u0275dir=H({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(n,r){n&2&&wi("overscroll-behavior",r.overscrollBehavior)},inputs:{mode:[Ze.None,"tuiOverscroll","mode"]},features:[ze([Ke])]}),e})(),b8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var CR=["*"],MR=(()=>{class e extends dl{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),M8=(()=>{class e extends Qp{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275cmp=ut({type:e,selectors:[["tui-dropdown-host"]],features:[ze([{provide:dl,useExisting:MR},{provide:Qp,useExisting:e}]),He],ngContentSelectors:CR,decls:3,vars:0,consts:[["viewContainer",""]],template:function(n,r){n&1&&(zn(),Yt(0),bi(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})(),S8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();var Jp=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}(Jp||{}),SR=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}(SR||{});var la="?v=".concat(W0);var lw=e=>e.includes(".svg#")?e:"#".concat(e),x8=()=>ap,em={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:G0,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},dw=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];var N8="tui-scroll-into-view";var fw="tui-icon-error",P8=["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 TR={cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]},AR={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"}},OR={previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}},xR={showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}},NR={[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"},PR={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:NR},RR={cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range","Choose days"],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"}},hw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},PR),RR),xR),TR),AR),OR);var FR=new _("[TUI_DEFAULT_LANGUAGE]",{factory:()=>hw}),pw=new _("[TUI_LANGUAGE]",{factory:()=>A(v(FR))}),B8=new _("[TUI_LANGUAGE_LOADER]"),$8=new _("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});function Ni(e){return()=>v(pw).pipe(ce(t=>ri(t)?t:A(t)),w(t=>t[e]))}function LR(e){return!e||typeof getComputedStyle>"u"?!1:getComputedStyle(e).getPropertyValue("position")==="fixed"||LR(e.parentElement)}function pl({document:e,innerWidth:t}){return Math.max(e.documentElement.clientWidth||0,t||0)}var tm='width="',nm='height="',rm="")));if(!(r!=null&&r.includes(tm))||!r.includes(nm))return"".concat(n.replace(rm,'");let i=r.indexOf(tm),o=r.indexOf(nm),s=i+tm.length,a=o+nm.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(rm,'').concat(n,"")}var im=1.5,kR=2.5;function X8(e,t=!1,n=!1,r=!1,i="m"){let o=i==="s"?0:.25,s=0;return e&&(s+=im+o),t&&(s+=im+o),n&&(s+=im+o),r&&(s+=kR+o),s}function ml(e){let t=e.endsWith("/")?e:"".concat(e,"/");return n=>n.startsWith("tuiIcon")?"".concat(t).concat(n,".svg").concat(la,"#").concat(n):lw(n)}function J8(e){return e.length===1||dw.includes(e)}function e5(e,t="tui-hints-host"){var n;return!!(!((n=$u(e))===null||n===void 0)&&n.some(r=>!r.closest(t)))}function vw(e){let t=e.trim();return t.startsWith("<")&&t.endsWith(">")}function t5(e,t){return(n,r)=>{let i=n||Object.assign({},r||t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}var gw={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function yw(e,t="s"){return gw[e]>gw[t]}function Dw(e,{mobile:t}){return pl(e){var e,t,n;return(n=(t=(e=v(ge).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}),UR=300,om=oe(()=>v(VR)?0:UR),_w=oe(()=>({value:"",params:{duration:v(om)}})),g5=oe(()=>B_()),BR={check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"},gl=Ie(BR);var v5=new _("[TUI_DATA_LIST_ACCESSOR]");var $R=new _("[TUI_DATA_LIST_HOST]");function y5(e){return{provide:$R,useExisting:e}}var D5=Ie(e=>e.isWeekend?"weekend":"weekday"),_5=new _("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),E5=new _("[TUI_ELEMENT_REF]"),HR=Ie(Jp.Monday),w5=oe(Ni("months")),vl=oe(Ni("close")),b5=oe(Ni("nothingFoundMessage")),I5=oe(Ni("defaultErrorMessage")),C5=oe(Ni("spinTexts")),zR=oe(Ni("shortWeekDays")),yl="assets/taiga-ui/icons",sm=Ie(yl),Ew=Ie({}),ww=oe(()=>ml(v(sm))),am=Ie({mobile:768,desktopSmall:1024,desktopLarge:1280}),cm=oe(()=>{let e=v(he),t=v(am);return ee(e,"resize").pipe(Ht(),we(null),w(()=>Dw(e,t)),Ye(),Zn(v(de)))}),M5=new _("[TUI_LEGACY_MASK]"),jo=new _("[TUI_MODE]"),GR={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},WR={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:e})=>GR[e],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},S5=Ie(WR);var T5=Ie(em);var A5=Ie(A(Object.assign(Object.assign({},em),{decimalLimit:NaN}))),O5=new _("[TUI_OPTION_CONTENT]");var qR=e=>{let t=e.length-1;return[e[t],...e.slice(0,t)]},x5=oe(()=>{let e=v(HR);return v(zR).pipe(w(qR),w(t=>[...t.slice(e),...t.slice(0,e)]))}),Dl=new _("[TUI_SANITIZER]");var N5=oe(()=>{let e=v(ge);return Ve(ee(e,"selectionchange"),ee(e,"mouseup"),ee(e,"mousedown").pipe(ce(()=>ee(e,"mousemove").pipe(Me(ee(e,"mouseup"))))),ee(e,"keydown"),ee(e,"keyup")).pipe(Ht())}),P5=Ie({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),bw=Ie(zu),Iw=Ie(Je),R5=Ie(da.Textfield),YR=new _("[TUI_TEXTFIELD_HOST]");function F5(e){return{provide:YR,useExisting:e}}var L5=Ie("Taiga"),k5=new _("[TUI_VALUE_ACCESSOR]"),j5=oe(()=>{let e=v(he);return{type:"viewport",getClientRect(){return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight}}}});var _l=class extends R{};function q5(e){return{provide:_l,multi:!0,useExisting:e}}var El=class{};function Y5(e){return{provide:El,multi:!0,useExisting:e}}var Z5=(()=>{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);Ve(...this.drivers.filter(({type:r})=>r===this.type)).pipe(Ye(),Me(this.destroy$)).subscribe(r=>{n==null||n.toggle(r)})}}return e.\u0275fac=function(n){return new(n||e)(y(Ke,2),y(_l),y(El))},e.\u0275dir=H({type:e}),e})(),K5=(()=>{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)(y(ca))},e.\u0275dir=H({type:e}),e})(),Pi=class{};function Q5(e){return{provide:Pi,deps:[[new yr,Pi]],useFactory:t=>t.find(n=>n.type===e)}}function X5(e){return{provide:Pi,multi:!0,useExisting:e}}var fa=class{};function J5(e,t){return{provide:fa,deps:[[new yr,fa],t],useFactory:ZR(e)}}function ZR(e){return(t,n)=>t.find(r=>r!==n&&r.type===e)||n}function e6(e){return{provide:fa,multi:!0,useExisting:e}}var se="primary",Sa=Symbol("RouteTitle"),hm=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 Ho(e){return new hm(e)}function KR(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 xw(e){return e.length>0?e[e.length-1]:null}function Gr(e){return ri(e)?e:Fr(e)?xe(Promise.resolve(e)):A(e)}var XR={exact:Pw,subset:Rw},Nw={exact:JR,subset:eF,ignored:()=>!0};function Cw(e,t,n){return XR[n.paths](e.root,t.root,n.matrixParams)&&Nw[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function JR(e,t){return Qn(e,t)}function Pw(e,t,n){if(!Fi(e.segments,t.segments)||!Il(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Pw(e.children[r],t.children[r],n))return!1;return!0}function eF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Ow(e[n],t[n]))}function Rw(e,t,n){return Fw(e,t,t.segments,n)}function Fw(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Fi(i,n)||t.hasChildren()||!Il(i,n,r))}else if(e.segments.length===n.length){if(!Fi(e.segments,n)||!Il(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Rw(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!Fi(e.segments,i)||!Il(e.segments,i,r)||!e.children[se]?!1:Fw(e.children[se],t,o,r)}}function Il(e,t,n){return t.every((r,i)=>Nw[n](e[i].parameters,r.parameters))}var Hr=class{constructor(t=new Se([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=Ho(this.queryParams)),this._queryParamMap}toString(){return rF.serialize(this)}},Se=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 Cl(this)}},Ri=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){var t;return(t=this._parameterMap)!=null||(this._parameterMap=Ho(this.parameters)),this._parameterMap}toString(){return kw(this)}};function tF(e,t){return Fi(e,t)&&e.every((n,r)=>Qn(n.parameters,t[r].parameters))}function Fi(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function nF(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===se&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==se&&(n=n.concat(t(i,r)))}),n}var Um=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new Sl,providedIn:"root"});let e=t;return e})(),Sl=class{parse(t){let n=new gm(t);return new Hr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n="/".concat(ha(t.root,!0)),r=sF(t.queryParams),i=typeof t.fragment=="string"?"#".concat(iF(t.fragment)):"";return"".concat(n).concat(r).concat(i)}},rF=new Sl;function Cl(e){return e.segments.map(t=>kw(t)).join("/")}function ha(e,t){if(!e.hasChildren())return Cl(e);if(t){let n=e.children[se]?ha(e.children[se],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==se&&r.push("".concat(i,":").concat(ha(o,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}else{let n=nF(e,(r,i)=>i===se?[ha(e.children[se],!1)]:["".concat(i,":").concat(ha(r,!1))]);return Object.keys(e.children).length===1&&e.children[se]!=null?"".concat(Cl(e),"/").concat(n[0]):"".concat(Cl(e),"/(").concat(n.join("//"),")")}}function Lw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(e){return Lw(e).replace(/%3B/gi,";")}function iF(e){return encodeURI(e)}function mm(e){return Lw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ml(e){return decodeURIComponent(e)}function Mw(e){return Ml(e.replace(/\+/g,"%20"))}function kw(e){return"".concat(mm(e.path)).concat(oF(e.parameters))}function oF(e){return Object.entries(e).map(([t,n])=>";".concat(mm(t),"=").concat(mm(n))).join("")}function sF(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>"".concat(wl(n),"=").concat(wl(i))).join("&"):"".concat(wl(n),"=").concat(wl(r))).filter(n=>n);return t.length?"?".concat(t.join("&")):""}var aF=/^[^\/()?;#]+/;function um(e){let t=e.match(aF);return t?t[0]:""}var cF=/^[^\/()?;=#]+/;function uF(e){let t=e.match(cF);return t?t[0]:""}var lF=/^[^=?&#]+/;function dF(e){let t=e.match(lF);return t?t[0]:""}var fF=/^[^&#]+/;function hF(e){let t=e.match(fF);return t?t[0]:""}var gm=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Se([],{}):new Se([],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[se]=new Se(t,n)),r}parseSegment(){let t=um(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(t),new Ri(Ml(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=uF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=um(this.remaining);i&&(r=i,this.capture(r))}t[Ml(n)]=Ml(r)}parseQueryParam(t){let n=dF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=hF(this.remaining);s&&(r=s,this.capture(r))}let i=Mw(n),o=Mw(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=um(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=se);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[se]:new Se([],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 b(4011,!1)}};function jw(e){return e.segments.length>0?new Se([],{[se]:e}):e}function Vw(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Vw(i);if(r===se&&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 Se(e.segments,t);return pF(n)}function pF(e){if(e.numberOfChildren===1&&e.children[se]){let t=e.children[se];return new Se(e.segments.concat(t.segments),t.children)}return e}function zo(e){return e instanceof Hr}function mF(e,t,n=null,r=null){let i=Uw(e);return Bw(i,t,n,r)}function Uw(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 Se(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=jw(r);return t!=null?t:i}function Bw(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return lm(i,i,i,n,r);let o=gF(t);if(o.toRoot())return lm(i,i,new Se([],{}),n,r);let s=vF(o,i,e),a=s.processChildren?ga(s.segmentGroup,s.index,o.commands):Hw(s.segmentGroup,s.index,o.commands);return lm(i,s.segmentGroup,a,n,r)}function Tl(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Da(e){return typeof e=="object"&&e!=null&&e.outlets}function lm(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=$w(e,t,n);let a=jw(Vw(s));return new Hr(a,o,i)}function $w(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=$w(o,t,n)}),new Se(e.segments,r)}var Al=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Tl(r[0]))throw new b(4003,!1);let i=r.find(Da);if(i&&i!==xw(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function gF(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Al(!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 Al(n,t,r)}var Bo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function vF(e,t,n){if(e.isAbsolute)return new Bo(t,!0,0);if(!n)return new Bo(t,!1,NaN);if(n.parent===null)return new Bo(n,!0,0);let r=Tl(e.commands[0])?0:1,i=n.segments.length-1+r;return yF(n,i,e.numberOfDoubleDots)}function yF(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,!1);i=r.segments.length}return new Bo(r,!1,i-o)}function DF(e){return Da(e[0])?e[0].outlets:{[se]:e}}function Hw(e,t,n){if(e!=null||(e=new Se([],{})),e.segments.length===0&&e.hasChildren())return ga(e,t,n);let r=_F(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==se)&&e.children[se]&&e.numberOfChildren===1&&e.children[se].segments.length===0){let o=ga(e.children[se],t,n);return new Se(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Hw(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new Se(e.segments,i)}}function _F(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(Da(a))break;let c="".concat(a),u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Tw(c,u,s))return o;r+=2}else{if(!Tw(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function vm(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=vm(new Se([],{}),0,r))}),t}function Sw(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]="".concat(r)),t}function Tw(e,t,n){return e==n.path&&Qn(t,n.parameters)}var va="imperative",Et=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(Et||{}),pn=class{constructor(t,n){this.id=t,this.url=n}},_a=class extends pn{constructor(t,n,r="imperative",i=null){super(t,n),this.type=Et.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}},Li=class extends pn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=Et.NavigationEnd}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}},hn=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(hn||{}),ym=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(ym||{}),zr=class extends pn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Et.NavigationCancel}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}},ki=class extends pn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=Et.NavigationSkipped}},Ea=class extends pn{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=Et.NavigationError}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}},Ol=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.RoutesRecognized}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},Dm=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.GuardsCheckStart}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},_m=class extends pn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=Et.GuardsCheckEnd}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}},Em=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.ResolveStart}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},wm=class extends pn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=Et.ResolveEnd}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}},bm=class{constructor(t){this.route=t,this.type=Et.RouteConfigLoadStart}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}},Im=class{constructor(t){this.route=t,this.type=Et.RouteConfigLoadEnd}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}},Cm=class{constructor(t){this.snapshot=t,this.type=Et.ChildActivationStart}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(t,"')")}},Mm=class{constructor(t){this.snapshot=t,this.type=Et.ChildActivationEnd}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(t,"')")}},Sm=class{constructor(t){this.snapshot=t,this.type=Et.ActivationStart}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(t,"')")}},Tm=class{constructor(t){this.snapshot=t,this.type=Et.ActivationEnd}toString(){let t=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(t,"')")}};var wa=class{},ba=class{constructor(t){this.url=t}};var Am=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ll,this.attachRef=null}},Ll=(()=>{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 Am,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),xl=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=Om(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Om(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=xm(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return xm(t,this._root).map(n=>n.value)}};function Om(e,t){if(e===t.value)return t;for(let n of t.children){let r=Om(e,n);if(r)return r}return null}function xm(e,t){if(e===t.value)return[t];for(let n of t.children){let r=xm(e,n);if(r.length)return r.unshift(t),r}return[]}var on=class{constructor(t,n){this.value=t,this.children=n}toString(){return"TreeNode(".concat(this.value,")")}};function Uo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Nl=class extends xl{constructor(t,n){super(t),this.snapshot=n,$m(this,t)}toString(){return this.snapshot.toString()}};function zw(e){let t=wF(e),n=new qe([new Ri("",{})]),r=new qe({}),i=new qe({}),o=new qe({}),s=new qe(""),a=new Go(n,r,o,s,i,se,e,t.root);return a.snapshot=t.root,new Nl(new on(a,[]),t)}function wF(e){let t={},n={},r={},i="",o=new Ia([],t,r,i,n,se,e,null,{});return new Pl("",new on(o,[]))}var Go=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(w(d=>d[Sa])))!=null?l:A(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(){var t;return(t=this._paramMap)!=null||(this._paramMap=this.params.pipe(w(n=>Ho(n)))),this._paramMap}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=this.queryParams.pipe(w(n=>Ho(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}};function Bm(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:O(O({},t.params),e.params),data:O(O({},t.data),e.data),resolve:O(O(O(O({},e.data),t.data),i==null?void 0:i.data),e._resolvedData)}:r={params:O({},e.params),data:O({},e.data),resolve:O(O({},e.data),(s=e._resolvedData)!=null?s:{})},i&&Ww(i)&&(r.resolve[Sa]=i.title),r}var Ia=class{get title(){var t;return(t=this.data)==null?void 0:t[Sa]}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(){var t;return(t=this._paramMap)!=null||(this._paramMap=Ho(this.params)),this._paramMap}get queryParamMap(){var t;return(t=this._queryParamMap)!=null||(this._queryParamMap=Ho(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,"')")}},Pl=class extends xl{constructor(t,n){super(n),this.url=t,$m(this,n)}toString(){return Gw(this._root)}};function $m(e,t){t.value._routerState=e,t.children.forEach(n=>$m(e,n))}function Gw(e){let t=e.children.length>0?" { ".concat(e.children.map(Gw).join(", ")," } "):"";return"".concat(e.value).concat(t)}function dm(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Qn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Qn(t.params,n.params)||e.paramsSubject.next(n.params),QR(t.url,n.url)||e.urlSubject.next(n.url),Qn(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Nm(e,t){let n=Qn(e.params,t.params)&&tF(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Nm(e.parent,t.parent))}function Ww(e){return typeof e.title=="string"||e.title===null}var bF=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=se,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=v(Ll),this.location=v(Ft),this.changeDetector=v(Dt),this.environmentInjector=v(sn),this.inputBinder=v(Hm,{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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(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 b(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Pm(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=H({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[cn]});let e=t;return e})(),Pm=class{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Go?this.route:t===Ll?this.childContexts:this.parent.get(t,n)}},Hm=new _("");function IF(e,t,n){let r=Ca(e,t._root,n?n._root:void 0);return new Nl(r,t)}function Ca(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=CF(e,t,n);return new on(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=>Ca(e,a)),s}}let r=MF(t.value),i=t.children.map(o=>Ca(e,o));return new on(r,i)}}function CF(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Ca(e,r,i);return Ca(e,r)})}function MF(e){return new Go(new qe(e.url),new qe(e.params),new qe(e.queryParams),new qe(e.fragment),new qe(e.data),e.outlet,e.component,e)}var qw="ngNavigationCancelingError";function Yw(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Zw(!1,hn.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function Zw(e,t){let n=new Error("NavigationCancelingError: ".concat(e||""));return n[qw]=!0,n.cancellationCode=t,n}function SF(e){return Kw(e)&&zo(e.url)}function Kw(e){return!!e&&e[qw]}var TF=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ut({type:t,selectors:[["ng-component"]],standalone:!0,features:[R_],decls:1,vars:0,template:function(i,o){i&1&&Le(0,"router-outlet")},dependencies:[bF],encapsulation:2});let e=t;return e})();function AF(e,t){var n;return e.providers&&!e._injector&&(e._injector=Ph(e.providers,t,"Route: ".concat(e.path))),(n=e._injector)!=null?n:t}function zm(e){let t=e.children&&e.children.map(zm),n=t?je(O({},e),{children:t}):O({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==se&&(n.component=TF),n}function Xn(e){return e.outlet||se}function OF(e,t){let n=e.filter(r=>Xn(r)===t);return n.push(...e.filter(r=>Xn(r)!==t)),n}function Ta(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 xF=(e,t,n,r)=>w(i=>(new Rm(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Rm=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),dm(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Uo(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=Uo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(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=Uo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Uo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tm(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Mm(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(dm(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),dm(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Ta(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)}},Rl=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},$o=class{constructor(t,n){this.component=t,this.route=n}};function NF(e,t,n){let r=e._root,i=t?t._root:null;return pa(r,i,n,[r.value])}function PF(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function qo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Py(e)?e:t.get(e):r}function pa(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Uo(t);return e.children.forEach(s=>{RF(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ya(a,n.getContext(s),i)),i}function RF(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=FF(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Rl(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?pa(e,t,a?a.children:null,r,i):pa(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new $o(a.outlet.component,s))}else s&&ya(t,a,i),i.canActivateChecks.push(new Rl(r)),o.component?pa(e,null,a?a.children:null,r,i):pa(e,null,n,r,i);return i}function FF(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Fi(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fi(e.url,t.url)||!Qn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nm(e,t)||!Qn(e.queryParams,t.queryParams);case"paramsChange":default:return!Nm(e,t)}}function ya(e,t,n){let r=Uo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?ya(s,t.children.getContext(o),n):ya(s,null,n):ya(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new $o(t.outlet.component,i)):n.canDeactivateChecks.push(new $o(null,i)):n.canDeactivateChecks.push(new $o(null,i))}function Aa(e){return typeof e=="function"}function LF(e){return typeof e=="boolean"}function kF(e){return e&&Aa(e.canLoad)}function jF(e){return e&&Aa(e.canActivate)}function VF(e){return e&&Aa(e.canActivateChild)}function UF(e){return e&&Aa(e.canDeactivate)}function BF(e){return e&&Aa(e.canMatch)}function Qw(e){return e instanceof sr||(e==null?void 0:e.name)==="EmptyError"}var bl=Symbol("INITIAL_VALUE");function Wo(){return ce(e=>fc(e.map(t=>t.pipe(Xe(1),we(bl)))).pipe(w(t=>{for(let n of t)if(n!==!0){if(n===bl)return bl;if(n===!1||n instanceof Hr)return n}return!0}),Ee(t=>t!==bl),Xe(1)))}function $F(e,t){return Qe(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?A(je(O({},n),{guardsResult:!0})):HF(s,r,i,e).pipe(Qe(a=>a&&LF(a)?zF(r,o,e,t):A(a)),w(a=>je(O({},n),{guardsResult:a})))})}function HF(e,t,n,r){return xe(e).pipe(Qe(i=>ZF(i.component,i.route,n,t,r)),yn(i=>i!==!0,!0))}function zF(e,t,n,r){return xe(t).pipe(ii(i=>$t(WF(i.route.parent,r),GF(i.route,r),YF(e,i.path,n),qF(e,i.route,n))),yn(i=>i!==!0,!0))}function GF(e,t){return e!==null&&t&&t(new Sm(e)),A(!0)}function WF(e,t){return e!==null&&t&&t(new Cm(e)),A(!0)}function qF(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return A(!0);let i=r.map(o=>Nn(()=>{var u;let s=(u=Ta(t))!=null?u:n,a=qo(o,s),c=jF(a)?a.canActivate(t,e):Pr(s,()=>a(t,e));return Gr(c).pipe(yn())}));return A(i).pipe(Wo())}function YF(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>PF(s)).filter(s=>s!==null).map(s=>Nn(()=>{let a=s.guards.map(c=>{var f;let u=(f=Ta(s.node))!=null?f:n,l=qo(c,u),d=VF(l)?l.canActivateChild(r,e):Pr(u,()=>l(r,e));return Gr(d).pipe(yn())});return A(a).pipe(Wo())}));return A(o).pipe(Wo())}function ZF(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return A(!0);let s=o.map(a=>{var d;let c=(d=Ta(t))!=null?d:i,u=qo(a,c),l=UF(u)?u.canDeactivate(e,t,n,r):Pr(c,()=>u(e,t,n,r));return Gr(l).pipe(yn())});return A(s).pipe(Wo())}function KF(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return A(!0);let o=i.map(s=>{let a=qo(s,e),c=kF(a)?a.canLoad(t,n):Pr(e,()=>a(t,n));return Gr(c)});return A(o).pipe(Wo(),Xw(r))}function Xw(e){return ei(Ne(t=>{if(zo(t))throw Yw(e,t)}),w(t=>t===!0))}function QF(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return A(!0);let o=i.map(s=>{let a=qo(s,e),c=BF(a)?a.canMatch(t,n):Pr(e,()=>a(t,n));return Gr(c)});return A(o).pipe(Wo(),Xw(r))}var Ma=class{constructor(t){this.segmentGroup=t||null}},Fl=class extends Error{constructor(t){super(),this.urlTree=t}};function Vo(e){return no(new Ma(e))}function XF(e){return no(new b(4e3,!1))}function JF(e){return no(Zw(!1,hn.GuardRejected))}var Fm=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return A(r);if(i.numberOfChildren>1||!i.children[se])return XF(t.redirectTo);i=i.children[se]}}applyRedirectCommands(t,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Fl(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 Se(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 b(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}},Lm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function e1(e,t,n,r,i){let o=Gm(e,t,n);return o.matched?(r=AF(t,r),QF(r,t,n,i).pipe(w(s=>s===!0?o:O({},Lm)))):A(o)}function Gm(e,t,n){var a,c;if(t.path==="**")return t1(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?O({},Lm):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||KR)(n,e,t);if(!i)return O({},Lm);let o={};Object.entries((a=i.posParams)!=null?a:{}).forEach(([u,l])=>{o[u]=l.path});let s=i.consumed.length>0?O(O({},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 t1(e){return{matched:!0,parameters:e.length>0?xw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Aw(e,t,n,r){return n.length>0&&i1(e,n,r)?{segmentGroup:new Se(t,r1(r,new Se(n,e.children))),slicedSegments:[]}:n.length===0&&o1(e,n,r)?{segmentGroup:new Se(e.segments,n1(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Se(e.segments,e.children),slicedSegments:n}}function n1(e,t,n,r){let i={};for(let o of n)if(kl(e,t,o)&&!r[Xn(o)]){let s=new Se([],{});i[Xn(o)]=s}return O(O({},r),i)}function r1(e,t){let n={};n[se]=t;for(let r of e)if(r.path===""&&Xn(r)!==se){let i=new Se([],{});n[Xn(r)]=i}return n}function i1(e,t,n){return n.some(r=>kl(e,t,r)&&Xn(r)!==se)}function o1(e,t,n){return n.some(r=>kl(e,t,r))}function kl(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function s1(e,t,n,r){return Xn(e)!==r&&(r===se||!kl(t,n,e))?!1:Gm(t,e,n).matched}function a1(e,t,n){return t.length===0&&!e.children[n]}var km=class{};function c1(e,t,n,r,i,o,s="emptyOnly"){return new jm(e,t,n,r,i,s,o).recognize()}var u1=31,jm=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 Fm(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new b(4002,"'".concat(t.segmentGroup,"'"))}recognize(){let t=Aw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(w(n=>{let r=new Ia([],Object.freeze({}),Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,{},se,this.rootComponentType,null,{}),i=new on(r,n),o=new Pl("",i),s=mF(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,se).pipe(vn(r=>{if(r instanceof Fl)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ma?this.noMatchError(r):r}))}inheritParamsAndData(t,n){let r=t.value,i=Bm(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(w(o=>o instanceof on?[o]:[]))}processChildren(t,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return xe(i).pipe(ii(o=>{let s=r.children[o],a=OF(n,o);return this.processSegmentGroup(t,a,s,o)}),mc((o,s)=>(o.push(...s),o)),Cr(null),Cd(),Qe(o=>{if(o===null)return Vo(r);let s=Jw(o);return l1(s),A(s)}))}processSegment(t,n,r,i,o,s){return xe(n).pipe(ii(a=>{var c;return this.processSegmentAgainstRoute((c=a._injector)!=null?c:t,n,a,r,i,o,s).pipe(vn(u=>{if(u instanceof Ma)return A(null);throw u}))}),yn(a=>!!a),vn(a=>{if(Qw(a))return a1(r,i,o)?A(new km):Vo(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return s1(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):Vo(i):Vo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=Gm(n,i,o);if(!a)return Vo(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>u1&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(Qe(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){let s=e1(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(ce(a=>{var c;return a.matched?(t=(c=r._injector)!=null?c:t,this.getChildConfig(t,r,i).pipe(ce(({routes:u})=>{var z,q,fe;let l=(z=r._loadedInjector)!=null?z:t,{consumedSegments:d,remainingSegments:f,parameters:p}=a,g=new Ia(d,p,Object.freeze(O({},this.urlTree.queryParams)),this.urlTree.fragment,f1(r),Xn(r),(fe=(q=r.component)!=null?q:r._loadedComponent)!=null?fe:null,r,h1(r)),{segmentGroup:D,slicedSegments:S}=Aw(n,d,f,u);if(S.length===0&&D.hasChildren())return this.processChildren(l,u,D).pipe(w(Te=>Te===null?null:new on(g,Te)));if(u.length===0&&S.length===0)return A(new on(g,[]));let T=Xn(r)===o;return this.processSegment(l,u,D,S,T?se:o,!0).pipe(w(Te=>new on(g,Te instanceof on?[Te]:[])))}))):Vo(n)}))}getChildConfig(t,n,r){return n.children?A({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?A({routes:n._loadedRoutes,injector:n._loadedInjector}):KF(t,n,r,this.urlSerializer).pipe(Qe(i=>i?this.configLoader.loadChildren(t,n).pipe(Ne(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):JF(n))):A({routes:[],injector:t})}};function l1(e){e.sort((t,n)=>t.value.outlet===se?-1:n.value.outlet===se?1:t.value.outlet.localeCompare(n.value.outlet))}function d1(e){let t=e.value.routeConfig;return t&&t.path===""}function Jw(e){let t=[],n=new Set;for(let r of e){if(!d1(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=Jw(r.children);t.push(new on(r.value,i))}return t.filter(r=>!n.has(r))}function f1(e){return e.data||{}}function h1(e){return e.resolve||{}}function p1(e,t,n,r,i,o){return Qe(s=>c1(e,t,n,r,s.extractedUrl,i,o).pipe(w(({state:a,tree:c})=>je(O({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function m1(e,t){return Qe(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return A(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of eb(c))s.add(u);let a=0;return xe(s).pipe(ii(c=>o.has(c)?g1(c,r,e,t):(c.data=Bm(c,c.parent,e).resolve,A(void 0))),Ne(()=>a++),oo(1),Qe(c=>a===s.size?A(n):Oe))})}function eb(e){let t=e.children.map(n=>eb(n)).flat();return[e,...t]}function g1(e,t,n,r){let i=e.routeConfig,o=e._resolve;return(i==null?void 0:i.title)!==void 0&&!Ww(i)&&(o[Sa]=i.title),v1(o,e,t,r).pipe(w(s=>(e._resolvedData=s,e.data=Bm(e,e.parent,n).resolve,null)))}function v1(e,t,n,r){let i=pm(e);if(i.length===0)return A({});let o={};return xe(i).pipe(Qe(s=>y1(e[s],t,n,r).pipe(yn(),Ne(a=>{o[s]=a}))),oo(1),os(o),vn(s=>Qw(s)?Oe:no(s)))}function y1(e,t,n,r){var a;let i=(a=Ta(t))!=null?a:r,o=qo(e,i),s=o.resolve?o.resolve(t,n):Pr(i,()=>o(t,n));return Gr(s)}function fm(e){return ce(t=>{let n=e(t);return n?xe(n).pipe(w(()=>t)):A(t)})}var tb=(()=>{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===se);return i}getResolvedTitleForRoute(r){return r.data[Sa]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(D1),providedIn:"root"});let e=t;return e})(),D1=(()=>{let t=class t extends tb{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)(M(v0))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Wm=new _("",{providedIn:"root",factory:()=>({})}),qm=new _(""),_1=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(Vh)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return A(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Gr(r.loadComponent()).pipe(w(nb),Ne(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Mr(()=>{this.componentLoaders.delete(r)})),o=new Xi(i,()=>new Ae).pipe(Qi());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return A({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=E1(i,this.compiler,r,this.onLoadEndListener).pipe(Mr(()=>{this.childrenLoaders.delete(i)})),a=new Xi(s,()=>new Ae).pipe(Qi());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function E1(e,t,n,r){return Gr(e.loadChildren()).pipe(w(nb),Qe(i=>i instanceof ws||Array.isArray(i)?A(i):xe(t.compileModuleAsync(i))),w(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(qm,[],{optional:!0,self:!0}).flat()),{routes:s.map(zm),injector:o}}))}function w1(e){return e&&typeof e=="object"&&"default"in e}function nb(e){return w1(e)?e.default:e}var Ym=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(b1),providedIn:"root"});let e=t;return e})(),b1=(()=>{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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),I1=new _("");var C1=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ae,this.transitionAbortSubject=new Ae,this.configLoader=v(_1),this.environmentInjector=v(sn),this.urlSerializer=v(Um),this.rootContexts=v(Ll),this.location=v(Us),this.inputBindingEnabled=v(Hm,{optional:!0})!==null,this.titleStrategy=v(tb),this.options=v(Wm,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(Ym),this.createViewTransition=v(I1,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>A(void 0),this.rootComponentType=null;let r=o=>this.events.next(new bm(o)),i=o=>this.events.next(new Im(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(je(O(O({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new qe({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:va,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ee(s=>s.id!==0),w(s=>je(O({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{this.currentTransition=s;let a=!1,c=!1;return A(s).pipe(Ne(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?je(O({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ce(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 ki(u.id,this.urlSerializer.serialize(u.rawUrl),p,ym.IgnoredSameUrlNavigation)),u.resolve(null),Oe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return A(u).pipe(ce(p=>{var D,S;let g=(D=this.transitions)==null?void 0:D.getValue();return this.events.next(new _a(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),g!==((S=this.transitions)==null?void 0:S.getValue())?Oe:Promise.resolve(p)}),p1(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),Ne(p=>{s.targetSnapshot=p.targetSnapshot,s.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=je(O({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let g=new Ol(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(g)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:p,extractedUrl:g,source:D,restoredState:S,extras:T}=u,z=new _a(p,this.urlSerializer.serialize(g),D,S);this.events.next(z);let q=zw(this.rootComponentType).snapshot;return this.currentTransition=s=je(O({},u),{targetSnapshot:q,urlAfterRedirects:g,extras:je(O({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,A(s)}else{let p="";return this.events.next(new ki(u.id,this.urlSerializer.serialize(u.extractedUrl),p,ym.IgnoredByUrlHandlingStrategy)),u.resolve(null),Oe}}),Ne(u=>{let l=new Dm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),w(u=>(this.currentTransition=s=je(O({},u),{guards:NF(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),$F(this.environmentInjector,u=>this.events.next(u)),Ne(u=>{if(s.guardsResult=u.guardsResult,zo(u.guardsResult))throw Yw(this.urlSerializer,u.guardsResult);let l=new _m(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Ee(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",hn.GuardRejected),!1)),fm(u=>{if(u.guards.canActivateChecks.length)return A(u).pipe(Ne(l=>{let d=new Em(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return A(l).pipe(m1(this.paramsInheritanceStrategy,this.environmentInjector),Ne({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",hn.NoDataFromResolver)}}))}),Ne(l=>{let d=new wm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),fm(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(Ne(g=>{d.component=g}),w(()=>{})));for(let g of d.children)f.push(...l(g));return f};return fc(l(u.targetSnapshot.root)).pipe(Cr(null),Xe(1))}),fm(()=>this.afterPreactivation()),ce(()=>{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?xe(d).pipe(w(()=>s)):A(s)}),w(u=>{let l=IF(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=je(O({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),Ne(()=>{this.events.next(new wa)}),xF(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Xe(1),Ne({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Li(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}}),Me(this.transitionAbortSubject.pipe(Ne(u=>{throw u}))),Mr(()=>{var u;!a&&!c&&this.cancelNavigationTransition(s,"",hn.SupersededByNewNavigation),((u=this.currentNavigation)==null?void 0:u.id)===s.id&&(this.currentNavigation=null)}),vn(u=>{var l;if(c=!0,Kw(u))this.events.next(new zr(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),SF(u)?this.events.next(new ba(u.url)):s.resolve(!1);else{this.events.next(new Ea(s.id,this.urlSerializer.serialize(s.extractedUrl),u,(l=s.targetSnapshot)!=null?l:void 0));try{s.resolve(r.errorHandler(u))}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Oe}))}))}cancelNavigationTransition(r,i,o){let s=new zr(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function M1(e){return e!==va}var S1=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(T1),providedIn:"root"});let e=t;return e})(),Vm=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},T1=(()=>{let t=class t extends Vm{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),rb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>v(A1),providedIn:"root"});let e=t;return e})(),A1=(()=>{let t=class t extends rb{constructor(){super(...arguments),this.location=v(Us),this.urlSerializer=v(Um),this.options=v(Wm,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(Ym),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Hr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=zw(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 _a)this.stateMemento=this.createStateMemento();else if(r instanceof ki)this.rawUrlTree=i.initialUrl;else if(r instanceof Ol){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof wa?(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 zr&&(r.code===hn.GuardRejected||r.code===hn.NoDataFromResolver)?this.restoreHistory(i):r instanceof Ea?this.restoreHistory(i,!0):r instanceof Li&&(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=O(O({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=O(O({},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=Fe(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ma=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ma||{});function O1(e,t){e.events.pipe(Ee(n=>n instanceof Li||n instanceof zr||n instanceof Ea||n instanceof ki),w(n=>n instanceof Li||n instanceof ki?ma.COMPLETE:(n instanceof zr?n.code===hn.Redirect||n.code===hn.SupersededByNewNavigation:!1)?ma.REDIRECTING:ma.FAILED),Ee(n=>n!==ma.REDIRECTING),Xe(1)).subscribe(()=>{t()})}function x1(e){throw e}var N1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},P1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ib=(()=>{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=v(Cu),this.stateManager=v(rb),this.options=v(Wm,{optional:!0})||{},this.pendingTasks=v(Fs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(C1),this.urlSerializer=v(Um),this.location=v(Us),this.urlHandlingStrategy=v(Ym),this._events=new Ae,this.errorHandler=this.options.errorHandler||x1,this.navigated=!1,this.routeReuseStrategy=v(S1),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(i=(r=v(qm,{optional:!0}))==null?void 0:r.flat())!=null?i:[],this.componentInputBindingEnabled=!!v(Hm,{optional:!0}),this.eventsSubscription=new rt,this.isNgZoneEnabled=v(de)instanceof de&&de.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 zr&&i.code!==hn.Redirect&&i.code!==hn.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Li)this.navigated=!0;else if(i instanceof ba){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||M1(o.source)};this.scheduleNavigation(a,va,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}F1(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),va,this.stateManager.restoredState())}setUpLocationChangeListener(){var r;(r=this.nonRouterCurrentEntryChangeSubscription)!=null||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",o)},0)}))}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let u=O({},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(zm),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=O(O({},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=Uw(p)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),f=this.currentUrlTree.root}return Bw(f,r,d,l!=null?l:null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=zo(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,va,null,i)}navigate(r,i={skipLocationChange:!1}){return R1(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=O({},N1):i===!1?o=O({},P1):o=i,zo(r))return Cw(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Cw(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(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 O1(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=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function R1(e){for(let t=0;tn.\u0275providers)])}function k1(e){return e.routerState.root}function j1(){let e=v(qt);return t=>{var o,s;let n=e.get(Lr);if(t!==n.components[0])return;let r=e.get(ib),i=e.get(V1);e.get(U1)===1&&r.initialNavigation(),(o=e.get(B1,null,ue.Optional))==null||o.setUpPreloading(),(s=e.get(L1,null,ue.Optional))==null||s.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var V1=new _("",{factory:()=>new Ae}),U1=new _("",{providedIn:"root",factory:()=>1});var B1=new _("");var B6=(()=>{class e extends R{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(w(({width:o})=>this.sorted.find(s=>s>o)),w(o=>this.invert[o||this.sorted[this.sorted.length-1]]),Ye(),Zn(this.ngZone),Kt({bufferSize:1,refCount:!0}))}}return e.\u0275fac=function(n){return new(n||e)(M(am),M(de),M(qp))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),ob=(()=>{class e{constructor(n){this.locale=n}format(n){return A(new Date(n).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}}return e.\u0275fac=function(n){return new(n||e)(M(js))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),$6=(()=>{class e extends qe{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=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var H6=(()=>{class e extends R{constructor(n,r,i,o){super(s=>r.pipe(w(()=>n.nativeElement.getBoundingClientRect()),w(a=>o.getPosition(a)),Yn(i),Mr(()=>o.getPosition(H0))).subscribe(s))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(Mn),M(de),M(Pi))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var sb=(()=>{class e{constructor(n,r,i){this.tuiSanitizer=n,this.sanitizer=r,this.originals={},this.items$=new qe(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(mw(r,n))}sanitize(n){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(yt.HTML,n):this.sanitizer.sanitize(yt.HTML,n))||"")}}return e.\u0275fac=function(n){return new(n||e)(M(Dl,8),M(Gs),M(Ew))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),z6=(()=>{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)(M(he),M(QE))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function H1(e,t){if(e&1&&Le(0,"div",3),e&2){let n=me().tuiLet;B("innerHTML",n,bo)}}function z1(e,t){if(e&1){let n=Hn();As(),ye(0,"svg",4),st("error",function(){Vn(n);let i=me(2);return Un(i.onError())}),Le(1,"use"),ve()}if(e&2){let n=me(2);ie(),lt("href",n.use,null,"xlink")}}function G1(e,t){if(e&1&&(In(0),be(1,H1,1,1,"div",1)(2,z1,2,1,"ng-template",null,2,Iu),Cn()),e&2){let n=Eu(3),r=me();ie(),B("ngIf",r.isInnerHTML)("ngIfElse",n)}}var W1={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"},q1={iconsPlace:yl,path:ml(yl),srcProcessor:Je,contentProcessor:zu,deprecated:e=>{let t=e.replace("Large","").replace("Outline",""),n=W1[t];return n?"".concat(t,"/(Large|Outline) is deprecated, use ").concat(n,"/(Large|Outline) instead"):""}},Y1=oe(()=>({iconsPlace:v(sm),path:v(ww),deprecated:q1.deprecated,srcProcessor:v(Iw),contentProcessor:v(bw)})),Z1=new _("[TUI_SVG_SRC_INTERCEPTORS]");var K1="Attempted to use undefined named icon",Q1="External icon is missing on the given URL",X1="Failed to load external SVG",Yo=(()=>{class e{constructor(n,r,i,o,s,a,c,u,l,d){this.doc=n,this.win=r,this.options=i,this.srcInterceptors=o,this.tuiSanitizer=s,this.svgService=a,this.staticRequestService=c,this.sanitizer=u,this.el=l,this.baseHref=d,this.src$=new or(1),this.icon="",this.innerHTML$=this.src$.pipe(ce(()=>Sn(this.icon)?this.isExternal?this.getExternalIcon(this.icon):A(this.getSafeHtml(this.icon)):A(this.icon)),we(""))}set src(n){var r;let i=this.options.deprecated(String(n));this.icon=((r=this.srcInterceptors)!==null&&r!==void 0?r:[]).reduce((o,s)=>s(o,this.options),this.options.srcProcessor(n||"")),this.src$.next()}get src(){return this.icon}get use(){return Sn(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!Sn(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return No(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(la,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Sn(this.icon)&&this.icon.replace(la,"").endsWith(".svg")}get isSrc(){return Sn(this.icon)&&vw(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:n,isUse:r,win:i}=this;return r&&n.startsWith("http")&&!!i.origin&&!n.startsWith(i.origin)}onError(n=Q1){let{icon:r}=this,i=new CustomEvent(fw,{bubbles:!0,detail:{message:n,icon:r}});this.el.nativeElement.dispatchEvent(i)}resolveName(n,r){return r(n,this.baseHref)}getSafeHtml(n){return this.isSrc?this.sanitize(n):this.process(n)}process(n){let r=this.svgService.getOriginal(n);return this.isName&&!r&&n&&this.onError(K1),!this.isShadowDOM||!this.isName?"":this.sanitize(r||"")}sanitize(n){return n=this.options.contentProcessor(n),this.tuiSanitizer&&Sn(n)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(yt.HTML,n)||""):n}getExternalIcon(n){let r=n.includes(".svg")?n:this.use;return this.staticRequestService.request(r).pipe(vn(()=>(this.onError(X1),A(""))),w(i=>this.sanitize(i.replace("{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,uw]]}),e})();var Y="{{duration}}ms ease-in-out",_e={params:{duration:300}},Mt=300,cb=Ge("tuiHeightCollapse",[le(":enter",[E({height:0}),W(Y,E({height:"*"}))],_e),le(":leave",[E({height:"*"}),W(Y,E({height:0}))],_e)]),fY=Ge("tuiHeightCollapseList",[le("* => *",[dt(":enter",[E({height:0}),_t(Mt,[W(Y,E({height:"*"}))])],{optional:!0}),dt(":leave",[E({height:"*"}),_t(Mt,[W(Y,E({height:0}))])],{optional:!0})],_e)]),hY=Ge("tuiWidthCollapse",[le(":enter",[E({width:0}),W(Y,E({width:"*"}))],_e),le(":leave",[E({width:"*"}),W(Y,E({width:0}))],_e)]),pY=Ge("tuiWidthCollapseList",[le("* => *",[dt(":enter",[E({width:0}),_t(Mt,[W(Y,E({width:"*"}))])],{optional:!0}),dt(":leave",[E({width:"*"}),_t(Mt,[W(Y,E({width:0}))])],{optional:!0})],_e)]),jl=Ge("tuiFadeIn",[le(":enter",[E({opacity:0}),W(Y,E({opacity:1}))],_e),le(":leave",[E({opacity:1}),W(Y,E({opacity:0}))],_e)]),mY=Ge("tuiFadeInList",[le("* => *",[dt(":enter",[E({opacity:0}),_t(Mt,[W(Y,E({opacity:1}))])],{optional:!0}),dt(":leave",[E({opacity:1}),_t(Mt,[W(Y,E({opacity:0}))])],{optional:!0})],_e)]),gY=Ge("tuiFadeInTop",[le(":enter",[E({transform:"translateY(-10px)",opacity:0}),W(Y,E({transform:"translateY(0)",opacity:1}))],_e),le(":leave",[E({transform:"translateY(0)",opacity:1}),W(Y,E({transform:"translateY(-10px)",opacity:0}))],_e)]),vY=Ge("tuiFadeInBottom",[le(":enter",[E({transform:"translateY(10px)",opacity:0}),W(Y,E({transform:"translateY(0)",opacity:1}))],_e),le(":leave",[E({transform:"translateY(0)",opacity:1}),W(Y,E({transform:"translateY(10px)",opacity:0}))],_e)]),yY=Ge("tuiDropdownAnimation",[le(":enter",[E({transform:"translateY(-10px)",opacity:0}),W(Y,E({transform:"translateY(0)",opacity:1}))],_e),le(":leave",[E({transform:"translateY(0)",opacity:1}),W(Y,E({transform:"translateY(-10px)",opacity:0}))],_e)]),DY=Ge("tuiScaleIn",[le(":enter",[E({transform:"scale(0)"}),W(Y,E({transform:"scale(1)"}))],_e),le(":leave",[E({transform:"scale(1)"}),W(Y,E({transform:"scale(0)"}))],_e)]),_Y=Ge("tuiPop",[le(":enter",[E({transform:"scale(0)"}),W(Y,E({transform:"scale(1.1)"})),W(Y,E({transform:"scale(1)"}))],_e),le(":leave",[E({transform:"scale(1)"}),W(Y,E({transform:"scale(1.1)"})),W(Y,E({transform:"scale(0)"}))],_e)]),EY=Ge("tuiScaleInList",[le("* => *",[dt(":enter",[E({transform:"scale(0)"}),_t(Mt,[W(Y,E({transform:"scale(1)"}))])],{optional:!0}),dt(":leave",[E({transform:"scale(1)"}),_t(Mt,[W(Y,E({transform:"scale(0)"}))])],{optional:!0})],_e)]),wY=Ge("tuiSlideIn",[le("* => left",[E({transform:"translateX(-100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le("left => *",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(-100%)"}))],_e),le("* => right",[E({transform:"translateX(100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le("right => *",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(100%)"}))],_e)]),bY=Ge("tuiSlideInLeft",[le(":enter",[E({transform:"translateX(-100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le(":leave",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(-100%)"}))],_e)]),IY=Ge("tuiSlideInLeftList",[le("* => *",[dt(":enter",[E({transform:"translateX(-100%)"}),_t(Mt,[W(Y,E({transform:"translateX(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateX(0)"}),_t(Mt,[W(Y,E({transform:"translateX(-100%)"}))])],{optional:!0})],_e)]),ub=Ge("tuiSlideInRight",[le(":enter",[E({transform:"translateX(100%)"}),W(Y,E({transform:"translateX(0)"}))],_e),le(":leave",[E({transform:"translateX(0)"}),W(Y,E({transform:"translateX(100%)"}))],_e)]),CY=Ge("tuiSlideInRightList",[le("* => *",[dt(":enter",[E({transform:"translateX(100%)"}),_t(Mt,[W(Y,E({transform:"translateX(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateX(0)"}),_t(Mt,[W(Y,E({transform:"translateX(100%)"}))])],{optional:!0})],_e)]),lb=Ge("tuiSlideInTop",[le(":enter",[E({transform:"translate3d(0,{{start}},0)"}),W(Y,E({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),le(":leave",[E({transform:"translate3d(0,{{end}},0)"}),W(Y,E({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),MY=Ge("tuiSlideInTopList",[le("* => *",[dt(":enter",[E({transform:"translateY(100%)"}),_t(Mt,[W(Y,E({transform:"translateY(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateY(0)"}),_t(Mt,[W(Y,E({transform:"translateY(100%)"}))])],{optional:!0})],_e)]),SY=Ge("tuiSlideInBottom",[le(":enter",[E({transform:"translateY(-100%)"}),W(Y,E({transform:"translateY(0)"}))],_e),le(":leave",[E({transform:"translateY(0)"}),W(Y,E({transform:"translateY(-100%)"}))],_e)]),TY=Ge("tuiSlideInBottomList",[le("* => *",[dt(":enter",[E({transform:"translateY(-100%)"}),_t(Mt,[W(Y,E({transform:"translateY(0)"}))])],{optional:!0}),dt(":leave",[E({transform:"translateY(0)"}),_t(Mt,[W(Y,E({transform:"translateY(-100%)"}))])],{optional:!0})],_e)]);var Wr=(()=>{class e extends tw{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275dir=H({type:e,selectors:[["","tuiMode",""]],inputs:{mode:[Ze.None,"tuiMode","mode"]},features:[He]}),e})();var kY={provide:cm,deps:[[new yr,cm],Q],useFactory:(e,{nativeElement:t})=>(t["$.class._mobile"]=e,e)},Vl={provide:jo,deps:[[new vr,Wr],Q],useFactory:(e,{nativeElement:t})=>{let n=e?e.change$.pipe(we(null),w(()=>e.mode)):A(null);return t["$.data-mode.attr"]=n,n}};function J1(e){return e.replace(/[a-z][A-Z]/g,t=>"".concat(t[0],"-").concat(t[1].toLowerCase()))}var Ir=class{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(n=>!this.modifier.includes(n)).join(".")}},eL=(()=>{class e extends Ir{constructor(){super(...arguments),this.modifier="$"}addEventListener(n,r){n[r]=n[r]||Oe;let i=this.getMethod(n,r),o=this.manager.getZone().onStable,s=$t(o.pipe(gc(()=>n[r]===Oe)),Nn(()=>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(J1(o),"".concat(a).concat(s)):a=>n[i]=a}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),tL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),nL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),rL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),Ul=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),iL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),oL=(()=>{class e extends Ir{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=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),sL=[Ul,eL,tL,nL,rL,iL,oL],aL=sL.map(e=>({provide:Mo,multi:!0,useClass:e}));function $Y(e){return(t,n,r)=>{let{value:i}=r;r.value=function(...o){e.apply(this,o)&&(Ul.ngZone?Ul.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var HY=(()=>{class e{constructor([n]){console.assert(!(n instanceof Ul)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(n){return new(n||e)(M(Mo))},e.\u0275mod=K({type:e}),e.\u0275inj=X({providers:aL}),e})();var db=(()=>{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?ko.Disabled:this.readOnly?ko.Readonly:this.active?ko.Active:this.hover?ko.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)(y(jo))},e.\u0275dir=H({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(n,r){n&1&&st("$.data-mode.attr",function(){return r.mode$}),n&2&&(lt("data-appearance",r.appearance)("data-state",r.interactiveState),tt("_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:[ze([Vl])]}),e})(),fb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function uL(e,t){if(e&1&&(In(0),Gn(1),Cn()),e&2){let n=t.polymorpheusOutlet;ie(),un(" ",n," ")}}function lL(e,t){if(e&1&&(As(),My(),ye(0,"div",6),be(1,uL,2,1,"ng-container",7),ve()),e&2){let n=me(2);tt("t-text_horizontal",n.isHorizontal),ie(),B("polymorpheusOutlet",n.textContent)}}function dL(e,t){if(e&1&&(ye(0,"div",2),As(),ye(1,"svg",3),Le(2,"circle",4),ve(),be(3,lL,2,3,"div",5),ve()),e&2){let n=me();tt("t-loader_horizontal",n.isHorizontal)("t-loader_inherit-color",n.inheritColor),lt("data-size",n.size),ie(3),B("ngIf",n.hasText)}}var fL=["*"],hL={size:"m",inheritColor:!1,overlay:!1},pL=Ie(hL);var hb=(()=>{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=Y0(this.el.nativeElement)||this.isIos}set showLoader(n){n&&this.focused&&eE(this.doc),this.loading=n}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!yw(this.size)}get focused(){return nE(this.el.nativeElement)}}return e.\u0275fac=function(n){return new(n||e)(y(ge),y(Q),y(sa),y(pL))},e.\u0275cmp=ut({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(n,r){n&2&&tt("_loading",r.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:fL,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&&(zn(),ye(0,"fieldset",0),Yt(1),ve(),be(2,dL,4,6,"div",1)),n&2&&(tt("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),B("disabled",r.loading&&!r.isApple),lt("inert",r.loading||null),ie(2),B("ngIf",r.loading))},dependencies:[Lt,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})(),pb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,Br]]}),e})();var gL=["tuiButton",""];function vL(e,t){e&1&&bi(0)}function yL(e,t){if(e&1&&Le(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;B("src",n)}}function DL(e,t){if(e&1&&(ye(0,"span",6),be(1,yL,1,1,"tui-svg",7),ve()),e&2){let n=me();ie(),B("polymorpheusOutlet",n.icon)}}function _L(e,t){if(e&1&&Le(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;B("src",n)}}function EL(e,t){if(e&1&&(ye(0,"span",9),be(1,_L,1,1,"tui-svg",7),ve()),e&2){let n=me();ie(),B("polymorpheusOutlet",n.iconRight)}}function wL(e,t){if(e&1&&Le(0,"tui-loader",10),e&2){let n=me();B("inheritColor",!0)("size",n.loaderSize)}}var bL=["*"],IL={size:"l",shape:null,appearance:da.Primary},Zm=Ie(IL);var Oa=(()=>{class e extends Kp{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$)||Oe,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(we(null),w(()=>this.computedAppearance),Ye())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&Po(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)(y(Wr,8),y(Q),y(Zm))},e.\u0275cmp=ut({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(n,r){n&1&&st("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),n&2&&(Rh("tabIndex",r.tabIndex),lt("data-shape",r.shape)("data-size",r.size)("data-appearance",r.computedAppearance)("disabled",r.nativeDisabled),tt("_loading",r.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[ze([ul(e),Ke]),He],attrs:gL,ngContentSelectors:bL,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&&(zn(),be(0,vL,1,0,"ng-container",0),ln(1,"async"),ye(2,"div",1)(3,"span",2),be(4,DL,2,1,"span",3),Yt(5),be(6,EL,2,1,"span",4),ve(),be(7,wL,1,2,"tui-loader",5),ve()),n&2&&(B("ngIf",dn(1,8,r.appearance$)),ie(2),B("active",r.pseudoActive)("appearance",r.computedAppearance)("disabled",r.computedDisabled)("hover",r.pseudoHover),ie(2),B("ngIf",r.icon),ie(2),B("ngIf",r.iconRight),ie(),B("ngIf",r.showLoader))},dependencies:[Yo,hb,Lt,db,Ur,Wn],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;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%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][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})(),Bl=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,Br,fb,Zo,pb]]}),e})();var ML=["tuiLink",""];function SL(e,t){if(e&1&&Le(0,"tui-svg",3),e&2){let n=me();B("src",n.icon||"")}}function TL(e,t){if(e&1&&Le(0,"tui-svg",4),e&2){let n=me();B("src",n.icon||"")}}var AL=["*"],mb=(()=>{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=Ve(ee(this.el.nativeElement,"focusin").pipe(w(Ao)),ee(this.el.nativeElement,"focusout").pipe(w(jr))),i.subscribe(o=>{this.focusVisible=o})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return Po(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)(y(Q),y(jo),y(Yp))},e.\u0275cmp=ut({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(n,r){n&1&&st("$.data-mode.attr",function(){return r.mode$}),n&2&&(lt("data-host-mode",r.mode),tt("_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:[ze([ul(e),Yp,Ke,Vl])],attrs:ML,ngContentSelectors:AL,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&&(zn(),be(0,SL,1,1,"tui-svg",0),ye(1,"span",1),Yt(2),ve(),be(3,TL,1,1,"tui-svg",2)),n&2&&(B("ngIf",r.iconAlignLeft),ie(3),B("ngIf",r.iconAlignRight))},dependencies:[Yo,Lt],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);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})(),gb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({imports:[[kt,Zo]]}),e})();function OL(e,t){if(e&1&&(In(0),Gn(1),Cn()),e&2){let n=t.polymorpheusOutlet;ie(),un(" ",n," ")}}function xL(e,t){if(e&1&&(ye(0,"header",6),be(1,OL,2,1,"ng-container",3),ve()),e&2){let n=me();ie(),B("polymorpheusOutlet",n.header)("polymorpheusOutletContext",n.context)}}function NL(e,t){if(e&1){let n=Hn();In(0),Le(1,"div",7),ye(2,"div",8)(3,"button",9),st("click",function(){Vn(n);let i=me();return Un(i.context.$implicit.complete())}),Gn(4),ve()(),Cn()}if(e&2){let n=t.polymorpheusOutlet,r=me(),i;ie(),B("innerHTML",n,bo),ie(3),un(" ",((i=r.context.data)==null?null:i.button)||"OK"," ")}}function PL(e,t){if(e&1){let n=Hn();ye(0,"div",10)(1,"button",11),st("click",function(){Vn(n);let i=me();return Un(i.close$.next())})("mousedown.prevent.silent",function(){return 0}),ln(2,"async"),ve()()}if(e&2){let n=me();ie(),B("appearance",n.fullscreen?"secondary":"")("icon",n.icons.close)("title",dn(2,3,n.closeWord$))}}var RL={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},FL=Ie(Oe),LL=Ie(RL);var kL=17,vb=(()=>{class e extends R{constructor(n,r,i){super(o=>Ve(this.esc$,this.mousedown$).subscribe(o)),this.win=n,this.doc=r,this.el=i,this.esc$=ee(this.doc,"keydown").pipe(Ee(o=>{let s=Vr(o);return o.key==="Escape"&&!o.defaultPrevented&&(this.element.contains(s)||this.isOutside(s))})),this.mousedown$=ee(this.doc,"mousedown").pipe(Ee(o=>pl(this.win)-o.clientX>kL&&this.isOutside(Vr(o))),ce(()=>ee(this.doc,"mouseup").pipe(Xe(1),w(Vr),Ee(o=>this.isOutside(o)))))}get element(){return this.el.nativeElement}isOutside(n){return Bu(n)&&(!J0(this.element,n)||n===this.element)}}return e.\u0275fac=function(n){return new(n||e)(M(he),M(ge),M(Q))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),jL=new Error("Required dialog was dismissed");function yb(e){return ri(e)?e:A(e)}var VL=(()=>{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 Ae,Ve(this.close$.pipe(ce(()=>yb(i.closeable))),s.pipe(ce(()=>yb(i.dismissible))),a.pipe(w(Ao))).pipe(Ee(Boolean),Me(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(jL):this.context.$implicit.complete()}}return e.\u0275fac=function(n){return new(n||e)(y(om),y(Wp),y(Xs),y(Ke,2),y(vb),y(FL),y(vl),y(gl))},e.\u0275cmp=ut({type:e,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&(lt("data-appearance",r.context.appearance)("data-size",r.size),ks("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),tt("_centered",r.header))},features:[ze([Ke,vb])],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&&(be(0,xL,2,2,"header",0),ye(1,"div",1),Le(2,"h2",2),ye(3,"section"),be(4,NL,5,2,"ng-container",3),ve()(),Le(5,"div",4),be(6,PL,3,5,"div",5)),n&2&&(B("ngIf",r.header),ie(2),B("id",r.context.id)("textContent",r.context.label),ie(2),B("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),ie(2),B("ngIf",r.context.closeable))},dependencies:[Oa,Lt,Ur,sw,Wn],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%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-modal)}[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:[lb,jl]}}),e})(),UL=new Ti(VL),BL=(()=>{class e extends ll{constructor(){super(...arguments),this.component=UL,this.defaultOptions=Object.assign(Object.assign({},v(LL)),{data:void 0})}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var oZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({providers:[KE(BL)],imports:[[Br,Bl,kt,aw]]}),e})();var Db=(()=>{class e{constructor(n){this.service=n}transform(n){return this.service.format(n.valueOf())}}return e.\u0275fac=function(n){return new(n||e)(y(ob,16))},e.\u0275pipe=gi({name:"tuiFormatDate",type:e,pure:!0}),e})(),_b=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();function $L(e,t){if(e&1){let n=Hn();ye(0,"button",10),st("click",function(){Vn(n);let i=me();return Un(i.close.emit())}),ln(1,"async"),ve()}if(e&2){let n=me();B("icon",n.icons.close)("title",dn(1,2,n.closeWord$))}}function HL(e,t){if(e&1&&(Le(0,"span",11),ln(1,"async"),ln(2,"tuiFormatDate")),e&2){let n=me();B("textContent",n.isString(n.timestamp)?n.timestamp:dn(1,1,dn(2,3,n.timestamp)))}}var zL=[[["img"]],[["tui-svg"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],GL=["img","tui-svg","*","[tuiButton]","[tuiLink]"];function WL(e,t){if(e&1&&Le(0,"img",8),e&2){let n=me(2);B("src",n.context.image,ID)}}function qL(e,t){if(e&1&&Le(0,"tui-svg",9),e&2){let n=me(2);wi("color",n.context.iconColor),B("src",n.context.icon)}}function YL(e,t){if(e&1&&Le(0,"div",10),e&2){let n=t.polymorpheusOutlet;B("innerHTML",n,bo)}}function ZL(e,t){if(e&1){let n=Hn();ye(0,"button",11),st("click",function(){Vn(n);let i=me(2);return Un(i.context.$implicit.next(i.context.buttons[0]))}),Gn(1),ve()}if(e&2){let n=me(2);ie(),un(" ",n.context.buttons[0]," ")}}function KL(e,t){if(e&1){let n=Hn();ye(0,"button",12),st("click",function(){Vn(n);let i=me(2);return Un(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),Gn(1),ve()}if(e&2){let n=me(2);ie(),un(" ",n.context.buttons[n.context.buttons.length-1]," ")}}function QL(e,t){if(e&1){let n=Hn();ye(0,"tui-push",2),st("close",function(){Vn(n);let i=me();return Un(i.context.$implicit.complete())}),be(1,WL,1,1,"img",3)(2,qL,1,3,"tui-svg",4)(3,YL,1,1,"div",5)(4,ZL,2,1,"button",6)(5,KL,2,1,"button",7),ve()}if(e&2){let n=me();B("heading",n.context.heading)("timestamp",n.context.timestamp)("type",n.context.type),ie(),B("ngIf",n.context.image),ie(),B("ngIf",n.context.icon),ie(),B("polymorpheusOutlet",n.context.content),ie(),B("ngIf",n.context.buttons.length>1),ie(),B("ngIf",n.context.buttons.length)}}function XL(e,t){e&1&&bi(0)}function JL(e,t){if(e&1&&be(0,XL,1,0,"ng-container",13),e&2){let n=me();B("polymorpheusOutlet",n.context.content)}}var ek=(()=>{class e{constructor(n,r){this.closeWord$=n,this.icons=r,this.heading="",this.type="",this.lines=2,this.timestamp="",this.close=new it,this.isString=Sn}get closeable(){return lE(this.close)}}return e.\u0275fac=function(n){return new(n||e)(y(vl),y(gl))},e.\u0275cmp=ut({type:e,selectors:[["tui-push"]],hostVars:2,hostBindings:function(n,r){n&2&&wi("--t-lines",r.lines)},inputs:{heading:"heading",type:"type",lines:"lines",timestamp:"timestamp"},outputs:{close:"close"},ngContentSelectors:GL,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&&(zn(zL),ye(0,"div",0),Yt(1),ve(),be(2,$L,2,4,"button",1),ye(3,"div",2)(4,"span",3),Yt(5,1),ve(),Gn(6),be(7,HL,3,5,"span",4),ve(),ye(8,"h3",5),Gn(9),ve(),ye(10,"div",6),Yt(11,2),ve(),ye(12,"div",7)(13,"span",8),Yt(14,3),ve(),ye(15,"span",9),Yt(16,4),ve()()),n&2&&(ie(2),B("ngIf",r.closeable),ie(4),un(" ",r.type," "),ie(),B("ngIf",r.timestamp),ie(2),un(" ",r.heading,"\n"))},dependencies:[Oa,Lt,Wn,Db],styles:['[_nghost-%COMP%]{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);box-shadow:var(--tui-shadow)}.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:var(--t-lines);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})(),tk=(()=>{class e extends Wr{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 Ae}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)(y(Wr,12))},e.\u0275dir=H({type:e,selectors:[["tui-push"]],features:[ze([{provide:Wr,useExisting:e},{provide:Zm,useExisting:e}]),He]}),e})(),nk={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},rk=Ie(nk);var ik=(()=>{class e extends pp{constructor(n,r,i,o){super(n,r),this.show$=new Ae,this.show$.pipe(uE(()=>o.open(this)),Me(i)).subscribe()}set tuiPush(n){this.show$.next(n)}}return e.\u0275fac=function(n){return new(n||e)(y(vt),y(Dt),y(Ke,2),y(gr(()=>Eb)))},e.\u0275dir=H({type:e,selectors:[["","tuiPush",""]],inputs:{tuiPush:"tuiPush"},features:[ze([Ke]),He]}),e})(),ok=(()=>{class e{constructor(n,r){this.animation=n,this.context=r}get isDirective(){return this.context.content instanceof ik}}return e.\u0275fac=function(n){return new(n||e)(y(_w),y(Xs))},e.\u0275cmp=ut({type:e,selectors:[["tui-push-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(n,r){n&2&&ks("@tuiFadeIn",r.animation)("@tuiSlideInRight",r.animation)("@tuiHeightCollapse",r.animation)},decls:3,vars:2,consts:[[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],["directive",""],[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"],[4,"polymorpheusOutlet"]],template:function(n,r){if(n&1&&be(0,QL,6,8,"tui-push",0)(1,JL,1,1,"ng-template",null,1,Iu),n&2){let i=Eu(2);B("ngIf",!r.isDirective)("ngIfElse",i)}},dependencies:[ek,Yo,Oa,mb,Lt,tk,Ur],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[jl,ub,cb]},changeDetection:0}),e})(),Eb=(()=>{class e extends ll{constructor(){super(...arguments),this.component=new Ti(ok),this.defaultOptions=v(rk)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=Fe(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),TZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({providers:[{provide:YE,useExisting:Eb,multi:!0}],imports:[[kt,Br,Bl,gb,Zo,_b]]}),e})();var bb=rI(wb());var sk=new _("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),ak=new _("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),ck=new _("A function that sanitizes value for a CSS rule",{factory:()=>e=>e,providedIn:"root"}),uk=bb.default,LZ=(()=>{class e{constructor(n,r,{defaultView:i},o){this.config=n,this.sanitizeStyle=r,this.domPurify=uk(i),o.forEach(({name:s,hook:a})=>{this.domPurify.addHook(s,a)})}sanitize(n,r,i=this.config){if(n===yt.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return n===yt.STYLE?this.sanitizeStyle(String(r)):this.domPurify.sanitize(String(r||""),i)}}return e.\u0275fac=function(n){return new(n||e)(M(sk),M(ck),M(ge),M(ak))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var kZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=X({}),e})();export{Ag as a,Je as b,R as c,Ae as d,qe as e,or as f,Oe as g,Qa as h,Xa as i,A as j,w as k,fc as l,Pn as m,mt as n,Ve as o,RI as p,Ee as q,kI as r,uv as s,Xe as t,ss as u,Ye as v,pc as w,Ht as x,Td as y,we as z,ce as A,Me as B,Ne as C,Sr as D,it as E,Ze as F,ut as G,K as H,H as I,gi as J,Vn as K,Un as L,As as M,Q as N,C as O,X as P,_ as Q,tn as R,jz as S,gr as T,M as U,v as V,vr as W,Gy as X,yr as Y,wo as Z,EM as _,cn as $,Fe as aa,qt as ba,yt as ca,bo as da,Vz as ea,Uz as fa,ie as ga,y as ha,vt as ia,If as ja,pi as ka,_r as la,Dt as ma,de as na,Ft as oa,He as pa,be as qa,lt as ra,B as sa,wi as ta,tt as ua,ye as va,ve as wa,Le as xa,In as ya,Cn as za,bi as Aa,Hn as Ba,Rh as Ca,ks as Da,st as Ea,me as Fa,zn as Ga,Yt as Ha,uO as Ia,x_ as Ja,Fh as Ka,Lh as La,Eu as Ma,Gn as Na,hO as Oa,un as Pa,pO as Qa,Hz as Ra,mO as Sa,ze as Ta,R_ as Ua,zz as Va,Gz as Wa,Wz as Xa,ln as Ya,dn as Za,qz as _a,Yz as $a,Zz as ab,Iu as bb,ge as cb,vG as db,yG as eb,Lt as fb,Wn as gb,kt as hb,Bs as ib,l0 as jb,GG as kb,v0 as lb,WG as mb,bF as nb,I6 as ob,ip as pb,T0 as qb,Mi as rb,l3 as sb,Vu as tb,eN as ub,rN as vb,f3 as wb,Ge as xb,E as yb,le as zb,B0 as Ab,dt as Bb,jr as Cb,Ao as Db,F3 as Eb,L3 as Fb,H0 as Gb,k3 as Hb,j3 as Ib,V3 as Jb,G0 as Kb,B3 as Lb,H3 as Mb,z3 as Nb,wr as Ob,W3 as Pb,q3 as Qb,Y3 as Rb,Z0 as Sb,Ie as Tb,oe as Ub,Si as Vb,Q3 as Wb,J0 as Xb,Bu as Yb,xo as Zb,Vr as _b,tW as $b,nW as ac,rW as bc,iW as cc,oW as dc,up as ec,eE as fc,tE as gc,uW as hc,Po as ic,nE as jc,Ro as kc,iE as lc,oE as mc,sE as nc,bW as oc,ee as pc,uE as qc,IW as rc,bN as sc,hE as tc,Yn as uc,Zn as vc,Xs as wc,Ti as xc,pp as yc,Ur as zc,Br as Ac,he as Bc,_3 as Cc,E3 as Dc,sp as Ec,aP as Fc,yE as Gc,wp as Hc,_E as Ic,sl as Jc,xE as Kc,NE as Lc,YE as Mc,JP as Nc,oa as Oc,ul as Pc,JW as Qc,sa as Rc,Wp as Sc,e4 as Tc,aa as Uc,u4 as Vc,Ke as Wc,x4 as Xc,Yp as Yc,oR as Zc,N4 as _c,P4 as $c,Kp as ad,ca as bd,Q4 as cd,tw as dd,X4 as ed,J4 as fd,nq as gd,rq as hd,Eq as id,wq as jd,bq as kd,hl as ld,Bq as md,$q as nd,cw as od,uw as pd,w8 as qd,b8 as rd,MR as sd,M8 as td,S8 as ud,Jp as vd,SR as wd,_l as xd,q5 as yd,El as zd,Y5 as Ad,Z5 as Bd,K5 as Cd,Pi as Dd,Q5 as Ed,X5 as Fd,fa as Gd,J5 as Hd,ZR as Id,e6 as Jd,jl as Kd,yY as Ld,h as Md,Ni as Nd,LR as Od,x8 as Pd,N8 as Qd,P8 as Rd,X8 as Sd,J8 as Td,e5 as Ud,t5 as Vd,yw as Wd,da as Xd,ko as Yd,jR as Zd,VR as _d,om as $d,_w as ae,gl as be,y5 as ce,D5 as de,HR as ee,w5 as fe,C5 as ge,zR as he,jo as ie,Dl as je,P5 as ke,R5 as le,YR as me,F5 as ne,L5 as oe,k5 as pe,j5 as qe,B6 as re,$6 as se,H6 as te,sb as ue,z6 as ve,Yo as we,Zo as xe,Wr as ye,Vl as ze,$Y as Ae,HY as Be,db as Ce,fb as De,hb as Ee,pb as Fe,Oa as Ge,Bl as He,mb as Ie,gb as Je,BL as Ke,oZ as Le,ek as Me,tk as Ne,ik as Oe,TZ as Pe,LZ as Qe,kZ as Re}; +//# sourceMappingURL=chunk-J7VW2QUP.js.map diff --git a/chunk-J7MZXETC.js.map b/chunk-J7VW2QUP.js.map similarity index 99% rename from chunk-J7MZXETC.js.map rename to chunk-J7VW2QUP.js.map index 64831e4a..f4a3accf 100644 --- a/chunk-J7MZXETC.js.map +++ b/chunk-J7VW2QUP.js.map @@ -1 +1 @@ -{"version":3,"sources":["node_modules/dompurify/dist/purify.js","node_modules/@angular/core/fesm2022/primitives/signals.mjs","node_modules/rxjs/dist/esm/internal/util/isFunction.js","node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","node_modules/rxjs/dist/esm/internal/util/arrRemove.js","node_modules/rxjs/dist/esm/internal/Subscription.js","node_modules/rxjs/dist/esm/internal/config.js","node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","node_modules/rxjs/dist/esm/internal/util/noop.js","node_modules/rxjs/dist/esm/internal/NotificationFactories.js","node_modules/rxjs/dist/esm/internal/util/errorContext.js","node_modules/rxjs/dist/esm/internal/Subscriber.js","node_modules/rxjs/dist/esm/internal/symbol/observable.js","node_modules/rxjs/dist/esm/internal/util/identity.js","node_modules/rxjs/dist/esm/internal/util/pipe.js","node_modules/rxjs/dist/esm/internal/Observable.js","node_modules/rxjs/dist/esm/internal/util/lift.js","node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","node_modules/rxjs/dist/esm/internal/operators/refCount.js","node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js","node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js","node_modules/rxjs/dist/esm/internal/Subject.js","node_modules/rxjs/dist/esm/internal/BehaviorSubject.js","node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js","node_modules/rxjs/dist/esm/internal/ReplaySubject.js","node_modules/rxjs/dist/esm/internal/scheduler/Action.js","node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js","node_modules/rxjs/dist/esm/internal/Scheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/async.js","node_modules/rxjs/dist/esm/internal/observable/empty.js","node_modules/rxjs/dist/esm/internal/util/isScheduler.js","node_modules/rxjs/dist/esm/internal/util/args.js","node_modules/tslib/tslib.es6.mjs","node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","node_modules/rxjs/dist/esm/internal/util/isPromise.js","node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","node_modules/rxjs/dist/esm/internal/symbol/iterator.js","node_modules/rxjs/dist/esm/internal/util/isIterable.js","node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","node_modules/rxjs/dist/esm/internal/operators/observeOn.js","node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","node_modules/rxjs/dist/esm/internal/observable/from.js","node_modules/rxjs/dist/esm/internal/observable/of.js","node_modules/rxjs/dist/esm/internal/observable/throwError.js","node_modules/rxjs/dist/esm/internal/util/isObservable.js","node_modules/rxjs/dist/esm/internal/util/EmptyError.js","node_modules/rxjs/dist/esm/internal/util/isDate.js","node_modules/rxjs/dist/esm/internal/operators/map.js","node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js","node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js","node_modules/rxjs/dist/esm/internal/util/createObject.js","node_modules/rxjs/dist/esm/internal/observable/combineLatest.js","node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js","node_modules/rxjs/dist/esm/internal/operators/mergeMap.js","node_modules/rxjs/dist/esm/internal/operators/mergeAll.js","node_modules/rxjs/dist/esm/internal/operators/concatAll.js","node_modules/rxjs/dist/esm/internal/observable/concat.js","node_modules/rxjs/dist/esm/internal/observable/defer.js","node_modules/rxjs/dist/esm/internal/observable/forkJoin.js","node_modules/rxjs/dist/esm/internal/observable/fromEvent.js","node_modules/rxjs/dist/esm/internal/observable/timer.js","node_modules/rxjs/dist/esm/internal/observable/merge.js","node_modules/rxjs/dist/esm/internal/observable/never.js","node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js","node_modules/rxjs/dist/esm/internal/operators/filter.js","node_modules/rxjs/dist/esm/internal/observable/race.js","node_modules/rxjs/dist/esm/internal/operators/catchError.js","node_modules/rxjs/dist/esm/internal/operators/scanInternals.js","node_modules/rxjs/dist/esm/internal/operators/concatMap.js","node_modules/rxjs/dist/esm/internal/operators/debounce.js","node_modules/rxjs/dist/esm/internal/operators/debounceTime.js","node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/take.js","node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js","node_modules/rxjs/dist/esm/internal/operators/mapTo.js","node_modules/rxjs/dist/esm/internal/operators/delayWhen.js","node_modules/rxjs/dist/esm/internal/operators/delay.js","node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js","node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/endWith.js","node_modules/rxjs/dist/esm/internal/operators/finalize.js","node_modules/rxjs/dist/esm/internal/operators/first.js","node_modules/rxjs/dist/esm/internal/operators/takeLast.js","node_modules/rxjs/dist/esm/internal/operators/last.js","node_modules/rxjs/dist/esm/internal/operators/repeat.js","node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js","node_modules/rxjs/dist/esm/internal/operators/scan.js","node_modules/rxjs/dist/esm/internal/operators/share.js","node_modules/rxjs/dist/esm/internal/operators/shareReplay.js","node_modules/rxjs/dist/esm/internal/operators/skip.js","node_modules/rxjs/dist/esm/internal/operators/skipWhile.js","node_modules/rxjs/dist/esm/internal/operators/startWith.js","node_modules/rxjs/dist/esm/internal/operators/switchMap.js","node_modules/rxjs/dist/esm/internal/operators/takeUntil.js","node_modules/rxjs/dist/esm/internal/operators/takeWhile.js","node_modules/rxjs/dist/esm/internal/operators/tap.js","node_modules/rxjs/dist/esm/internal/operators/throttle.js","node_modules/rxjs/dist/esm/internal/operators/throttleTime.js","node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js","node_modules/@angular/core/fesm2022/core.mjs","node_modules/@angular/common/fesm2022/common.mjs","node_modules/@angular/common/fesm2022/http.mjs","node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","node_modules/@angular/forms/fesm2022/forms.mjs","node_modules/@ng-web-apis/common/fesm2015/ng-web-apis-common.js","node_modules/@angular/animations/fesm2022/animations.mjs","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-constants.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-browser.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-math.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-miscellaneous.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-dom.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-focus.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-format.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-os.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-svg.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-exceptions.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-observables.js","node_modules/@tinkoff/ng-polymorpheus/fesm2015/tinkoff-ng-polymorpheus.js","node_modules/rxjs/dist/esm/internal/observable/dom/fetch.js","node_modules/@angular/animations/fesm2022/browser.mjs","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-tokens.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-services.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-abstract.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-coercion.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-pipes-mapper.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-scroll-controls.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-decorators.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-active-zone.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-auto-focus.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-let.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-overscroll.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-dropdown-host.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-enums.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-constants.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-enums.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-languages-english.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-tokens.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-tools.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-utils-dom.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-utils-miscellaneous.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-utils-mobile.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-enums.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-tokens.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-abstract.js","node_modules/@angular/router/fesm2022/router.mjs","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-services.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-svg.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-animations.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-directives-mode.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-providers.js","node_modules/@tinkoff/ng-event-plugins/fesm2015/tinkoff-ng-event-plugins.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-directives-wrapper.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-loader.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-button.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-link.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-dialog.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-pipes-format-date.js","node_modules/@taiga-ui/kit/fesm2015/taiga-ui-kit-components-push.js","node_modules/@tinkoff/ng-dompurify/fesm2015/tinkoff-ng-dompurify.js"],"sourcesContent":["/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, function () {\n 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n if (getOwnPropertyDescriptor(array, index) === undefined) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n if (getOwnPropertyDescriptor(object, property) !== undefined) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n return fallbackValue;\n }\n const html$1 = freeze(['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']);\n\n // SVG\n const svg$1 = freeze(['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']);\n const svgFilters = freeze(['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']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['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']);\n const mathMl$1 = freeze(['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']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n const html = freeze(['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']);\n const svg = freeze(['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']);\n const mathMl = freeze(['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']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME\n });\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.0.8';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with ... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['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']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = 'ALLOWED_NAMESPACES' in cfg ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via . If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via . If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '' + dirty + '';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ;else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ;else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ;else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ;else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ;else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ;else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ;else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName.indexOf('-') > 0;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ;else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n return purify;\n});\n","/**\n * @license Angular v17.2.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n producerMustRecompute: () => false,\n producerRecomputeValue: () => {},\n consumerMarkedDirty: () => {},\n consumerOnSignalRead: () => {}\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` : '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n } finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined || node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length = 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (node.liveConsumerNode.length === 0) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n newValue = node.computation();\n } catch (err) {\n newValue = ERRORED;\n node.error = err;\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n }\n };\n})();\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = () => {\n producerAccessed(node);\n return node.value;\n };\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = cleanupFn => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => {};\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: node => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN\n };\n})();\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\nexport { REACTIVE_NODE, SIGNAL, SIGNAL_NODE, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createSignal, createWatch, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, setActiveConsumer, setAlternateWeakRefImpl, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalSetFn, signalUpdateFn };\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n","export function createErrorClass(createImpl) {\n const _super = instance => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass(_super => function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}` : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n});\n","export function arrRemove(arr, item) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n constructor(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n unsubscribe() {\n let errors;\n if (!this.closed) {\n this.closed = true;\n const {\n _parentage\n } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n } else {\n _parentage.remove(this);\n }\n }\n const {\n initialTeardown: initialFinalizer\n } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n } catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n const {\n _finalizers\n } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n } catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n } else {\n errors.push(err);\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n add(teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n } else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n }\n _hasParent(parent) {\n const {\n _parentage\n } = this;\n return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);\n }\n _addParent(parent) {\n const {\n _parentage\n } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n _removeParent(parent) {\n const {\n _parentage\n } = this;\n if (_parentage === parent) {\n this._parentage = null;\n } else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n remove(teardown) {\n const {\n _finalizers\n } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\nSubscription.EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return value instanceof Subscription || value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n } else {\n finalizer.unsubscribe();\n }\n}\n","export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false\n};\n","export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const {\n delegate\n } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const {\n delegate\n } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined\n};\n","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const {\n onUnhandledError\n } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n } else {\n throw err;\n }\n });\n}\n","export function noop() {}\n","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind,\n value,\n error\n };\n}\n","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = {\n errorThrown: false,\n error: null\n };\n }\n cb();\n if (isRoot) {\n const {\n errorThrown,\n error\n } = context;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n } else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n constructor(destination) {\n super();\n this.isStopped = false;\n if (destination) {\n this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(this);\n }\n } else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n static create(next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n }\n next(value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n } else {\n this._next(value);\n }\n }\n error(err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n } else {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n } else {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null;\n }\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n try {\n this.destination.error(err);\n } finally {\n this.unsubscribe();\n }\n }\n _complete() {\n try {\n this.destination.complete();\n } finally {\n this.unsubscribe();\n }\n }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n constructor(partialObserver) {\n this.partialObserver = partialObserver;\n }\n next(value) {\n const {\n partialObserver\n } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n error(err) {\n const {\n partialObserver\n } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n } catch (error) {\n handleUnhandledError(error);\n }\n } else {\n handleUnhandledError(err);\n }\n }\n complete() {\n const {\n partialObserver\n } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(observerOrNext, error, complete) {\n super();\n let partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined\n };\n } else {\n let context;\n if (this && config.useDeprecatedNextContext) {\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context)\n };\n } else {\n partialObserver = observerOrNext;\n }\n }\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n } else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n const {\n onStoppedNotification\n } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop\n};\n","export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n","export function identity(x) {\n return x;\n}\n","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport let Observable = /*#__PURE__*/(() => {\n class Observable {\n constructor(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(() => {\n const {\n operator,\n source\n } = this;\n subscriber.add(operator ? operator.call(subscriber, source) : source ? this._subscribe(subscriber) : this._trySubscribe(subscriber));\n });\n return subscriber;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n } catch (err) {\n sink.error(err);\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: value => {\n try {\n next(value);\n } catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n this.subscribe(subscriber);\n });\n }\n _subscribe(subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe(x => value = x, err => reject(err), () => resolve(value));\n });\n }\n }\n Observable.create = subscribe => {\n return new Observable(subscribe);\n };\n return Observable;\n})();\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);\n}\n","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return source => {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n } catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n super(destination);\n this.onFinalize = onFinalize;\n this.shouldUnsubscribe = shouldUnsubscribe;\n this._next = onNext ? function (value) {\n try {\n onNext(value);\n } catch (err) {\n destination.error(err);\n }\n } : super._next;\n this._error = onError ? function (err) {\n try {\n onError(err);\n } catch (err) {\n destination.error(err);\n } finally {\n this.unsubscribe();\n }\n } : super._error;\n this._complete = onComplete ? function () {\n try {\n onComplete();\n } catch (err) {\n destination.error(err);\n } finally {\n this.unsubscribe();\n }\n } : super._complete;\n }\n unsubscribe() {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const {\n closed\n } = this;\n super.unsubscribe();\n !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n }\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n return operate((source, subscriber) => {\n let connection = null;\n source._refCount++;\n const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => {\n if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n connection = null;\n return;\n }\n const sharedConnection = source._connection;\n const conn = connection;\n connection = null;\n if (sharedConnection && (!conn || sharedConnection === conn)) {\n sharedConnection.unsubscribe();\n }\n subscriber.unsubscribe();\n });\n source.subscribe(refCounter);\n if (!refCounter.closed) {\n connection = source.connect();\n }\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { hasLift } from '../util/lift';\nexport class ConnectableObservable extends Observable {\n constructor(source, subjectFactory) {\n super();\n this.source = source;\n this.subjectFactory = subjectFactory;\n this._subject = null;\n this._refCount = 0;\n this._connection = null;\n if (hasLift(source)) {\n this.lift = source.lift;\n }\n }\n _subscribe(subscriber) {\n return this.getSubject().subscribe(subscriber);\n }\n getSubject() {\n const subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n }\n _teardown() {\n this._refCount = 0;\n const {\n _connection\n } = this;\n this._subject = this._connection = null;\n _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();\n }\n connect() {\n let connection = this._connection;\n if (!connection) {\n connection = this._connection = new Subscription();\n const subject = this.getSubject();\n connection.add(this.source.subscribe(createOperatorSubscriber(subject, undefined, () => {\n this._teardown();\n subject.complete();\n }, err => {\n this._teardown();\n subject.error(err);\n }, () => this._teardown())));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n }\n refCount() {\n return higherOrderRefCount()(this);\n }\n}\n","import { createErrorClass } from './createErrorClass';\nexport const ObjectUnsubscribedError = createErrorClass(_super => function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n});\n","import { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nexport let Subject = /*#__PURE__*/(() => {\n class Subject extends Observable {\n constructor() {\n super();\n this.closed = false;\n this.currentObservers = null;\n this.observers = [];\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n _throwIfClosed() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n }\n next(value) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n if (!this.currentObservers) {\n this.currentObservers = Array.from(this.observers);\n }\n for (const observer of this.currentObservers) {\n observer.next(value);\n }\n }\n });\n }\n error(err) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.hasError = this.isStopped = true;\n this.thrownError = err;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n }\n complete() {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.isStopped = true;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n }\n unsubscribe() {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n }\n get observed() {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n }\n _trySubscribe(subscriber) {\n this._throwIfClosed();\n return super._trySubscribe(subscriber);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n }\n _innerSubscribe(subscriber) {\n const {\n hasError,\n isStopped,\n observers\n } = this;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(() => {\n this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n }\n _checkFinalizedStatuses(subscriber) {\n const {\n hasError,\n thrownError,\n isStopped\n } = this;\n if (hasError) {\n subscriber.error(thrownError);\n } else if (isStopped) {\n subscriber.complete();\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n }\n Subject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n})();\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n }\n error(err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n }\n complete() {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n _subscribe(subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n }\n}\n","import { Subject } from './Subject';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n !subscription.closed && subscriber.next(this._value);\n return subscription;\n }\n getValue() {\n const {\n hasError,\n thrownError,\n _value\n } = this;\n if (hasError) {\n throw thrownError;\n }\n this._throwIfClosed();\n return _value;\n }\n next(value) {\n super.next(this._value = value);\n }\n}\n","export const dateTimestampProvider = {\n now() {\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined\n};\n","import { Subject } from './Subject';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class ReplaySubject extends Subject {\n constructor(_bufferSize = Infinity, _windowTime = Infinity, _timestampProvider = dateTimestampProvider) {\n super();\n this._bufferSize = _bufferSize;\n this._windowTime = _windowTime;\n this._timestampProvider = _timestampProvider;\n this._buffer = [];\n this._infiniteTimeWindow = true;\n this._infiniteTimeWindow = _windowTime === Infinity;\n this._bufferSize = Math.max(1, _bufferSize);\n this._windowTime = Math.max(1, _windowTime);\n }\n next(value) {\n const {\n isStopped,\n _buffer,\n _infiniteTimeWindow,\n _timestampProvider,\n _windowTime\n } = this;\n if (!isStopped) {\n _buffer.push(value);\n !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n }\n this._trimBuffer();\n super.next(value);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._trimBuffer();\n const subscription = this._innerSubscribe(subscriber);\n const {\n _infiniteTimeWindow,\n _buffer\n } = this;\n const copy = _buffer.slice();\n for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n subscriber.next(copy[i]);\n }\n this._checkFinalizedStatuses(subscriber);\n return subscription;\n }\n _trimBuffer() {\n const {\n _bufferSize,\n _timestampProvider,\n _buffer,\n _infiniteTimeWindow\n } = this;\n const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n if (!_infiniteTimeWindow) {\n const now = _timestampProvider.now();\n let last = 0;\n for (let i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {\n last = i;\n }\n last && _buffer.splice(0, last + 1);\n }\n }\n}\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n constructor(scheduler, work) {\n super();\n }\n schedule(state, delay = 0) {\n return this;\n }\n}\n","export const intervalProvider = {\n setInterval(handler, timeout, ...args) {\n const {\n delegate\n } = intervalProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval(handler, timeout, ...args);\n }\n return setInterval(handler, timeout, ...args);\n },\n clearInterval(handle) {\n const {\n delegate\n } = intervalProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined\n};\n","import { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nexport class AsyncAction extends Action {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n this.pending = false;\n }\n schedule(state, delay = 0) {\n var _a;\n if (this.closed) {\n return this;\n }\n this.state = state;\n const id = this.id;\n const scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n }\n requestAsyncId(scheduler, _id, delay = 0) {\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n }\n recycleAsyncId(_scheduler, id, delay = 0) {\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n }\n execute(state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n const error = this._execute(state, delay);\n if (error) {\n return error;\n } else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n }\n _execute(state, _delay) {\n let errored = false;\n let errorValue;\n try {\n this.work(state);\n } catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n }\n unsubscribe() {\n if (!this.closed) {\n const {\n id,\n scheduler\n } = this;\n const {\n actions\n } = scheduler;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n super.unsubscribe();\n }\n }\n}\n","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class Scheduler {\n constructor(schedulerActionCtor, now = Scheduler.now) {\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n schedule(work, delay = 0, state) {\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n }\n}\nScheduler.now = dateTimestampProvider.now;\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n super(SchedulerAction, now);\n this.actions = [];\n this._active = false;\n }\n flush(action) {\n const {\n actions\n } = this;\n if (this._active) {\n actions.push(action);\n return;\n }\n let error;\n this._active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this._active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable(subscriber => subscriber.complete());\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));\n}\n","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n};\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nexport var __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nexport function __param(paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind,\n key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _,\n done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\n;\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n}\n;\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\n;\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\n;\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nexport function __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nexport var __createBinding = Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = {\n enumerable: true,\n get: function () {\n return m[k];\n }\n };\n }\n Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];\n return r;\n}\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []),\n i,\n q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i;\n function verb(n) {\n if (g[n]) i[n] = function (v) {\n return new Promise(function (a, b) {\n q.push([n, v, a, b]) > 1 || resume(n, v);\n });\n };\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function () {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function (v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator],\n i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function (v) {\n return new Promise(function (resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function (v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n return cooked;\n}\n;\nvar __setModuleDefault = Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n};\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\nexport function __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) {\n env.stack.push({\n async: true\n });\n }\n return value;\n}\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function (e) {\n fail(e);\n return next();\n });\n } catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources\n};","export const isArrayLike = x => x && typeof x.length === 'number' && typeof x !== 'function';\n","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n","export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const {\n value,\n done\n } = yield __await(reader.read());\n if (done) {\n return yield __await(void 0);\n }\n yield yield __await(value);\n }\n } finally {\n reader.releaseLock();\n }\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable(subscriber => {\n const obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable(subscriber => {\n for (let i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable(subscriber => {\n promise.then(value => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, err => subscriber.error(err)).then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable(subscriber => {\n for (const value of iterable) {\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable(subscriber => {\n process(asyncIterable, subscriber).catch(err => subscriber.error(err));\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_1, _a;\n return __awaiter(this, void 0, void 0, function* () {\n try {\n for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n const value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n subscriber.complete();\n });\n}\n","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n const scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n } else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, value => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), err => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n });\n}\n","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable(subscriber => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n } else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable(subscriber => {\n let iterator;\n executeSchedule(subscriber, scheduler, () => {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, () => {\n let value;\n let done;\n try {\n ({\n value,\n done\n } = iterator.next());\n } catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n } else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n });\n}\n","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(subscriber => {\n executeSchedule(subscriber, scheduler, () => {\n const iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, () => {\n iterator.next().then(result => {\n if (result.done) {\n subscriber.complete();\n } else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n const init = subscriber => subscriber.error(errorFactory());\n return new Observable(scheduler ? subscriber => scheduler.schedule(init, 0, subscriber) : init);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || isFunction(obj.lift) && isFunction(obj.subscribe));\n}\n","import { createErrorClass } from './createErrorClass';\nexport const EmptyError = createErrorClass(_super => function EmptyErrorImpl() {\n _super(this);\n this.name = 'EmptyError';\n this.message = 'no elements in sequence';\n});\n","export function isValidDate(value) {\n return value instanceof Date && !isNaN(value);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function map(project, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n subscriber.next(project.call(thisArg, value, index++));\n }));\n });\n}\n","import { map } from \"../operators/map\";\nconst {\n isArray\n} = Array;\nfunction callOrApply(fn, args) {\n return isArray(args) ? fn(...args) : fn(args);\n}\nexport function mapOneOrManyArgs(fn) {\n return map(args => callOrApply(fn, args));\n}\n","const {\n isArray\n} = Array;\nconst {\n getPrototypeOf,\n prototype: objectProto,\n keys: getKeys\n} = Object;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n const first = args[0];\n if (isArray(first)) {\n return {\n args: first,\n keys: null\n };\n }\n if (isPOJO(first)) {\n const keys = getKeys(first);\n return {\n args: keys.map(key => first[key]),\n keys\n };\n }\n }\n return {\n args: args,\n keys: null\n };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n","export function createObject(keys, values) {\n return keys.reduce((result, key, i) => (result[key] = values[i], result), {});\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest(...args) {\n const scheduler = popScheduler(args);\n const resultSelector = popResultSelector(args);\n const {\n args: observables,\n keys\n } = argsArgArrayOrObject(args);\n if (observables.length === 0) {\n return from([], scheduler);\n }\n const result = new Observable(combineLatestInit(observables, scheduler, keys ? values => createObject(keys, values) : identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform = identity) {\n return subscriber => {\n maybeSchedule(scheduler, () => {\n const {\n length\n } = observables;\n const values = new Array(length);\n let active = length;\n let remainingFirstValues = length;\n for (let i = 0; i < length; i++) {\n maybeSchedule(scheduler, () => {\n const source = from(observables[i], scheduler);\n let hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, () => {\n if (! --active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n } else {\n execute();\n }\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {\n const buffer = [];\n let active = 0;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => {\n if (isComplete && !buffer.length && !active) {\n subscriber.complete();\n }\n };\n const outerNext = value => active < concurrent ? doInnerSub(value) : buffer.push(value);\n const doInnerSub = value => {\n expand && subscriber.next(value);\n active++;\n let innerComplete = false;\n innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, innerValue => {\n onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);\n if (expand) {\n outerNext(innerValue);\n } else {\n subscriber.next(innerValue);\n }\n }, () => {\n innerComplete = true;\n }, undefined, () => {\n if (innerComplete) {\n try {\n active--;\n while (buffer.length && active < concurrent) {\n const bufferedValue = buffer.shift();\n if (innerSubScheduler) {\n executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n } else {\n doInnerSub(bufferedValue);\n }\n }\n checkComplete();\n } catch (err) {\n subscriber.error(err);\n }\n }\n }));\n };\n source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {\n isComplete = true;\n checkComplete();\n }));\n return () => {\n additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();\n };\n}\n","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent = Infinity) {\n if (isFunction(resultSelector)) {\n return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n } else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Infinity) {\n return mergeMap(identity, concurrent);\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat(...args) {\n return concatAll()(from(args, popScheduler(args)));\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nexport function defer(observableFactory) {\n return new Observable(subscriber => {\n innerFrom(observableFactory()).subscribe(subscriber);\n });\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { innerFrom } from './innerFrom';\nimport { popResultSelector } from '../util/args';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { createObject } from '../util/createObject';\nexport function forkJoin(...args) {\n const resultSelector = popResultSelector(args);\n const {\n args: sources,\n keys\n } = argsArgArrayOrObject(args);\n const result = new Observable(subscriber => {\n const {\n length\n } = sources;\n if (!length) {\n subscriber.complete();\n return;\n }\n const values = new Array(length);\n let remainingCompletions = length;\n let remainingEmissions = length;\n for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) {\n let hasValue = false;\n innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, value => {\n if (!hasValue) {\n hasValue = true;\n remainingEmissions--;\n }\n values[sourceIndex] = value;\n }, () => remainingCompletions--, undefined, () => {\n if (!remainingCompletions || !hasValue) {\n if (!remainingEmissions) {\n subscriber.next(keys ? createObject(keys, values) : values);\n }\n subscriber.complete();\n }\n }));\n }\n });\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'];\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'];\nconst jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n }\n const [add, remove] = isEventTarget(target) ? eventTargetMethods.map(methodName => handler => target[methodName](eventName, handler, options)) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [];\n if (!add) {\n if (isArrayLike(target)) {\n return mergeMap(subTarget => fromEvent(subTarget, eventName, options))(innerFrom(target));\n }\n }\n if (!add) {\n throw new TypeError('Invalid event target');\n }\n return new Observable(subscriber => {\n const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);\n add(handler);\n return () => remove(handler);\n });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n return methodName => handler => target[methodName](eventName, handler);\n}\nfunction isNodeStyleEventEmitter(target) {\n return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n","import { Observable } from '../Observable';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\nexport function timer(dueTime = 0, intervalOrScheduler, scheduler = asyncScheduler) {\n let intervalDuration = -1;\n if (intervalOrScheduler != null) {\n if (isScheduler(intervalOrScheduler)) {\n scheduler = intervalOrScheduler;\n } else {\n intervalDuration = intervalOrScheduler;\n }\n }\n return new Observable(subscriber => {\n let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;\n if (due < 0) {\n due = 0;\n }\n let n = 0;\n return scheduler.schedule(function () {\n if (!subscriber.closed) {\n subscriber.next(n++);\n if (0 <= intervalDuration) {\n this.schedule(undefined, intervalDuration);\n } else {\n subscriber.complete();\n }\n }\n }, due);\n });\n}\n","import { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\nexport function merge(...args) {\n const scheduler = popScheduler(args);\n const concurrent = popNumber(args, Infinity);\n const sources = args;\n return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));\n}\n","import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\nexport const NEVER = new Observable(noop);\nexport function never() {\n return NEVER;\n}\n","const {\n isArray\n} = Array;\nexport function argsOrArgArray(args) {\n return args.length === 1 && isArray(args[0]) ? args[0] : args;\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => predicate.call(thisArg, value, index++) && subscriber.next(value)));\n });\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nexport function race(...sources) {\n sources = argsOrArgArray(sources);\n return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources));\n}\nexport function raceInit(sources) {\n return subscriber => {\n let subscriptions = [];\n for (let i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {\n subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, value => {\n if (subscriptions) {\n for (let s = 0; s < subscriptions.length; s++) {\n s !== i && subscriptions[s].unsubscribe();\n }\n subscriptions = null;\n }\n subscriber.next(value);\n })));\n }\n };\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\nexport function catchError(selector) {\n return operate((source, subscriber) => {\n let innerSub = null;\n let syncUnsub = false;\n let handledResult;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, err => {\n handledResult = innerFrom(selector(err, catchError(selector)(source)));\n if (innerSub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n } else {\n syncUnsub = true;\n }\n }));\n if (syncUnsub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n });\n}\n","import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n return (source, subscriber) => {\n let hasState = hasSeed;\n let state = seed;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const i = index++;\n state = hasState ? accumulator(state, value, i) : (hasState = true, value);\n emitOnNext && subscriber.next(state);\n }, emitBeforeComplete && (() => {\n hasState && subscriber.next(state);\n subscriber.complete();\n })));\n };\n}\n","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n","import { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function debounce(durationSelector) {\n return operate((source, subscriber) => {\n let hasValue = false;\n let lastValue = null;\n let durationSubscriber = null;\n const emit = () => {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n durationSubscriber = null;\n if (hasValue) {\n hasValue = false;\n const value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n hasValue = true;\n lastValue = value;\n durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);\n innerFrom(durationSelector(value)).subscribe(durationSubscriber);\n }, () => {\n emit();\n subscriber.complete();\n }, undefined, () => {\n lastValue = durationSubscriber = null;\n }));\n });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler = asyncScheduler) {\n return operate((source, subscriber) => {\n let activeTask = null;\n let lastValue = null;\n let lastTime = null;\n const emit = () => {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n const value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n const targetTime = lastTime + dueTime;\n const now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, () => {\n emit();\n subscriber.complete();\n }, undefined, () => {\n lastValue = activeTask = null;\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function defaultIfEmpty(defaultValue) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => {\n if (!hasValue) {\n subscriber.next(defaultValue);\n }\n subscriber.complete();\n }));\n });\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function take(count) {\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let seen = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n if (++seen <= count) {\n subscriber.next(value);\n if (count <= seen) {\n subscriber.complete();\n }\n }\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nexport function ignoreElements() {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, noop));\n });\n}\n","import { map } from './map';\nexport function mapTo(value) {\n return map(() => value);\n}\n","import { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n if (subscriptionDelay) {\n return source => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n }\n return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\nexport function delay(due, scheduler = asyncScheduler) {\n const duration = timer(due, scheduler);\n return delayWhen(() => duration);\n}\n","import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function distinctUntilChanged(comparator, keySelector = identity) {\n comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;\n return operate((source, subscriber) => {\n let previousKey;\n let first = true;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const currentKey = keySelector(value);\n if (first || !comparator(previousKey, currentKey)) {\n first = false;\n previousKey = currentKey;\n subscriber.next(value);\n }\n }));\n });\n}\nfunction defaultCompare(a, b) {\n return a === b;\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));\n });\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n","import { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nexport function endWith(...values) {\n return source => concat(source, of(...values));\n}\n","import { operate } from '../util/lift';\nexport function finalize(callback) {\n return operate((source, subscriber) => {\n try {\n source.subscribe(subscriber);\n } finally {\n subscriber.add(callback);\n }\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeLast(count) {\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let buffer = [];\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n buffer.push(value);\n count < buffer.length && buffer.shift();\n }, () => {\n for (const value of buffer) {\n subscriber.next(value);\n }\n subscriber.complete();\n }, undefined, () => {\n buffer = null;\n }));\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\nexport function repeat(countOrConfig) {\n let count = Infinity;\n let delay;\n if (countOrConfig != null) {\n if (typeof countOrConfig === 'object') {\n ({\n count = Infinity,\n delay\n } = countOrConfig);\n } else {\n count = countOrConfig;\n }\n }\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let soFar = 0;\n let sourceSub;\n const resubscribe = () => {\n sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();\n sourceSub = null;\n if (delay != null) {\n const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n notifierSubscriber.unsubscribe();\n subscribeToSource();\n });\n notifier.subscribe(notifierSubscriber);\n } else {\n subscribeToSource();\n }\n };\n const subscribeToSource = () => {\n let syncUnsub = false;\n sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => {\n if (++soFar < count) {\n if (sourceSub) {\n resubscribe();\n } else {\n syncUnsub = true;\n }\n } else {\n subscriber.complete();\n }\n }));\n if (syncUnsub) {\n resubscribe();\n }\n };\n subscribeToSource();\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function repeatWhen(notifier) {\n return operate((source, subscriber) => {\n let innerSub;\n let syncResub = false;\n let completions$;\n let isNotifierComplete = false;\n let isMainComplete = false;\n const checkComplete = () => isMainComplete && isNotifierComplete && (subscriber.complete(), true);\n const getCompletionSubject = () => {\n if (!completions$) {\n completions$ = new Subject();\n innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, () => {\n if (innerSub) {\n subscribeForRepeatWhen();\n } else {\n syncResub = true;\n }\n }, () => {\n isNotifierComplete = true;\n checkComplete();\n }));\n }\n return completions$;\n };\n const subscribeForRepeatWhen = () => {\n isMainComplete = false;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => {\n isMainComplete = true;\n !checkComplete() && getCompletionSubject().next();\n }));\n if (syncResub) {\n innerSub.unsubscribe();\n innerSub = null;\n syncResub = false;\n subscribeForRepeatWhen();\n }\n };\n subscribeForRepeatWhen();\n });\n}\n","import { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\nexport function scan(accumulator, seed) {\n return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { operate } from '../util/lift';\nexport function share(options = {}) {\n const {\n connector = () => new Subject(),\n resetOnError = true,\n resetOnComplete = true,\n resetOnRefCountZero = true\n } = options;\n return wrapperSource => {\n let connection;\n let resetConnection;\n let subject;\n let refCount = 0;\n let hasCompleted = false;\n let hasErrored = false;\n const cancelReset = () => {\n resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();\n resetConnection = undefined;\n };\n const reset = () => {\n cancelReset();\n connection = subject = undefined;\n hasCompleted = hasErrored = false;\n };\n const resetAndUnsubscribe = () => {\n const conn = connection;\n reset();\n conn === null || conn === void 0 ? void 0 : conn.unsubscribe();\n };\n return operate((source, subscriber) => {\n refCount++;\n if (!hasErrored && !hasCompleted) {\n cancelReset();\n }\n const dest = subject = subject !== null && subject !== void 0 ? subject : connector();\n subscriber.add(() => {\n refCount--;\n if (refCount === 0 && !hasErrored && !hasCompleted) {\n resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n }\n });\n dest.subscribe(subscriber);\n if (!connection && refCount > 0) {\n connection = new SafeSubscriber({\n next: value => dest.next(value),\n error: err => {\n hasErrored = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnError, err);\n dest.error(err);\n },\n complete: () => {\n hasCompleted = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnComplete);\n dest.complete();\n }\n });\n innerFrom(source).subscribe(connection);\n }\n })(wrapperSource);\n };\n}\nfunction handleReset(reset, on, ...args) {\n if (on === true) {\n reset();\n return;\n }\n if (on === false) {\n return;\n }\n const onSubscriber = new SafeSubscriber({\n next: () => {\n onSubscriber.unsubscribe();\n reset();\n }\n });\n return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n","import { ReplaySubject } from '../ReplaySubject';\nimport { share } from './share';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n let bufferSize;\n let refCount = false;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n ({\n bufferSize = Infinity,\n windowTime = Infinity,\n refCount = false,\n scheduler\n } = configOrBufferSize);\n } else {\n bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;\n }\n return share({\n connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n resetOnError: true,\n resetOnComplete: false,\n resetOnRefCountZero: refCount\n });\n}\n","import { filter } from './filter';\nexport function skip(count) {\n return filter((_, index) => count <= index);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function skipWhile(predicate) {\n return operate((source, subscriber) => {\n let taking = false;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)));\n });\n}\n","import { concat } from '../observable/concat';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\nexport function startWith(...values) {\n const scheduler = popScheduler(values);\n return operate((source, subscriber) => {\n (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n return operate((source, subscriber) => {\n let innerSubscriber = null;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n let innerIndex = 0;\n const outerIndex = index++;\n innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber, innerValue => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {\n innerSubscriber = null;\n checkComplete();\n }));\n }, () => {\n isComplete = true;\n checkComplete();\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n return operate((source, subscriber) => {\n innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n !subscriber.closed && source.subscribe(subscriber);\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeWhile(predicate, inclusive = false) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const result = predicate(value, index++);\n (result || inclusive) && subscriber.next(value);\n !result && subscriber.complete();\n }));\n });\n}\n","import { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nexport function tap(observerOrNext, error, complete) {\n const tapObserver = isFunction(observerOrNext) || error || complete ? {\n next: observerOrNext,\n error,\n complete\n } : observerOrNext;\n return tapObserver ? operate((source, subscriber) => {\n var _a;\n (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n let isUnsub = true;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n var _a;\n (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);\n subscriber.next(value);\n }, () => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n subscriber.complete();\n }, err => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);\n subscriber.error(err);\n }, () => {\n var _a, _b;\n if (isUnsub) {\n (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n }\n (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);\n }));\n }) : identity;\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function throttle(durationSelector, config) {\n return operate((source, subscriber) => {\n const {\n leading = true,\n trailing = false\n } = config !== null && config !== void 0 ? config : {};\n let hasValue = false;\n let sendValue = null;\n let throttled = null;\n let isComplete = false;\n const endThrottling = () => {\n throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();\n throttled = null;\n if (trailing) {\n send();\n isComplete && subscriber.complete();\n }\n };\n const cleanupThrottling = () => {\n throttled = null;\n isComplete && subscriber.complete();\n };\n const startThrottle = value => throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));\n const send = () => {\n if (hasValue) {\n hasValue = false;\n const value = sendValue;\n sendValue = null;\n subscriber.next(value);\n !isComplete && startThrottle(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n sendValue = value;\n !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n }, () => {\n isComplete = true;\n !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n }));\n });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { throttle } from './throttle';\nimport { timer } from '../observable/timer';\nexport function throttleTime(duration, scheduler = asyncScheduler, config) {\n const duration$ = timer(duration, scheduler);\n return throttle(() => duration$, config);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\nexport function withLatestFrom(...inputs) {\n const project = popResultSelector(inputs);\n return operate((source, subscriber) => {\n const len = inputs.length;\n const otherValues = new Array(len);\n let hasValue = inputs.map(() => false);\n let ready = false;\n for (let i = 0; i < len; i++) {\n innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, value => {\n otherValues[i] = value;\n if (!ready && !hasValue[i]) {\n hasValue[i] = true;\n (ready = hasValue.every(identity)) && (hasValue = null);\n }\n }, noop));\n }\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n if (ready) {\n const values = [value, ...otherValues];\n subscriber.next(project ? project(...values) : values);\n }\n }));\n });\n}\n","/**\n * @license Angular v17.2.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { SIGNAL_NODE as SIGNAL_NODE$1, signalSetFn as signalSetFn$1, producerAccessed as producerAccessed$1, SIGNAL as SIGNAL$1, setActiveConsumer as setActiveConsumer$1, consumerDestroy as consumerDestroy$1, REACTIVE_NODE as REACTIVE_NODE$1, consumerBeforeComputation as consumerBeforeComputation$1, consumerAfterComputation as consumerAfterComputation$1, consumerPollProducersForChange as consumerPollProducersForChange$1, createComputed as createComputed$1, createSignal as createSignal$1, signalUpdateFn as signalUpdateFn$1, getActiveConsumer as getActiveConsumer$1, createWatch as createWatch$1, setThrowInvalidWriteToSignalError as setThrowInvalidWriteToSignalError$1 } from '@angular/core/primitives/signals';\nimport { Subject, Subscription, BehaviorSubject } from 'rxjs';\nimport { map, first } from 'rxjs/operators';\n\n/**\n * Base URL for the error details page.\n *\n * Keep this constant in sync across:\n * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n * - packages/core/src/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';\n/**\n * URL for the XSS security documentation.\n */\nconst XSS_SECURITY_URL = 'https://g.co/ng/security#xss';\n\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```\n * throw new RuntimeError(\n * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,\n * ngDevMode && 'Injector has already been destroyed.');\n * ```\n *\n * Note: the `message` argument contains a descriptive error message as a string in development\n * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the\n * `message` argument becomes `false`, thus we account for it in the typings and the runtime\n * logic.\n */\nclass RuntimeError extends Error {\n constructor(code, message) {\n super(formatRuntimeError(code, message));\n this.code = code;\n }\n}\n/**\n * Called to format a runtime error.\n * See additional info on the `message` argument type in the `RuntimeError` class description.\n */\nfunction formatRuntimeError(code, message) {\n // Error code might be a negative number, which is a special marker that instructs the logic to\n // generate a link to the error details page on angular.io.\n // We also prepend `0` to non-compile-time errors.\n const fullCode = `NG0${Math.abs(code)}`;\n let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;\n if (ngDevMode && code < 0) {\n const addPeriodSeparator = !errorMessage.match(/[.,;!?\\n]$/);\n const separator = addPeriodSeparator ? '.' : '';\n errorMessage = `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n }\n return errorMessage;\n}\nconst REQUIRED_UNSET_VALUE = /* @__PURE__ */Symbol('InputSignalNode#UNSET');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst INPUT_SIGNAL_NODE = /* @__PURE__ */(() => {\n return {\n ...SIGNAL_NODE$1,\n transformFn: undefined,\n applyValueToInputSignal(node, value) {\n signalSetFn$1(node, value);\n }\n };\n})();\nconst ɵINPUT_SIGNAL_BRAND_READ_TYPE = /* @__PURE__ */Symbol();\nconst ɵINPUT_SIGNAL_BRAND_WRITE_TYPE = /* @__PURE__ */Symbol();\n/**\n * Creates an input signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required inputs.\n * @param options Additional options for the input. e.g. a transform, or an alias.\n */\nfunction createInputSignal(initialValue, options) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n node.value = initialValue;\n // Perf note: Always set `transformFn` here to ensure that `node` always\n // has the same v8 class shape, allowing monomorphic reads on input signals.\n node.transformFn = options?.transform;\n function inputValueFn() {\n // Record that someone looked at this signal.\n producerAccessed$1(node);\n if (node.value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(-950 /* RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE */, ngDevMode && 'Input is required but no value is available yet.');\n }\n return node.value;\n }\n inputValueFn[SIGNAL$1] = node;\n if (ngDevMode) {\n inputValueFn.toString = () => `[Input Signal: ${inputValueFn()}]`;\n }\n return inputValueFn;\n}\nclass EventEmitter_ extends Subject {\n constructor(isAsync = false) {\n super();\n this.__isAsync = isAsync;\n }\n emit(value) {\n super.next(value);\n }\n subscribe(observerOrNext, error, complete) {\n let nextFn = observerOrNext;\n let errorFn = error || (() => null);\n let completeFn = complete;\n if (observerOrNext && typeof observerOrNext === 'object') {\n const observer = observerOrNext;\n nextFn = observer.next?.bind(observer);\n errorFn = observer.error?.bind(observer);\n completeFn = observer.complete?.bind(observer);\n }\n if (this.__isAsync) {\n errorFn = _wrapInTimeout(errorFn);\n if (nextFn) {\n nextFn = _wrapInTimeout(nextFn);\n }\n if (completeFn) {\n completeFn = _wrapInTimeout(completeFn);\n }\n }\n const sink = super.subscribe({\n next: nextFn,\n error: errorFn,\n complete: completeFn\n });\n if (observerOrNext instanceof Subscription) {\n observerOrNext.add(sink);\n }\n return sink;\n }\n}\nfunction _wrapInTimeout(fn) {\n return value => {\n setTimeout(fn, undefined, value);\n };\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\n\n/**\n * The `outputs` function allows declaration of outputs in directives and\n * components.\n *\n * Initializes an output that can emit values to consumers of your\n * directive/component.\n *\n * @usageNotes\n * Initialize an output in your directive by declaring a\n * class field and initializing it with the `output()` function.\n *\n * ```ts\n * @Directive({..})\n * export class MyDir {\n * nameChange = output(); // OutputEmitter\n * onClick = output(); // OutputEmitter\n * }\n * ```\n *\n * @developerPreview\n */\nfunction output(opts) {\n return new EventEmitter();\n}\nfunction inputFunction(initialValue, opts) {\n return createInputSignal(initialValue, opts);\n}\nfunction inputRequiredFunction(opts) {\n return createInputSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * The `input` function allows declaration of inputs in directives and\n * components.\n *\n * Initializes an input with an initial value. If no explicit value\n * is specified, Angular will use `undefined`.\n *\n * Consider using `input.required` for inputs that don't need an\n * initial value.\n *\n * @usageNotes\n * Initialize an input in your directive or component by declaring a\n * class field and initializing it with the `input()` function.\n *\n * ```ts\n * @Directive({..})\n * export class MyDir {\n * firstName = input(); // string|undefined\n * lastName = input.required(); // string\n * age = input(0); // number\n * }\n * ```\n *\n * @developerPreview\n */\nconst input = /*#__PURE__*/(() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `input` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing`input` export.\n inputFunction.required = inputRequiredFunction;\n return inputFunction;\n})();\n\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for [`inject`](api/core/inject) instead.\n */\nvar InjectFlags = /*#__PURE__*/function (InjectFlags) {\n // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n // writes exports of it into ngfactory files.\n /** Check self and check parent injector if needed */\n InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n /** Don't ascend to ancestors of the node requesting injection. */\n InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n /** Skip the node that is requesting injection. */\n InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n /** Inject `defaultValue` instead if token not found. */\n InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n return InjectFlags;\n}(InjectFlags || {});\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;\n}\n/**\n * Ellipses the string in the middle when longer than the max length\n *\n * @param string\n * @param maxLength of the output string\n * @returns ellipsed string with ... in the middle\n */\nfunction truncateMiddle(str, maxLength = 100) {\n if (!str || maxLength < 1 || str.length <= maxLength) return str;\n if (maxLength == 1) return str.substring(0, 1) + '...';\n const halfLimit = Math.round(maxLength / 2);\n return str.substring(0, halfLimit) + '...' + str.substring(str.length - halfLimit);\n}\n\n// The functions in this file verify that the assumptions we are making\nfunction assertNumber(actual, msg) {\n if (!(typeof actual === 'number')) {\n throwError(msg, typeof actual, 'number', '===');\n }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n assertNumber(actual, 'Expected a number');\n assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n if (!(typeof actual === 'string')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n }\n}\nfunction assertFunction(actual, msg) {\n if (!(typeof actual === 'function')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n }\n}\nfunction assertEqual(actual, expected, msg) {\n if (!(actual == expected)) {\n throwError(msg, actual, expected, '==');\n }\n}\nfunction assertNotEqual(actual, expected, msg) {\n if (!(actual != expected)) {\n throwError(msg, actual, expected, '!=');\n }\n}\nfunction assertSame(actual, expected, msg) {\n if (!(actual === expected)) {\n throwError(msg, actual, expected, '===');\n }\n}\nfunction assertNotSame(actual, expected, msg) {\n if (!(actual !== expected)) {\n throwError(msg, actual, expected, '!==');\n }\n}\nfunction assertLessThan(actual, expected, msg) {\n if (!(actual < expected)) {\n throwError(msg, actual, expected, '<');\n }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n if (!(actual <= expected)) {\n throwError(msg, actual, expected, '<=');\n }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n if (!(actual > expected)) {\n throwError(msg, actual, expected, '>');\n }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n if (!(actual >= expected)) {\n throwError(msg, actual, expected, '>=');\n }\n}\nfunction assertNotDefined(actual, msg) {\n if (actual != null) {\n throwError(msg, actual, null, '==');\n }\n}\nfunction assertDefined(actual, msg) {\n if (actual == null) {\n throwError(msg, actual, null, '!=');\n }\n}\nfunction throwError(msg, actual, expected, comparison) {\n throw new Error(`ASSERTION ERROR: ${msg}` + (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n if (!(node instanceof Node)) {\n throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n }\n}\nfunction assertElement(node) {\n if (!(node instanceof Element)) {\n throwError(`The provided value must be an element but got ${stringify(node)}`);\n }\n}\nfunction assertIndexInRange(arr, index) {\n assertDefined(arr, 'Array must be defined.');\n const maxLen = arr.length;\n if (index < 0 || index >= maxLen) {\n throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n }\n}\nfunction assertOneOf(value, ...validValues) {\n if (validValues.indexOf(value) !== -1) return true;\n throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\n\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see {@link ChangeDetectorRef#usage-notes Change detection usage}\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy = /*#__PURE__*/function (ChangeDetectionStrategy) {\n /**\n * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n * Change detection can still be explicitly invoked.\n * This strategy applies to all child directives and cannot be overridden.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * Use the default `CheckAlways` strategy, in which change detection is automatic until\n * explicitly deactivated.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n return ChangeDetectionStrategy;\n}(ChangeDetectionStrategy || {});\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation$1 = /*#__PURE__*/function (ViewEncapsulation) {\n // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n // https://github.com/angular/angular/issues/44119 for additional information.\n /**\n * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n * component's host element and applying the same attribute to all the CSS selectors provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n /**\n * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n * to any HTML element of the application regardless of their host Component.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n /**\n * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n * a ShadowRoot for the component's host element which is then used to encapsulate\n * all the Component's styling.\n */\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n return ViewEncapsulation;\n}(ViewEncapsulation$1 || {});\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n return {\n toString: fn\n }.toString();\n}\nconst _global = globalThis;\nfunction ngDevModeResetPerfCounters() {\n const locationString = typeof location !== 'undefined' ? location.toString() : '';\n const newCounters = {\n namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n firstCreatePass: 0,\n tNode: 0,\n tView: 0,\n rendererCreateTextNode: 0,\n rendererSetText: 0,\n rendererCreateElement: 0,\n rendererAddEventListener: 0,\n rendererSetAttribute: 0,\n rendererRemoveAttribute: 0,\n rendererSetProperty: 0,\n rendererSetClassName: 0,\n rendererAddClass: 0,\n rendererRemoveClass: 0,\n rendererSetStyle: 0,\n rendererRemoveStyle: 0,\n rendererDestroy: 0,\n rendererDestroyNode: 0,\n rendererMoveNode: 0,\n rendererRemoveNode: 0,\n rendererAppendChild: 0,\n rendererInsertBefore: 0,\n rendererCreateComment: 0,\n hydratedNodes: 0,\n hydratedComponents: 0,\n dehydratedViewsRemoved: 0,\n dehydratedViewsCleanupRuns: 0,\n componentsSkippedHydration: 0\n };\n // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n if (!allowNgDevModeTrue) {\n _global['ngDevMode'] = false;\n } else {\n if (typeof _global['ngDevMode'] !== 'object') {\n _global['ngDevMode'] = {};\n }\n Object.assign(_global['ngDevMode'], newCounters);\n }\n return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n // reset the counters.\n // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n // yet.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {\n ngDevModeResetPerfCounters();\n }\n return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n }\n return false;\n}\n\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && /*#__PURE__*/initNgDevMode()) {\n // These property accesses can be ignored because ngDevMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // tslint:disable-next-line:no-toplevel-property-access\n /*#__PURE__*/Object.freeze(EMPTY_OBJ);\n // tslint:disable-next-line:no-toplevel-property-access\n /*#__PURE__*/Object.freeze(EMPTY_ARRAY);\n}\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n for (let key in objWithPropertyToExtract) {\n if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n return key;\n }\n }\n throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\nconst NG_COMP_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵcmp: getClosureSafeProperty\n});\nconst NG_DIR_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵdir: getClosureSafeProperty\n});\nconst NG_PIPE_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵpipe: getClosureSafeProperty\n});\nconst NG_MOD_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵmod: getClosureSafeProperty\n});\nconst NG_FACTORY_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵfac: getClosureSafeProperty\n});\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = /*#__PURE__*/getClosureSafeProperty({\n __NG_ELEMENT_ID__: getClosureSafeProperty\n});\n/**\n * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:\n * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution\n * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.\n *\n * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and\n * improve tree-shaking.\n */\nconst NG_ENV_ID = /*#__PURE__*/getClosureSafeProperty({\n __NG_ENV_ID__: getClosureSafeProperty\n});\n\n/** Flags describing an input for a directive. */\nvar InputFlags = /*#__PURE__*/function (InputFlags) {\n InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n return InputFlags;\n}(InputFlags || {});\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n let end = className.length;\n while (true) {\n const foundIndex = className.indexOf(classToSearch, startingIndex);\n if (foundIndex === -1) return foundIndex;\n if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has leading whitespace\n const length = classToSearch.length;\n if (foundIndex + length === end || className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has trailing whitespace\n return foundIndex;\n }\n }\n // False positive, keep searching from where we left off.\n startingIndex = foundIndex + 1;\n }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n * attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n let i = 0;\n while (i < attrs.length) {\n const value = attrs[i];\n if (typeof value === 'number') {\n // only namespaces are supported. Other value types (such as style/class\n // entries) are not supported in this function.\n if (value !== 0 /* AttributeMarker.NamespaceURI */) {\n break;\n }\n // we just landed on the marker value ... therefore\n // we should skip to the next entry\n i++;\n const namespaceURI = attrs[i++];\n const attrName = attrs[i++];\n const attrVal = attrs[i++];\n ngDevMode && ngDevMode.rendererSetAttribute++;\n renderer.setAttribute(native, attrName, attrVal, namespaceURI);\n } else {\n // attrName is string;\n const attrName = value;\n const attrVal = attrs[++i];\n // Standard attributes\n ngDevMode && ngDevMode.rendererSetAttribute++;\n if (isAnimationProp(attrName)) {\n renderer.setProperty(native, attrName, attrVal);\n } else {\n renderer.setAttribute(native, attrName, attrVal);\n }\n i++;\n }\n }\n // another piece of code may iterate over the same attributes array. Therefore\n // it may be helpful to return the exact spot where the attributes array exited\n // whether by running into an unsupported marker or if all the static values were\n // iterated over.\n return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n return marker === 3 /* AttributeMarker.Bindings */ || marker === 4 /* AttributeMarker.Template */ || marker === 6 /* AttributeMarker.I18n */;\n}\nfunction isAnimationProp(name) {\n // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n // charCodeAt doesn't allocate memory to return a substring.\n return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n if (src === null || src.length === 0) {\n // do nothing\n } else if (dst === null || dst.length === 0) {\n // We have source, but dst is empty, just make a copy.\n dst = src.slice();\n } else {\n let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n for (let i = 0; i < src.length; i++) {\n const item = src[i];\n if (typeof item === 'number') {\n srcMarker = item;\n } else {\n if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {\n // Case where we need to consume `key1`, `key2`, `value` items.\n } else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ || srcMarker === 2 /* AttributeMarker.Styles */) {\n // Case where we have to consume `key1` and `value` only.\n mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n } else {\n // Case where we have to consume `key1` only.\n mergeHostAttribute(dst, srcMarker, item, null, null);\n }\n }\n }\n }\n return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n let i = 0;\n // Assume that new markers will be inserted at the end.\n let markerInsertPosition = dst.length;\n // scan until correct type.\n if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {\n markerInsertPosition = -1;\n } else {\n while (i < dst.length) {\n const dstValue = dst[i++];\n if (typeof dstValue === 'number') {\n if (dstValue === marker) {\n markerInsertPosition = -1;\n break;\n } else if (dstValue > marker) {\n // We need to save this as we want the markers to be inserted in specific order.\n markerInsertPosition = i - 1;\n break;\n }\n }\n }\n }\n // search until you find place of insertion\n while (i < dst.length) {\n const item = dst[i];\n if (typeof item === 'number') {\n // since `i` started as the index after the marker, we did not find it if we are at the next\n // marker\n break;\n } else if (item === key1) {\n // We already have same token\n if (key2 === null) {\n if (value !== null) {\n dst[i + 1] = value;\n }\n return;\n } else if (key2 === dst[i + 1]) {\n dst[i + 2] = value;\n return;\n }\n }\n // Increment counter.\n i++;\n if (key2 !== null) i++;\n if (value !== null) i++;\n }\n // insert at location.\n if (markerInsertPosition !== -1) {\n dst.splice(markerInsertPosition, 0, marker);\n i = markerInsertPosition + 1;\n }\n dst.splice(i++, 0, key1);\n if (key2 !== null) {\n dst.splice(i++, 0, key2);\n }\n if (value !== null) {\n dst.splice(i++, 0, value);\n }\n}\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n * addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {\n // TODO(misko): The fact that this function needs to know about `isProjectionMode` seems suspect.\n // It is strange to me that sometimes the class information comes in form of `class` attribute\n // and sometimes in form of `AttributeMarker.Classes`. Some investigation is needed to determine\n // if that is the right behavior.\n ngDevMode && assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n let i = 0;\n // Indicates whether we are processing value from the implicit\n // attribute section (i.e. before the first marker in the array).\n let isImplicitAttrsSection = true;\n while (i < attrs.length) {\n let item = attrs[i++];\n if (typeof item === 'string' && isImplicitAttrsSection) {\n const value = attrs[i++];\n if (isProjectionMode && item === 'class') {\n // We found a `class` attribute in the implicit attribute section,\n // check if it matches the value of the `cssClassToMatch` argument.\n if (classIndexOf(value.toLowerCase(), cssClassToMatch, 0) !== -1) {\n return true;\n }\n }\n } else if (item === 1 /* AttributeMarker.Classes */) {\n // We found the classes section. Start searching for the class.\n while (i < attrs.length && typeof (item = attrs[i++]) == 'string') {\n // while we have strings\n if (item.toLowerCase() === cssClassToMatch) return true;\n }\n return false;\n } else if (typeof item === 'number') {\n // We've came across a first marker, which indicates\n // that the implicit attribute section is over.\n isImplicitAttrsSection = false;\n }\n }\n return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param node static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n let mode = 4 /* SelectorFlags.ELEMENT */;\n const nodeAttrs = tNode.attrs || [];\n // Find the index of first attribute that has no value, only a name.\n const nameOnlyMarkerIdx = getNameOnlyMarkerIndex(nodeAttrs);\n // When processing \":not\" selectors, we skip to the next \":not\" if the\n // current one doesn't match\n let skipToNextSelector = false;\n for (let i = 0; i < selector.length; i++) {\n const current = selector[i];\n if (typeof current === 'number') {\n // If we finish processing a :not selector and it hasn't failed, return false\n if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n return false;\n }\n // If we are skipping to the next :not() and this mode flag is positive,\n // it's a part of the current :not() selector, and we should keep skipping\n if (skipToNextSelector && isPositive(current)) continue;\n skipToNextSelector = false;\n mode = current | mode & 1 /* SelectorFlags.NOT */;\n continue;\n }\n if (skipToNextSelector) continue;\n if (mode & 4 /* SelectorFlags.ELEMENT */) {\n mode = 2 /* SelectorFlags.ATTRIBUTE */ | mode & 1 /* SelectorFlags.NOT */;\n if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) || current === '' && selector.length === 1) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n } else {\n const selectorAttrValue = mode & 8 /* SelectorFlags.CLASS */ ? current : selector[++i];\n // special case for matching against classes when a tNode has been instantiated with\n // class and style values as separate attribute values (e.g. ['title', CLASS, 'foo'])\n if (mode & 8 /* SelectorFlags.CLASS */ && tNode.attrs !== null) {\n if (!isCssClassMatching(tNode.attrs, selectorAttrValue, isProjectionMode)) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n continue;\n }\n const attrName = mode & 8 /* SelectorFlags.CLASS */ ? 'class' : current;\n const attrIndexInNode = findAttrIndexInNode(attrName, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n if (attrIndexInNode === -1) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n continue;\n }\n if (selectorAttrValue !== '') {\n let nodeAttrValue;\n if (attrIndexInNode > nameOnlyMarkerIdx) {\n nodeAttrValue = '';\n } else {\n ngDevMode && assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');\n // we lowercase the attribute value to be able to match\n // selectors without case-sensitivity\n // (selectors are already in lowercase when generated)\n nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n }\n const compareAgainstClassName = mode & 8 /* SelectorFlags.CLASS */ ? nodeAttrValue : null;\n if (compareAgainstClassName && classIndexOf(compareAgainstClassName, selectorAttrValue, 0) !== -1 || mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n }\n }\n }\n return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n return (mode & 1 /* SelectorFlags.NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive | NO | NO | YES | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive | YES | YES | NO | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g ``).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n if (attrs === null) return -1;\n let i = 0;\n if (isProjectionMode || !isInlineTemplate) {\n let bindingsMode = false;\n while (i < attrs.length) {\n const maybeAttrName = attrs[i];\n if (maybeAttrName === name) {\n return i;\n } else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {\n bindingsMode = true;\n } else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || maybeAttrName === 2 /* AttributeMarker.Styles */) {\n let value = attrs[++i];\n // We should skip classes here because we have a separate mechanism for\n // matching classes in projection mode.\n while (typeof value === 'string') {\n value = attrs[++i];\n }\n continue;\n } else if (maybeAttrName === 4 /* AttributeMarker.Template */) {\n // We do not care about Template attributes in this scenario.\n break;\n } else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {\n // Skip the whole namespaced attribute and value. This is by design.\n i += 4;\n continue;\n }\n // In binding mode there are only names, rather than name-value pairs.\n i += bindingsMode ? 1 : 2;\n }\n // We did not match the attribute\n return -1;\n } else {\n return matchTemplateAttribute(attrs, name);\n }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n for (let i = 0; i < selector.length; i++) {\n if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n return true;\n }\n }\n return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n const nodeAttrs = tNode.attrs;\n if (nodeAttrs != null) {\n const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);\n // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n // (attribute names are stored at even indexes)\n if ((ngProjectAsAttrIdx & 1) === 0) {\n return nodeAttrs[ngProjectAsAttrIdx + 1];\n }\n }\n return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n for (let i = 0; i < nodeAttrs.length; i++) {\n const nodeAttr = nodeAttrs[i];\n if (isNameOnlyAttributeMarker(nodeAttr)) {\n return i;\n }\n }\n return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n let i = attrs.indexOf(4 /* AttributeMarker.Template */);\n if (i > -1) {\n i++;\n while (i < attrs.length) {\n const attr = attrs[i];\n // Return in case we checked all template attrs and are switching to the next section in the\n // attrs array (that starts with a number that represents an attribute marker).\n if (typeof attr === 'number') return -1;\n if (attr === name) return i;\n i++;\n }\n }\n return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n selectorListLoop: for (let i = 0; i < list.length; i++) {\n const currentSelectorInList = list[i];\n if (selector.length !== currentSelectorInList.length) {\n continue;\n }\n for (let j = 0; j < selector.length; j++) {\n if (selector[j] !== currentSelectorInList[j]) {\n continue selectorListLoop;\n }\n }\n return true;\n }\n return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n let result = selector[0];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n let currentChunk = '';\n let isNegativeMode = false;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {\n const attrValue = selector[++i];\n currentChunk += '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n } else if (mode & 8 /* SelectorFlags.CLASS */) {\n currentChunk += '.' + valueOrMarker;\n } else if (mode & 4 /* SelectorFlags.ELEMENT */) {\n currentChunk += ' ' + valueOrMarker;\n }\n } else {\n //\n // Append current chunk to the final result in case we come across SelectorFlag, which\n // indicates that the previous section of a selector is over. We need to accumulate content\n // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n // ```\n // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n // ```\n // should be transformed to `.classA :not(.classB .classC)`.\n //\n // Note: for negative selector part, we accumulate content between flags until we find the\n // next negative flag. This is needed to support a case where `:not()` rule contains more than\n // one chunk, e.g. the following selector:\n // ```\n // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n // ```\n // should be stringified to `:not(p.foo) :not(.bar)`\n //\n if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n currentChunk = '';\n }\n mode = valueOrMarker;\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector.\n isNegativeMode = isNegativeMode || !isPositive(mode);\n }\n i++;\n }\n if (currentChunk !== '') {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n }\n return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n const attrs = [];\n const classes = [];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {\n if (valueOrMarker !== '') {\n attrs.push(valueOrMarker, selector[++i]);\n }\n } else if (mode === 8 /* SelectorFlags.CLASS */) {\n classes.push(valueOrMarker);\n }\n } else {\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n // extracted only for \"positive\" part of the selector, we can stop here.\n if (!isPositive(mode)) break;\n mode = valueOrMarker;\n }\n i++;\n }\n return {\n attrs,\n classes\n };\n}\n\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyComponent {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵcmp = defineComponent({\n * ...\n * });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n return noSideEffects(() => {\n // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n const baseDef = getNgDirectiveDef(componentDefinition);\n const def = {\n ...baseDef,\n decls: componentDefinition.decls,\n vars: componentDefinition.vars,\n template: componentDefinition.template,\n consts: componentDefinition.consts || null,\n ngContentSelectors: componentDefinition.ngContentSelectors,\n onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n directiveDefs: null,\n // assigned in noSideEffects\n pipeDefs: null,\n // assigned in noSideEffects\n dependencies: baseDef.standalone && componentDefinition.dependencies || null,\n getStandaloneInjector: null,\n signals: componentDefinition.signals ?? false,\n data: componentDefinition.data || {},\n encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n styles: componentDefinition.styles || EMPTY_ARRAY,\n _: null,\n schemas: componentDefinition.schemas || null,\n tView: null,\n id: ''\n };\n initFeatures(def);\n const dependencies = componentDefinition.dependencies;\n def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */false);\n def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */true);\n def.id = getComponentId(def);\n return def;\n });\n}\nfunction extractDirectiveDef(type) {\n return getComponentDef(type) || getDirectiveDef(type);\n}\nfunction nonNull(value) {\n return value !== null;\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n return noSideEffects(() => {\n const res = {\n type: def.type,\n bootstrap: def.bootstrap || EMPTY_ARRAY,\n declarations: def.declarations || EMPTY_ARRAY,\n imports: def.imports || EMPTY_ARRAY,\n exports: def.exports || EMPTY_ARRAY,\n transitiveCompileScopes: null,\n schemas: def.schemas || null,\n id: def.id || null\n };\n return res;\n });\n}\nfunction parseAndConvertBindingsForDefinition(obj, declaredInputs) {\n if (obj == null) return EMPTY_OBJ;\n const newLookup = {};\n for (const minifiedKey in obj) {\n if (obj.hasOwnProperty(minifiedKey)) {\n const value = obj[minifiedKey];\n let publicName;\n let declaredName;\n let inputFlags = InputFlags.None;\n if (Array.isArray(value)) {\n inputFlags = value[0];\n publicName = value[1];\n declaredName = value[2] ?? publicName; // declared name might not be set to save bytes.\n } else {\n publicName = value;\n declaredName = value;\n }\n // For inputs, capture the declared name, or if some flags are set.\n if (declaredInputs) {\n // Perf note: An array is only allocated for the input if there are flags.\n newLookup[publicName] = inputFlags !== InputFlags.None ? [minifiedKey, inputFlags] : minifiedKey;\n declaredInputs[publicName] = declaredName;\n } else {\n newLookup[publicName] = minifiedKey;\n }\n }\n }\n return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵdir = ɵɵdefineDirective({\n * ...\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdefineDirective(directiveDefinition) {\n return noSideEffects(() => {\n const def = getNgDirectiveDef(directiveDefinition);\n initFeatures(def);\n return def;\n });\n}\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\n * class MyPipe implements PipeTransform {\n * // Generated by Angular Template Compiler\n * static ɵpipe = definePipe({\n * ...\n * });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n return {\n type: pipeDef.type,\n name: pipeDef.name,\n factory: null,\n pure: pipeDef.pure !== false,\n standalone: pipeDef.standalone === true,\n onDestroy: pipeDef.type.prototype.ngOnDestroy || null\n };\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n return type[NG_PIPE_DEF] || null;\n}\n/**\n * Checks whether a given Component, Directive or Pipe is marked as standalone.\n * This will return false if passed anything other than a Component, Directive, or Pipe class\n * See [this guide](/guide/standalone-components) for additional information:\n *\n * @param type A reference to a Component, Directive or Pipe.\n * @publicApi\n */\nfunction isStandalone(type) {\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n return def !== null ? def.standalone : false;\n}\nfunction getNgModuleDef(type, throwNotFound) {\n const ngModuleDef = type[NG_MOD_DEF] || null;\n if (!ngModuleDef && throwNotFound === true) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n }\n return ngModuleDef;\n}\nfunction getNgDirectiveDef(directiveDefinition) {\n const declaredInputs = {};\n return {\n type: directiveDefinition.type,\n providersResolver: null,\n factory: null,\n hostBindings: directiveDefinition.hostBindings || null,\n hostVars: directiveDefinition.hostVars || 0,\n hostAttrs: directiveDefinition.hostAttrs || null,\n contentQueries: directiveDefinition.contentQueries || null,\n declaredInputs: declaredInputs,\n inputTransforms: null,\n inputConfig: directiveDefinition.inputs || EMPTY_OBJ,\n exportAs: directiveDefinition.exportAs || null,\n standalone: directiveDefinition.standalone === true,\n signals: directiveDefinition.signals === true,\n selectors: directiveDefinition.selectors || EMPTY_ARRAY,\n viewQuery: directiveDefinition.viewQuery || null,\n features: directiveDefinition.features || null,\n setInput: null,\n findHostDirectiveDefs: null,\n hostDirectives: null,\n inputs: parseAndConvertBindingsForDefinition(directiveDefinition.inputs, declaredInputs),\n outputs: parseAndConvertBindingsForDefinition(directiveDefinition.outputs),\n debugInfo: null\n };\n}\nfunction initFeatures(definition) {\n definition.features?.forEach(fn => fn(definition));\n}\nfunction extractDefListOrFactory(dependencies, pipeDef) {\n if (!dependencies) {\n return null;\n }\n const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;\n return () => (typeof dependencies === 'function' ? dependencies() : dependencies).map(dep => defExtractor(dep)).filter(nonNull);\n}\n/**\n * A map that contains the generated component IDs and type.\n */\nconst GENERATED_COMP_IDS = /*#__PURE__*/new Map();\n/**\n * A method can returns a component ID from the component definition using a variant of DJB2 hash\n * algorithm.\n */\nfunction getComponentId(componentDef) {\n let hash = 0;\n // We cannot rely solely on the component selector as the same selector can be used in different\n // modules.\n //\n // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server\n // component styles has no sourcemaps and browsers do.\n //\n // Example:\n // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248\n // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32\n const hashSelectors = [componentDef.selectors, componentDef.ngContentSelectors, componentDef.hostVars, componentDef.hostAttrs, componentDef.consts, componentDef.vars, componentDef.decls, componentDef.encapsulation, componentDef.standalone, componentDef.signals, componentDef.exportAs, JSON.stringify(componentDef.inputs), JSON.stringify(componentDef.outputs),\n // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not\n // match in the server and browser bundles.\n Object.getOwnPropertyNames(componentDef.type.prototype), !!componentDef.contentQueries, !!componentDef.viewQuery].join('|');\n for (const char of hashSelectors) {\n hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n const compId = 'c' + hash;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (GENERATED_COMP_IDS.has(compId)) {\n const previousCompDefType = GENERATED_COMP_IDS.get(compId);\n if (previousCompDefType !== componentDef.type) {\n console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));\n }\n } else {\n GENERATED_COMP_IDS.set(compId, componentDef.type);\n }\n }\n return compId;\n}\n\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\n// Shared with LContainer\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst T_HOST = 5;\n// End shared with LContainer\nconst HYDRATION = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR$1 = 9;\nconst ENVIRONMENT = 10;\nconst RENDERER = 11;\nconst CHILD_HEAD = 12;\nconst CHILD_TAIL = 13;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 14;\nconst DECLARATION_COMPONENT_VIEW = 15;\nconst DECLARATION_LCONTAINER = 16;\nconst PREORDER_HOOK_FLAGS = 17;\nconst QUERIES = 18;\nconst ID = 19;\nconst EMBEDDED_VIEW_INJECTOR = 20;\nconst ON_DESTROY_HOOKS = 21;\nconst EFFECTS_TO_SCHEDULE = 22;\nconst REACTIVE_TEMPLATE_CONSUMER = 23;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 25;\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n// FLAGS, PARENT, NEXT, and T_HOST are indices 2, 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\nconst DEHYDRATED_VIEWS = 6;\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n/** Flags associated with an LContainer (saved in LContainer[FLAGS]) */\nvar LContainerFlags = /*#__PURE__*/function (LContainerFlags) {\n LContainerFlags[LContainerFlags[\"None\"] = 0] = \"None\";\n /**\n * Flag to signify that this `LContainer` may have transplanted views which need to be change\n * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n *\n * This flag, once set, is never unset for the `LContainer`.\n */\n LContainerFlags[LContainerFlags[\"HasTransplantedViews\"] = 2] = \"HasTransplantedViews\";\n return LContainerFlags;\n}(LContainerFlags || {});\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n return tNode.componentOffset > -1;\n}\nfunction isDirectiveHost(tNode) {\n return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n return !!def.template;\n}\nfunction isRootView(target) {\n return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;\n}\nfunction isProjectionTNode(tNode) {\n return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;\n}\nfunction hasI18n(lView) {\n return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;\n}\nfunction isDestroyed(lView) {\n return (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n}\n\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n assertTNode(tNode);\n const tData = tView.data;\n for (let i = HEADER_OFFSET; i < tData.length; i++) {\n if (tData[i] === tNode) {\n return;\n }\n }\n throwError('This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n assertDefined(tNode, 'TNode must be defined');\n if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n throwError('Not of type TNode, got: ' + tNode);\n }\n}\nfunction assertTIcu(tIcu) {\n assertDefined(tIcu, 'Expected TIcu to be defined');\n if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n throwError('Object is not of TIcu type.');\n }\n}\nfunction assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \\'ɵcmp\\' property.') {\n if (!getComponentDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \\'ɵmod\\' property.') {\n if (!getNgModuleDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n assertDefined(tNode, 'currentTNode should exist!');\n assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertLContainer(value) {\n assertDefined(value, 'LContainer must be defined');\n assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n assertDefined(value, 'LView must be defined');\n assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n }\n}\nfunction assertIndexInDeclRange(tView, index) {\n assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n if (!(lower <= index && index < upper)) {\n throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage || 'Components with projection nodes () must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n assertDefined(lView, errMessage || 'Component views should always have a parent view (component\\'s host view)');\n}\nfunction assertNoDuplicateDirectives(directives) {\n // The array needs at least two elements in order to have duplicates.\n if (directives.length < 2) {\n return;\n }\n const seenDirectives = new Set();\n for (const current of directives) {\n if (seenDirectives.has(current)) {\n throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTIVE */, `Directive ${current.type.name} matches multiple times on the same element. ` + `Directives can only match an element once.`);\n }\n seenDirectives.add(current);\n }\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n assertIndexInExpandoRange(lView, injectorIndex);\n assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);\n assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');\n}\nconst SVG_NAMESPACE = 'svg';\nconst MATH_ML_NAMESPACE = 'math';\n\n// TODO(atscott): flip default internally ASAP and externally for v18 (#52928)\nlet _ensureDirtyViewsAreAlwaysReachable = false;\nfunction getEnsureDirtyViewsAreAlwaysReachable() {\n return _ensureDirtyViewsAreAlwaysReachable;\n}\nfunction setEnsureDirtyViewsAreAlwaysReachable(v) {\n _ensureDirtyViewsAreAlwaysReachable = v;\n}\n\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n * - `typeof value[TYPE] === 'object'` => `LView`\n * - This happens when we have a component at a given location\n * - `typeof value[TYPE] === true` => `LContainer`\n * - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n while (Array.isArray(value)) {\n value = value[HOST];\n }\n return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLView()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (typeof value[TYPE] === 'object') return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n ngDevMode && assertIndexInRange(lView, index);\n ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode && assertIndexInRange(lView, tNode.index);\n const node = unwrapRNode(lView[tNode.index]);\n return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n const index = tNode === null ? -1 : tNode.index;\n if (index !== -1) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const node = unwrapRNode(lView[index]);\n return node;\n }\n return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n const tNode = tView.data[index];\n ngDevMode && tNode !== null && assertTNode(tNode);\n return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n ngDevMode && assertIndexInRange(view, index);\n return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n ngDevMode && assertIndexInRange(hostView, nodeIndex);\n const slotValue = hostView[nodeIndex];\n const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n if (index === null || index === undefined) return null;\n ngDevMode && assertIndexInRange(consts, index);\n return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Adds the `RefreshView` flag from the lView and updates HAS_CHILD_VIEWS_TO_REFRESH flag of\n * parents.\n */\nfunction markViewForRefresh(lView) {\n if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {\n return;\n }\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n if (viewAttachedToChangeDetector(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Walks up the LView hierarchy.\n * @param nestingLevel Number of times to walk up in hierarchy.\n * @param currentView View from which to start the lookup.\n */\nfunction walkUpViews(nestingLevel, currentView) {\n while (nestingLevel > 0) {\n ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n currentView = currentView[DECLARATION_VIEW];\n nestingLevel--;\n }\n return currentView;\n}\nfunction requiresRefreshOrTraversal(lView) {\n return !!(lView[FLAGS] & (1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */) || lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n}\n/**\n * Updates the `HasChildViewsToRefresh` flag on the parents of the `LView` as well as the\n * parents above.\n */\nfunction updateAncestorTraversalFlagsOnAttach(lView) {\n // TODO(atscott): Simplify if...else cases once getEnsureDirtyViewsAreAlwaysReachable is always\n // `true`. When we attach a view that's marked `Dirty`, we should ensure that it is reached during\n // the next CD traversal so we add the `RefreshView` flag and mark ancestors accordingly.\n if (requiresRefreshOrTraversal(lView)) {\n markAncestorsForTraversal(lView);\n } else if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n if (getEnsureDirtyViewsAreAlwaysReachable()) {\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n markAncestorsForTraversal(lView);\n } else {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n }\n }\n}\n/**\n * Ensures views above the given `lView` are traversed during change detection even when they are\n * not dirty.\n *\n * This is done by setting the `HAS_CHILD_VIEWS_TO_REFRESH` flag up to the root, stopping when the\n * flag is already `true` or the `lView` is detached.\n */\nfunction markAncestorsForTraversal(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n let parent = getLViewParent(lView);\n while (parent !== null) {\n // We stop adding markers to the ancestors once we reach one that already has the marker. This\n // is to avoid needlessly traversing all the way to the root when the marker already exists.\n if (parent[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n break;\n }\n parent[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n if (!viewAttachedToChangeDetector(parent)) {\n break;\n }\n parent = getLViewParent(parent);\n }\n}\n/**\n * Stores a LView-specific destroy callback.\n */\nfunction storeLViewOnDestroy(lView, onDestroyCallback) {\n if ((lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) {\n throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');\n }\n if (lView[ON_DESTROY_HOOKS] === null) {\n lView[ON_DESTROY_HOOKS] = [];\n }\n lView[ON_DESTROY_HOOKS].push(onDestroyCallback);\n}\n/**\n * Removes previously registered LView-specific destroy callback.\n */\nfunction removeLViewOnDestroy(lView, onDestroyCallback) {\n if (lView[ON_DESTROY_HOOKS] === null) return;\n const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);\n if (destroyCBIdx !== -1) {\n lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);\n }\n}\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n ngDevMode && assertLView(lView);\n const parent = lView[PARENT];\n return isLContainer(parent) ? parent[PARENT] : parent;\n}\nconst instructionState = {\n lFrame: /*#__PURE__*/createLFrame(null),\n bindingsEnabled: true,\n skipHydrationRootTNode: null\n};\n/**\n * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.\n *\n * Necessary to support ChangeDetectorRef.checkNoChanges().\n *\n * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended\n * changes exist in the change detector or its children.\n */\nlet _isInCheckNoChangesMode = false;\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n return instructionState.bindingsEnabled;\n}\n/**\n * Returns true if currently inside a skip hydration block.\n * @returns boolean\n */\nfunction isInSkipHydrationBlock$1() {\n return instructionState.skipHydrationRootTNode !== null;\n}\n/**\n * Returns true if this is the root TNode of the skip hydration block.\n * @param tNode the current TNode\n * @returns boolean\n */\nfunction isSkipHydrationRootTNode(tNode) {\n return instructionState.skipHydrationRootTNode === tNode;\n}\n/**\n * Enables directive matching on elements.\n *\n * * Example:\n * ```\n * \n * Should match component / directive.\n * \n *
\n * \n * \n * Should not match component / directive because we are in ngNonBindable.\n * \n * \n *
\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n instructionState.bindingsEnabled = true;\n}\n/**\n * Sets a flag to specify that the TNode is in a skip hydration block.\n * @param tNode the current TNode\n */\nfunction enterSkipHydrationBlock(tNode) {\n instructionState.skipHydrationRootTNode = tNode;\n}\n/**\n * Disables directive matching on element.\n *\n * * Example:\n * ```\n * \n * Should match component / directive.\n * \n *
\n * \n * \n * Should not match component / directive because we are in ngNonBindable.\n * \n * \n *
\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n instructionState.bindingsEnabled = false;\n}\n/**\n * Clears the root skip hydration node when leaving a skip hydration block.\n */\nfunction leaveSkipHydrationBlock() {\n instructionState.skipHydrationRootTNode = null;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}\n/**\n * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in\n * value so that it can be used as a return value of an instruction.\n *\n * @codeGenApi\n */\nfunction ɵɵresetView(value) {\n instructionState.lFrame.contextLView = null;\n return value;\n}\nfunction getCurrentTNode() {\n let currentTNode = getCurrentTNodePlaceholderOk();\n while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {\n currentTNode = currentTNode.parent;\n }\n return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n const lFrame = instructionState.lFrame;\n const currentTNode = lFrame.currentTNode;\n return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n const lFrame = instructionState.lFrame;\n lFrame.currentTNode = tNode;\n lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n instructionState.lFrame.isParent = false;\n}\nfunction getContextLView() {\n const contextLView = instructionState.lFrame.contextLView;\n ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');\n return contextLView;\n}\nfunction isInCheckNoChangesMode() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _isInCheckNoChangesMode;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n !ngDevMode && throwError('Must never be called in production mode');\n _isInCheckNoChangesMode = mode;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n const lFrame = instructionState.lFrame;\n let index = lFrame.bindingRootIndex;\n if (index === -1) {\n index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n }\n return index;\n}\nfunction getBindingIndex() {\n return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n return instructionState.lFrame.bindingIndex = value;\n}\nfunction nextBindingIndex() {\n return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n const lFrame = instructionState.lFrame;\n const index = lFrame.bindingIndex;\n lFrame.bindingIndex = lFrame.bindingIndex + count;\n return index;\n}\nfunction isInI18nBlock() {\n return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n * whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n const lFrame = instructionState.lFrame;\n lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n const tView = lView[TVIEW];\n // Return the declaration parent for embedded views\n if (tView.type === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n // Falling back to `T_HOST` in case we cross component boundary.\n if (tView.type === 1 /* TViewType.Component */) {\n return lView[T_HOST];\n }\n // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n * tree from `tNode` until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated\n * `NodeInjector` can be found and we should instead use `ModuleInjector`.\n * - If `true` than this call must be fallowed by `leaveDI`\n * - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n ngDevMode && assertLViewOrUndefined(lView);\n if (flags & InjectFlags.SkipSelf) {\n ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n let parentTNode = tNode;\n let parentLView = lView;\n while (true) {\n ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n parentTNode = parentTNode.parent;\n if (parentTNode === null && !(flags & InjectFlags.Host)) {\n parentTNode = getDeclarationTNode(parentLView);\n if (parentTNode === null) break;\n // In this case, a parent exists and is definitely an element. So it will definitely\n // have an existing lView as the declaration view, which is why we can assume it's defined.\n ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n parentLView = parentLView[DECLARATION_VIEW];\n // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n // We want to skip those and look only at Elements and ElementContainers to ensure\n // we're looking at true parent nodes, and not content or other types.\n if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {\n break;\n }\n } else {\n break;\n }\n }\n if (parentTNode === null) {\n // If we failed to find a parent TNode this means that we should use module injector.\n return false;\n } else {\n tNode = parentTNode;\n lView = parentLView;\n }\n }\n ngDevMode && assertTNodeForLView(tNode, lView);\n const lFrame = instructionState.lFrame = allocLFrame();\n lFrame.currentTNode = tNode;\n lFrame.lView = lView;\n return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n ngDevMode && assertLViewOrUndefined(newView);\n const newLFrame = allocLFrame();\n if (ngDevMode) {\n assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n }\n const tView = newView[TVIEW];\n instructionState.lFrame = newLFrame;\n ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n newLFrame.currentTNode = tView.firstChild;\n newLFrame.lView = newView;\n newLFrame.tView = tView;\n newLFrame.contextLView = newView;\n newLFrame.bindingIndex = tView.bindingStartIndex;\n newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n const currentLFrame = instructionState.lFrame;\n const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n return newLFrame;\n}\nfunction createLFrame(parent) {\n const lFrame = {\n currentTNode: null,\n isParent: true,\n lView: null,\n tView: null,\n selectedIndex: -1,\n contextLView: null,\n elementDepthCount: 0,\n currentNamespace: null,\n currentDirectiveIndex: -1,\n bindingRootIndex: -1,\n bindingIndex: -1,\n currentQueryIndex: 0,\n parent: parent,\n child: null,\n inI18n: false\n };\n parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n const oldLFrame = instructionState.lFrame;\n instructionState.lFrame = oldLFrame.parent;\n oldLFrame.currentTNode = null;\n oldLFrame.lView = null;\n return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n const oldLFrame = leaveViewLight();\n oldLFrame.isParent = true;\n oldLFrame.tView = null;\n oldLFrame.selectedIndex = -1;\n oldLFrame.contextLView = null;\n oldLFrame.elementDepthCount = 0;\n oldLFrame.currentDirectiveIndex = -1;\n oldLFrame.currentNamespace = null;\n oldLFrame.bindingRootIndex = -1;\n oldLFrame.bindingIndex = -1;\n oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n const contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);\n return contextLView[CONTEXT];\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, 'Can\\'t set index passed end of LView');\n instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n const lFrame = instructionState.lFrame;\n return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n return instructionState.lFrame.currentNamespace;\n}\nlet _wasLastNodeCreated = true;\n/**\n * Retrieves a global flag that indicates whether the most recent DOM node\n * was created or hydrated.\n */\nfunction wasLastNodeCreated() {\n return _wasLastNodeCreated;\n}\n/**\n * Sets a global flag to indicate whether the most recent DOM node\n * was created or hydrated.\n */\nfunction lastNodeWasCreated(flag) {\n _wasLastNodeCreated = flag;\n}\n\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nlet ElementRef = /*#__PURE__*/(() => {\n class ElementRef {\n constructor(nativeElement) {\n this.nativeElement = nativeElement;\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = injectElementRef;\n }\n }\n return ElementRef;\n})();\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n return value instanceof ElementRef ? value.nativeElement : value;\n}\n\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n * the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n let valueA = a[i];\n let valueB = b[i];\n if (identityAccessor) {\n valueA = identityAccessor(valueA);\n valueB = identityAccessor(valueB);\n }\n if (valueB !== valueA) {\n return false;\n }\n }\n return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list) {\n return list.flat(Number.POSITIVE_INFINITY);\n}\nfunction deepForEach(input, fn) {\n input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));\n}\nfunction addToArray(arr, index, value) {\n // perf: array.push is faster than array.splice!\n if (index >= arr.length) {\n arr.push(value);\n } else {\n arr.splice(index, 0, value);\n }\n}\nfunction removeFromArray(arr, index) {\n // perf: array.pop is faster than array.splice!\n if (index >= arr.length - 1) {\n return arr.pop();\n } else {\n return arr.splice(index, 1)[0];\n }\n}\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n const length = array.length - count;\n while (index < length) {\n array[index] = array[index + count];\n index++;\n }\n while (count--) {\n array.pop(); // shrink the array\n }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n while (end > index) {\n const previousEnd = end - 1;\n array[end] = array[previousEnd];\n end = previousEnd;\n }\n array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n if (end == index) {\n // inserting at the end.\n array.push(value1, value2);\n } else if (end === 1) {\n // corner case when we have less items in array than we have items to insert.\n array.push(value2, array[0]);\n array[0] = value1;\n } else {\n end--;\n array.push(array[end - 1], array[end]);\n while (end > index) {\n const previousEnd = end - 2;\n array[end] = array[previousEnd];\n end--;\n }\n array[index] = value1;\n array[index + 1] = value2;\n }\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * located)\n */\nfunction arrayIndexOfSorted(array, value) {\n return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n let index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it set it.\n keyValueArray[index | 1] = value;\n } else {\n index = ~index;\n arrayInsert2(keyValueArray, index, key, value);\n }\n return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it retrieve it.\n return keyValueArray[index | 1];\n }\n return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n * - positive (even) index if key found.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n * - positive (even) index if key found and deleted.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it remove it.\n arraySplice(keyValueArray, index, 2);\n }\n return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n * - `0` means look at every location\n * - `1` means only look at every other (even) location (the odd locations are to be ignored as\n * they are values.)\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n let start = 0;\n let end = array.length >> shift;\n while (end !== start) {\n const middle = start + (end - start >> 1); // find the middle.\n const current = array[middle << shift];\n if (value === current) {\n return middle << shift;\n } else if (current > value) {\n end = middle;\n } else {\n start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n }\n }\n return ~(end << shift);\n}\nfunction symbolIterator() {\n // @ts-expect-error accessing a private member\n return this._results[Symbol.iterator]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n static {\n Symbol.iterator;\n }\n /**\n * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n */\n get changes() {\n return this._changes ??= new EventEmitter();\n }\n /**\n * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n * has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n * the same result)\n */\n constructor(_emitDistinctChangesOnly = false) {\n this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n this.dirty = true;\n this._onDirty = undefined;\n this._results = [];\n this._changesDetected = false;\n this._changes = undefined;\n this.length = 0;\n this.first = undefined;\n this.last = undefined;\n // This function should be declared on the prototype, but doing so there will cause the class\n // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n // the constructor.\n // [Symbol.iterator](): Iterator { ... }\n const proto = QueryList.prototype;\n if (!proto[Symbol.iterator]) proto[Symbol.iterator] = symbolIterator;\n }\n /**\n * Returns the QueryList entry at `index`.\n */\n get(index) {\n return this._results[index];\n }\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n map(fn) {\n return this._results.map(fn);\n }\n filter(fn) {\n return this._results.filter(fn);\n }\n /**\n * See\n * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n */\n find(fn) {\n return this._results.find(fn);\n }\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n reduce(fn, init) {\n return this._results.reduce(fn, init);\n }\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n forEach(fn) {\n this._results.forEach(fn);\n }\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n some(fn) {\n return this._results.some(fn);\n }\n /**\n * Returns a copy of the internal results list as an Array.\n */\n toArray() {\n return this._results.slice();\n }\n toString() {\n return this._results.toString();\n }\n /**\n * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n * on change detection, it will not notify of changes to the queries, unless a new change\n * occurs.\n *\n * @param resultsTree The query results to store\n * @param identityAccessor Optional function for extracting stable object identity from a value\n * in the array. This function is executed for each element of the query result list while\n * comparing current query list with the new one (provided as a first argument of the `reset`\n * function) to detect if the lists are different. If the function is not provided, elements\n * are compared as is (without any pre-processing).\n */\n reset(resultsTree, identityAccessor) {\n this.dirty = false;\n const newResultFlat = flatten(resultsTree);\n if (this._changesDetected = !arrayEquals(this._results, newResultFlat, identityAccessor)) {\n this._results = newResultFlat;\n this.length = newResultFlat.length;\n this.last = newResultFlat[this.length - 1];\n this.first = newResultFlat[0];\n }\n }\n /**\n * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n */\n notifyOnChanges() {\n if (this._changes !== undefined && (this._changesDetected || !this._emitDistinctChangesOnly)) this._changes.emit(this);\n }\n /** @internal */\n onDirty(cb) {\n this._onDirty = cb;\n }\n /** internal */\n setDirty() {\n this.dirty = true;\n this._onDirty?.();\n }\n /** internal */\n destroy() {\n if (this._changes !== undefined) {\n this._changes.complete();\n this._changes.unsubscribe();\n }\n }\n}\n\n/**\n * The name of an attribute that can be added to the hydration boundary node\n * (component host node) to disable hydration for the content within that boundary.\n */\nconst SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';\n/** Lowercase name of the `ngSkipHydration` attribute used for case-insensitive comparisons. */\nconst SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = 'ngskiphydration';\n/**\n * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnTNode(tNode) {\n const attrs = tNode.mergedAttrs;\n if (attrs === null) return false;\n // only ever look at the attribute name and skip the values\n for (let i = 0; i < attrs.length; i += 2) {\n const value = attrs[i];\n // This is a marker, which means that the static attributes section is over,\n // so we can exit early.\n if (typeof value === 'number') return false;\n if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {\n return true;\n }\n }\n return false;\n}\n/**\n * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnRElement(rNode) {\n return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);\n}\n/**\n * Checks whether a TNode has a flag to indicate that it's a part of\n * a skip hydration block.\n */\nfunction hasInSkipHydrationBlockFlag(tNode) {\n return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;\n}\n/**\n * Helper function that determines if a given node is within a skip hydration block\n * by navigating up the TNode tree to see if any parent nodes have skip hydration\n * attribute.\n */\nfunction isInSkipHydrationBlock(tNode) {\n if (hasInSkipHydrationBlockFlag(tNode)) {\n return true;\n }\n let currentTNode = tNode.parent;\n while (currentTNode) {\n if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n\n/**\n * Most of the use of `document` in Angular is from within the DI system so it is possible to simply\n * inject the `DOCUMENT` token and are done.\n *\n * Ivy is special because it does not rely upon the DI and must get hold of the document some other\n * way.\n *\n * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.\n * Wherever ivy needs the global document, it calls `getDocument()` instead.\n *\n * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to\n * tell ivy what the global `document` is.\n *\n * Angular does this for us in each of the standard platforms (`Browser` and `Server`)\n * by calling `setDocument()` when providing the `DOCUMENT` token.\n */\nlet DOCUMENT = undefined;\n/**\n * Tell ivy what the `document` is for this platform.\n *\n * It is only necessary to call this if the current platform is not a browser.\n *\n * @param document The object representing the global `document` in this environment.\n */\nfunction setDocument(document) {\n DOCUMENT = document;\n}\n/**\n * Access the object that represents the `document` for this platform.\n *\n * Ivy calls this whenever it needs to access the `document` object.\n * For example to create the renderer or to do sanitization.\n */\nfunction getDocument() {\n if (DOCUMENT !== undefined) {\n return DOCUMENT;\n } else if (typeof document !== 'undefined') {\n return document;\n }\n throw new RuntimeError(210 /* RuntimeErrorCode.MISSING_DOCUMENT */, (typeof ngDevMode === 'undefined' || ngDevMode) && `The document object is not available in this context. Make sure the DOCUMENT injection token is provided.`);\n // No \"document\" can be found. This should only happen if we are running ivy outside Angular and\n // the current platform is not a browser. Since this is not a supported scenario at the moment\n // this should not happen in Angular apps.\n // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a\n // public API.\n}\n\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n * provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n * The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection\n * of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n return {\n token: opts.token,\n providedIn: opts.providedIn || null,\n factory: opts.factory,\n value: undefined\n };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n * either have a factory or point to a type which has a `ɵprov` static property (the\n * type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n * whose providers will also be added to the injector. Locally provided types will override\n * providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n return {\n providers: options.providers || [],\n imports: options.imports || []\n };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\nfunction isInjectable(type) {\n return getInjectableDef(type) !== null;\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n * scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n if (def) {\n ngDevMode && console.warn(`DEPRECATED: DI is instantiating a token \"${type.name}\" that inherits its @Injectable decorator but does not provide one itself.\\n` + `This will become an error in a future version of Angular. Please add @Injectable() to the \"${type.name}\" class.`);\n return def;\n } else {\n return null;\n }\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;\n}\nconst NG_PROV_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵprov: getClosureSafeProperty\n});\nconst NG_INJ_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵinj: getClosureSafeProperty\n});\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = /*#__PURE__*/getClosureSafeProperty({\n ngInjectableDef: getClosureSafeProperty\n});\nconst NG_INJECTOR_DEF = /*#__PURE__*/getClosureSafeProperty({\n ngInjectorDef: getClosureSafeProperty\n});\n\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n *
\n *\n * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the\n * provider and the injection call. Creating a new instance of `InjectionToken` in different places,\n * even with the same description, will be treated as different tokens by Angular's DI system,\n * leading to a `NullInjectorError`.\n *\n *
\n *\n * \n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the [`inject`](api/core/inject) function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:\n * this option is now deprecated). As mentioned above, `'root'` is the default value for\n * `providedIn`.\n *\n * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nclass InjectionToken {\n /**\n * @param _desc Description for the token,\n * used only for debugging purposes,\n * it should but does not need to be unique\n * @param options Options for the token's usage, as described above\n */\n constructor(_desc, options) {\n this._desc = _desc;\n /** @internal */\n this.ngMetadataName = 'InjectionToken';\n this.ɵprov = undefined;\n if (typeof options == 'number') {\n (typeof ngDevMode === 'undefined' || ngDevMode) && assertLessThan(options, 0, 'Only negative numbers are supported here');\n // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n // See `InjectorMarkers`\n this.__NG_ELEMENT_ID__ = options;\n } else if (options !== undefined) {\n this.ɵprov = ɵɵdefineInjectable({\n token: this,\n providedIn: options.providedIn || 'root',\n factory: options.factory\n });\n }\n }\n /**\n * @internal\n */\n get multi() {\n return this;\n }\n toString() {\n return `InjectionToken ${this._desc}`;\n }\n}\n\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") representing a string ID, used\n * primarily for prefixing application attributes and CSS styles when\n * {@link ViewEncapsulation#Emulated} is being used.\n *\n * The token is needed in cases when multiple applications are bootstrapped on a page\n * (for example, using `bootstrapApplication` calls). In this case, ensure that those applications\n * have different `APP_ID` value setup. For example:\n *\n * ```\n * bootstrapApplication(ComponentA, {\n * providers: [\n * { provide: APP_ID, useValue: 'app-a' },\n * // ... other providers ...\n * ]\n * });\n *\n * bootstrapApplication(ComponentB, {\n * providers: [\n * { provide: APP_ID, useValue: 'app-b' },\n * // ... other providers ...\n * ]\n * });\n * ```\n *\n * By default, when there is only one application bootstrapped, you don't need to provide the\n * `APP_ID` token (the `ng` will be used as an app ID).\n *\n * @publicApi\n */\nconst APP_ID = /*#__PURE__*/new InjectionToken(ngDevMode ? 'AppId' : '', {\n providedIn: 'root',\n factory: () => DEFAULT_APP_ID\n});\n/** Default value of the `APP_ID` token. */\nconst DEFAULT_APP_ID = 'ng';\n/**\n * A function that is executed when a platform is initialized.\n * @publicApi\n */\nconst PLATFORM_INITIALIZER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Platform Initializer' : '');\n/**\n * A token that indicates an opaque platform ID.\n * @publicApi\n */\nconst PLATFORM_ID = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Platform ID' : '', {\n providedIn: 'platform',\n factory: () => 'unknown' // set a default platform name, when none set explicitly\n});\n/**\n * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates the root directory of\n * the application\n * @publicApi\n * @deprecated\n */\nconst PACKAGE_ROOT_URL = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Application Packages Root URL' : '');\n// We keep this token here, rather than the animations package, so that modules that only care\n// about which animations module is loaded (e.g. the CDK) can retrieve it without having to\n// include extra dependencies. See #44970 for more context.\n/**\n * A [DI token](api/core/InjectionToken) that indicates which animations\n * module has been loaded.\n * @publicApi\n */\nconst ANIMATION_MODULE_TYPE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'AnimationModuleType' : '');\n// TODO(crisbeto): link to CSP guide here.\n/**\n * Token used to configure the [Content Security Policy](https://web.dev/strict-csp/) nonce that\n * Angular will apply when inserting inline styles. If not provided, Angular will look up its value\n * from the `ngCspNonce` attribute of the application root node.\n *\n * @publicApi\n */\nconst CSP_NONCE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'CSP nonce' : '', {\n providedIn: 'root',\n factory: () => {\n // Ideally we wouldn't have to use `querySelector` here since we know that the nonce will be on\n // the root node, but because the token value is used in renderers, it has to be available\n // *very* early in the bootstrapping process. This should be a fairly shallow search, because\n // the app won't have been added to the DOM yet. Some approaches that were considered:\n // 1. Find the root node through `ApplicationRef.components[i].location` - normally this would\n // be enough for our purposes, but the token is injected very early so the `components` array\n // isn't populated yet.\n // 2. Find the root `LView` through the current `LView` - renderers are a prerequisite to\n // creating the `LView`. This means that no `LView` will have been entered when this factory is\n // invoked for the root component.\n // 3. Have the token factory return `() => string` which is invoked when a nonce is requested -\n // the slightly later execution does allow us to get an `LView` reference, but the fact that\n // it is a function means that it could be executed at *any* time (including immediately) which\n // may lead to weird bugs.\n // 4. Have the `ComponentFactory` read the attribute and provide it to the injector under the\n // hood - has the same problem as #1 and #2 in that the renderer is used to query for the root\n // node and the nonce value needs to be available when the renderer is created.\n return getDocument().body?.querySelector('[ngCspNonce]')?.getAttribute('ngCspNonce') || null;\n }\n});\nconst IMAGE_CONFIG_DEFAULTS = {\n breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],\n placeholderResolution: 30,\n disableImageSizeWarning: false,\n disableImageLazyLoadWarning: false\n};\n/**\n * Injection token that configures the image optimized image functionality.\n * See {@link ImageConfig} for additional information about parameters that\n * can be used.\n *\n * @see {@link NgOptimizedImage}\n * @see {@link ImageConfig}\n * @publicApi\n */\nconst IMAGE_CONFIG = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ImageConfig' : '', {\n providedIn: 'root',\n factory: () => IMAGE_CONFIG_DEFAULTS\n});\nconst __forward_ref__ = /*#__PURE__*/getClosureSafeProperty({\n __forward_ref__: getClosureSafeProperty\n});\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * `forwardRef` is also used to break circularities in standalone components imports.\n *\n * @usageNotes\n * ### Circular dependency example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n *\n * ### Circular standalone reference import example\n * ```ts\n * @Component({\n * standalone: true,\n * imports: [ChildComponent],\n * selector: 'app-parent',\n * template: ``,\n * })\n * export class ParentComponent {\n * @Input() hideParent: boolean;\n * }\n *\n *\n * @Component({\n * standalone: true,\n * imports: [CommonModule, forwardRef(() => ParentComponent)],\n * selector: 'app-child',\n * template: ``,\n * })\n * export class ChildComponent {\n * @Input() hideParent: boolean;\n * }\n * ```\n *\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () {\n return stringify(this());\n };\n return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see {@link forwardRef}\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;\n}\nlet _injectorProfilerContext;\nfunction getInjectorProfilerContext() {\n !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');\n return _injectorProfilerContext;\n}\nfunction setInjectorProfilerContext(context) {\n !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');\n const previous = _injectorProfilerContext;\n _injectorProfilerContext = context;\n return previous;\n}\nlet injectorProfilerCallback = null;\n/**\n * Sets the callback function which will be invoked during certain DI events within the\n * runtime (for example: injecting services, creating injectable instances, configuring providers)\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setInjectorProfiler = injectorProfiler => {\n !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');\n injectorProfilerCallback = injectorProfiler;\n};\n/**\n * Injector profiler function which emits on DI events executed by the runtime.\n *\n * @param event InjectorProfilerEvent corresponding to the DI event being emitted\n */\nfunction injectorProfiler(event) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n if (injectorProfilerCallback != null /* both `null` and `undefined` */) {\n injectorProfilerCallback(event);\n }\n}\n/**\n * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the\n * emitted event includes the raw provider, as well as the token that provider is providing.\n *\n * @param eventProvider A provider object\n */\nfunction emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n let token;\n // if the provider is a TypeProvider (typeof provider is function) then the token is the\n // provider itself\n if (typeof eventProvider === 'function') {\n token = eventProvider;\n }\n // if the provider is an injection token, then the token is the injection token.\n else if (eventProvider instanceof InjectionToken) {\n token = eventProvider;\n }\n // in all other cases we can access the token via the `provide` property of the provider\n else {\n token = resolveForwardRef(eventProvider.provide);\n }\n let provider = eventProvider;\n // Injection tokens may define their own default provider which gets attached to the token itself\n // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the\n // token itself.\n if (eventProvider instanceof InjectionToken) {\n provider = eventProvider.ɵprov || eventProvider;\n }\n injectorProfiler({\n type: 2 /* InjectorProfilerEventType.ProviderConfigured */,\n context: getInjectorProfilerContext(),\n providerRecord: {\n token,\n provider,\n isViewProvider\n }\n });\n}\n/**\n * Emits an event to the injector profiler with the instance that was created. Note that\n * the injector associated with this emission can be accessed by using getDebugInjectContext()\n *\n * @param instance an object created by an injector\n */\nfunction emitInstanceCreatedByInjectorEvent(instance) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,\n context: getInjectorProfilerContext(),\n instance: {\n value: instance\n }\n });\n}\n/**\n * @param token DI token associated with injected service\n * @param value the instance of the injected service (i.e the result of `inject(token)`)\n * @param flags the flags that the token was injected with\n */\nfunction emitInjectEvent(token, value, flags) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 0 /* InjectorProfilerEventType.Inject */,\n context: getInjectorProfilerContext(),\n service: {\n token,\n value,\n flags\n }\n });\n}\nfunction runInInjectorProfilerContext(injector, token, callback) {\n !ngDevMode && throwError('runInInjectorProfilerContext should never be called in production mode');\n const prevInjectContext = setInjectorProfilerContext({\n injector,\n token\n });\n try {\n callback();\n } finally {\n setInjectorProfilerContext(prevInjectContext);\n }\n}\nfunction isEnvironmentProviders(value) {\n return value && !!value.ɵproviders;\n}\n\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n if (typeof value === 'string') return value;\n if (value == null) return '';\n // Use `String` so that it invokes the `toString` method of the value. Note that this\n // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n *\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n if (typeof value === 'function') return value.name || value.toString();\n if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n return value.type.name || value.type.toString();\n }\n return renderStringify(value);\n}\n/**\n * Used to stringify a `Type` and including the file path and line number in which it is defined, if\n * possible, for better debugging experience.\n *\n * Important! This function contains a megamorphic read and should only be used for error messages.\n */\nfunction debugStringifyTypeForError(type) {\n // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating\n // circular deps.\n let componentDef = type[NG_COMP_DEF] || null;\n if (componentDef !== null && componentDef.debugInfo) {\n return stringifyTypeFromDebugInfo(componentDef.debugInfo);\n }\n return stringifyForError(type);\n}\n// TODO(pmvald): Do some refactoring so that we can use the type ClassDebugInfo for the param\n// debugInfo here without creating circular deps.\nfunction stringifyTypeFromDebugInfo(debugInfo) {\n if (!debugInfo.filePath || !debugInfo.lineNumber) {\n return debugInfo.className;\n } else {\n return `${debugInfo.className} (at ${debugInfo.filePath}:${debugInfo.lineNumber})`;\n }\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, ngDevMode ? `Circular dependency in DI detected for ${token}${depPath}` : token);\n}\nfunction throwMixedMultiProviderError() {\n throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n if (ngModuleType && providers) {\n const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');\n throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);\n } else if (isEnvironmentProviders(provider)) {\n if (provider.ɵfromNgModule) {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);\n } else {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);\n }\n } else {\n throw new Error('Invalid provider');\n }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n const errorMessage = ngDevMode && `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ''}`;\n throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, errorMessage);\n}\n\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n * 1. `Injector` should not depend on ivy logic.\n * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n const previous = _injectImplementation;\n _injectImplementation = impl;\n return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n const injectableDef = getInjectableDef(token);\n if (injectableDef && injectableDef.providedIn == 'root') {\n return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;\n }\n if (flags & InjectFlags.Optional) return null;\n if (notFoundValue !== undefined) return notFoundValue;\n throwProviderNotFoundError(token, 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction getCurrentInjector() {\n return _currentInjector;\n}\nfunction setCurrentInjector(injector) {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n if (_currentInjector === undefined) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \\`runInInjectionContext\\`.`);\n } else if (_currentInjector === null) {\n return injectRootLimpMode(token, undefined, flags);\n } else {\n const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode && `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);\n}\n/**\n * Injects a token from the currently active injector.\n * `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can\n * be used during:\n * - Construction (via the `constructor`) of a class being instantiated by the DI system, such\n * as an `@Injectable` or `@Component`.\n * - In the initializer for fields of such classes.\n * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.\n * - In the `factory` function specified for an `InjectionToken`.\n * - In a stackframe of a function call in a DI context\n *\n * @param token A token that represents a dependency that should be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.\n * @returns the injected value if operation is successful, `null` otherwise.\n * @throws if called outside of a supported context.\n *\n * @usageNotes\n * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a\n * field initializer:\n *\n * ```typescript\n * @Injectable({providedIn: 'root'})\n * export class Car {\n * radio: Radio|undefined;\n * // OK: field initializer\n * spareTyre = inject(Tyre);\n *\n * constructor() {\n * // OK: constructor body\n * this.radio = inject(Radio);\n * }\n * }\n * ```\n *\n * It is also legal to call `inject` from a provider's factory:\n *\n * ```typescript\n * providers: [\n * {provide: Car, useFactory: () => {\n * // OK: a class factory\n * const engine = inject(Engine);\n * return new Car(engine);\n * }}\n * ]\n * ```\n *\n * Calls to the `inject()` function outside of the class creation context will result in error. Most\n * notably, calls to `inject()` are disallowed after a class instance was created, in methods\n * (including lifecycle hooks):\n *\n * ```typescript\n * @Component({ ... })\n * export class CarComponent {\n * ngOnInit() {\n * // ERROR: too late, the component instance was already created\n * const engine = inject(Engine);\n * engine.start();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction inject(token, flags = InjectFlags.Default) {\n return ɵɵinject(token, convertToBitFlags(flags));\n}\n// Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).\nfunction convertToBitFlags(flags) {\n if (typeof flags === 'undefined' || typeof flags === 'number') {\n return flags;\n }\n // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in\n // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from\n // `InjectOptions` to `InjectFlags`.\n return 0 /* InternalInjectFlags.Default */ | (\n // comment to force a line break in the formatter\n flags.optional && 8 /* InternalInjectFlags.Optional */) | (flags.host && 1 /* InternalInjectFlags.Host */) | (flags.self && 2 /* InternalInjectFlags.Self */) | (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */);\n}\nfunction injectArgs(types) {\n const args = [];\n for (let i = 0; i < types.length; i++) {\n const arg = resolveForwardRef(types[i]);\n if (Array.isArray(arg)) {\n if (arg.length === 0) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');\n }\n let type = undefined;\n let flags = InjectFlags.Default;\n for (let j = 0; j < arg.length; j++) {\n const meta = arg[j];\n const flag = getInjectFlag(meta);\n if (typeof flag === 'number') {\n // Special case when we handle @Inject decorator.\n if (flag === -1 /* DecoratorFlags.Inject */) {\n type = meta.token;\n } else {\n flags |= flag;\n }\n } else {\n type = meta;\n }\n }\n args.push(ɵɵinject(type, flags));\n } else {\n args.push(ɵɵinject(arg));\n }\n }\n return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n decorator[DI_DECORATOR_FLAG] = flag;\n decorator.prototype[DI_DECORATOR_FLAG] = flag;\n return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n const tokenPath = e[NG_TEMP_TOKEN_PATH];\n if (token[SOURCE]) {\n tokenPath.unshift(token[SOURCE]);\n }\n e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n e[NG_TOKEN_PATH] = tokenPath;\n e[NG_TEMP_TOKEN_PATH] = null;\n throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;\n let context = stringify(obj);\n if (Array.isArray(obj)) {\n context = obj.map(stringify).join(' -> ');\n } else if (typeof obj === 'object') {\n let parts = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n let value = obj[key];\n parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n }\n }\n context = `{${parts.join(', ')}}`;\n }\n return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n ')}`;\n}\n\n/**\n * Create a `StateKey` that can be used to store value of type T with `TransferState`.\n *\n * Example:\n *\n * ```\n * const COUNTER_KEY = makeStateKey('counter');\n * let value = 10;\n *\n * transferState.set(COUNTER_KEY, value);\n * ```\n *\n * @publicApi\n */\nfunction makeStateKey(key) {\n return key;\n}\nfunction initTransferState() {\n const transferState = new TransferState();\n if (inject(PLATFORM_ID) === 'browser') {\n transferState.store = retrieveTransferredState(getDocument(), inject(APP_ID));\n }\n return transferState;\n}\n/**\n * A key value store that is transferred from the application on the server side to the application\n * on the client side.\n *\n * The `TransferState` is available as an injectable token.\n * On the client, just inject this token using DI and use it, it will be lazily initialized.\n * On the server it's already included if `renderApplication` function is used. Otherwise, import\n * the `ServerTransferStateModule` module to make the `TransferState` available.\n *\n * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only\n * boolean, number, string, null and non-class objects will be serialized and deserialized in a\n * non-lossy manner.\n *\n * @publicApi\n */\nlet TransferState = /*#__PURE__*/(() => {\n class TransferState {\n constructor() {\n /** @internal */\n this.store = {};\n this.onSerializeCallbacks = {};\n }\n /** @nocollapse */\n static {\n this.ɵprov = /** @pureOrBreakMyCode */ɵɵdefineInjectable({\n token: TransferState,\n providedIn: 'root',\n factory: initTransferState\n });\n }\n /**\n * Get the value corresponding to a key. Return `defaultValue` if key is not found.\n */\n get(key, defaultValue) {\n return this.store[key] !== undefined ? this.store[key] : defaultValue;\n }\n /**\n * Set the value corresponding to a key.\n */\n set(key, value) {\n this.store[key] = value;\n }\n /**\n * Remove a key from the store.\n */\n remove(key) {\n delete this.store[key];\n }\n /**\n * Test whether a key exists in the store.\n */\n hasKey(key) {\n return this.store.hasOwnProperty(key);\n }\n /**\n * Indicates whether the state is empty.\n */\n get isEmpty() {\n return Object.keys(this.store).length === 0;\n }\n /**\n * Register a callback to provide the value for a key when `toJson` is called.\n */\n onSerialize(key, callback) {\n this.onSerializeCallbacks[key] = callback;\n }\n /**\n * Serialize the current state of the store to JSON.\n */\n toJson() {\n // Call the onSerialize callbacks and put those values into the store.\n for (const key in this.onSerializeCallbacks) {\n if (this.onSerializeCallbacks.hasOwnProperty(key)) {\n try {\n this.store[key] = this.onSerializeCallbacks[key]();\n } catch (e) {\n console.warn('Exception in onSerialize callback: ', e);\n }\n }\n }\n // Escape script tag to avoid break out of +

Dozens of
components +

Angular
Open source
February
Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
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
1
2
3
4
5
6
7
8
9
10
+ \ No newline at end of file diff --git a/main-XR4IKGQM.js b/main-E6U3KV6T.js similarity index 98% rename from main-XR4IKGQM.js rename to main-E6U3KV6T.js index db3770da..88fd8191 100644 --- a/main-XR4IKGQM.js +++ b/main-E6U3KV6T.js @@ -1,2 +1,2 @@ -import{$d as ye,Aa as M,Ab as pt,Ac as z,B as y,Ba as Ft,Bb as ut,Be as be,Ca as wt,Dc as ee,Ea as F,Fa as T,Fc as ie,G as v,Ga as Pt,Gc as x,H as u,Ha as b,Hc as G,I as vt,Ic as oe,Jb as $,Jc as Z,K as nt,Kc as ne,L as rt,Lc as re,Le as Se,M as j,Ma as Nt,Mc as se,N as gt,Nc as W,O as ht,P as m,Pe as He,Qe as Ae,R as Tt,Rc as le,S as st,Sc as Y,Ta as D,Tb as Yt,Tc as ae,U as E,Ua as xt,V as _t,Va as Rt,Wc as h,Xb as Kt,Ya as w,Z as yt,Za as L,Zb as qt,_ as Ct,_a as Et,_d as _e,a as dt,ba as Mt,bb as kt,cb as I,da as lt,db as Bt,ea as k,eb as O,ec as Jt,fb as P,fc as Xt,ga as g,gb as U,gd as ce,ha as r,hb as _,hc as Qt,hd as pe,ib as Lt,id as K,j as R,ja as Dt,jb as Ut,jd as ue,je as Ce,k as N,ka as It,kb as $t,kd as q,l as A,la as Ot,lb as Vt,ma as C,mb as zt,md as me,na as bt,nb as Gt,nd as de,ob as Zt,od as fe,oe as Me,pd as J,qa as a,qd as ve,ra as St,rd as ge,re as De,s as ft,sa as s,se as Ie,ta as Ht,td as he,ua as B,ud as Te,ue as Oe,va as p,wa as c,wc as te,xa as d,xb as Wt,ya as At,yb as at,za as jt,zb as ct,zc as V}from"./chunk-J7MZXETC.js";function We(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",Et(1,2,e,o.mapper))}}function Ye(t,i){if(t&1&&(p(0,"div",1),a(1,We,2,5,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0),g(),s("ngForOf",e)}}var je=(()=>{class t{constructor(e,o,n,l){this.allAlerts=e,this.injector=o,this.destroy$=n,this.cdr=l,this.alerts=[],this.trackBy=f=>f,this.mapper=f=>Mt.create({providers:[{provide:te,useValue:f}],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(se),r(yt),r(h,2),r(C))},t.\u0275cmp=v({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,Ye,2,2,"div",0),e&2&&s("ngForOf",o.alerts)("ngForTrackBy",o.trackBy)},dependencies:[O,Bt,ce],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:[$]}}),t})(),Fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,pe]]}),t})();var we=(()=>{class t{constructor(e,o,n){this.doc=e,this.el=o,this.renderer=n,this.activeElement=Jt(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(Kt(o,e))return;let n=Qt({initial:o,root:o});n&&n.focus()}ngOnDestroy(){Xt(this.doc),Promise.resolve().then(()=>{qt(this.activeElement)&&this.activeElement.focus()})}}return t.\u0275fac=function(e){return new(e||t)(r(I),r(gt),r(Ot))},t.\u0275dir=vt({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})(),Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({}),t})();function qe(t,i){t&1&&M(0)}function Je(t,i){t&1&&d(0,"tui-scroll-controls",5)}function Xe(t,i){if(t&1&&(p(0,"section",2),a(1,qe,1,0,"ng-container",3)(2,Je,1,0,"tui-scroll-controls",4),c()),t&2){let e=i.$implicit,o=T();s("@host",void 0),St("aria-labelledby",e.id),g(),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",e),g(),s("ngIf",!o.isMobile)}}function Qe(t,i){if(t&1){let e=Ft();p(0,"div",6),F("transitionend",function(n){let f=nt(e).tuiLet,H=T();return rt(H.onDialog(n,!!H.dialogs.length,!!f))})("popstate",function(){let l=nt(e).tuiLet,f=T();return rt(f.closeLast(f.dialogs,!!l))},!1,k),c()}if(t&2){let e=T();B("t-overlay_visible",e.dialogs.length)}}var mt={label:"ignoreMe"},ti=t=>(t==null?void 0:t.label)===mt.label,ei=Yt(R(!1)),Ne=(()=>{class t{constructor(e,o,n,l,f,H,tt,et){this.isMobile=e,this.isDialogClosesOnBack$=o,this.dialogsByType=n,this.historyRef=l,this.titleService=f,this.destroy$=H,this.cdr=tt,this.doc=et,this.dialogs=[]}ngOnInit(){A(this.dialogsByType).pipe(N(e=>[].concat(...e).sort((o,n)=>o.createdAt-n.createdAt)),y(this.destroy$)).subscribe(e=>{var o;this.dialogs=e,this.cdr.markForCheck(),(o=this.doc.defaultView)===null||o===void 0||o.document.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(mt,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:e},o,n){!n||e!=="letter-spacing"||(o?this.historyRef.pushState(mt,this.titleService.getTitle()):ti(this.historyRef.state)&&this.historyRef.back())}}return t.\u0275fac=function(e){return new(e||t)(r(Y),r(ei),r(W),r(ee),r(Vt),r(h,2),r(C),r(I))},t.\u0275cmp=v({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,Xe,3,5,"section",0)(1,Qe,1,2,"div",1),w(2,"async")),e&2&&(s("ngForOf",o.dialogs),g(),s("tuiLet",L(2,2,o.isDialogClosesOnBack$)))},dependencies:[K,O,we,ve,ue,V,P,fe,U],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:[Wt("host",[ct(":enter",[at({overflow:"clip"}),ut(":scope > *",[pt()],{optional:!0})]),ct(":leave",[at({overflow:"clip"}),ut(":scope > *",[pt()],{optional:!0})])])]}}),t})(),xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,z,ge,Pe,J,q]]}),t})();function oi(t,i){t&1&&M(0)}var ni=t=>({$implicit:t});function ri(t,i){if(t&1&&(p(0,"div",1),a(1,oi,1,0,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0)("tuiActiveZoneParent",e.activeZone||null),g(),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",Rt(4,ni,e))}}var Re=(()=>{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(Ie),r(h,2),r(C))},t.\u0275cmp=v({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,ri,2,6,"div",0),e&2&&s("ngForOf",o.hints)},dependencies:[O,me,V],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[$]}}),t})(),Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,z,de]]}),t})();function li(t,i){if(t&1&&(j(),d(0,"defs",4)),t&2){let e=i.$implicit;s("innerHTML",e,lt)}}function ai(t,i){if(t&1&&(j(),At(0),a(1,li,1,1,"defs",3),jt()),t&2){let e=T();g(),s("ngForOf",e.items)}}function ci(t,i){if(t&1&&(j(),p(0,"defs"),d(1,"svg",6),c()),t&2){let e=i.$implicit;g(),s("outerHTML",e,lt)}}function pi(t,i){if(t&1&&(j(),a(0,ci,2,1,"defs",5)),t&2){let e=T();s("ngForOf",e.items)}}var ke=(()=>{class t{constructor(e,o,n,l){this.svgService=e,this.cdr=o,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!Lt(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(Oe),r(C),r(h,2),r(Tt))},t.\u0275cmp=v({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,ai,2,1,"ng-container",1)(2,pi,1,1,"ng-template",null,2,kt),c()),e&2){let n=Nt(3);g(),s("ngIf",o.isBrowser)("ngIfElse",n)}},dependencies:[P,O],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),Be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,J]]}),t})();function mi(t,i){t&1&&d(0,"tui-scroll-controls",2)}var di=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],fi=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"],Le=(()=>{class t{constructor(e,o,n,l,f,H,tt,et,Ge){var it;this.reducedMotion=e,this.duration=o,this.dialogs=n,this.isMobile=l,this.breakpoint=f,this.isIOS=H,this.isAndroid=tt,this.isMobileRes$=this.breakpoint.pipe(N(ot=>ot==="mobile")),this.scrollbars$=this.dialogs.length&&!this.isMobile?A([...this.dialogs]).pipe(N(ot=>!ot.some(({length:Ze})=>Ze)),ft(0)):R(!this.isMobile),(it=et.defaultView)===null||it===void 0||it.document.body.setAttribute("data-tui-theme",Ge.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(r(_e),r(ye),r(W),r(Y),r(De),r(le),r(ae),r(I),r(Me))},t.\u0275cmp=v({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.66.0"],hostVars:9,hostBindings:function(e,o){e&1&&F("touchstart.passive.silent",function(){return 0})("$.class._mobile",function(){return o.isMobileRes$}),e&2&&(wt("$.class._mobile",o.isMobileRes$),Ht("--tui-duration",o.duration,"ms"),B("_ios",o.isIOS)("_android",o.isAndroid)("_reduced-motion",o.reducedMotion))},ngContentSelectors:fi,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&&(Pt(di),a(0,mi,1,0,"tui-scroll-controls",0),w(1,"async"),d(2,"tui-svg-defs-host"),p(3,"tui-dropdown-host")(4,"div",1),b(5),c(),b(6,1),d(7,"tui-dialog-host"),b(8,2),d(9,"tui-alert-host"),b(10,3),c(),b(11,4),d(12,"tui-hints-host"),b(13,5)),e&2&&s("ngIf",L(1,1,o.scrollbars$))},dependencies:[K,ke,he,Ne,je,Re,P,U],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{display:none}body[data-tui-theme]{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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\n'],encapsulation:2}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,be,Te,Be,Ee,xe,Fe,q]]}),t})();var Ue=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=v({type:i,selectors:[["app"]],standalone:!0,features:[xt],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"),d(1,"router-outlet"),M(2,0)(3,1)(4,2)(5,3)(6,4),c())},dependencies:[Q,Le,Gt],encapsulation:2,changeDetection:0});let t=i;return t})();var vi=(()=>{let i=class i extends Z{constructor(o,n,l){super(o,n,l,_t(Dt,{optional:!0}))}ngOnDestroy(){this.flush()}};i.\u0275fac=function(n){return new(n||i)(E(I),E(x),E(G))},i.\u0275prov=ht({token:i,factory:i.\u0275fac});let t=i;return t})();function gi(){return new oe}function hi(t,i,e){return new re(t,i,e)}var $e=[{provide:G,useFactory:gi},{provide:Z,useClass:vi},{provide:It,useFactory:hi,deps:[Ut,Z,bt]}],Ti=[{provide:x,useFactory:()=>new ne},{provide:st,useValue:"BrowserAnimations"},...$e],rn=[{provide:x,useClass:ie},{provide:st,useValue:"NoopAnimations"},...$e];function Ve(){return[...Ti]}var ze={providers:[Ve(),Zt([{path:"",pathMatch:"full",loadComponent:()=>dt(void 0,null,function*(){return import("./chunk-YKKBUPJP.js")})}]),zt(),Ct(Q,Se,He),{provide:Ce,useClass:Ae}]};$t(Ue,ze).catch(t=>console.error(t)); -//# sourceMappingURL=main-XR4IKGQM.js.map +import{$d as ye,Aa as M,Ab as pt,Ac as z,B as y,Ba as Ft,Bb as ut,Be as be,Ca as wt,Dc as ee,Ea as F,Fa as T,Fc as ie,G as v,Ga as Pt,Gc as x,H as u,Ha as b,Hc as G,I as vt,Ic as oe,Jb as $,Jc as Z,K as nt,Kc as ne,L as rt,Lc as re,Le as Se,M as j,Ma as Nt,Mc as se,N as gt,Nc as W,O as ht,P as m,Pe as He,Qe as Ae,R as Tt,Rc as le,S as st,Sc as Y,Ta as D,Tb as Yt,Tc as ae,U as E,Ua as xt,V as _t,Va as Rt,Wc as h,Xb as Kt,Ya as w,Z as yt,Za as L,Zb as qt,_ as Ct,_a as Et,_d as _e,a as dt,ba as Mt,bb as kt,cb as I,da as lt,db as Bt,ea as k,eb as O,ec as Jt,fb as P,fc as Xt,ga as g,gb as U,gd as ce,ha as r,hb as _,hc as Qt,hd as pe,ib as Lt,id as K,j as R,ja as Dt,jb as Ut,jd as ue,je as Ce,k as N,ka as It,kb as $t,kd as q,l as A,la as Ot,lb as Vt,ma as C,mb as zt,md as me,na as bt,nb as Gt,nd as de,ob as Zt,od as fe,oe as Me,pd as J,qa as a,qd as ve,ra as St,rd as ge,re as De,s as ft,sa as s,se as Ie,ta as Ht,td as he,ua as B,ud as Te,ue as Oe,va as p,wa as c,wc as te,xa as d,xb as Wt,ya as At,yb as at,za as jt,zb as ct,zc as V}from"./chunk-J7VW2QUP.js";function We(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",Et(1,2,e,o.mapper))}}function Ye(t,i){if(t&1&&(p(0,"div",1),a(1,We,2,5,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0),g(),s("ngForOf",e)}}var je=(()=>{class t{constructor(e,o,n,l){this.allAlerts=e,this.injector=o,this.destroy$=n,this.cdr=l,this.alerts=[],this.trackBy=f=>f,this.mapper=f=>Mt.create({providers:[{provide:te,useValue:f}],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(se),r(yt),r(h,2),r(C))},t.\u0275cmp=v({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,Ye,2,2,"div",0),e&2&&s("ngForOf",o.alerts)("ngForTrackBy",o.trackBy)},dependencies:[O,Bt,ce],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:[$]}}),t})(),Fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,pe]]}),t})();var we=(()=>{class t{constructor(e,o,n){this.doc=e,this.el=o,this.renderer=n,this.activeElement=Jt(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(Kt(o,e))return;let n=Qt({initial:o,root:o});n&&n.focus()}ngOnDestroy(){Xt(this.doc),Promise.resolve().then(()=>{qt(this.activeElement)&&this.activeElement.focus()})}}return t.\u0275fac=function(e){return new(e||t)(r(I),r(gt),r(Ot))},t.\u0275dir=vt({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})(),Pe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({}),t})();function qe(t,i){t&1&&M(0)}function Je(t,i){t&1&&d(0,"tui-scroll-controls",5)}function Xe(t,i){if(t&1&&(p(0,"section",2),a(1,qe,1,0,"ng-container",3)(2,Je,1,0,"tui-scroll-controls",4),c()),t&2){let e=i.$implicit,o=T();s("@host",void 0),St("aria-labelledby",e.id),g(),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",e),g(),s("ngIf",!o.isMobile)}}function Qe(t,i){if(t&1){let e=Ft();p(0,"div",6),F("transitionend",function(n){let f=nt(e).tuiLet,H=T();return rt(H.onDialog(n,!!H.dialogs.length,!!f))})("popstate",function(){let l=nt(e).tuiLet,f=T();return rt(f.closeLast(f.dialogs,!!l))},!1,k),c()}if(t&2){let e=T();B("t-overlay_visible",e.dialogs.length)}}var mt={label:"ignoreMe"},ti=t=>(t==null?void 0:t.label)===mt.label,ei=Yt(R(!1)),Ne=(()=>{class t{constructor(e,o,n,l,f,H,tt,et){this.isMobile=e,this.isDialogClosesOnBack$=o,this.dialogsByType=n,this.historyRef=l,this.titleService=f,this.destroy$=H,this.cdr=tt,this.doc=et,this.dialogs=[]}ngOnInit(){A(this.dialogsByType).pipe(N(e=>[].concat(...e).sort((o,n)=>o.createdAt-n.createdAt)),y(this.destroy$)).subscribe(e=>{var o;this.dialogs=e,this.cdr.markForCheck(),(o=this.doc.defaultView)===null||o===void 0||o.document.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(mt,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:e},o,n){!n||e!=="letter-spacing"||(o?this.historyRef.pushState(mt,this.titleService.getTitle()):ti(this.historyRef.state)&&this.historyRef.back())}}return t.\u0275fac=function(e){return new(e||t)(r(Y),r(ei),r(W),r(ee),r(Vt),r(h,2),r(C),r(I))},t.\u0275cmp=v({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,Xe,3,5,"section",0)(1,Qe,1,2,"div",1),w(2,"async")),e&2&&(s("ngForOf",o.dialogs),g(),s("tuiLet",L(2,2,o.isDialogClosesOnBack$)))},dependencies:[K,O,we,ve,ue,V,P,fe,U],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:[Wt("host",[ct(":enter",[at({overflow:"clip"}),ut(":scope > *",[pt()],{optional:!0})]),ct(":leave",[at({overflow:"clip"}),ut(":scope > *",[pt()],{optional:!0})])])]}}),t})(),xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,z,ge,Pe,J,q]]}),t})();function oi(t,i){t&1&&M(0)}var ni=t=>({$implicit:t});function ri(t,i){if(t&1&&(p(0,"div",1),a(1,oi,1,0,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0)("tuiActiveZoneParent",e.activeZone||null),g(),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",Rt(4,ni,e))}}var Re=(()=>{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(Ie),r(h,2),r(C))},t.\u0275cmp=v({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,ri,2,6,"div",0),e&2&&s("ngForOf",o.hints)},dependencies:[O,me,V],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[$]}}),t})(),Ee=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,z,de]]}),t})();function li(t,i){if(t&1&&(j(),d(0,"defs",4)),t&2){let e=i.$implicit;s("innerHTML",e,lt)}}function ai(t,i){if(t&1&&(j(),At(0),a(1,li,1,1,"defs",3),jt()),t&2){let e=T();g(),s("ngForOf",e.items)}}function ci(t,i){if(t&1&&(j(),p(0,"defs"),d(1,"svg",6),c()),t&2){let e=i.$implicit;g(),s("outerHTML",e,lt)}}function pi(t,i){if(t&1&&(j(),a(0,ci,2,1,"defs",5)),t&2){let e=T();s("ngForOf",e.items)}}var ke=(()=>{class t{constructor(e,o,n,l){this.svgService=e,this.cdr=o,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!Lt(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(Oe),r(C),r(h,2),r(Tt))},t.\u0275cmp=v({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,ai,2,1,"ng-container",1)(2,pi,1,1,"ng-template",null,2,kt),c()),e&2){let n=Nt(3);g(),s("ngIf",o.isBrowser)("ngIfElse",n)}},dependencies:[P,O],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),Be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,J]]}),t})();function mi(t,i){t&1&&d(0,"tui-scroll-controls",2)}var di=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],fi=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"],Le=(()=>{class t{constructor(e,o,n,l,f,H,tt,et,Ge){var it;this.reducedMotion=e,this.duration=o,this.dialogs=n,this.isMobile=l,this.breakpoint=f,this.isIOS=H,this.isAndroid=tt,this.isMobileRes$=this.breakpoint.pipe(N(ot=>ot==="mobile")),this.scrollbars$=this.dialogs.length&&!this.isMobile?A([...this.dialogs]).pipe(N(ot=>!ot.some(({length:Ze})=>Ze)),ft(0)):R(!this.isMobile),(it=et.defaultView)===null||it===void 0||it.document.body.setAttribute("data-tui-theme",Ge.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(r(_e),r(ye),r(W),r(Y),r(De),r(le),r(ae),r(I),r(Me))},t.\u0275cmp=v({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.66.0"],hostVars:9,hostBindings:function(e,o){e&1&&F("touchstart.passive.silent",function(){return 0})("$.class._mobile",function(){return o.isMobileRes$}),e&2&&(wt("$.class._mobile",o.isMobileRes$),Ht("--tui-duration",o.duration,"ms"),B("_ios",o.isIOS)("_android",o.isAndroid)("_reduced-motion",o.reducedMotion))},ngContentSelectors:fi,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&&(Pt(di),a(0,mi,1,0,"tui-scroll-controls",0),w(1,"async"),d(2,"tui-svg-defs-host"),p(3,"tui-dropdown-host")(4,"div",1),b(5),c(),b(6,1),d(7,"tui-dialog-host"),b(8,2),d(9,"tui-alert-host"),b(10,3),c(),b(11,4),d(12,"tui-hints-host"),b(13,5)),e&2&&s("ngIf",L(1,1,o.scrollbars$))},dependencies:[K,ke,he,Ne,je,Re,P,U],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{display:none}body[data-tui-theme]{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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\n'],encapsulation:2}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=u({type:t}),t.\u0275inj=m({imports:[[_,be,Te,Be,Ee,xe,Fe,q]]}),t})();var Ue=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=v({type:i,selectors:[["app"]],standalone:!0,features:[xt],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"),d(1,"router-outlet"),M(2,0)(3,1)(4,2)(5,3)(6,4),c())},dependencies:[Q,Le,Gt],encapsulation:2,changeDetection:0});let t=i;return t})();var vi=(()=>{let i=class i extends Z{constructor(o,n,l){super(o,n,l,_t(Dt,{optional:!0}))}ngOnDestroy(){this.flush()}};i.\u0275fac=function(n){return new(n||i)(E(I),E(x),E(G))},i.\u0275prov=ht({token:i,factory:i.\u0275fac});let t=i;return t})();function gi(){return new oe}function hi(t,i,e){return new re(t,i,e)}var $e=[{provide:G,useFactory:gi},{provide:Z,useClass:vi},{provide:It,useFactory:hi,deps:[Ut,Z,bt]}],Ti=[{provide:x,useFactory:()=>new ne},{provide:st,useValue:"BrowserAnimations"},...$e],rn=[{provide:x,useClass:ie},{provide:st,useValue:"NoopAnimations"},...$e];function Ve(){return[...Ti]}var ze={providers:[Ve(),Zt([{path:"",pathMatch:"full",loadComponent:()=>dt(void 0,null,function*(){return import("./chunk-2KJ7QBPC.js")})}]),zt(),Ct(Q,Se,He),{provide:Ce,useClass:Ae}]};$t(Ue,ze).catch(t=>console.error(t)); +//# sourceMappingURL=main-E6U3KV6T.js.map diff --git a/main-XR4IKGQM.js.map b/main-E6U3KV6T.js.map similarity index 99% rename from main-XR4IKGQM.js.map rename to main-E6U3KV6T.js.map index 721b6089..51326ce4 100644 --- a/main-XR4IKGQM.js.map +++ b/main-E6U3KV6T.js.map @@ -1 +1 @@ -{"version":3,"sources":["node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-alert-host.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-focus-trap.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-dialog-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-hints-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-internal-svg-defs-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-root.js","apps/demo/src/app/app.component.ts","apps/demo/src/app/app.component.html","node_modules/@angular/platform-browser/fesm2022/animations.mjs","apps/demo/src/app/app.config.ts","apps/demo/src/main.ts"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injector, INJECTOR, ChangeDetectorRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport { TUI_PARENT_ANIMATION } from '@taiga-ui/cdk/constants';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_ALERTS } from '@taiga-ui/cdk/tokens';\nimport { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus';\nimport * as i3 from 'rxjs';\nimport { combineLatest } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i2 from '@taiga-ui/cdk/pipes';\nimport { TuiMapperPipeModule } from '@taiga-ui/cdk/pipes';\nfunction TuiAlertHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, 3);\n i0.ɵɵpipe(1, \"tuiMapper\");\n }\n if (rf & 2) {\n const item_r3 = ctx.$implicit;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngComponentOutlet\", item_r3.component.component)(\"ngComponentOutletInjector\", i0.ɵɵpipeBind2(1, 2, item_r3, ctx_r2.mapper));\n }\n}\nfunction TuiAlertHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiAlertHostComponent_div_0_ng_container_1_Template, 2, 5, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const alert_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", alert_r1);\n }\n}\nlet TuiAlertHostComponent = /*#__PURE__*/(() => {\n class TuiAlertHostComponent {\n constructor(allAlerts, injector, destroy$, cdr) {\n this.allAlerts = allAlerts;\n this.injector = injector;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.alerts = [];\n this.trackBy = index => index;\n this.mapper = useValue => Injector.create({\n providers: [{\n provide: POLYMORPHEUS_CONTEXT,\n useValue\n }],\n parent: this.injector\n });\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.allAlerts).pipe(takeUntil(this.destroy$)).subscribe(alerts => {\n this.alerts = alerts;\n this.cdr.detectChanges();\n });\n }\n }\n TuiAlertHostComponent.ɵfac = function TuiAlertHostComponent_Factory(t) {\n return new (t || TuiAlertHostComponent)(i0.ɵɵdirectiveInject(TUI_ALERTS), i0.ɵɵdirectiveInject(INJECTOR), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiAlertHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiAlertHostComponent,\n selectors: [[\"tui-alert-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 2,\n consts: [[\"class\", \"t-wrapper\", 4, \"ngFor\", \"ngForOf\", \"ngForTrackBy\"], [1, \"t-wrapper\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\", 4, \"ngFor\", \"ngForOf\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\"]],\n template: function TuiAlertHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiAlertHostComponent_div_0_Template, 2, 2, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.alerts)(\"ngForTrackBy\", ctx.trackBy);\n }\n },\n dependencies: [i1.NgForOf, i1.NgComponentOutlet, i2.TuiMapperPipe],\n 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\"],\n encapsulation: 2,\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiAlertHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiAlertHostModule = /*#__PURE__*/(() => {\n class TuiAlertHostModule {}\n TuiAlertHostModule.ɵfac = function TuiAlertHostModule_Factory(t) {\n return new (t || TuiAlertHostModule)();\n };\n TuiAlertHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiAlertHostModule\n });\n TuiAlertHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiMapperPipeModule]]\n });\n return TuiAlertHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiAlertHostComponent, TuiAlertHostModule };\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ElementRef, Renderer2, Directive, Inject, HostListener, NgModule } from '@angular/core';\nimport { tuiContainsOrAfter, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';\nimport { tuiGetNativeFocused, tuiGetClosestFocusable, tuiBlurNativeFocused } from '@taiga-ui/cdk/utils/focus';\nlet TuiFocusTrapDirective = /*#__PURE__*/(() => {\n class TuiFocusTrapDirective {\n constructor(doc, el, renderer) {\n this.doc = doc;\n this.el = el;\n this.renderer = renderer;\n this.activeElement = tuiGetNativeFocused(this.doc);\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n void Promise.resolve().then(() => this.el.nativeElement.focus());\n }\n onBlur() {\n this.renderer.removeAttribute(this.el.nativeElement, 'tabIndex');\n }\n onFocusIn(node) {\n const {\n nativeElement\n } = this.el;\n if (tuiContainsOrAfter(nativeElement, node)) {\n return;\n }\n const focusable = tuiGetClosestFocusable({\n initial: nativeElement,\n root: nativeElement\n });\n if (focusable) {\n focusable.focus();\n }\n }\n ngOnDestroy() {\n tuiBlurNativeFocused(this.doc);\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n }\n TuiFocusTrapDirective.ɵfac = function TuiFocusTrapDirective_Factory(t) {\n return new (t || TuiFocusTrapDirective)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(Renderer2));\n };\n TuiFocusTrapDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TuiFocusTrapDirective,\n selectors: [[\"\", \"tuiFocusTrap\", \"\"]],\n hostAttrs: [\"tabIndex\", \"0\"],\n hostBindings: function TuiFocusTrapDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"blur\", function TuiFocusTrapDirective_blur_HostBindingHandler() {\n return ctx.onBlur();\n })(\"focusin.silent\", function TuiFocusTrapDirective_focusin_silent_HostBindingHandler($event) {\n return ctx.onFocusIn($event.target);\n }, false, i0.ɵɵresolveWindow);\n }\n }\n });\n return TuiFocusTrapDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiFocusTrapModule = /*#__PURE__*/(() => {\n class TuiFocusTrapModule {}\n TuiFocusTrapModule.ɵfac = function TuiFocusTrapModule_Factory(t) {\n return new (t || TuiFocusTrapModule)();\n };\n TuiFocusTrapModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiFocusTrapModule\n });\n TuiFocusTrapModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n return TuiFocusTrapModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiFocusTrapDirective, TuiFocusTrapModule };\n","import { trigger, transition, style, query, animateChild } from '@angular/animations';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i6 from '@angular/platform-browser';\nimport { Title } from '@angular/platform-browser';\nimport { HISTORY } from '@ng-web-apis/common';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_IS_MOBILE, TUI_DIALOGS } from '@taiga-ui/cdk/tokens';\nimport { tuiCreateToken } from '@taiga-ui/cdk/utils';\nimport * as i5 from 'rxjs';\nimport { of, combineLatest } from 'rxjs';\nimport { map, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@taiga-ui/cdk/components/scroll-controls';\nimport { TuiScrollControlsModule } from '@taiga-ui/cdk/components/scroll-controls';\nimport * as i3 from '@taiga-ui/cdk/directives';\nimport { TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule } from '@taiga-ui/cdk/directives';\nimport * as i4 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nfunction TuiDialogHostComponent_section_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 5);\n }\n}\nfunction TuiDialogHostComponent_section_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"section\", 2);\n i0.ɵɵtemplate(1, TuiDialogHostComponent_section_0_ng_container_1_Template, 1, 0, \"ng-container\", 3)(2, TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template, 1, 0, \"tui-scroll-controls\", 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r2 = ctx.$implicit;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"@host\", undefined);\n i0.ɵɵattribute(\"aria-labelledby\", item_r2.id);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", item_r2.component)(\"polymorpheusOutletContext\", item_r2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.isMobile);\n }\n}\nfunction TuiDialogHostComponent_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 6);\n i0.ɵɵlistener(\"transitionend\", function TuiDialogHostComponent_div_1_Template_div_transitionend_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r7);\n const isDialogClosesOnBack_r5 = restoredCtx.tuiLet;\n const ctx_r6 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r6.onDialog($event, !!ctx_r6.dialogs.length, !!isDialogClosesOnBack_r5));\n })(\"popstate\", function TuiDialogHostComponent_div_1_Template_div_popstate_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r7);\n const isDialogClosesOnBack_r5 = restoredCtx.tuiLet;\n const ctx_r8 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r8.closeLast(ctx_r8.dialogs, !!isDialogClosesOnBack_r5));\n }, false, i0.ɵɵresolveWindow);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassProp(\"t-overlay_visible\", ctx_r1.dialogs.length);\n }\n}\nconst FAKE_HISTORY_STATE = {\n label: 'ignoreMe'\n};\nconst isFakeHistoryState = historyState => (historyState === null || historyState === void 0 ? void 0 : historyState.label) === FAKE_HISTORY_STATE.label;\n/**\n * Is closing dialog on browser backward navigation enabled\n */\nconst TUI_DIALOG_CLOSES_ON_BACK = tuiCreateToken(of(false));\nlet TuiDialogHostComponent = /*#__PURE__*/(() => {\n class TuiDialogHostComponent {\n constructor(isMobile, isDialogClosesOnBack$, dialogsByType, historyRef, titleService, destroy$, cdr, doc) {\n this.isMobile = isMobile;\n this.isDialogClosesOnBack$ = isDialogClosesOnBack$;\n this.dialogsByType = dialogsByType;\n this.historyRef = historyRef;\n this.titleService = titleService;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.doc = doc;\n this.dialogs = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.dialogsByType).pipe(map(arr => [].concat(...arr).sort((a, b) => a.createdAt - b.createdAt)), takeUntil(this.destroy$)).subscribe(dialogs => {\n var _a;\n this.dialogs = dialogs;\n this.cdr.markForCheck();\n (_a = this.doc.defaultView) === null || _a === void 0 ? void 0 : _a.document.documentElement.classList.toggle('t-overscroll-none', !!dialogs.length);\n });\n }\n closeLast(dialogs, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack) {\n return;\n }\n const [last] = dialogs.slice(-1);\n if (!last) {\n return;\n }\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n last.$implicit.complete();\n }\n onDialog({\n propertyName\n }, popupOpened, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack || propertyName !== 'letter-spacing') {\n return;\n }\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n }\n TuiDialogHostComponent.ɵfac = function TuiDialogHostComponent_Factory(t) {\n return new (t || TuiDialogHostComponent)(i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TUI_DIALOG_CLOSES_ON_BACK), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(HISTORY), i0.ɵɵdirectiveInject(Title), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(DOCUMENT));\n };\n TuiDialogHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiDialogHostComponent,\n selectors: [[\"tui-dialog-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 3,\n vars: 4,\n 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\"]],\n template: function TuiDialogHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiDialogHostComponent_section_0_Template, 3, 5, \"section\", 0)(1, TuiDialogHostComponent_div_1_Template, 1, 2, \"div\", 1);\n i0.ɵɵpipe(2, \"async\");\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.dialogs);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"tuiLet\", i0.ɵɵpipeBind1(2, 2, ctx.isDialogClosesOnBack$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.NgForOf, i3.TuiFocusTrapDirective, i3.TuiOverscrollDirective, i1.TuiScrollRefDirective, i4.PolymorpheusOutletDirective, i2.NgIf, i3.TuiLetDirective, i2.AsyncPipe],\n 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}\"],\n data: {\n animation: [trigger('host', [transition(':enter', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })]), transition(':leave', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })])])]\n }\n });\n return TuiDialogHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiDialogHostModule = /*#__PURE__*/(() => {\n class TuiDialogHostModule {}\n TuiDialogHostModule.ɵfac = function TuiDialogHostModule_Factory(t) {\n return new (t || TuiDialogHostModule)();\n };\n TuiDialogHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiDialogHostModule\n });\n TuiDialogHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule, TuiScrollControlsModule]]\n });\n return TuiDialogHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TUI_DIALOG_CLOSES_ON_BACK, TuiDialogHostComponent, TuiDialogHostModule };\n","import * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i2 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TUI_PARENT_ANIMATION, TuiActiveZoneModule } from '@taiga-ui/cdk';\nimport { TuiHintService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i3 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nimport * as i4 from 'rxjs';\nfunction TuiHintsHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nconst _c0 = a0 => ({\n $implicit: a0\n});\nfunction TuiHintsHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiHintsHostComponent_div_0_ng_container_1_Template, 1, 0, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const hint_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined)(\"tuiActiveZoneParent\", hint_r1.activeZone || null);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", hint_r1.component)(\"polymorpheusOutletContext\", i0.ɵɵpureFunction1(4, _c0, hint_r1));\n }\n}\nlet TuiHintsHostComponent = /*#__PURE__*/(() => {\n class TuiHintsHostComponent {\n constructor(hints$, destroy$, cdr) {\n this.hints$ = hints$;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.hints = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n this.hints$.pipe(takeUntil(this.destroy$)).subscribe(hints => {\n this.hints = hints;\n this.cdr.detectChanges();\n });\n }\n }\n TuiHintsHostComponent.ɵfac = function TuiHintsHostComponent_Factory(t) {\n return new (t || TuiHintsHostComponent)(i0.ɵɵdirectiveInject(TuiHintService), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiHintsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiHintsHostComponent,\n selectors: [[\"tui-hints-host\"]],\n hostAttrs: [\"aria-live\", \"polite\"],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 1,\n consts: [[\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\", 4, \"ngFor\", \"ngForOf\"], [\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\"], [4, \"polymorpheusOutlet\", \"polymorpheusOutletContext\"]],\n template: function TuiHintsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiHintsHostComponent_div_0_Template, 2, 6, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.hints);\n }\n },\n dependencies: [i1.NgForOf, i2.TuiActiveZoneDirective, i3.PolymorpheusOutletDirective],\n styles: [\"[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}\"],\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiHintsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiHintsHostModule = /*#__PURE__*/(() => {\n class TuiHintsHostModule {}\n TuiHintsHostModule.ɵfac = function TuiHintsHostModule_Factory(t) {\n return new (t || TuiHintsHostModule)();\n };\n TuiHintsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiHintsHostModule\n });\n TuiHintsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiActiveZoneModule]]\n });\n return TuiHintsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiHintsHostComponent, TuiHintsHostModule };\n","import * as i1 from '@angular/common';\nimport { isPlatformServer, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, PLATFORM_ID, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i3 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TuiLetModule } from '@taiga-ui/cdk';\nimport * as i2 from '@taiga-ui/core/services';\nimport { TuiSvgService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nfunction TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelement(0, \"defs\", 4);\n }\n if (rf & 2) {\n const def_r4 = ctx.$implicit;\n i0.ɵɵproperty(\"innerHTML\", def_r4, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template, 1, 1, \"defs\", 3);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r0.items);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"defs\");\n i0.ɵɵelement(1, \"svg\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const def_r6 = ctx.$implicit;\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"outerHTML\", def_r6, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵtemplate(0, TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template, 2, 1, \"defs\", 5);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.items);\n }\n}\nlet TuiSvgDefsHostComponent = /*#__PURE__*/(() => {\n class TuiSvgDefsHostComponent {\n constructor(svgService, cdr, destroy$, platformId) {\n this.svgService = svgService;\n this.cdr = cdr;\n this.destroy$ = destroy$;\n this.isBrowser = true;\n this.isBrowser = !isPlatformServer(platformId);\n }\n // @bad TODO: Looks like it could be async piped but it was probably written like that for a reason\n ngOnInit() {\n this.svgService.items$.pipe(takeUntil(this.destroy$)).subscribe(defsMap => {\n this.items = defsMap.values();\n this.cdr.detectChanges();\n });\n }\n }\n TuiSvgDefsHostComponent.ɵfac = function TuiSvgDefsHostComponent_Factory(t) {\n return new (t || TuiSvgDefsHostComponent)(i0.ɵɵdirectiveInject(TuiSvgService), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(PLATFORM_ID));\n };\n TuiSvgDefsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiSvgDefsHostComponent,\n selectors: [[\"tui-svg-defs-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 4,\n vars: 2,\n 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\"]],\n template: function TuiSvgDefsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1_Template, 2, 1, \"ng-container\", 1)(2, TuiSvgDefsHostComponent__svg_ng_template_2_Template, 1, 1, \"ng-template\", null, 2, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const _r2 = i0.ɵɵreference(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isBrowser)(\"ngIfElse\", _r2);\n }\n },\n dependencies: [i1.NgIf, i1.NgForOf],\n styles: [\"[_nghost-%COMP%]{display:none}\"],\n changeDetection: 0\n });\n return TuiSvgDefsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiSvgDefsHostModule = /*#__PURE__*/(() => {\n class TuiSvgDefsHostModule {}\n TuiSvgDefsHostModule.ɵfac = function TuiSvgDefsHostModule_Factory(t) {\n return new (t || TuiSvgDefsHostModule)();\n };\n TuiSvgDefsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiSvgDefsHostModule\n });\n TuiSvgDefsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiLetModule]]\n });\n return TuiSvgDefsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiSvgDefsHostComponent, TuiSvgDefsHostModule };\n","import * as i4 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';\nimport * as i1 from '@taiga-ui/cdk';\nimport { TUI_DIALOGS, TUI_IS_MOBILE, TUI_IS_IOS, TUI_IS_ANDROID, TUI_VERSION, TuiDropdownHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule } from '@taiga-ui/cdk';\nimport * as i5 from '@taiga-ui/core/services';\nimport { TuiBreakpointService } from '@taiga-ui/core/services';\nimport { TUI_REDUCED_MOTION, TUI_ANIMATIONS_DURATION, TUI_THEME } from '@taiga-ui/core/tokens';\nimport { combineLatest, of } from 'rxjs';\nimport { map, debounceTime } from 'rxjs/operators';\nimport * as i2 from '@taiga-ui/core/internal/svg-defs-host';\nimport { TuiSvgDefsHostModule } from '@taiga-ui/core/internal/svg-defs-host';\nimport * as i3 from '@taiga-ui/core/components/hints-host';\nimport { TuiHintsHostModule } from '@taiga-ui/core/components/hints-host';\nimport { EventPluginsModule } from '@tinkoff/ng-event-plugins';\nfunction TuiRootComponent_tui_scroll_controls_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 2);\n }\n}\nconst _c0 = [\"*\", [[\"tuiOverContent\"]], [[\"tuiOverDialogs\"]], [[\"tuiOverAlerts\"]], [[\"tuiOverPortals\"]], [[\"tuiOverHints\"]]];\nconst _c1 = [\"*\", \"tuiOverContent\", \"tuiOverDialogs\", \"tuiOverAlerts\", \"tuiOverPortals\", \"tuiOverHints\"];\nlet TuiRootComponent = /*#__PURE__*/(() => {\n class TuiRootComponent {\n constructor(reducedMotion, duration, dialogs, isMobile, breakpoint, isIOS, isAndroid, document, theme) {\n var _a;\n this.reducedMotion = reducedMotion;\n this.duration = duration;\n this.dialogs = dialogs;\n this.isMobile = isMobile;\n this.breakpoint = breakpoint;\n this.isIOS = isIOS;\n this.isAndroid = isAndroid;\n this.isMobileRes$ = this.breakpoint.pipe(map(breakpoint => breakpoint === 'mobile'));\n this.scrollbars$ = this.dialogs.length && !this.isMobile ? combineLatest([...this.dialogs]).pipe(map(dialogs => !dialogs.some(({\n length\n }) => length)), debounceTime(0)) : of(!this.isMobile);\n (_a = document.defaultView) === null || _a === void 0 ? void 0 : _a.document.body.setAttribute('data-tui-theme', theme.toLowerCase());\n }\n }\n TuiRootComponent.ɵfac = function TuiRootComponent_Factory(t) {\n return new (t || TuiRootComponent)(i0.ɵɵdirectiveInject(TUI_REDUCED_MOTION), i0.ɵɵdirectiveInject(TUI_ANIMATIONS_DURATION), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TuiBreakpointService), i0.ɵɵdirectiveInject(TUI_IS_IOS), i0.ɵɵdirectiveInject(TUI_IS_ANDROID), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(TUI_THEME));\n };\n TuiRootComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiRootComponent,\n selectors: [[\"tui-root\"]],\n hostAttrs: [\"data-tui-version\", \"3.66.0\"],\n hostVars: 9,\n hostBindings: function TuiRootComponent_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"touchstart.passive.silent\", function TuiRootComponent_touchstart_passive_silent_HostBindingHandler() {\n return 0;\n })(\"$.class._mobile\", function TuiRootComponent___class__mobile_HostBindingHandler() {\n return ctx.isMobileRes$;\n });\n }\n if (rf & 2) {\n i0.ɵɵhostProperty(\"$.class._mobile\", ctx.isMobileRes$);\n i0.ɵɵstyleProp(\"--tui-duration\", ctx.duration, \"ms\");\n i0.ɵɵclassProp(\"_ios\", ctx.isIOS)(\"_android\", ctx.isAndroid)(\"_reduced-motion\", ctx.reducedMotion);\n }\n },\n ngContentSelectors: _c1,\n decls: 14,\n vars: 3,\n consts: [[\"class\", \"t-root-scrollbar\", 4, \"ngIf\"], [1, \"t-root-content\"], [1, \"t-root-scrollbar\"]],\n template: function TuiRootComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c0);\n i0.ɵɵtemplate(0, TuiRootComponent_tui_scroll_controls_0_Template, 1, 0, \"tui-scroll-controls\", 0);\n i0.ɵɵpipe(1, \"async\");\n i0.ɵɵelement(2, \"tui-svg-defs-host\");\n i0.ɵɵelementStart(3, \"tui-dropdown-host\")(4, \"div\", 1);\n i0.ɵɵprojection(5);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(6, 1);\n i0.ɵɵelement(7, \"tui-dialog-host\");\n i0.ɵɵprojection(8, 2);\n i0.ɵɵelement(9, \"tui-alert-host\");\n i0.ɵɵprojection(10, 3);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(11, 4);\n i0.ɵɵelement(12, \"tui-hints-host\");\n i0.ɵɵprojection(13, 5);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(1, 1, ctx.scrollbars$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.TuiSvgDefsHostComponent, i1.TuiDropdownHostComponent, i1.TuiDialogHostComponent, i1.TuiAlertHostComponent, i3.TuiHintsHostComponent, i4.NgIf, i4.AsyncPipe],\n 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{display:none}body[data-tui-theme]{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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\\n\"],\n encapsulation: 2\n });\n return TuiRootComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiRootModule = /*#__PURE__*/(() => {\n class TuiRootModule {}\n TuiRootModule.ɵfac = function TuiRootModule_Factory(t) {\n return new (t || TuiRootModule)();\n };\n TuiRootModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiRootModule\n });\n TuiRootModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, EventPluginsModule, TuiDropdownHostModule, TuiSvgDefsHostModule, TuiHintsHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule]]\n });\n return TuiRootModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiRootComponent, TuiRootModule };\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {RouterOutlet} from '@angular/router';\nimport {TuiRootModule} from '@taiga-ui/core';\n\n@Component({\n standalone: true,\n selector: 'app',\n imports: [TuiRootModule, RouterOutlet],\n templateUrl: './app.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AppComponent {}\n","\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n","/**\n * @license Angular v17.2.0\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationRendererFactory, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, NoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\nlet InjectableAnimationEngine = /*#__PURE__*/(() => {\n class InjectableAnimationEngine extends ɵAnimationEngine {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(doc, driver, normalizer) {\n super(doc, driver, normalizer, inject(ɵChangeDetectionScheduler, {\n optional: true\n }));\n }\n ngOnDestroy() {\n this.flush();\n }\n static {\n this.ɵfac = function InjectableAnimationEngine_Factory(t) {\n return new (t || InjectableAnimationEngine)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1.AnimationDriver), i0.ɵɵinject(i1.ɵAnimationStyleNormalizer));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: InjectableAnimationEngine,\n factory: InjectableAnimationEngine.ɵfac\n });\n }\n }\n return InjectableAnimationEngine;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new ɵAnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [{\n provide: ɵAnimationStyleNormalizer,\n useFactory: instantiateDefaultStyleNormalizer\n}, {\n provide: ɵAnimationEngine,\n useClass: InjectableAnimationEngine\n}, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n}];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useFactory: () => new ɵWebAnimationsDriver()\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'BrowserAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useClass: NoopAnimationDriver\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'NoopAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nlet BrowserAnimationsModule = /*#__PURE__*/(() => {\n class BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS : BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n static {\n this.ɵfac = function BrowserAnimationsModule_Factory(t) {\n return new (t || BrowserAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: BrowserAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return BrowserAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nlet NoopAnimationsModule = /*#__PURE__*/(() => {\n class NoopAnimationsModule {\n static {\n this.ɵfac = function NoopAnimationsModule_Factory(t) {\n return new (t || NoopAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NoopAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return NoopAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideNoopAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import {ApplicationConfig, importProvidersFrom} from '@angular/core';\nimport {provideClientHydration} from '@angular/platform-browser';\nimport {provideAnimations} from '@angular/platform-browser/animations';\nimport {provideRouter} from '@angular/router';\nimport {TUI_SANITIZER, TuiDialogModule, TuiRootModule} from '@taiga-ui/core';\nimport {TuiPushModule} from '@taiga-ui/kit';\nimport {NgDompurifySanitizer} from '@tinkoff/ng-dompurify';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideAnimations(),\n provideRouter([\n {\n path: '',\n pathMatch: 'full',\n loadComponent: async () => import('./home/home.component'),\n },\n ]),\n provideClientHydration(),\n importProvidersFrom(TuiRootModule, TuiDialogModule, TuiPushModule),\n {\n provide: TUI_SANITIZER,\n useClass: NgDompurifySanitizer,\n },\n ],\n};\n","import {bootstrapApplication} from '@angular/platform-browser';\n\nimport {AppComponent} from './app/app.component';\nimport {appConfig} from './app/app.config';\n\nbootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));\n"],"mappings":"2iCAaA,SAASA,GAAoDC,EAAIC,EAAK,CAKpE,GAJID,EAAK,IACJE,EAAmB,EAAG,CAAC,EACvBC,EAAO,EAAG,WAAW,GAEtBH,EAAK,EAAG,CACV,IAAMI,EAAUH,EAAI,UACdI,EAAYC,EAAc,CAAC,EAC9BC,EAAW,oBAAqBH,EAAQ,UAAU,SAAS,EAAE,4BAAgCI,GAAY,EAAG,EAAGJ,EAASC,EAAO,MAAM,CAAC,CAC3I,CACF,CACA,SAASI,GAAqCT,EAAIC,EAAK,CAMrD,GALID,EAAK,IACJU,EAAe,EAAG,MAAO,CAAC,EAC1BC,EAAW,EAAGZ,GAAqD,EAAG,EAAG,eAAgB,CAAC,EAC1Fa,EAAa,GAEdZ,EAAK,EAAG,CACV,IAAMa,EAAWZ,EAAI,UAClBM,EAAW,sBAAuB,MAAS,EAC3CO,EAAU,EACVP,EAAW,UAAWM,CAAQ,CACnC,CACF,CACA,IAAIE,IAAsC,IAAM,CAC9C,MAAMA,CAAsB,CAC1B,YAAYC,EAAWC,EAAUC,EAAUC,EAAK,CAC9C,KAAK,UAAYH,EACjB,KAAK,SAAWC,EAChB,KAAK,SAAWC,EAChB,KAAK,IAAMC,EACX,KAAK,OAAS,CAAC,EACf,KAAK,QAAUC,GAASA,EACxB,KAAK,OAASC,GAAYC,GAAS,OAAO,CACxC,UAAW,CAAC,CACV,QAASC,GACT,SAAAF,CACF,CAAC,EACD,OAAQ,KAAK,QACf,CAAC,CACH,CACA,UAAW,CAGTG,EAAc,KAAK,SAAS,EAAE,KAAKC,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAU,CAC/E,KAAK,OAASA,EACd,KAAK,IAAI,cAAc,CACzB,CAAC,CACH,CACF,CACA,OAAAX,EAAsB,UAAO,SAAuCY,EAAG,CACrE,OAAO,IAAKA,GAAKZ,GAA0Ba,EAAkBC,EAAU,EAAMD,EAAkBE,EAAQ,EAAMF,EAAkBG,EAAmB,CAAC,EAAMH,EAAkBI,CAAiB,CAAC,CAC/L,EACAjB,EAAsB,UAAyBkB,EAAkB,CAC/D,KAAMlB,EACN,UAAW,CAAC,CAAC,gBAAgB,CAAC,EAC9B,SAAU,CAAImB,EAAmB,CAACH,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,QAAS,YAAa,EAAG,QAAS,UAAW,cAAc,EAAG,CAAC,EAAG,WAAW,EAAG,CAAC,EAAG,oBAAqB,4BAA6B,EAAG,QAAS,SAAS,EAAG,CAAC,EAAG,oBAAqB,2BAA2B,CAAC,EAC7N,SAAU,SAAwC/B,EAAIC,EAAK,CACrDD,EAAK,GACJW,EAAW,EAAGF,GAAsC,EAAG,EAAG,MAAO,CAAC,EAEnET,EAAK,GACJO,EAAW,UAAWN,EAAI,MAAM,EAAE,eAAgBA,EAAI,OAAO,CAEpE,EACA,aAAc,CAAIkC,EAAYC,GAAsBC,EAAa,EACjE,OAAQ,CAAC,wLAAwL,EACjM,cAAe,EACf,KAAM,CACJ,UAAW,CAACC,CAAoB,CAClC,CACF,CAAC,EACMvB,CACT,GAAG,EAICwB,IAAmC,IAAM,CAC3C,MAAMA,CAAmB,CAAC,CAC1B,OAAAA,EAAmB,UAAO,SAAoCZ,EAAG,CAC/D,OAAO,IAAKA,GAAKY,EACnB,EACAA,EAAmB,UAAyBC,EAAiB,CAC3D,KAAMD,CACR,CAAC,EACDA,EAAmB,UAAyBE,EAAiB,CAC3D,QAAS,CAAC,CAACC,EAAcC,EAAmB,CAAC,CAC/C,CAAC,EACMJ,CACT,GAAG,ECpGH,IAAIK,IAAsC,IAAM,CAC9C,MAAMA,CAAsB,CAC1B,YAAYC,EAAKC,EAAIC,EAAU,CAC7B,KAAK,IAAMF,EACX,KAAK,GAAKC,EACV,KAAK,SAAWC,EAChB,KAAK,cAAgBC,GAAoB,KAAK,GAAG,EAM5C,QAAQ,QAAQ,EAAE,KAAK,IAAM,KAAK,GAAG,cAAc,MAAM,CAAC,CACjE,CACA,QAAS,CACP,KAAK,SAAS,gBAAgB,KAAK,GAAG,cAAe,UAAU,CACjE,CACA,UAAUC,EAAM,CACd,GAAM,CACJ,cAAAC,CACF,EAAI,KAAK,GACT,GAAIC,GAAmBD,EAAeD,CAAI,EACxC,OAEF,IAAMG,EAAYC,GAAuB,CACvC,QAASH,EACT,KAAMA,CACR,CAAC,EACGE,GACFA,EAAU,MAAM,CAEpB,CACA,aAAc,CACZE,GAAqB,KAAK,GAAG,EAQ7B,QAAQ,QAAQ,EAAE,KAAK,IAAM,CACvBC,GAAiB,KAAK,aAAa,GACrC,KAAK,cAAc,MAAM,CAE7B,CAAC,CACH,CACF,CACA,OAAAX,EAAsB,UAAO,SAAuCY,EAAG,CACrE,OAAO,IAAKA,GAAKZ,GAA0Ba,EAAkBC,CAAQ,EAAMD,EAAkBE,EAAU,EAAMF,EAAkBG,EAAS,CAAC,CAC3I,EACAhB,EAAsB,UAAyBiB,GAAkB,CAC/D,KAAMjB,EACN,UAAW,CAAC,CAAC,GAAI,eAAgB,EAAE,CAAC,EACpC,UAAW,CAAC,WAAY,GAAG,EAC3B,aAAc,SAA4CkB,EAAIC,EAAK,CAC7DD,EAAK,GACJE,EAAW,OAAQ,UAAyD,CAC7E,OAAOD,EAAI,OAAO,CACpB,CAAC,EAAE,iBAAkB,SAAiEE,EAAQ,CAC5F,OAAOF,EAAI,UAAUE,EAAO,MAAM,CACpC,EAAG,GAAUC,CAAe,CAEhC,CACF,CAAC,EACMtB,CACT,GAAG,EAICuB,IAAmC,IAAM,CAC3C,MAAMA,CAAmB,CAAC,CAC1B,OAAAA,EAAmB,UAAO,SAAoCX,EAAG,CAC/D,OAAO,IAAKA,GAAKW,EACnB,EACAA,EAAmB,UAAyBC,EAAiB,CAC3D,KAAMD,CACR,CAAC,EACDA,EAAmB,UAAyBE,EAAiB,CAAC,CAAC,EACxDF,CACT,GAAG,ECjEH,SAASG,GAAyDC,EAAIC,EAAK,CACrED,EAAK,GACJE,EAAmB,CAAC,CAE3B,CACA,SAASC,GAAgEH,EAAIC,EAAK,CAC5ED,EAAK,GACJI,EAAU,EAAG,sBAAuB,CAAC,CAE5C,CACA,SAASC,GAA0CL,EAAIC,EAAK,CAM1D,GALID,EAAK,IACJM,EAAe,EAAG,UAAW,CAAC,EAC9BC,EAAW,EAAGR,GAA0D,EAAG,EAAG,eAAgB,CAAC,EAAE,EAAGI,GAAiE,EAAG,EAAG,sBAAuB,CAAC,EACnMK,EAAa,GAEdR,EAAK,EAAG,CACV,IAAMS,EAAUR,EAAI,UACdS,EAAYC,EAAc,EAC7BC,EAAW,QAAS,MAAS,EAC7BC,GAAY,kBAAmBJ,EAAQ,EAAE,EACzCK,EAAU,EACVF,EAAW,qBAAsBH,EAAQ,SAAS,EAAE,4BAA6BA,CAAO,EACxFK,EAAU,EACVF,EAAW,OAAQ,CAACF,EAAO,QAAQ,CACxC,CACF,CACA,SAASK,GAAsCf,EAAIC,EAAK,CACtD,GAAID,EAAK,EAAG,CACV,IAAMgB,EAASC,GAAiB,EAC7BX,EAAe,EAAG,MAAO,CAAC,EAC1BY,EAAW,gBAAiB,SAA4EC,EAAQ,CAEjH,IAAMC,EADiBC,GAAcL,CAAG,EACI,OACtCM,EAAYX,EAAc,EAChC,OAAUY,GAAYD,EAAO,SAASH,EAAQ,CAAC,CAACG,EAAO,QAAQ,OAAQ,CAAC,CAACF,CAAuB,CAAC,CACnG,CAAC,EAAE,WAAY,UAAyE,CAEtF,IAAMA,EADiBC,GAAcL,CAAG,EACI,OACtCQ,EAAYb,EAAc,EAChC,OAAUY,GAAYC,EAAO,UAAUA,EAAO,QAAS,CAAC,CAACJ,CAAuB,CAAC,CACnF,EAAG,GAAUK,CAAe,EACzBjB,EAAa,CAClB,CACA,GAAIR,EAAK,EAAG,CACV,IAAM0B,EAAYf,EAAc,EAC7BgB,EAAY,oBAAqBD,EAAO,QAAQ,MAAM,CAC3D,CACF,CACA,IAAME,GAAqB,CACzB,MAAO,UACT,EACMC,GAAqBC,IAAiBA,GAAiB,KAAkC,OAASA,EAAa,SAAWF,GAAmB,MAI7IG,GAA4BC,GAAeC,EAAG,EAAK,CAAC,EACtDC,IAAuC,IAAM,CAC/C,MAAMA,CAAuB,CAC3B,YAAYC,EAAUC,EAAuBC,EAAeC,EAAYC,EAAcC,EAAUC,GAAKC,GAAK,CACxG,KAAK,SAAWP,EAChB,KAAK,sBAAwBC,EAC7B,KAAK,cAAgBC,EACrB,KAAK,WAAaC,EAClB,KAAK,aAAeC,EACpB,KAAK,SAAWC,EAChB,KAAK,IAAMC,GACX,KAAK,IAAMC,GACX,KAAK,QAAU,CAAC,CAClB,CACA,UAAW,CAGTC,EAAc,KAAK,aAAa,EAAE,KAAKC,EAAIC,GAAO,CAAC,EAAE,OAAO,GAAGA,CAAG,EAAE,KAAK,CAACC,EAAGC,IAAMD,EAAE,UAAYC,EAAE,SAAS,CAAC,EAAGC,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAW,CAC7J,IAAIC,EACJ,KAAK,QAAUD,EACf,KAAK,IAAI,aAAa,GACrBC,EAAK,KAAK,IAAI,eAAiB,MAAQA,IAAO,QAAkBA,EAAG,SAAS,gBAAgB,UAAU,OAAO,oBAAqB,CAAC,CAACD,EAAQ,MAAM,CACrJ,CAAC,CACH,CACA,UAAUA,EAASE,EAAsB,CACvC,GAAI,CAACA,EACH,OAEF,GAAM,CAACC,CAAI,EAAIH,EAAQ,MAAM,EAAE,EAC1BG,IAGDH,EAAQ,OAAS,GACnB,KAAK,WAAW,UAAUrB,GAAoB,KAAK,aAAa,SAAS,CAAC,EAE5EwB,EAAK,UAAU,SAAS,EAC1B,CACA,SAAS,CACP,aAAAC,CACF,EAAGC,EAAaH,EAAsB,CAChC,CAACA,GAAwBE,IAAiB,mBAG1CC,EACF,KAAK,WAAW,UAAU1B,GAAoB,KAAK,aAAa,SAAS,CAAC,EACjEC,GAAmB,KAAK,WAAW,KAAK,GACjD,KAAK,WAAW,KAAK,EAEzB,CACF,CACA,OAAAK,EAAuB,UAAO,SAAwCqB,EAAG,CACvE,OAAO,IAAKA,GAAKrB,GAA2BsB,EAAkBC,CAAa,EAAMD,EAAkBzB,EAAyB,EAAMyB,EAAkBE,CAAW,EAAMF,EAAkBG,EAAO,EAAMH,EAAkBI,EAAK,EAAMJ,EAAkBK,EAAmB,CAAC,EAAML,EAAkBM,CAAiB,EAAMN,EAAkBO,CAAQ,CAAC,CACnV,EACA7B,EAAuB,UAAyB8B,EAAkB,CAChE,KAAM9B,EACN,UAAW,CAAC,CAAC,iBAAiB,CAAC,EAC/B,SAAU,CAAI+B,EAAmB,CAACJ,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,aAAc,OAAQ,OAAQ,SAAU,eAAgB,GAAI,gBAAiB,MAAO,eAAgB,GAAI,QAAS,WAAY,EAAG,QAAS,SAAS,EAAG,CAAC,QAAS,YAAa,EAAG,oBAAqB,gBAAiB,WAAY,EAAG,QAAQ,EAAG,CAAC,aAAc,OAAQ,OAAQ,SAAU,eAAgB,GAAI,gBAAiB,MAAO,eAAgB,GAAI,EAAG,UAAU,EAAG,CAAC,EAAG,qBAAsB,2BAA2B,EAAG,CAAC,QAAS,eAAgB,EAAG,MAAM,EAAG,CAAC,EAAG,cAAc,EAAG,CAAC,EAAG,YAAa,EAAG,gBAAiB,UAAU,CAAC,EACrhB,SAAU,SAAyC7D,EAAIC,EAAK,CACtDD,EAAK,IACJO,EAAW,EAAGF,GAA2C,EAAG,EAAG,UAAW,CAAC,EAAE,EAAGU,GAAuC,EAAG,EAAG,MAAO,CAAC,EACrImD,EAAO,EAAG,OAAO,GAElBlE,EAAK,IACJY,EAAW,UAAWX,EAAI,OAAO,EACjCa,EAAU,EACVF,EAAW,SAAauD,EAAY,EAAG,EAAGlE,EAAI,qBAAqB,CAAC,EAE3E,EACA,aAAc,CAAImE,EAA+BC,EAAYC,GAA0BC,GAA2BC,GAA0BC,EAAgCC,EAASC,GAAoBC,CAAS,EAClN,OAAQ,CAAC,grCAAgrC,EACzrC,KAAM,CACJ,UAAW,CAACC,GAAQ,OAAQ,CAACC,GAAW,SAAU,CAACC,GAAM,CACvD,SAAU,MACZ,CAAC,EAAGC,GAAM,aAAc,CAACC,GAAa,CAAC,EAAG,CACxC,SAAU,EACZ,CAAC,CAAC,CAAC,EAAGH,GAAW,SAAU,CAACC,GAAM,CAChC,SAAU,MACZ,CAAC,EAAGC,GAAM,aAAc,CAACC,GAAa,CAAC,EAAG,CACxC,SAAU,EACZ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACR,CACF,CAAC,EACM/C,CACT,GAAG,EAICgD,IAAoC,IAAM,CAC5C,MAAMA,CAAoB,CAAC,CAC3B,OAAAA,EAAoB,UAAO,SAAqC3B,EAAG,CACjE,OAAO,IAAKA,GAAK2B,EACnB,EACAA,EAAoB,UAAyBC,EAAiB,CAC5D,KAAMD,CACR,CAAC,EACDA,EAAoB,UAAyBE,EAAiB,CAC5D,QAAS,CAAC,CAACC,EAAcC,EAAoBC,GAAqBC,GAAoBC,EAAcC,CAAuB,CAAC,CAC9H,CAAC,EACMR,CACT,GAAG,ECvKH,SAASS,GAAoDC,EAAIC,EAAK,CAChED,EAAK,GACJE,EAAmB,CAAC,CAE3B,CACA,IAAMC,GAAMC,IAAO,CACjB,UAAWA,CACb,GACA,SAASC,GAAqCL,EAAIC,EAAK,CAMrD,GALID,EAAK,IACJM,EAAe,EAAG,MAAO,CAAC,EAC1BC,EAAW,EAAGR,GAAqD,EAAG,EAAG,eAAgB,CAAC,EAC1FS,EAAa,GAEdR,EAAK,EAAG,CACV,IAAMS,EAAUR,EAAI,UACjBS,EAAW,sBAAuB,MAAS,EAAE,sBAAuBD,EAAQ,YAAc,IAAI,EAC9FE,EAAU,EACVD,EAAW,qBAAsBD,EAAQ,SAAS,EAAE,4BAAgCG,GAAgB,EAAGT,GAAKM,CAAO,CAAC,CACzH,CACF,CACA,IAAII,IAAsC,IAAM,CAC9C,MAAMA,CAAsB,CAC1B,YAAYC,EAAQC,EAAUC,EAAK,CACjC,KAAK,OAASF,EACd,KAAK,SAAWC,EAChB,KAAK,IAAMC,EACX,KAAK,MAAQ,CAAC,CAChB,CACA,UAAW,CAGT,KAAK,OAAO,KAAKC,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAS,CAC5D,KAAK,MAAQA,EACb,KAAK,IAAI,cAAc,CACzB,CAAC,CACH,CACF,CACA,OAAAL,EAAsB,UAAO,SAAuCM,EAAG,CACrE,OAAO,IAAKA,GAAKN,GAA0BO,EAAkBC,EAAc,EAAMD,EAAkBE,EAAmB,CAAC,EAAMF,EAAkBG,CAAiB,CAAC,CACnK,EACAV,EAAsB,UAAyBW,EAAkB,CAC/D,KAAMX,EACN,UAAW,CAAC,CAAC,gBAAgB,CAAC,EAC9B,UAAW,CAAC,YAAa,QAAQ,EACjC,SAAU,CAAIY,EAAmB,CAACH,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,OAAQ,UAAW,EAAG,sBAAuB,EAAG,QAAS,SAAS,EAAG,CAAC,OAAQ,UAAW,EAAG,qBAAqB,EAAG,CAAC,EAAG,qBAAsB,2BAA2B,CAAC,EACpL,SAAU,SAAwCtB,EAAIC,EAAK,CACrDD,EAAK,GACJO,EAAW,EAAGF,GAAsC,EAAG,EAAG,MAAO,CAAC,EAEnEL,EAAK,GACJU,EAAW,UAAWT,EAAI,KAAK,CAEtC,EACA,aAAc,CAAIyB,EAAYC,GAA2BC,CAA2B,EACpF,OAAQ,CAAC,mEAAmE,EAC5E,KAAM,CACJ,UAAW,CAACC,CAAoB,CAClC,CACF,CAAC,EACMhB,CACT,GAAG,EAICiB,IAAmC,IAAM,CAC3C,MAAMA,CAAmB,CAAC,CAC1B,OAAAA,EAAmB,UAAO,SAAoCX,EAAG,CAC/D,OAAO,IAAKA,GAAKW,EACnB,EACAA,EAAmB,UAAyBC,EAAiB,CAC3D,KAAMD,CACR,CAAC,EACDA,EAAmB,UAAyBE,EAAiB,CAC3D,QAAS,CAAC,CAACC,EAAcC,EAAoBC,EAAmB,CAAC,CACnE,CAAC,EACML,CACT,GAAG,EClFH,SAASM,GAAiEC,EAAIC,EAAK,CAKjF,GAJID,EAAK,IACJE,EAAe,EACfC,EAAU,EAAG,OAAQ,CAAC,GAEvBH,EAAK,EAAG,CACV,IAAMI,EAASH,EAAI,UAChBI,EAAW,YAAaD,EAAWE,EAAc,CACtD,CACF,CACA,SAASC,GAAqDP,EAAIC,EAAK,CAOrE,GANID,EAAK,IACJE,EAAe,EACfM,GAAwB,CAAC,EACzBC,EAAW,EAAGV,GAAkE,EAAG,EAAG,OAAQ,CAAC,EAC/FW,GAAsB,GAEvBV,EAAK,EAAG,CACV,IAAMW,EAAYC,EAAc,EAC7BC,EAAU,EACVR,EAAW,UAAWM,EAAO,KAAK,CACvC,CACF,CACA,SAASG,GAAgEd,EAAIC,EAAK,CAOhF,GANID,EAAK,IACJE,EAAe,EACfa,EAAe,EAAG,MAAM,EACxBZ,EAAU,EAAG,MAAO,CAAC,EACrBa,EAAa,GAEdhB,EAAK,EAAG,CACV,IAAMiB,EAAShB,EAAI,UAChBY,EAAU,EACVR,EAAW,YAAaY,EAAWX,EAAc,CACtD,CACF,CACA,SAASY,GAAoDlB,EAAIC,EAAK,CAKpE,GAJID,EAAK,IACJE,EAAe,EACfO,EAAW,EAAGK,GAAiE,EAAG,EAAG,OAAQ,CAAC,GAE/Fd,EAAK,EAAG,CACV,IAAMmB,EAAYP,EAAc,EAC7BP,EAAW,UAAWc,EAAO,KAAK,CACvC,CACF,CACA,IAAIC,IAAwC,IAAM,CAChD,MAAMA,CAAwB,CAC5B,YAAYC,EAAYC,EAAKC,EAAUC,EAAY,CACjD,KAAK,WAAaH,EAClB,KAAK,IAAMC,EACX,KAAK,SAAWC,EAChB,KAAK,UAAY,GACjB,KAAK,UAAY,CAACE,GAAiBD,CAAU,CAC/C,CAEA,UAAW,CACT,KAAK,WAAW,OAAO,KAAKE,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAW,CACzE,KAAK,MAAQA,EAAQ,OAAO,EAC5B,KAAK,IAAI,cAAc,CACzB,CAAC,CACH,CACF,CACA,OAAAP,EAAwB,UAAO,SAAyCQ,EAAG,CACzE,OAAO,IAAKA,GAAKR,GAA4BS,EAAkBC,EAAa,EAAMD,EAAkBE,CAAiB,EAAMF,EAAkBG,EAAmB,CAAC,EAAMH,EAAkBI,EAAW,CAAC,CACvM,EACAb,EAAwB,UAAyBc,EAAkB,CACjE,KAAMd,EACN,UAAW,CAAC,CAAC,mBAAmB,CAAC,EACjC,SAAU,CAAIe,EAAmB,CAACH,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,UAAW,MAAO,EAAG,QAAS,QAAS,+BAAgC,QAAS,4BAA4B,EAAG,CAAC,EAAG,OAAQ,UAAU,EAAG,CAAC,SAAU,EAAE,EAAG,CAAC,EAAG,YAAa,EAAG,QAAS,SAAS,EAAG,CAAC,EAAG,WAAW,EAAG,CAAC,EAAG,QAAS,SAAS,EAAG,CAAC,EAAG,WAAW,CAAC,EACtQ,SAAU,SAA0ChC,EAAIC,EAAK,CAO3D,GANID,EAAK,IACJE,EAAe,EACfa,EAAe,EAAG,MAAO,CAAC,EAC1BN,EAAW,EAAGF,GAAsD,EAAG,EAAG,eAAgB,CAAC,EAAE,EAAGW,GAAqD,EAAG,EAAG,cAAe,KAAM,EAAMkB,EAAsB,EAC5MpB,EAAa,GAEdhB,EAAK,EAAG,CACV,IAAMqC,EAASC,GAAY,CAAC,EACzBzB,EAAU,EACVR,EAAW,OAAQJ,EAAI,SAAS,EAAE,WAAYoC,CAAG,CACtD,CACF,EACA,aAAc,CAAIE,EAASC,CAAO,EAClC,OAAQ,CAAC,gCAAgC,EACzC,gBAAiB,CACnB,CAAC,EACMpB,CACT,GAAG,EAICqB,IAAqC,IAAM,CAC7C,MAAMA,CAAqB,CAAC,CAC5B,OAAAA,EAAqB,UAAO,SAAsCb,EAAG,CACnE,OAAO,IAAKA,GAAKa,EACnB,EACAA,EAAqB,UAAyBC,EAAiB,CAC7D,KAAMD,CACR,CAAC,EACDA,EAAqB,UAAyBE,EAAiB,CAC7D,QAAS,CAAC,CAACC,EAAcC,CAAY,CAAC,CACxC,CAAC,EACMJ,CACT,GAAG,ECpGH,SAASK,GAAgDC,EAAIC,EAAK,CAC5DD,EAAK,GACJE,EAAU,EAAG,sBAAuB,CAAC,CAE5C,CACA,IAAMC,GAAM,CAAC,IAAK,CAAC,CAAC,gBAAgB,CAAC,EAAG,CAAC,CAAC,gBAAgB,CAAC,EAAG,CAAC,CAAC,eAAe,CAAC,EAAG,CAAC,CAAC,gBAAgB,CAAC,EAAG,CAAC,CAAC,cAAc,CAAC,CAAC,EACrHC,GAAM,CAAC,IAAK,iBAAkB,iBAAkB,gBAAiB,iBAAkB,cAAc,EACnGC,IAAiC,IAAM,CACzC,MAAMA,CAAiB,CACrB,YAAYC,EAAeC,EAAUC,EAASC,EAAUC,EAAYC,EAAOC,GAAWC,GAAUC,GAAO,CACrG,IAAIC,GACJ,KAAK,cAAgBT,EACrB,KAAK,SAAWC,EAChB,KAAK,QAAUC,EACf,KAAK,SAAWC,EAChB,KAAK,WAAaC,EAClB,KAAK,MAAQC,EACb,KAAK,UAAYC,GACjB,KAAK,aAAe,KAAK,WAAW,KAAKI,EAAIN,IAAcA,KAAe,QAAQ,CAAC,EACnF,KAAK,YAAc,KAAK,QAAQ,QAAU,CAAC,KAAK,SAAWO,EAAc,CAAC,GAAG,KAAK,OAAO,CAAC,EAAE,KAAKD,EAAIR,IAAW,CAACA,GAAQ,KAAK,CAAC,CAC7H,OAAAU,EACF,IAAMA,EAAM,CAAC,EAAGC,GAAa,CAAC,CAAC,EAAIC,EAAG,CAAC,KAAK,QAAQ,GACnDL,GAAKF,GAAS,eAAiB,MAAQE,KAAO,QAAkBA,GAAG,SAAS,KAAK,aAAa,iBAAkBD,GAAM,YAAY,CAAC,CACtI,CACF,CACA,OAAAT,EAAiB,UAAO,SAAkCgB,EAAG,CAC3D,OAAO,IAAKA,GAAKhB,GAAqBiB,EAAkBC,EAAkB,EAAMD,EAAkBE,EAAuB,EAAMF,EAAkBG,CAAW,EAAMH,EAAkBI,CAAa,EAAMJ,EAAkBK,EAAoB,EAAML,EAAkBM,EAAU,EAAMN,EAAkBO,EAAc,EAAMP,EAAkBQ,CAAQ,EAAMR,EAAkBS,EAAS,CAAC,CACzX,EACA1B,EAAiB,UAAyB2B,EAAkB,CAC1D,KAAM3B,EACN,UAAW,CAAC,CAAC,UAAU,CAAC,EACxB,UAAW,CAAC,mBAAoB,QAAQ,EACxC,SAAU,EACV,aAAc,SAAuCL,EAAIC,EAAK,CACxDD,EAAK,GACJiC,EAAW,4BAA6B,UAAyE,CAClH,MAAO,EACT,CAAC,EAAE,kBAAmB,UAA+D,CACnF,OAAOhC,EAAI,YACb,CAAC,EAECD,EAAK,IACJkC,GAAe,kBAAmBjC,EAAI,YAAY,EAClDkC,GAAY,iBAAkBlC,EAAI,SAAU,IAAI,EAChDmC,EAAY,OAAQnC,EAAI,KAAK,EAAE,WAAYA,EAAI,SAAS,EAAE,kBAAmBA,EAAI,aAAa,EAErG,EACA,mBAAoBG,GACpB,MAAO,GACP,KAAM,EACN,OAAQ,CAAC,CAAC,QAAS,mBAAoB,EAAG,MAAM,EAAG,CAAC,EAAG,gBAAgB,EAAG,CAAC,EAAG,kBAAkB,CAAC,EACjG,SAAU,SAAmCJ,EAAIC,EAAK,CAChDD,EAAK,IACJqC,GAAgBlC,EAAG,EACnBmC,EAAW,EAAGvC,GAAiD,EAAG,EAAG,sBAAuB,CAAC,EAC7FwC,EAAO,EAAG,OAAO,EACjBrC,EAAU,EAAG,mBAAmB,EAChCsC,EAAe,EAAG,mBAAmB,EAAE,EAAG,MAAO,CAAC,EAClDC,EAAa,CAAC,EACdC,EAAa,EACbD,EAAa,EAAG,CAAC,EACjBvC,EAAU,EAAG,iBAAiB,EAC9BuC,EAAa,EAAG,CAAC,EACjBvC,EAAU,EAAG,gBAAgB,EAC7BuC,EAAa,GAAI,CAAC,EAClBC,EAAa,EACbD,EAAa,GAAI,CAAC,EAClBvC,EAAU,GAAI,gBAAgB,EAC9BuC,EAAa,GAAI,CAAC,GAEnBzC,EAAK,GACJ2C,EAAW,OAAWC,EAAY,EAAG,EAAG3C,EAAI,WAAW,CAAC,CAE/D,EACA,aAAc,CAAI4C,EAA+BC,GAA4BC,GAA6BC,GAA2BC,GAA0BC,GAA0BC,EAASC,CAAS,EAC3M,OAAQ,CAAC,4uBAA8uB,EACvvB,cAAe,CACjB,CAAC,EACM/C,CACT,GAAG,EAICgD,GAA8B,IAAM,CACtC,MAAMA,CAAc,CAAC,CACrB,OAAAA,EAAc,UAAO,SAA+BhC,EAAG,CACrD,OAAO,IAAKA,GAAKgC,EACnB,EACAA,EAAc,UAAyBC,EAAiB,CACtD,KAAMD,CACR,CAAC,EACDA,EAAc,UAAyBE,EAAiB,CACtD,QAAS,CAAC,CAACC,EAAcC,GAAoBC,GAAuBC,GAAsBC,GAAoBC,GAAqBC,GAAoBC,CAAuB,CAAC,CACjL,CAAC,EACMV,CACT,GAAG,ECnGH,IAAaW,IAAY,IAAA,CAAnB,IAAOA,EAAP,MAAOA,CAAY,yCAAZA,EAAY,sBAAZA,EAAYC,UAAA,CAAA,CAAA,KAAA,CAAA,EAAAC,WAAA,GAAAC,SAAA,CAAAC,EAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,OAAA,CAAA,CAAA,cAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,cAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,cAAA,gBAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,cAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,cAAA,eAAA,EAAA,CAAA,cAAA,CAAA,CAAA,EAAAC,SAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,ICZzBE,EAAA,EAAA,UAAA,EACIC,EAAA,EAAA,eAAA,EAEAC,EAAA,EAAA,CAAA,EAEe,EAAA,CAAA,EAAA,EAAA,CAAA,EAAA,EAAA,CAAA,EAAA,EAAA,CAAA,EAanBC,EAAA,kBDXcC,EAAaC,GAAEC,EAAY,EAAAC,cAAA,EAAAC,gBAAA,CAAA,CAAA,EAKnC,IAAOnB,EAAPoB,SAAOpB,CAAY,GAAA,EECzB,IAAIqB,IAA0C,IAAM,CAClD,IAAMC,EAAN,MAAMA,UAAkCC,CAAiB,CAIvD,YAAYC,EAAKC,EAAQC,EAAY,CACnC,MAAMF,EAAKC,EAAQC,EAAYC,GAAOC,GAA2B,CAC/D,SAAU,EACZ,CAAC,CAAC,CACJ,CACA,aAAc,CACZ,KAAK,MAAM,CACb,CAYF,EAVIN,EAAK,UAAO,SAA2CO,EAAG,CACxD,OAAO,IAAKA,GAAKP,GAA8BQ,EAASC,CAAQ,EAAMD,EAAYE,CAAe,EAAMF,EAAYG,CAAyB,CAAC,CAC/I,EAGAX,EAAK,WAA0BY,GAAmB,CAChD,MAAOZ,EACP,QAASA,EAA0B,SACrC,CAAC,EArBL,IAAMD,EAANC,EAwBA,OAAOD,CACT,GAAG,EAIH,SAASc,IAAoC,CAC3C,OAAO,IAAIC,EACb,CACA,SAASC,GAA2BC,EAAUC,EAAQC,EAAM,CAC1D,OAAO,IAAIC,GAA0BH,EAAUC,EAAQC,CAAI,CAC7D,CACA,IAAME,GAA6B,CAAC,CAClC,QAAST,EACT,WAAYE,EACd,EAAG,CACD,QAASZ,EACT,SAAUF,EACZ,EAAG,CACD,QAASsB,GACT,WAAYN,GACZ,KAAM,CAACO,GAAsBrB,EAAkBsB,EAAM,CACvD,CAAC,EAKKC,GAA+B,CAAC,CACpC,QAASd,EACT,WAAY,IAAM,IAAIe,EACxB,EAAG,CACD,QAASC,GACT,SAAU,mBACZ,EAAG,GAAGN,EAA0B,EAK1BO,GAAoC,CAAC,CACzC,QAASjB,EACT,SAAUkB,EACZ,EAAG,CACD,QAASF,GACT,SAAU,gBACZ,EAAG,GAAGN,EAA0B,EA2EhC,SAASS,IAAoB,CAG3B,MAAO,CAAC,GAAGC,EAA4B,CACzC,CCxJO,IAAMC,GAA+B,CACxCC,UAAW,CACPC,GAAiB,EACjBC,GAAc,CACV,CACIC,KAAM,GACNC,UAAW,OACXC,cAAe,IAAAC,GAAA,wBAAY,cAAO,qBAAuB,IAC5D,CACJ,EACDC,GAAsB,EACtBC,GAAoBC,EAAeC,GAAiBC,EAAa,EACjE,CACIC,QAASC,GACTC,SAAUC,GACb,GClBTC,GAAqBC,GAAcC,EAAS,EAAEC,MAAMC,GAAOC,QAAQC,MAAMF,CAAG,CAAC","names":["TuiAlertHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","ɵɵpipe","item_r3","ctx_r2","ɵɵnextContext","ɵɵproperty","ɵɵpipeBind2","TuiAlertHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","alert_r1","ɵɵadvance","TuiAlertHostComponent","allAlerts","injector","destroy$","cdr","index","useValue","Injector","POLYMORPHEUS_CONTEXT","combineLatest","takeUntil","alerts","t","ɵɵdirectiveInject","TUI_ALERTS","INJECTOR","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","NgComponentOutlet","TuiMapperPipe","TUI_PARENT_ANIMATION","TuiAlertHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiMapperPipeModule","TuiFocusTrapDirective","doc","el","renderer","tuiGetNativeFocused","node","nativeElement","tuiContainsOrAfter","focusable","tuiGetClosestFocusable","tuiBlurNativeFocused","tuiIsHTMLElement","t","ɵɵdirectiveInject","DOCUMENT","ElementRef","Renderer2","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵresolveWindow","TuiFocusTrapModule","ɵɵdefineNgModule","ɵɵdefineInjector","TuiDialogHostComponent_section_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template","ɵɵelement","TuiDialogHostComponent_section_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","item_r2","ctx_r0","ɵɵnextContext","ɵɵproperty","ɵɵattribute","ɵɵadvance","TuiDialogHostComponent_div_1_Template","_r7","ɵɵgetCurrentView","ɵɵlistener","$event","isDialogClosesOnBack_r5","ɵɵrestoreView","ctx_r6","ɵɵresetView","ctx_r8","ɵɵresolveWindow","ctx_r1","ɵɵclassProp","FAKE_HISTORY_STATE","isFakeHistoryState","historyState","TUI_DIALOG_CLOSES_ON_BACK","tuiCreateToken","of","TuiDialogHostComponent","isMobile","isDialogClosesOnBack$","dialogsByType","historyRef","titleService","destroy$","cdr","doc","combineLatest","map","arr","a","b","takeUntil","dialogs","_a","isDialogClosesOnBack","last","propertyName","popupOpened","t","ɵɵdirectiveInject","TUI_IS_MOBILE","TUI_DIALOGS","HISTORY","Title","TuiDestroyService","ChangeDetectorRef","DOCUMENT","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵpipe","ɵɵpipeBind1","TuiScrollControlsComponent","NgForOf","TuiFocusTrapDirective","TuiOverscrollDirective","TuiScrollRefDirective","PolymorpheusOutletDirective","NgIf","TuiLetDirective","AsyncPipe","trigger","transition","style","query","animateChild","TuiDialogHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiOverscrollModule","TuiFocusTrapModule","TuiLetModule","TuiScrollControlsModule","TuiHintsHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","_c0","a0","TuiHintsHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","hint_r1","ɵɵproperty","ɵɵadvance","ɵɵpureFunction1","TuiHintsHostComponent","hints$","destroy$","cdr","takeUntil","hints","t","ɵɵdirectiveInject","TuiHintService","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","TuiActiveZoneDirective","PolymorpheusOutletDirective","TUI_PARENT_ANIMATION","TuiHintsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiActiveZoneModule","TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template","rf","ctx","ɵɵnamespaceSVG","ɵɵelement","def_r4","ɵɵproperty","ɵɵsanitizeHtml","TuiSvgDefsHostComponent__svg_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ctx_r0","ɵɵnextContext","ɵɵadvance","TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template","ɵɵelementStart","ɵɵelementEnd","def_r6","TuiSvgDefsHostComponent__svg_ng_template_2_Template","ctx_r1","TuiSvgDefsHostComponent","svgService","cdr","destroy$","platformId","isPlatformServer","takeUntil","defsMap","t","ɵɵdirectiveInject","TuiSvgService","ChangeDetectorRef","TuiDestroyService","PLATFORM_ID","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵtemplateRefExtractor","_r2","ɵɵreference","NgIf","NgForOf","TuiSvgDefsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiLetModule","TuiRootComponent_tui_scroll_controls_0_Template","rf","ctx","ɵɵelement","_c0","_c1","TuiRootComponent","reducedMotion","duration","dialogs","isMobile","breakpoint","isIOS","isAndroid","document","theme","_a","map","combineLatest","length","debounceTime","of","t","ɵɵdirectiveInject","TUI_REDUCED_MOTION","TUI_ANIMATIONS_DURATION","TUI_DIALOGS","TUI_IS_MOBILE","TuiBreakpointService","TUI_IS_IOS","TUI_IS_ANDROID","DOCUMENT","TUI_THEME","ɵɵdefineComponent","ɵɵlistener","ɵɵhostProperty","ɵɵstyleProp","ɵɵclassProp","ɵɵprojectionDef","ɵɵtemplate","ɵɵpipe","ɵɵelementStart","ɵɵprojection","ɵɵelementEnd","ɵɵproperty","ɵɵpipeBind1","TuiScrollControlsComponent","TuiSvgDefsHostComponent","TuiDropdownHostComponent","TuiDialogHostComponent","TuiAlertHostComponent","TuiHintsHostComponent","NgIf","AsyncPipe","TuiRootModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","EventPluginsModule","TuiDropdownHostModule","TuiSvgDefsHostModule","TuiHintsHostModule","TuiDialogHostModule","TuiAlertHostModule","TuiScrollControlsModule","AppComponent","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementContainer","ɵɵelementEnd","TuiRootModule","TuiRootComponent","RouterOutlet","encapsulation","changeDetection","_AppComponent","InjectableAnimationEngine","_InjectableAnimationEngine","AnimationEngine","doc","driver","normalizer","inject","ChangeDetectionScheduler","t","ɵɵinject","DOCUMENT","AnimationDriver","AnimationStyleNormalizer","ɵɵdefineInjectable","instantiateDefaultStyleNormalizer","WebAnimationsStyleNormalizer","instantiateRendererFactory","renderer","engine","zone","AnimationRendererFactory","SHARED_ANIMATION_PROVIDERS","RendererFactory2","DomRendererFactory2","NgZone","BROWSER_ANIMATIONS_PROVIDERS","WebAnimationsDriver","ANIMATION_MODULE_TYPE","BROWSER_NOOP_ANIMATIONS_PROVIDERS","NoopAnimationDriver","provideAnimations","BROWSER_ANIMATIONS_PROVIDERS","appConfig","providers","provideAnimations","provideRouter","path","pathMatch","loadComponent","__async","provideClientHydration","importProvidersFrom","TuiRootModule","TuiDialogModule","TuiPushModule","provide","TUI_SANITIZER","useClass","NgDompurifySanitizer","bootstrapApplication","AppComponent","appConfig","catch","err","console","error"],"x_google_ignoreList":[0,1,2,3,4,5,8]} \ No newline at end of file +{"version":3,"sources":["node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-alert-host.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-focus-trap.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-dialog-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-hints-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-internal-svg-defs-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-root.js","apps/demo/src/app/app.component.ts","apps/demo/src/app/app.component.html","node_modules/@angular/platform-browser/fesm2022/animations.mjs","apps/demo/src/app/app.config.ts","apps/demo/src/main.ts"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injector, INJECTOR, ChangeDetectorRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport { TUI_PARENT_ANIMATION } from '@taiga-ui/cdk/constants';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_ALERTS } from '@taiga-ui/cdk/tokens';\nimport { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus';\nimport * as i3 from 'rxjs';\nimport { combineLatest } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i2 from '@taiga-ui/cdk/pipes';\nimport { TuiMapperPipeModule } from '@taiga-ui/cdk/pipes';\nfunction TuiAlertHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, 3);\n i0.ɵɵpipe(1, \"tuiMapper\");\n }\n if (rf & 2) {\n const item_r3 = ctx.$implicit;\n const ctx_r2 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngComponentOutlet\", item_r3.component.component)(\"ngComponentOutletInjector\", i0.ɵɵpipeBind2(1, 2, item_r3, ctx_r2.mapper));\n }\n}\nfunction TuiAlertHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiAlertHostComponent_div_0_ng_container_1_Template, 2, 5, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const alert_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", alert_r1);\n }\n}\nlet TuiAlertHostComponent = /*#__PURE__*/(() => {\n class TuiAlertHostComponent {\n constructor(allAlerts, injector, destroy$, cdr) {\n this.allAlerts = allAlerts;\n this.injector = injector;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.alerts = [];\n this.trackBy = index => index;\n this.mapper = useValue => Injector.create({\n providers: [{\n provide: POLYMORPHEUS_CONTEXT,\n useValue\n }],\n parent: this.injector\n });\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.allAlerts).pipe(takeUntil(this.destroy$)).subscribe(alerts => {\n this.alerts = alerts;\n this.cdr.detectChanges();\n });\n }\n }\n TuiAlertHostComponent.ɵfac = function TuiAlertHostComponent_Factory(t) {\n return new (t || TuiAlertHostComponent)(i0.ɵɵdirectiveInject(TUI_ALERTS), i0.ɵɵdirectiveInject(INJECTOR), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiAlertHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiAlertHostComponent,\n selectors: [[\"tui-alert-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 2,\n consts: [[\"class\", \"t-wrapper\", 4, \"ngFor\", \"ngForOf\", \"ngForTrackBy\"], [1, \"t-wrapper\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\", 4, \"ngFor\", \"ngForOf\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\"]],\n template: function TuiAlertHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiAlertHostComponent_div_0_Template, 2, 2, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.alerts)(\"ngForTrackBy\", ctx.trackBy);\n }\n },\n dependencies: [i1.NgForOf, i1.NgComponentOutlet, i2.TuiMapperPipe],\n 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\"],\n encapsulation: 2,\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiAlertHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiAlertHostModule = /*#__PURE__*/(() => {\n class TuiAlertHostModule {}\n TuiAlertHostModule.ɵfac = function TuiAlertHostModule_Factory(t) {\n return new (t || TuiAlertHostModule)();\n };\n TuiAlertHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiAlertHostModule\n });\n TuiAlertHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiMapperPipeModule]]\n });\n return TuiAlertHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiAlertHostComponent, TuiAlertHostModule };\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ElementRef, Renderer2, Directive, Inject, HostListener, NgModule } from '@angular/core';\nimport { tuiContainsOrAfter, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';\nimport { tuiGetNativeFocused, tuiGetClosestFocusable, tuiBlurNativeFocused } from '@taiga-ui/cdk/utils/focus';\nlet TuiFocusTrapDirective = /*#__PURE__*/(() => {\n class TuiFocusTrapDirective {\n constructor(doc, el, renderer) {\n this.doc = doc;\n this.el = el;\n this.renderer = renderer;\n this.activeElement = tuiGetNativeFocused(this.doc);\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n void Promise.resolve().then(() => this.el.nativeElement.focus());\n }\n onBlur() {\n this.renderer.removeAttribute(this.el.nativeElement, 'tabIndex');\n }\n onFocusIn(node) {\n const {\n nativeElement\n } = this.el;\n if (tuiContainsOrAfter(nativeElement, node)) {\n return;\n }\n const focusable = tuiGetClosestFocusable({\n initial: nativeElement,\n root: nativeElement\n });\n if (focusable) {\n focusable.focus();\n }\n }\n ngOnDestroy() {\n tuiBlurNativeFocused(this.doc);\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n }\n TuiFocusTrapDirective.ɵfac = function TuiFocusTrapDirective_Factory(t) {\n return new (t || TuiFocusTrapDirective)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(Renderer2));\n };\n TuiFocusTrapDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TuiFocusTrapDirective,\n selectors: [[\"\", \"tuiFocusTrap\", \"\"]],\n hostAttrs: [\"tabIndex\", \"0\"],\n hostBindings: function TuiFocusTrapDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"blur\", function TuiFocusTrapDirective_blur_HostBindingHandler() {\n return ctx.onBlur();\n })(\"focusin.silent\", function TuiFocusTrapDirective_focusin_silent_HostBindingHandler($event) {\n return ctx.onFocusIn($event.target);\n }, false, i0.ɵɵresolveWindow);\n }\n }\n });\n return TuiFocusTrapDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiFocusTrapModule = /*#__PURE__*/(() => {\n class TuiFocusTrapModule {}\n TuiFocusTrapModule.ɵfac = function TuiFocusTrapModule_Factory(t) {\n return new (t || TuiFocusTrapModule)();\n };\n TuiFocusTrapModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiFocusTrapModule\n });\n TuiFocusTrapModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n return TuiFocusTrapModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiFocusTrapDirective, TuiFocusTrapModule };\n","import { trigger, transition, style, query, animateChild } from '@angular/animations';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i6 from '@angular/platform-browser';\nimport { Title } from '@angular/platform-browser';\nimport { HISTORY } from '@ng-web-apis/common';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_IS_MOBILE, TUI_DIALOGS } from '@taiga-ui/cdk/tokens';\nimport { tuiCreateToken } from '@taiga-ui/cdk/utils';\nimport * as i5 from 'rxjs';\nimport { of, combineLatest } from 'rxjs';\nimport { map, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@taiga-ui/cdk/components/scroll-controls';\nimport { TuiScrollControlsModule } from '@taiga-ui/cdk/components/scroll-controls';\nimport * as i3 from '@taiga-ui/cdk/directives';\nimport { TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule } from '@taiga-ui/cdk/directives';\nimport * as i4 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nfunction TuiDialogHostComponent_section_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 5);\n }\n}\nfunction TuiDialogHostComponent_section_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"section\", 2);\n i0.ɵɵtemplate(1, TuiDialogHostComponent_section_0_ng_container_1_Template, 1, 0, \"ng-container\", 3)(2, TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template, 1, 0, \"tui-scroll-controls\", 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r2 = ctx.$implicit;\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"@host\", undefined);\n i0.ɵɵattribute(\"aria-labelledby\", item_r2.id);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", item_r2.component)(\"polymorpheusOutletContext\", item_r2);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r0.isMobile);\n }\n}\nfunction TuiDialogHostComponent_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 6);\n i0.ɵɵlistener(\"transitionend\", function TuiDialogHostComponent_div_1_Template_div_transitionend_0_listener($event) {\n const restoredCtx = i0.ɵɵrestoreView(_r7);\n const isDialogClosesOnBack_r5 = restoredCtx.tuiLet;\n const ctx_r6 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r6.onDialog($event, !!ctx_r6.dialogs.length, !!isDialogClosesOnBack_r5));\n })(\"popstate\", function TuiDialogHostComponent_div_1_Template_div_popstate_0_listener() {\n const restoredCtx = i0.ɵɵrestoreView(_r7);\n const isDialogClosesOnBack_r5 = restoredCtx.tuiLet;\n const ctx_r8 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r8.closeLast(ctx_r8.dialogs, !!isDialogClosesOnBack_r5));\n }, false, i0.ɵɵresolveWindow);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassProp(\"t-overlay_visible\", ctx_r1.dialogs.length);\n }\n}\nconst FAKE_HISTORY_STATE = {\n label: 'ignoreMe'\n};\nconst isFakeHistoryState = historyState => (historyState === null || historyState === void 0 ? void 0 : historyState.label) === FAKE_HISTORY_STATE.label;\n/**\n * Is closing dialog on browser backward navigation enabled\n */\nconst TUI_DIALOG_CLOSES_ON_BACK = tuiCreateToken(of(false));\nlet TuiDialogHostComponent = /*#__PURE__*/(() => {\n class TuiDialogHostComponent {\n constructor(isMobile, isDialogClosesOnBack$, dialogsByType, historyRef, titleService, destroy$, cdr, doc) {\n this.isMobile = isMobile;\n this.isDialogClosesOnBack$ = isDialogClosesOnBack$;\n this.dialogsByType = dialogsByType;\n this.historyRef = historyRef;\n this.titleService = titleService;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.doc = doc;\n this.dialogs = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.dialogsByType).pipe(map(arr => [].concat(...arr).sort((a, b) => a.createdAt - b.createdAt)), takeUntil(this.destroy$)).subscribe(dialogs => {\n var _a;\n this.dialogs = dialogs;\n this.cdr.markForCheck();\n (_a = this.doc.defaultView) === null || _a === void 0 ? void 0 : _a.document.documentElement.classList.toggle('t-overscroll-none', !!dialogs.length);\n });\n }\n closeLast(dialogs, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack) {\n return;\n }\n const [last] = dialogs.slice(-1);\n if (!last) {\n return;\n }\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n last.$implicit.complete();\n }\n onDialog({\n propertyName\n }, popupOpened, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack || propertyName !== 'letter-spacing') {\n return;\n }\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n }\n TuiDialogHostComponent.ɵfac = function TuiDialogHostComponent_Factory(t) {\n return new (t || TuiDialogHostComponent)(i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TUI_DIALOG_CLOSES_ON_BACK), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(HISTORY), i0.ɵɵdirectiveInject(Title), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(DOCUMENT));\n };\n TuiDialogHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiDialogHostComponent,\n selectors: [[\"tui-dialog-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 3,\n vars: 4,\n 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\"]],\n template: function TuiDialogHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiDialogHostComponent_section_0_Template, 3, 5, \"section\", 0)(1, TuiDialogHostComponent_div_1_Template, 1, 2, \"div\", 1);\n i0.ɵɵpipe(2, \"async\");\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.dialogs);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"tuiLet\", i0.ɵɵpipeBind1(2, 2, ctx.isDialogClosesOnBack$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.NgForOf, i3.TuiFocusTrapDirective, i3.TuiOverscrollDirective, i1.TuiScrollRefDirective, i4.PolymorpheusOutletDirective, i2.NgIf, i3.TuiLetDirective, i2.AsyncPipe],\n 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}\"],\n data: {\n animation: [trigger('host', [transition(':enter', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })]), transition(':leave', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })])])]\n }\n });\n return TuiDialogHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiDialogHostModule = /*#__PURE__*/(() => {\n class TuiDialogHostModule {}\n TuiDialogHostModule.ɵfac = function TuiDialogHostModule_Factory(t) {\n return new (t || TuiDialogHostModule)();\n };\n TuiDialogHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiDialogHostModule\n });\n TuiDialogHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule, TuiScrollControlsModule]]\n });\n return TuiDialogHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TUI_DIALOG_CLOSES_ON_BACK, TuiDialogHostComponent, TuiDialogHostModule };\n","import * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i2 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TUI_PARENT_ANIMATION, TuiActiveZoneModule } from '@taiga-ui/cdk';\nimport { TuiHintService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i3 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nimport * as i4 from 'rxjs';\nfunction TuiHintsHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nconst _c0 = a0 => ({\n $implicit: a0\n});\nfunction TuiHintsHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiHintsHostComponent_div_0_ng_container_1_Template, 1, 0, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const hint_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined)(\"tuiActiveZoneParent\", hint_r1.activeZone || null);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", hint_r1.component)(\"polymorpheusOutletContext\", i0.ɵɵpureFunction1(4, _c0, hint_r1));\n }\n}\nlet TuiHintsHostComponent = /*#__PURE__*/(() => {\n class TuiHintsHostComponent {\n constructor(hints$, destroy$, cdr) {\n this.hints$ = hints$;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.hints = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n this.hints$.pipe(takeUntil(this.destroy$)).subscribe(hints => {\n this.hints = hints;\n this.cdr.detectChanges();\n });\n }\n }\n TuiHintsHostComponent.ɵfac = function TuiHintsHostComponent_Factory(t) {\n return new (t || TuiHintsHostComponent)(i0.ɵɵdirectiveInject(TuiHintService), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiHintsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiHintsHostComponent,\n selectors: [[\"tui-hints-host\"]],\n hostAttrs: [\"aria-live\", \"polite\"],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 1,\n consts: [[\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\", 4, \"ngFor\", \"ngForOf\"], [\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\"], [4, \"polymorpheusOutlet\", \"polymorpheusOutletContext\"]],\n template: function TuiHintsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiHintsHostComponent_div_0_Template, 2, 6, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.hints);\n }\n },\n dependencies: [i1.NgForOf, i2.TuiActiveZoneDirective, i3.PolymorpheusOutletDirective],\n styles: [\"[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}\"],\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiHintsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiHintsHostModule = /*#__PURE__*/(() => {\n class TuiHintsHostModule {}\n TuiHintsHostModule.ɵfac = function TuiHintsHostModule_Factory(t) {\n return new (t || TuiHintsHostModule)();\n };\n TuiHintsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiHintsHostModule\n });\n TuiHintsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiActiveZoneModule]]\n });\n return TuiHintsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiHintsHostComponent, TuiHintsHostModule };\n","import * as i1 from '@angular/common';\nimport { isPlatformServer, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, PLATFORM_ID, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i3 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TuiLetModule } from '@taiga-ui/cdk';\nimport * as i2 from '@taiga-ui/core/services';\nimport { TuiSvgService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nfunction TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelement(0, \"defs\", 4);\n }\n if (rf & 2) {\n const def_r4 = ctx.$implicit;\n i0.ɵɵproperty(\"innerHTML\", def_r4, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template, 1, 1, \"defs\", 3);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r0 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r0.items);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"defs\");\n i0.ɵɵelement(1, \"svg\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const def_r6 = ctx.$implicit;\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"outerHTML\", def_r6, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵtemplate(0, TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template, 2, 1, \"defs\", 5);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.items);\n }\n}\nlet TuiSvgDefsHostComponent = /*#__PURE__*/(() => {\n class TuiSvgDefsHostComponent {\n constructor(svgService, cdr, destroy$, platformId) {\n this.svgService = svgService;\n this.cdr = cdr;\n this.destroy$ = destroy$;\n this.isBrowser = true;\n this.isBrowser = !isPlatformServer(platformId);\n }\n // @bad TODO: Looks like it could be async piped but it was probably written like that for a reason\n ngOnInit() {\n this.svgService.items$.pipe(takeUntil(this.destroy$)).subscribe(defsMap => {\n this.items = defsMap.values();\n this.cdr.detectChanges();\n });\n }\n }\n TuiSvgDefsHostComponent.ɵfac = function TuiSvgDefsHostComponent_Factory(t) {\n return new (t || TuiSvgDefsHostComponent)(i0.ɵɵdirectiveInject(TuiSvgService), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(PLATFORM_ID));\n };\n TuiSvgDefsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiSvgDefsHostComponent,\n selectors: [[\"tui-svg-defs-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 4,\n vars: 2,\n 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\"]],\n template: function TuiSvgDefsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 0);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1_Template, 2, 1, \"ng-container\", 1)(2, TuiSvgDefsHostComponent__svg_ng_template_2_Template, 1, 1, \"ng-template\", null, 2, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const _r2 = i0.ɵɵreference(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isBrowser)(\"ngIfElse\", _r2);\n }\n },\n dependencies: [i1.NgIf, i1.NgForOf],\n styles: [\"[_nghost-%COMP%]{display:none}\"],\n changeDetection: 0\n });\n return TuiSvgDefsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiSvgDefsHostModule = /*#__PURE__*/(() => {\n class TuiSvgDefsHostModule {}\n TuiSvgDefsHostModule.ɵfac = function TuiSvgDefsHostModule_Factory(t) {\n return new (t || TuiSvgDefsHostModule)();\n };\n TuiSvgDefsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiSvgDefsHostModule\n });\n TuiSvgDefsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiLetModule]]\n });\n return TuiSvgDefsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiSvgDefsHostComponent, TuiSvgDefsHostModule };\n","import * as i4 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';\nimport * as i1 from '@taiga-ui/cdk';\nimport { TUI_DIALOGS, TUI_IS_MOBILE, TUI_IS_IOS, TUI_IS_ANDROID, TUI_VERSION, TuiDropdownHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule } from '@taiga-ui/cdk';\nimport * as i5 from '@taiga-ui/core/services';\nimport { TuiBreakpointService } from '@taiga-ui/core/services';\nimport { TUI_REDUCED_MOTION, TUI_ANIMATIONS_DURATION, TUI_THEME } from '@taiga-ui/core/tokens';\nimport { combineLatest, of } from 'rxjs';\nimport { map, debounceTime } from 'rxjs/operators';\nimport * as i2 from '@taiga-ui/core/internal/svg-defs-host';\nimport { TuiSvgDefsHostModule } from '@taiga-ui/core/internal/svg-defs-host';\nimport * as i3 from '@taiga-ui/core/components/hints-host';\nimport { TuiHintsHostModule } from '@taiga-ui/core/components/hints-host';\nimport { EventPluginsModule } from '@tinkoff/ng-event-plugins';\nfunction TuiRootComponent_tui_scroll_controls_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 2);\n }\n}\nconst _c0 = [\"*\", [[\"tuiOverContent\"]], [[\"tuiOverDialogs\"]], [[\"tuiOverAlerts\"]], [[\"tuiOverPortals\"]], [[\"tuiOverHints\"]]];\nconst _c1 = [\"*\", \"tuiOverContent\", \"tuiOverDialogs\", \"tuiOverAlerts\", \"tuiOverPortals\", \"tuiOverHints\"];\nlet TuiRootComponent = /*#__PURE__*/(() => {\n class TuiRootComponent {\n constructor(reducedMotion, duration, dialogs, isMobile, breakpoint, isIOS, isAndroid, document, theme) {\n var _a;\n this.reducedMotion = reducedMotion;\n this.duration = duration;\n this.dialogs = dialogs;\n this.isMobile = isMobile;\n this.breakpoint = breakpoint;\n this.isIOS = isIOS;\n this.isAndroid = isAndroid;\n this.isMobileRes$ = this.breakpoint.pipe(map(breakpoint => breakpoint === 'mobile'));\n this.scrollbars$ = this.dialogs.length && !this.isMobile ? combineLatest([...this.dialogs]).pipe(map(dialogs => !dialogs.some(({\n length\n }) => length)), debounceTime(0)) : of(!this.isMobile);\n (_a = document.defaultView) === null || _a === void 0 ? void 0 : _a.document.body.setAttribute('data-tui-theme', theme.toLowerCase());\n }\n }\n TuiRootComponent.ɵfac = function TuiRootComponent_Factory(t) {\n return new (t || TuiRootComponent)(i0.ɵɵdirectiveInject(TUI_REDUCED_MOTION), i0.ɵɵdirectiveInject(TUI_ANIMATIONS_DURATION), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TuiBreakpointService), i0.ɵɵdirectiveInject(TUI_IS_IOS), i0.ɵɵdirectiveInject(TUI_IS_ANDROID), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(TUI_THEME));\n };\n TuiRootComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiRootComponent,\n selectors: [[\"tui-root\"]],\n hostAttrs: [\"data-tui-version\", \"3.66.0\"],\n hostVars: 9,\n hostBindings: function TuiRootComponent_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"touchstart.passive.silent\", function TuiRootComponent_touchstart_passive_silent_HostBindingHandler() {\n return 0;\n })(\"$.class._mobile\", function TuiRootComponent___class__mobile_HostBindingHandler() {\n return ctx.isMobileRes$;\n });\n }\n if (rf & 2) {\n i0.ɵɵhostProperty(\"$.class._mobile\", ctx.isMobileRes$);\n i0.ɵɵstyleProp(\"--tui-duration\", ctx.duration, \"ms\");\n i0.ɵɵclassProp(\"_ios\", ctx.isIOS)(\"_android\", ctx.isAndroid)(\"_reduced-motion\", ctx.reducedMotion);\n }\n },\n ngContentSelectors: _c1,\n decls: 14,\n vars: 3,\n consts: [[\"class\", \"t-root-scrollbar\", 4, \"ngIf\"], [1, \"t-root-content\"], [1, \"t-root-scrollbar\"]],\n template: function TuiRootComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c0);\n i0.ɵɵtemplate(0, TuiRootComponent_tui_scroll_controls_0_Template, 1, 0, \"tui-scroll-controls\", 0);\n i0.ɵɵpipe(1, \"async\");\n i0.ɵɵelement(2, \"tui-svg-defs-host\");\n i0.ɵɵelementStart(3, \"tui-dropdown-host\")(4, \"div\", 1);\n i0.ɵɵprojection(5);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(6, 1);\n i0.ɵɵelement(7, \"tui-dialog-host\");\n i0.ɵɵprojection(8, 2);\n i0.ɵɵelement(9, \"tui-alert-host\");\n i0.ɵɵprojection(10, 3);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(11, 4);\n i0.ɵɵelement(12, \"tui-hints-host\");\n i0.ɵɵprojection(13, 5);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(1, 1, ctx.scrollbars$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.TuiSvgDefsHostComponent, i1.TuiDropdownHostComponent, i1.TuiDialogHostComponent, i1.TuiAlertHostComponent, i3.TuiHintsHostComponent, i4.NgIf, i4.AsyncPipe],\n 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{display:none}body[data-tui-theme]{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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\\n\"],\n encapsulation: 2\n });\n return TuiRootComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiRootModule = /*#__PURE__*/(() => {\n class TuiRootModule {}\n TuiRootModule.ɵfac = function TuiRootModule_Factory(t) {\n return new (t || TuiRootModule)();\n };\n TuiRootModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiRootModule\n });\n TuiRootModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, EventPluginsModule, TuiDropdownHostModule, TuiSvgDefsHostModule, TuiHintsHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule]]\n });\n return TuiRootModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiRootComponent, TuiRootModule };\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {RouterOutlet} from '@angular/router';\nimport {TuiRootModule} from '@taiga-ui/core';\n\n@Component({\n standalone: true,\n selector: 'app',\n imports: [TuiRootModule, RouterOutlet],\n templateUrl: './app.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AppComponent {}\n","\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n","/**\n * @license Angular v17.2.1\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationRendererFactory, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, NoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\nlet InjectableAnimationEngine = /*#__PURE__*/(() => {\n class InjectableAnimationEngine extends ɵAnimationEngine {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(doc, driver, normalizer) {\n super(doc, driver, normalizer, inject(ɵChangeDetectionScheduler, {\n optional: true\n }));\n }\n ngOnDestroy() {\n this.flush();\n }\n static {\n this.ɵfac = function InjectableAnimationEngine_Factory(t) {\n return new (t || InjectableAnimationEngine)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1.AnimationDriver), i0.ɵɵinject(i1.ɵAnimationStyleNormalizer));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: InjectableAnimationEngine,\n factory: InjectableAnimationEngine.ɵfac\n });\n }\n }\n return InjectableAnimationEngine;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new ɵAnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [{\n provide: ɵAnimationStyleNormalizer,\n useFactory: instantiateDefaultStyleNormalizer\n}, {\n provide: ɵAnimationEngine,\n useClass: InjectableAnimationEngine\n}, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n}];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useFactory: () => new ɵWebAnimationsDriver()\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'BrowserAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useClass: NoopAnimationDriver\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'NoopAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nlet BrowserAnimationsModule = /*#__PURE__*/(() => {\n class BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS : BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n static {\n this.ɵfac = function BrowserAnimationsModule_Factory(t) {\n return new (t || BrowserAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: BrowserAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return BrowserAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nlet NoopAnimationsModule = /*#__PURE__*/(() => {\n class NoopAnimationsModule {\n static {\n this.ɵfac = function NoopAnimationsModule_Factory(t) {\n return new (t || NoopAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NoopAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return NoopAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideNoopAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import {ApplicationConfig, importProvidersFrom} from '@angular/core';\nimport {provideClientHydration} from '@angular/platform-browser';\nimport {provideAnimations} from '@angular/platform-browser/animations';\nimport {provideRouter} from '@angular/router';\nimport {TUI_SANITIZER, TuiDialogModule, TuiRootModule} from '@taiga-ui/core';\nimport {TuiPushModule} from '@taiga-ui/kit';\nimport {NgDompurifySanitizer} from '@tinkoff/ng-dompurify';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideAnimations(),\n provideRouter([\n {\n path: '',\n pathMatch: 'full',\n loadComponent: async () => import('./home/home.component'),\n },\n ]),\n provideClientHydration(),\n importProvidersFrom(TuiRootModule, TuiDialogModule, TuiPushModule),\n {\n provide: TUI_SANITIZER,\n useClass: NgDompurifySanitizer,\n },\n ],\n};\n","import {bootstrapApplication} from '@angular/platform-browser';\n\nimport {AppComponent} from './app/app.component';\nimport {appConfig} from './app/app.config';\n\nbootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));\n"],"mappings":"2iCAaA,SAASA,GAAoDC,EAAIC,EAAK,CAKpE,GAJID,EAAK,IACJE,EAAmB,EAAG,CAAC,EACvBC,EAAO,EAAG,WAAW,GAEtBH,EAAK,EAAG,CACV,IAAMI,EAAUH,EAAI,UACdI,EAAYC,EAAc,CAAC,EAC9BC,EAAW,oBAAqBH,EAAQ,UAAU,SAAS,EAAE,4BAAgCI,GAAY,EAAG,EAAGJ,EAASC,EAAO,MAAM,CAAC,CAC3I,CACF,CACA,SAASI,GAAqCT,EAAIC,EAAK,CAMrD,GALID,EAAK,IACJU,EAAe,EAAG,MAAO,CAAC,EAC1BC,EAAW,EAAGZ,GAAqD,EAAG,EAAG,eAAgB,CAAC,EAC1Fa,EAAa,GAEdZ,EAAK,EAAG,CACV,IAAMa,EAAWZ,EAAI,UAClBM,EAAW,sBAAuB,MAAS,EAC3CO,EAAU,EACVP,EAAW,UAAWM,CAAQ,CACnC,CACF,CACA,IAAIE,IAAsC,IAAM,CAC9C,MAAMA,CAAsB,CAC1B,YAAYC,EAAWC,EAAUC,EAAUC,EAAK,CAC9C,KAAK,UAAYH,EACjB,KAAK,SAAWC,EAChB,KAAK,SAAWC,EAChB,KAAK,IAAMC,EACX,KAAK,OAAS,CAAC,EACf,KAAK,QAAUC,GAASA,EACxB,KAAK,OAASC,GAAYC,GAAS,OAAO,CACxC,UAAW,CAAC,CACV,QAASC,GACT,SAAAF,CACF,CAAC,EACD,OAAQ,KAAK,QACf,CAAC,CACH,CACA,UAAW,CAGTG,EAAc,KAAK,SAAS,EAAE,KAAKC,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAU,CAC/E,KAAK,OAASA,EACd,KAAK,IAAI,cAAc,CACzB,CAAC,CACH,CACF,CACA,OAAAX,EAAsB,UAAO,SAAuCY,EAAG,CACrE,OAAO,IAAKA,GAAKZ,GAA0Ba,EAAkBC,EAAU,EAAMD,EAAkBE,EAAQ,EAAMF,EAAkBG,EAAmB,CAAC,EAAMH,EAAkBI,CAAiB,CAAC,CAC/L,EACAjB,EAAsB,UAAyBkB,EAAkB,CAC/D,KAAMlB,EACN,UAAW,CAAC,CAAC,gBAAgB,CAAC,EAC9B,SAAU,CAAImB,EAAmB,CAACH,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,QAAS,YAAa,EAAG,QAAS,UAAW,cAAc,EAAG,CAAC,EAAG,WAAW,EAAG,CAAC,EAAG,oBAAqB,4BAA6B,EAAG,QAAS,SAAS,EAAG,CAAC,EAAG,oBAAqB,2BAA2B,CAAC,EAC7N,SAAU,SAAwC/B,EAAIC,EAAK,CACrDD,EAAK,GACJW,EAAW,EAAGF,GAAsC,EAAG,EAAG,MAAO,CAAC,EAEnET,EAAK,GACJO,EAAW,UAAWN,EAAI,MAAM,EAAE,eAAgBA,EAAI,OAAO,CAEpE,EACA,aAAc,CAAIkC,EAAYC,GAAsBC,EAAa,EACjE,OAAQ,CAAC,wLAAwL,EACjM,cAAe,EACf,KAAM,CACJ,UAAW,CAACC,CAAoB,CAClC,CACF,CAAC,EACMvB,CACT,GAAG,EAICwB,IAAmC,IAAM,CAC3C,MAAMA,CAAmB,CAAC,CAC1B,OAAAA,EAAmB,UAAO,SAAoCZ,EAAG,CAC/D,OAAO,IAAKA,GAAKY,EACnB,EACAA,EAAmB,UAAyBC,EAAiB,CAC3D,KAAMD,CACR,CAAC,EACDA,EAAmB,UAAyBE,EAAiB,CAC3D,QAAS,CAAC,CAACC,EAAcC,EAAmB,CAAC,CAC/C,CAAC,EACMJ,CACT,GAAG,ECpGH,IAAIK,IAAsC,IAAM,CAC9C,MAAMA,CAAsB,CAC1B,YAAYC,EAAKC,EAAIC,EAAU,CAC7B,KAAK,IAAMF,EACX,KAAK,GAAKC,EACV,KAAK,SAAWC,EAChB,KAAK,cAAgBC,GAAoB,KAAK,GAAG,EAM5C,QAAQ,QAAQ,EAAE,KAAK,IAAM,KAAK,GAAG,cAAc,MAAM,CAAC,CACjE,CACA,QAAS,CACP,KAAK,SAAS,gBAAgB,KAAK,GAAG,cAAe,UAAU,CACjE,CACA,UAAUC,EAAM,CACd,GAAM,CACJ,cAAAC,CACF,EAAI,KAAK,GACT,GAAIC,GAAmBD,EAAeD,CAAI,EACxC,OAEF,IAAMG,EAAYC,GAAuB,CACvC,QAASH,EACT,KAAMA,CACR,CAAC,EACGE,GACFA,EAAU,MAAM,CAEpB,CACA,aAAc,CACZE,GAAqB,KAAK,GAAG,EAQ7B,QAAQ,QAAQ,EAAE,KAAK,IAAM,CACvBC,GAAiB,KAAK,aAAa,GACrC,KAAK,cAAc,MAAM,CAE7B,CAAC,CACH,CACF,CACA,OAAAX,EAAsB,UAAO,SAAuCY,EAAG,CACrE,OAAO,IAAKA,GAAKZ,GAA0Ba,EAAkBC,CAAQ,EAAMD,EAAkBE,EAAU,EAAMF,EAAkBG,EAAS,CAAC,CAC3I,EACAhB,EAAsB,UAAyBiB,GAAkB,CAC/D,KAAMjB,EACN,UAAW,CAAC,CAAC,GAAI,eAAgB,EAAE,CAAC,EACpC,UAAW,CAAC,WAAY,GAAG,EAC3B,aAAc,SAA4CkB,EAAIC,EAAK,CAC7DD,EAAK,GACJE,EAAW,OAAQ,UAAyD,CAC7E,OAAOD,EAAI,OAAO,CACpB,CAAC,EAAE,iBAAkB,SAAiEE,EAAQ,CAC5F,OAAOF,EAAI,UAAUE,EAAO,MAAM,CACpC,EAAG,GAAUC,CAAe,CAEhC,CACF,CAAC,EACMtB,CACT,GAAG,EAICuB,IAAmC,IAAM,CAC3C,MAAMA,CAAmB,CAAC,CAC1B,OAAAA,EAAmB,UAAO,SAAoCX,EAAG,CAC/D,OAAO,IAAKA,GAAKW,EACnB,EACAA,EAAmB,UAAyBC,EAAiB,CAC3D,KAAMD,CACR,CAAC,EACDA,EAAmB,UAAyBE,EAAiB,CAAC,CAAC,EACxDF,CACT,GAAG,ECjEH,SAASG,GAAyDC,EAAIC,EAAK,CACrED,EAAK,GACJE,EAAmB,CAAC,CAE3B,CACA,SAASC,GAAgEH,EAAIC,EAAK,CAC5ED,EAAK,GACJI,EAAU,EAAG,sBAAuB,CAAC,CAE5C,CACA,SAASC,GAA0CL,EAAIC,EAAK,CAM1D,GALID,EAAK,IACJM,EAAe,EAAG,UAAW,CAAC,EAC9BC,EAAW,EAAGR,GAA0D,EAAG,EAAG,eAAgB,CAAC,EAAE,EAAGI,GAAiE,EAAG,EAAG,sBAAuB,CAAC,EACnMK,EAAa,GAEdR,EAAK,EAAG,CACV,IAAMS,EAAUR,EAAI,UACdS,EAAYC,EAAc,EAC7BC,EAAW,QAAS,MAAS,EAC7BC,GAAY,kBAAmBJ,EAAQ,EAAE,EACzCK,EAAU,EACVF,EAAW,qBAAsBH,EAAQ,SAAS,EAAE,4BAA6BA,CAAO,EACxFK,EAAU,EACVF,EAAW,OAAQ,CAACF,EAAO,QAAQ,CACxC,CACF,CACA,SAASK,GAAsCf,EAAIC,EAAK,CACtD,GAAID,EAAK,EAAG,CACV,IAAMgB,EAASC,GAAiB,EAC7BX,EAAe,EAAG,MAAO,CAAC,EAC1BY,EAAW,gBAAiB,SAA4EC,EAAQ,CAEjH,IAAMC,EADiBC,GAAcL,CAAG,EACI,OACtCM,EAAYX,EAAc,EAChC,OAAUY,GAAYD,EAAO,SAASH,EAAQ,CAAC,CAACG,EAAO,QAAQ,OAAQ,CAAC,CAACF,CAAuB,CAAC,CACnG,CAAC,EAAE,WAAY,UAAyE,CAEtF,IAAMA,EADiBC,GAAcL,CAAG,EACI,OACtCQ,EAAYb,EAAc,EAChC,OAAUY,GAAYC,EAAO,UAAUA,EAAO,QAAS,CAAC,CAACJ,CAAuB,CAAC,CACnF,EAAG,GAAUK,CAAe,EACzBjB,EAAa,CAClB,CACA,GAAIR,EAAK,EAAG,CACV,IAAM0B,EAAYf,EAAc,EAC7BgB,EAAY,oBAAqBD,EAAO,QAAQ,MAAM,CAC3D,CACF,CACA,IAAME,GAAqB,CACzB,MAAO,UACT,EACMC,GAAqBC,IAAiBA,GAAiB,KAAkC,OAASA,EAAa,SAAWF,GAAmB,MAI7IG,GAA4BC,GAAeC,EAAG,EAAK,CAAC,EACtDC,IAAuC,IAAM,CAC/C,MAAMA,CAAuB,CAC3B,YAAYC,EAAUC,EAAuBC,EAAeC,EAAYC,EAAcC,EAAUC,GAAKC,GAAK,CACxG,KAAK,SAAWP,EAChB,KAAK,sBAAwBC,EAC7B,KAAK,cAAgBC,EACrB,KAAK,WAAaC,EAClB,KAAK,aAAeC,EACpB,KAAK,SAAWC,EAChB,KAAK,IAAMC,GACX,KAAK,IAAMC,GACX,KAAK,QAAU,CAAC,CAClB,CACA,UAAW,CAGTC,EAAc,KAAK,aAAa,EAAE,KAAKC,EAAIC,GAAO,CAAC,EAAE,OAAO,GAAGA,CAAG,EAAE,KAAK,CAACC,EAAGC,IAAMD,EAAE,UAAYC,EAAE,SAAS,CAAC,EAAGC,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAW,CAC7J,IAAIC,EACJ,KAAK,QAAUD,EACf,KAAK,IAAI,aAAa,GACrBC,EAAK,KAAK,IAAI,eAAiB,MAAQA,IAAO,QAAkBA,EAAG,SAAS,gBAAgB,UAAU,OAAO,oBAAqB,CAAC,CAACD,EAAQ,MAAM,CACrJ,CAAC,CACH,CACA,UAAUA,EAASE,EAAsB,CACvC,GAAI,CAACA,EACH,OAEF,GAAM,CAACC,CAAI,EAAIH,EAAQ,MAAM,EAAE,EAC1BG,IAGDH,EAAQ,OAAS,GACnB,KAAK,WAAW,UAAUrB,GAAoB,KAAK,aAAa,SAAS,CAAC,EAE5EwB,EAAK,UAAU,SAAS,EAC1B,CACA,SAAS,CACP,aAAAC,CACF,EAAGC,EAAaH,EAAsB,CAChC,CAACA,GAAwBE,IAAiB,mBAG1CC,EACF,KAAK,WAAW,UAAU1B,GAAoB,KAAK,aAAa,SAAS,CAAC,EACjEC,GAAmB,KAAK,WAAW,KAAK,GACjD,KAAK,WAAW,KAAK,EAEzB,CACF,CACA,OAAAK,EAAuB,UAAO,SAAwCqB,EAAG,CACvE,OAAO,IAAKA,GAAKrB,GAA2BsB,EAAkBC,CAAa,EAAMD,EAAkBzB,EAAyB,EAAMyB,EAAkBE,CAAW,EAAMF,EAAkBG,EAAO,EAAMH,EAAkBI,EAAK,EAAMJ,EAAkBK,EAAmB,CAAC,EAAML,EAAkBM,CAAiB,EAAMN,EAAkBO,CAAQ,CAAC,CACnV,EACA7B,EAAuB,UAAyB8B,EAAkB,CAChE,KAAM9B,EACN,UAAW,CAAC,CAAC,iBAAiB,CAAC,EAC/B,SAAU,CAAI+B,EAAmB,CAACJ,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,aAAc,OAAQ,OAAQ,SAAU,eAAgB,GAAI,gBAAiB,MAAO,eAAgB,GAAI,QAAS,WAAY,EAAG,QAAS,SAAS,EAAG,CAAC,QAAS,YAAa,EAAG,oBAAqB,gBAAiB,WAAY,EAAG,QAAQ,EAAG,CAAC,aAAc,OAAQ,OAAQ,SAAU,eAAgB,GAAI,gBAAiB,MAAO,eAAgB,GAAI,EAAG,UAAU,EAAG,CAAC,EAAG,qBAAsB,2BAA2B,EAAG,CAAC,QAAS,eAAgB,EAAG,MAAM,EAAG,CAAC,EAAG,cAAc,EAAG,CAAC,EAAG,YAAa,EAAG,gBAAiB,UAAU,CAAC,EACrhB,SAAU,SAAyC7D,EAAIC,EAAK,CACtDD,EAAK,IACJO,EAAW,EAAGF,GAA2C,EAAG,EAAG,UAAW,CAAC,EAAE,EAAGU,GAAuC,EAAG,EAAG,MAAO,CAAC,EACrImD,EAAO,EAAG,OAAO,GAElBlE,EAAK,IACJY,EAAW,UAAWX,EAAI,OAAO,EACjCa,EAAU,EACVF,EAAW,SAAauD,EAAY,EAAG,EAAGlE,EAAI,qBAAqB,CAAC,EAE3E,EACA,aAAc,CAAImE,EAA+BC,EAAYC,GAA0BC,GAA2BC,GAA0BC,EAAgCC,EAASC,GAAoBC,CAAS,EAClN,OAAQ,CAAC,grCAAgrC,EACzrC,KAAM,CACJ,UAAW,CAACC,GAAQ,OAAQ,CAACC,GAAW,SAAU,CAACC,GAAM,CACvD,SAAU,MACZ,CAAC,EAAGC,GAAM,aAAc,CAACC,GAAa,CAAC,EAAG,CACxC,SAAU,EACZ,CAAC,CAAC,CAAC,EAAGH,GAAW,SAAU,CAACC,GAAM,CAChC,SAAU,MACZ,CAAC,EAAGC,GAAM,aAAc,CAACC,GAAa,CAAC,EAAG,CACxC,SAAU,EACZ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACR,CACF,CAAC,EACM/C,CACT,GAAG,EAICgD,IAAoC,IAAM,CAC5C,MAAMA,CAAoB,CAAC,CAC3B,OAAAA,EAAoB,UAAO,SAAqC3B,EAAG,CACjE,OAAO,IAAKA,GAAK2B,EACnB,EACAA,EAAoB,UAAyBC,EAAiB,CAC5D,KAAMD,CACR,CAAC,EACDA,EAAoB,UAAyBE,EAAiB,CAC5D,QAAS,CAAC,CAACC,EAAcC,EAAoBC,GAAqBC,GAAoBC,EAAcC,CAAuB,CAAC,CAC9H,CAAC,EACMR,CACT,GAAG,ECvKH,SAASS,GAAoDC,EAAIC,EAAK,CAChED,EAAK,GACJE,EAAmB,CAAC,CAE3B,CACA,IAAMC,GAAMC,IAAO,CACjB,UAAWA,CACb,GACA,SAASC,GAAqCL,EAAIC,EAAK,CAMrD,GALID,EAAK,IACJM,EAAe,EAAG,MAAO,CAAC,EAC1BC,EAAW,EAAGR,GAAqD,EAAG,EAAG,eAAgB,CAAC,EAC1FS,EAAa,GAEdR,EAAK,EAAG,CACV,IAAMS,EAAUR,EAAI,UACjBS,EAAW,sBAAuB,MAAS,EAAE,sBAAuBD,EAAQ,YAAc,IAAI,EAC9FE,EAAU,EACVD,EAAW,qBAAsBD,EAAQ,SAAS,EAAE,4BAAgCG,GAAgB,EAAGT,GAAKM,CAAO,CAAC,CACzH,CACF,CACA,IAAII,IAAsC,IAAM,CAC9C,MAAMA,CAAsB,CAC1B,YAAYC,EAAQC,EAAUC,EAAK,CACjC,KAAK,OAASF,EACd,KAAK,SAAWC,EAChB,KAAK,IAAMC,EACX,KAAK,MAAQ,CAAC,CAChB,CACA,UAAW,CAGT,KAAK,OAAO,KAAKC,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAS,CAC5D,KAAK,MAAQA,EACb,KAAK,IAAI,cAAc,CACzB,CAAC,CACH,CACF,CACA,OAAAL,EAAsB,UAAO,SAAuCM,EAAG,CACrE,OAAO,IAAKA,GAAKN,GAA0BO,EAAkBC,EAAc,EAAMD,EAAkBE,EAAmB,CAAC,EAAMF,EAAkBG,CAAiB,CAAC,CACnK,EACAV,EAAsB,UAAyBW,EAAkB,CAC/D,KAAMX,EACN,UAAW,CAAC,CAAC,gBAAgB,CAAC,EAC9B,UAAW,CAAC,YAAa,QAAQ,EACjC,SAAU,CAAIY,EAAmB,CAACH,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,OAAQ,UAAW,EAAG,sBAAuB,EAAG,QAAS,SAAS,EAAG,CAAC,OAAQ,UAAW,EAAG,qBAAqB,EAAG,CAAC,EAAG,qBAAsB,2BAA2B,CAAC,EACpL,SAAU,SAAwCtB,EAAIC,EAAK,CACrDD,EAAK,GACJO,EAAW,EAAGF,GAAsC,EAAG,EAAG,MAAO,CAAC,EAEnEL,EAAK,GACJU,EAAW,UAAWT,EAAI,KAAK,CAEtC,EACA,aAAc,CAAIyB,EAAYC,GAA2BC,CAA2B,EACpF,OAAQ,CAAC,mEAAmE,EAC5E,KAAM,CACJ,UAAW,CAACC,CAAoB,CAClC,CACF,CAAC,EACMhB,CACT,GAAG,EAICiB,IAAmC,IAAM,CAC3C,MAAMA,CAAmB,CAAC,CAC1B,OAAAA,EAAmB,UAAO,SAAoCX,EAAG,CAC/D,OAAO,IAAKA,GAAKW,EACnB,EACAA,EAAmB,UAAyBC,EAAiB,CAC3D,KAAMD,CACR,CAAC,EACDA,EAAmB,UAAyBE,EAAiB,CAC3D,QAAS,CAAC,CAACC,EAAcC,EAAoBC,EAAmB,CAAC,CACnE,CAAC,EACML,CACT,GAAG,EClFH,SAASM,GAAiEC,EAAIC,EAAK,CAKjF,GAJID,EAAK,IACJE,EAAe,EACfC,EAAU,EAAG,OAAQ,CAAC,GAEvBH,EAAK,EAAG,CACV,IAAMI,EAASH,EAAI,UAChBI,EAAW,YAAaD,EAAWE,EAAc,CACtD,CACF,CACA,SAASC,GAAqDP,EAAIC,EAAK,CAOrE,GANID,EAAK,IACJE,EAAe,EACfM,GAAwB,CAAC,EACzBC,EAAW,EAAGV,GAAkE,EAAG,EAAG,OAAQ,CAAC,EAC/FW,GAAsB,GAEvBV,EAAK,EAAG,CACV,IAAMW,EAAYC,EAAc,EAC7BC,EAAU,EACVR,EAAW,UAAWM,EAAO,KAAK,CACvC,CACF,CACA,SAASG,GAAgEd,EAAIC,EAAK,CAOhF,GANID,EAAK,IACJE,EAAe,EACfa,EAAe,EAAG,MAAM,EACxBZ,EAAU,EAAG,MAAO,CAAC,EACrBa,EAAa,GAEdhB,EAAK,EAAG,CACV,IAAMiB,EAAShB,EAAI,UAChBY,EAAU,EACVR,EAAW,YAAaY,EAAWX,EAAc,CACtD,CACF,CACA,SAASY,GAAoDlB,EAAIC,EAAK,CAKpE,GAJID,EAAK,IACJE,EAAe,EACfO,EAAW,EAAGK,GAAiE,EAAG,EAAG,OAAQ,CAAC,GAE/Fd,EAAK,EAAG,CACV,IAAMmB,EAAYP,EAAc,EAC7BP,EAAW,UAAWc,EAAO,KAAK,CACvC,CACF,CACA,IAAIC,IAAwC,IAAM,CAChD,MAAMA,CAAwB,CAC5B,YAAYC,EAAYC,EAAKC,EAAUC,EAAY,CACjD,KAAK,WAAaH,EAClB,KAAK,IAAMC,EACX,KAAK,SAAWC,EAChB,KAAK,UAAY,GACjB,KAAK,UAAY,CAACE,GAAiBD,CAAU,CAC/C,CAEA,UAAW,CACT,KAAK,WAAW,OAAO,KAAKE,EAAU,KAAK,QAAQ,CAAC,EAAE,UAAUC,GAAW,CACzE,KAAK,MAAQA,EAAQ,OAAO,EAC5B,KAAK,IAAI,cAAc,CACzB,CAAC,CACH,CACF,CACA,OAAAP,EAAwB,UAAO,SAAyCQ,EAAG,CACzE,OAAO,IAAKA,GAAKR,GAA4BS,EAAkBC,EAAa,EAAMD,EAAkBE,CAAiB,EAAMF,EAAkBG,EAAmB,CAAC,EAAMH,EAAkBI,EAAW,CAAC,CACvM,EACAb,EAAwB,UAAyBc,EAAkB,CACjE,KAAMd,EACN,UAAW,CAAC,CAAC,mBAAmB,CAAC,EACjC,SAAU,CAAIe,EAAmB,CAACH,CAAiB,CAAC,CAAC,EACrD,MAAO,EACP,KAAM,EACN,OAAQ,CAAC,CAAC,UAAW,MAAO,EAAG,QAAS,QAAS,+BAAgC,QAAS,4BAA4B,EAAG,CAAC,EAAG,OAAQ,UAAU,EAAG,CAAC,SAAU,EAAE,EAAG,CAAC,EAAG,YAAa,EAAG,QAAS,SAAS,EAAG,CAAC,EAAG,WAAW,EAAG,CAAC,EAAG,QAAS,SAAS,EAAG,CAAC,EAAG,WAAW,CAAC,EACtQ,SAAU,SAA0ChC,EAAIC,EAAK,CAO3D,GANID,EAAK,IACJE,EAAe,EACfa,EAAe,EAAG,MAAO,CAAC,EAC1BN,EAAW,EAAGF,GAAsD,EAAG,EAAG,eAAgB,CAAC,EAAE,EAAGW,GAAqD,EAAG,EAAG,cAAe,KAAM,EAAMkB,EAAsB,EAC5MpB,EAAa,GAEdhB,EAAK,EAAG,CACV,IAAMqC,EAASC,GAAY,CAAC,EACzBzB,EAAU,EACVR,EAAW,OAAQJ,EAAI,SAAS,EAAE,WAAYoC,CAAG,CACtD,CACF,EACA,aAAc,CAAIE,EAASC,CAAO,EAClC,OAAQ,CAAC,gCAAgC,EACzC,gBAAiB,CACnB,CAAC,EACMpB,CACT,GAAG,EAICqB,IAAqC,IAAM,CAC7C,MAAMA,CAAqB,CAAC,CAC5B,OAAAA,EAAqB,UAAO,SAAsCb,EAAG,CACnE,OAAO,IAAKA,GAAKa,EACnB,EACAA,EAAqB,UAAyBC,EAAiB,CAC7D,KAAMD,CACR,CAAC,EACDA,EAAqB,UAAyBE,EAAiB,CAC7D,QAAS,CAAC,CAACC,EAAcC,CAAY,CAAC,CACxC,CAAC,EACMJ,CACT,GAAG,ECpGH,SAASK,GAAgDC,EAAIC,EAAK,CAC5DD,EAAK,GACJE,EAAU,EAAG,sBAAuB,CAAC,CAE5C,CACA,IAAMC,GAAM,CAAC,IAAK,CAAC,CAAC,gBAAgB,CAAC,EAAG,CAAC,CAAC,gBAAgB,CAAC,EAAG,CAAC,CAAC,eAAe,CAAC,EAAG,CAAC,CAAC,gBAAgB,CAAC,EAAG,CAAC,CAAC,cAAc,CAAC,CAAC,EACrHC,GAAM,CAAC,IAAK,iBAAkB,iBAAkB,gBAAiB,iBAAkB,cAAc,EACnGC,IAAiC,IAAM,CACzC,MAAMA,CAAiB,CACrB,YAAYC,EAAeC,EAAUC,EAASC,EAAUC,EAAYC,EAAOC,GAAWC,GAAUC,GAAO,CACrG,IAAIC,GACJ,KAAK,cAAgBT,EACrB,KAAK,SAAWC,EAChB,KAAK,QAAUC,EACf,KAAK,SAAWC,EAChB,KAAK,WAAaC,EAClB,KAAK,MAAQC,EACb,KAAK,UAAYC,GACjB,KAAK,aAAe,KAAK,WAAW,KAAKI,EAAIN,IAAcA,KAAe,QAAQ,CAAC,EACnF,KAAK,YAAc,KAAK,QAAQ,QAAU,CAAC,KAAK,SAAWO,EAAc,CAAC,GAAG,KAAK,OAAO,CAAC,EAAE,KAAKD,EAAIR,IAAW,CAACA,GAAQ,KAAK,CAAC,CAC7H,OAAAU,EACF,IAAMA,EAAM,CAAC,EAAGC,GAAa,CAAC,CAAC,EAAIC,EAAG,CAAC,KAAK,QAAQ,GACnDL,GAAKF,GAAS,eAAiB,MAAQE,KAAO,QAAkBA,GAAG,SAAS,KAAK,aAAa,iBAAkBD,GAAM,YAAY,CAAC,CACtI,CACF,CACA,OAAAT,EAAiB,UAAO,SAAkCgB,EAAG,CAC3D,OAAO,IAAKA,GAAKhB,GAAqBiB,EAAkBC,EAAkB,EAAMD,EAAkBE,EAAuB,EAAMF,EAAkBG,CAAW,EAAMH,EAAkBI,CAAa,EAAMJ,EAAkBK,EAAoB,EAAML,EAAkBM,EAAU,EAAMN,EAAkBO,EAAc,EAAMP,EAAkBQ,CAAQ,EAAMR,EAAkBS,EAAS,CAAC,CACzX,EACA1B,EAAiB,UAAyB2B,EAAkB,CAC1D,KAAM3B,EACN,UAAW,CAAC,CAAC,UAAU,CAAC,EACxB,UAAW,CAAC,mBAAoB,QAAQ,EACxC,SAAU,EACV,aAAc,SAAuCL,EAAIC,EAAK,CACxDD,EAAK,GACJiC,EAAW,4BAA6B,UAAyE,CAClH,MAAO,EACT,CAAC,EAAE,kBAAmB,UAA+D,CACnF,OAAOhC,EAAI,YACb,CAAC,EAECD,EAAK,IACJkC,GAAe,kBAAmBjC,EAAI,YAAY,EAClDkC,GAAY,iBAAkBlC,EAAI,SAAU,IAAI,EAChDmC,EAAY,OAAQnC,EAAI,KAAK,EAAE,WAAYA,EAAI,SAAS,EAAE,kBAAmBA,EAAI,aAAa,EAErG,EACA,mBAAoBG,GACpB,MAAO,GACP,KAAM,EACN,OAAQ,CAAC,CAAC,QAAS,mBAAoB,EAAG,MAAM,EAAG,CAAC,EAAG,gBAAgB,EAAG,CAAC,EAAG,kBAAkB,CAAC,EACjG,SAAU,SAAmCJ,EAAIC,EAAK,CAChDD,EAAK,IACJqC,GAAgBlC,EAAG,EACnBmC,EAAW,EAAGvC,GAAiD,EAAG,EAAG,sBAAuB,CAAC,EAC7FwC,EAAO,EAAG,OAAO,EACjBrC,EAAU,EAAG,mBAAmB,EAChCsC,EAAe,EAAG,mBAAmB,EAAE,EAAG,MAAO,CAAC,EAClDC,EAAa,CAAC,EACdC,EAAa,EACbD,EAAa,EAAG,CAAC,EACjBvC,EAAU,EAAG,iBAAiB,EAC9BuC,EAAa,EAAG,CAAC,EACjBvC,EAAU,EAAG,gBAAgB,EAC7BuC,EAAa,GAAI,CAAC,EAClBC,EAAa,EACbD,EAAa,GAAI,CAAC,EAClBvC,EAAU,GAAI,gBAAgB,EAC9BuC,EAAa,GAAI,CAAC,GAEnBzC,EAAK,GACJ2C,EAAW,OAAWC,EAAY,EAAG,EAAG3C,EAAI,WAAW,CAAC,CAE/D,EACA,aAAc,CAAI4C,EAA+BC,GAA4BC,GAA6BC,GAA2BC,GAA0BC,GAA0BC,EAASC,CAAS,EAC3M,OAAQ,CAAC,4uBAA8uB,EACvvB,cAAe,CACjB,CAAC,EACM/C,CACT,GAAG,EAICgD,GAA8B,IAAM,CACtC,MAAMA,CAAc,CAAC,CACrB,OAAAA,EAAc,UAAO,SAA+BhC,EAAG,CACrD,OAAO,IAAKA,GAAKgC,EACnB,EACAA,EAAc,UAAyBC,EAAiB,CACtD,KAAMD,CACR,CAAC,EACDA,EAAc,UAAyBE,EAAiB,CACtD,QAAS,CAAC,CAACC,EAAcC,GAAoBC,GAAuBC,GAAsBC,GAAoBC,GAAqBC,GAAoBC,CAAuB,CAAC,CACjL,CAAC,EACMV,CACT,GAAG,ECnGH,IAAaW,IAAY,IAAA,CAAnB,IAAOA,EAAP,MAAOA,CAAY,yCAAZA,EAAY,sBAAZA,EAAYC,UAAA,CAAA,CAAA,KAAA,CAAA,EAAAC,WAAA,GAAAC,SAAA,CAAAC,EAAA,EAAAC,MAAA,EAAAC,KAAA,EAAAC,OAAA,CAAA,CAAA,cAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,cAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,cAAA,gBAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,cAAA,iBAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,cAAA,eAAA,EAAA,CAAA,cAAA,CAAA,CAAA,EAAAC,SAAA,SAAAC,EAAAC,EAAA,CAAAD,EAAA,ICZzBE,EAAA,EAAA,UAAA,EACIC,EAAA,EAAA,eAAA,EAEAC,EAAA,EAAA,CAAA,EAEe,EAAA,CAAA,EAAA,EAAA,CAAA,EAAA,EAAA,CAAA,EAAA,EAAA,CAAA,EAanBC,EAAA,kBDXcC,EAAaC,GAAEC,EAAY,EAAAC,cAAA,EAAAC,gBAAA,CAAA,CAAA,EAKnC,IAAOnB,EAAPoB,SAAOpB,CAAY,GAAA,EECzB,IAAIqB,IAA0C,IAAM,CAClD,IAAMC,EAAN,MAAMA,UAAkCC,CAAiB,CAIvD,YAAYC,EAAKC,EAAQC,EAAY,CACnC,MAAMF,EAAKC,EAAQC,EAAYC,GAAOC,GAA2B,CAC/D,SAAU,EACZ,CAAC,CAAC,CACJ,CACA,aAAc,CACZ,KAAK,MAAM,CACb,CAYF,EAVIN,EAAK,UAAO,SAA2CO,EAAG,CACxD,OAAO,IAAKA,GAAKP,GAA8BQ,EAASC,CAAQ,EAAMD,EAAYE,CAAe,EAAMF,EAAYG,CAAyB,CAAC,CAC/I,EAGAX,EAAK,WAA0BY,GAAmB,CAChD,MAAOZ,EACP,QAASA,EAA0B,SACrC,CAAC,EArBL,IAAMD,EAANC,EAwBA,OAAOD,CACT,GAAG,EAIH,SAASc,IAAoC,CAC3C,OAAO,IAAIC,EACb,CACA,SAASC,GAA2BC,EAAUC,EAAQC,EAAM,CAC1D,OAAO,IAAIC,GAA0BH,EAAUC,EAAQC,CAAI,CAC7D,CACA,IAAME,GAA6B,CAAC,CAClC,QAAST,EACT,WAAYE,EACd,EAAG,CACD,QAASZ,EACT,SAAUF,EACZ,EAAG,CACD,QAASsB,GACT,WAAYN,GACZ,KAAM,CAACO,GAAsBrB,EAAkBsB,EAAM,CACvD,CAAC,EAKKC,GAA+B,CAAC,CACpC,QAASd,EACT,WAAY,IAAM,IAAIe,EACxB,EAAG,CACD,QAASC,GACT,SAAU,mBACZ,EAAG,GAAGN,EAA0B,EAK1BO,GAAoC,CAAC,CACzC,QAASjB,EACT,SAAUkB,EACZ,EAAG,CACD,QAASF,GACT,SAAU,gBACZ,EAAG,GAAGN,EAA0B,EA2EhC,SAASS,IAAoB,CAG3B,MAAO,CAAC,GAAGC,EAA4B,CACzC,CCxJO,IAAMC,GAA+B,CACxCC,UAAW,CACPC,GAAiB,EACjBC,GAAc,CACV,CACIC,KAAM,GACNC,UAAW,OACXC,cAAe,IAAAC,GAAA,wBAAY,cAAO,qBAAuB,IAC5D,CACJ,EACDC,GAAsB,EACtBC,GAAoBC,EAAeC,GAAiBC,EAAa,EACjE,CACIC,QAASC,GACTC,SAAUC,GACb,GClBTC,GAAqBC,GAAcC,EAAS,EAAEC,MAAMC,GAAOC,QAAQC,MAAMF,CAAG,CAAC","names":["TuiAlertHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","ɵɵpipe","item_r3","ctx_r2","ɵɵnextContext","ɵɵproperty","ɵɵpipeBind2","TuiAlertHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","alert_r1","ɵɵadvance","TuiAlertHostComponent","allAlerts","injector","destroy$","cdr","index","useValue","Injector","POLYMORPHEUS_CONTEXT","combineLatest","takeUntil","alerts","t","ɵɵdirectiveInject","TUI_ALERTS","INJECTOR","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","NgComponentOutlet","TuiMapperPipe","TUI_PARENT_ANIMATION","TuiAlertHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiMapperPipeModule","TuiFocusTrapDirective","doc","el","renderer","tuiGetNativeFocused","node","nativeElement","tuiContainsOrAfter","focusable","tuiGetClosestFocusable","tuiBlurNativeFocused","tuiIsHTMLElement","t","ɵɵdirectiveInject","DOCUMENT","ElementRef","Renderer2","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵresolveWindow","TuiFocusTrapModule","ɵɵdefineNgModule","ɵɵdefineInjector","TuiDialogHostComponent_section_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template","ɵɵelement","TuiDialogHostComponent_section_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","item_r2","ctx_r0","ɵɵnextContext","ɵɵproperty","ɵɵattribute","ɵɵadvance","TuiDialogHostComponent_div_1_Template","_r7","ɵɵgetCurrentView","ɵɵlistener","$event","isDialogClosesOnBack_r5","ɵɵrestoreView","ctx_r6","ɵɵresetView","ctx_r8","ɵɵresolveWindow","ctx_r1","ɵɵclassProp","FAKE_HISTORY_STATE","isFakeHistoryState","historyState","TUI_DIALOG_CLOSES_ON_BACK","tuiCreateToken","of","TuiDialogHostComponent","isMobile","isDialogClosesOnBack$","dialogsByType","historyRef","titleService","destroy$","cdr","doc","combineLatest","map","arr","a","b","takeUntil","dialogs","_a","isDialogClosesOnBack","last","propertyName","popupOpened","t","ɵɵdirectiveInject","TUI_IS_MOBILE","TUI_DIALOGS","HISTORY","Title","TuiDestroyService","ChangeDetectorRef","DOCUMENT","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵpipe","ɵɵpipeBind1","TuiScrollControlsComponent","NgForOf","TuiFocusTrapDirective","TuiOverscrollDirective","TuiScrollRefDirective","PolymorpheusOutletDirective","NgIf","TuiLetDirective","AsyncPipe","trigger","transition","style","query","animateChild","TuiDialogHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiOverscrollModule","TuiFocusTrapModule","TuiLetModule","TuiScrollControlsModule","TuiHintsHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","_c0","a0","TuiHintsHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","hint_r1","ɵɵproperty","ɵɵadvance","ɵɵpureFunction1","TuiHintsHostComponent","hints$","destroy$","cdr","takeUntil","hints","t","ɵɵdirectiveInject","TuiHintService","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","TuiActiveZoneDirective","PolymorpheusOutletDirective","TUI_PARENT_ANIMATION","TuiHintsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiActiveZoneModule","TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template","rf","ctx","ɵɵnamespaceSVG","ɵɵelement","def_r4","ɵɵproperty","ɵɵsanitizeHtml","TuiSvgDefsHostComponent__svg_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ctx_r0","ɵɵnextContext","ɵɵadvance","TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template","ɵɵelementStart","ɵɵelementEnd","def_r6","TuiSvgDefsHostComponent__svg_ng_template_2_Template","ctx_r1","TuiSvgDefsHostComponent","svgService","cdr","destroy$","platformId","isPlatformServer","takeUntil","defsMap","t","ɵɵdirectiveInject","TuiSvgService","ChangeDetectorRef","TuiDestroyService","PLATFORM_ID","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵtemplateRefExtractor","_r2","ɵɵreference","NgIf","NgForOf","TuiSvgDefsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiLetModule","TuiRootComponent_tui_scroll_controls_0_Template","rf","ctx","ɵɵelement","_c0","_c1","TuiRootComponent","reducedMotion","duration","dialogs","isMobile","breakpoint","isIOS","isAndroid","document","theme","_a","map","combineLatest","length","debounceTime","of","t","ɵɵdirectiveInject","TUI_REDUCED_MOTION","TUI_ANIMATIONS_DURATION","TUI_DIALOGS","TUI_IS_MOBILE","TuiBreakpointService","TUI_IS_IOS","TUI_IS_ANDROID","DOCUMENT","TUI_THEME","ɵɵdefineComponent","ɵɵlistener","ɵɵhostProperty","ɵɵstyleProp","ɵɵclassProp","ɵɵprojectionDef","ɵɵtemplate","ɵɵpipe","ɵɵelementStart","ɵɵprojection","ɵɵelementEnd","ɵɵproperty","ɵɵpipeBind1","TuiScrollControlsComponent","TuiSvgDefsHostComponent","TuiDropdownHostComponent","TuiDialogHostComponent","TuiAlertHostComponent","TuiHintsHostComponent","NgIf","AsyncPipe","TuiRootModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","EventPluginsModule","TuiDropdownHostModule","TuiSvgDefsHostModule","TuiHintsHostModule","TuiDialogHostModule","TuiAlertHostModule","TuiScrollControlsModule","AppComponent","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementContainer","ɵɵelementEnd","TuiRootModule","TuiRootComponent","RouterOutlet","encapsulation","changeDetection","_AppComponent","InjectableAnimationEngine","_InjectableAnimationEngine","AnimationEngine","doc","driver","normalizer","inject","ChangeDetectionScheduler","t","ɵɵinject","DOCUMENT","AnimationDriver","AnimationStyleNormalizer","ɵɵdefineInjectable","instantiateDefaultStyleNormalizer","WebAnimationsStyleNormalizer","instantiateRendererFactory","renderer","engine","zone","AnimationRendererFactory","SHARED_ANIMATION_PROVIDERS","RendererFactory2","DomRendererFactory2","NgZone","BROWSER_ANIMATIONS_PROVIDERS","WebAnimationsDriver","ANIMATION_MODULE_TYPE","BROWSER_NOOP_ANIMATIONS_PROVIDERS","NoopAnimationDriver","provideAnimations","BROWSER_ANIMATIONS_PROVIDERS","appConfig","providers","provideAnimations","provideRouter","path","pathMatch","loadComponent","__async","provideClientHydration","importProvidersFrom","TuiRootModule","TuiDialogModule","TuiPushModule","provide","TUI_SANITIZER","useClass","NgDompurifySanitizer","bootstrapApplication","AppComponent","appConfig","catch","err","console","error"],"x_google_ignoreList":[0,1,2,3,4,5,8]} \ No newline at end of file