@duplicati/ngclient 0.0.173 → 0.0.175
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-4L4YRYBK.js → chunk-2AXRVJXN.js} +1 -1
- package/{chunk-5NUJWI7G.js → chunk-3C2MID43.js} +1 -1
- package/chunk-3CJTIOP4.js +1 -0
- package/{chunk-W4QCGFNO.js → chunk-4IUPBI2K.js} +1 -1
- package/chunk-4LHT2BIC.js +1 -0
- package/chunk-4TZSDNPN.js +3 -0
- package/chunk-56FBKSBN.js +1 -0
- package/chunk-66GTW6AR.js +1 -0
- package/{chunk-DU5QSRYH.js → chunk-6CYY2QG6.js} +1 -1
- package/{chunk-CCM2D4BF.js → chunk-6KLZAB4D.js} +1 -1
- package/{chunk-ZV7VPSMZ.js → chunk-6KSFCVWH.js} +1 -1
- package/{chunk-CSY4BFC4.js → chunk-6Y3RYZEE.js} +1 -1
- package/chunk-76LEHUPM.js +1 -0
- package/chunk-7CGTOI24.js +1 -0
- package/chunk-7Z3BXDXF.js +1 -0
- package/{chunk-646U6U3M.js → chunk-A5BWJRDE.js} +1 -1
- package/chunk-AARZFLQF.js +1 -0
- package/{chunk-L4GZJLYK.js → chunk-AGPZBYW6.js} +1 -1
- package/{chunk-D2DI6ZER.js → chunk-AJXTVI3H.js} +1 -1
- package/{chunk-I5AKUAZF.js → chunk-AO4ZIHUL.js} +1 -1
- package/chunk-AVM5IYXU.js +1 -0
- package/chunk-AYN5EDSZ.js +1 -0
- package/chunk-B5LH4P4E.js +1 -0
- package/chunk-BGYXB4MY.js +1 -0
- package/{chunk-KBGIIJMM.js → chunk-BKANUILG.js} +1 -1
- package/chunk-BUO6CCKF.js +1 -0
- package/{chunk-T6C2OUI5.js → chunk-CGKL2MHM.js} +1 -1
- package/{chunk-FCZXIW2B.js → chunk-CHUTAXTB.js} +1 -1
- package/chunk-CQHV3YBT.js +1 -0
- package/{chunk-PDBKO5D5.js → chunk-D7TCA6E7.js} +1 -1
- package/chunk-DLKU6DC7.js +1 -0
- package/chunk-EIZKIIDW.js +2 -0
- package/{chunk-I2RHQQ3J.js → chunk-FBWFZMGL.js} +1 -1
- package/chunk-FCCYQZ63.js +1 -0
- package/chunk-FG47IA35.js +1 -0
- package/chunk-FIBRO5I3.js +2 -0
- package/chunk-FNZ6QKJI.js +1 -0
- package/chunk-FXF5TO2Q.js +2 -0
- package/chunk-GH6EHG4Z.js +2 -0
- package/{chunk-GS5QK7LF.js → chunk-GMNCWLGX.js} +1 -1
- package/chunk-GO4NSDR6.js +1 -0
- package/{chunk-MXADO5KN.js → chunk-GYBOVOX2.js} +1 -1
- package/{chunk-XY6KVQXK.js → chunk-IH4WNUW5.js} +1 -1
- package/chunk-JAHB3EP2.js +1 -0
- package/chunk-KK7TLGME.js +2 -0
- package/{chunk-M77IE672.js → chunk-LF24JF3M.js} +1 -1
- package/chunk-LTH24AZB.js +1 -0
- package/chunk-LUQFHR44.js +1 -0
- package/chunk-MDPEVWF6.js +1 -0
- package/{chunk-FVVMRBPU.js → chunk-MFGT2RTI.js} +1 -1
- package/{chunk-JVBEGJUJ.js → chunk-MG6GVW3L.js} +2 -2
- package/chunk-MIBJ3WCS.js +1 -0
- package/chunk-MIUFEQ3S.js +1 -0
- package/chunk-MMOME6E7.js +1 -0
- package/chunk-MSYXUT3B.js +1 -0
- package/{chunk-XE5OMGTJ.js → chunk-NEV6JB5M.js} +1 -1
- package/chunk-NNEWZCWG.js +1 -0
- package/chunk-NXRFZLMT.js +2 -0
- package/{chunk-PG2PHQWA.js → chunk-NZE46NN5.js} +1 -1
- package/{chunk-MZMEFIHU.js → chunk-OWEK4OHZ.js} +1 -1
- package/chunk-PD4KFJ3B.js +2 -0
- package/chunk-PF2QQ2YW.js +1 -0
- package/{chunk-XTYBRFP6.js → chunk-PTSGXV6M.js} +1 -1
- package/chunk-Q6TF3LRP.js +1 -0
- package/chunk-QUNTZXIA.js +1 -0
- package/{chunk-TJ3WIU6Q.js → chunk-QWNOPLJC.js} +1 -1
- package/{chunk-47AUYCMN.js → chunk-RHSRAHP5.js} +1 -1
- package/chunk-RMOTUTEQ.js +1 -0
- package/chunk-RYXU2QDS.js +1 -0
- package/{chunk-UTONS2P4.js → chunk-SD4AWG7T.js} +1 -1
- package/chunk-SNHYMIA2.js +1 -0
- package/{chunk-PJAWWLYW.js → chunk-SS7TCWY5.js} +1 -1
- package/chunk-T5LLH46J.js +1 -0
- package/{chunk-BTVYI2KD.js → chunk-TJYZBTTS.js} +1 -1
- package/chunk-TZ6RGGOS.js +1 -0
- package/{chunk-RECKKS2S.js → chunk-U63HBLGG.js} +1 -1
- package/{chunk-OBXWEOQI.js → chunk-UAHCA2OX.js} +1 -1
- package/{chunk-X5FW56GT.js → chunk-UT542KNO.js} +1 -1
- package/chunk-V7UVMFDO.js +1 -0
- package/chunk-VSLN6R7K.js +1 -0
- package/chunk-WA7KEG63.js +1 -0
- package/chunk-WILUKPQ3.js +1 -0
- package/chunk-WLXOWWZB.js +1 -0
- package/chunk-WLZPN7LT.js +1 -0
- package/chunk-XYHHESIX.js +4 -0
- package/{chunk-66KMXCBD.js → chunk-Y4IW22ZU.js} +1 -1
- package/chunk-YDYZVJL7.js +1 -0
- package/{chunk-4PMLRVX5.js → chunk-ZY7F7R4C.js} +1 -1
- package/index.html +2 -2
- package/{main-7Z6K3HU2.js → main-GDV5KSOQ.js} +1 -1
- package/package.json +1 -1
- package/styles-CY5DE4O7.css +1 -0
- package/chunk-2B562XFN.js +0 -1
- package/chunk-4BGVLUYV.js +0 -2
- package/chunk-4FD362Y4.js +0 -1
- package/chunk-4HJSZ5LM.js +0 -1
- package/chunk-4MEL5WTX.js +0 -1
- package/chunk-5BMTCVLS.js +0 -1
- package/chunk-5H3KA3BL.js +0 -1
- package/chunk-5K64UNNB.js +0 -2
- package/chunk-5KCNHCGX.js +0 -1
- package/chunk-5SNEZYDF.js +0 -1
- package/chunk-6DB3NZXR.js +0 -1
- package/chunk-6VJ4G232.js +0 -1
- package/chunk-ABJWT6DQ.js +0 -1
- package/chunk-C7RFWM7I.js +0 -2
- package/chunk-CF3WV6QL.js +0 -1
- package/chunk-DY7VFO2O.js +0 -1
- package/chunk-EUDKD2JW.js +0 -1
- package/chunk-EXT5ZOJV.js +0 -1
- package/chunk-F2QQDU4N.js +0 -1
- package/chunk-FAM42SZT.js +0 -4
- package/chunk-FUE2VIJ7.js +0 -1
- package/chunk-H7CEUNAM.js +0 -3
- package/chunk-HFDNVEKY.js +0 -2
- package/chunk-HJ5IWG4Y.js +0 -1
- package/chunk-IP3VCHOI.js +0 -1
- package/chunk-IZQG3EV6.js +0 -1
- package/chunk-L7A3FH7R.js +0 -1
- package/chunk-LEZL7BSL.js +0 -1
- package/chunk-LFRGO2IP.js +0 -1
- package/chunk-LFVCKT5O.js +0 -1
- package/chunk-LJQN4G2O.js +0 -1
- package/chunk-M5XEEUOK.js +0 -1
- package/chunk-MP7JKTLP.js +0 -1
- package/chunk-NAHTVY74.js +0 -1
- package/chunk-NHRDYV7W.js +0 -1
- package/chunk-NOHHRZSK.js +0 -2
- package/chunk-OLOFMEQN.js +0 -1
- package/chunk-PSZMXGPN.js +0 -1
- package/chunk-RA3GS4UA.js +0 -1
- package/chunk-RNNVKT2R.js +0 -1
- package/chunk-S5O366BO.js +0 -2
- package/chunk-SIXGJYNI.js +0 -1
- package/chunk-SNL6M5NR.js +0 -1
- package/chunk-TZP7VKPA.js +0 -1
- package/chunk-UPGTBICK.js +0 -2
- package/chunk-V66WXJUI.js +0 -1
- package/chunk-VETXAUIY.js +0 -1
- package/chunk-VOYMNW22.js +0 -1
- package/chunk-WEFZF25L.js +0 -1
- package/chunk-XDECUOQ5.js +0 -1
- package/chunk-Y7PF5UJZ.js +0 -1
- package/chunk-ZTCP7QD2.js +0 -1
- package/styles-XWAP6FKR.css +0 -1
- /package/{chunk-FPPZ4BUR.js → chunk-QF5K4MHH.js} +0 -0
- /package/{polyfills-S663R3NQ.js → polyfills-7RKI4BGK.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ba as it,Jc as $,Kb as lt,Kc as Dt,Lb as F,Mb as ft,N as qe,Nb as ht,O as E,Ob as l,P as Se,Qa as rt,R as A,S as Je,Ta as st,U as P,V as B,Va as G,Vc as oe,W as y,Wc as pt,Xa as Y,Xc as Ie,Ya as u,Za as k,Zc as K,_a as ot,_c as Le,ab as at,da as Qe,db as ut,ea as V,eb as b,fa as _e,fb as v,fc as gt,g as Xe,ka as et,lb as ct,mb as dt,oa as be,pa as Z,ra as tt,sa as W,ya as nt,za as ve}from"./chunk-XYHHESIX.js";import{a as re,b as se}from"./chunk-7CGTOI24.js";var yt=null;function ae(){return yt}function un(e){yt??=e}var Me=class{},X=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:()=>y(Ft),providedIn:"platform"})}return e})(),cn=new P(""),Ft=(()=>{class e extends X{_location;_history;_doc=y(V);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ae().getBaseHref(this._doc)}onPopState(t){let n=ae().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=ae().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ue(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function mt(e){let i=e.search(/#|\?|$/);return e[i-1]==="/"?e.slice(0,i-1)+e.slice(i):e}function L(e){return e&&e[0]!=="?"?`?${e}`:e}var U=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:()=>y(Et),providedIn:"root"})}return e})(),ce=new P(""),Et=(()=>{class e extends U{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??y(V).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ue(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+L(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+L(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+L(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(B(X),B(ce,8))};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Re=(()=>{class e{_subject=new Xe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=fn(mt(Ct(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+L(n))}normalize(t){return e.stripTrailingSlash(ln(this._basePath,Ct(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=L;static joinWithSlash=ue;static stripTrailingSlash=mt;static \u0275fac=function(n){return new(n||e)(B(U))};static \u0275prov=A({token:e,factory:()=>dn(),providedIn:"root"})}return e})();function dn(){return new Re(B(U))}function ln(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function Ct(e){return e.replace(/\/index.html$/,"")}function fn(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var hn=(()=>{class e extends U{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=ue(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+L(s))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+L(s))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(B(X),B(ce,8))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Lt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KGS:[void 0,"\u20C0"],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XCG:["Cg."],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},ne=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(ne||{}),z=(function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e})(z||{}),S=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(S||{}),d=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(d||{}),I=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(I||{}),m={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13},Mt=(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})(Mt||{});function Tt(e){return F(e)[l.LocaleId]}function Rt(e,i,t){let n=F(e),r=[n[l.DayPeriodsFormat],n[l.DayPeriodsStandalone]],s=T(r,i);return T(s,t)}function Ot(e,i,t){let n=F(e),r=[n[l.DaysFormat],n[l.DaysStandalone]],s=T(r,i);return T(s,t)}function Bt(e,i,t){let n=F(e),r=[n[l.MonthsFormat],n[l.MonthsStandalone]],s=T(r,i);return T(s,t)}function Pt(e,i){let n=F(e)[l.Eras];return T(n,i)}function gn(e){return F(e)[l.FirstDayOfWeek]}function Dn(e){return F(e)[l.WeekendRange]}function q(e,i){let t=F(e);return T(t[l.DateFormat],i)}function J(e,i){let t=F(e);return T(t[l.TimeFormat],i)}function Q(e,i){let n=F(e)[l.DateTimeFormat];return T(n,i)}function M(e,i){let t=F(e),n=t[l.NumberSymbols][i];if(typeof n>"u"){if(i===m.CurrencyDecimal)return t[l.NumberSymbols][m.Decimal];if(i===m.CurrencyGroup)return t[l.NumberSymbols][m.Group]}return n}function ye(e,i){return F(e)[l.NumberFormats][i]}function pn(e){return F(e)[l.CurrencySymbol]||null}function mn(e){return F(e)[l.CurrencyName]||null}function Cn(e){return ft(e)}function yn(e){return F(e)[l.Currencies]}var Nt=ht;function kt(e){if(!e[l.ExtraData])throw new E(2303,!1)}function xt(e){let i=F(e);return kt(i),(i[l.ExtraData][2]||[]).map(n=>typeof n=="string"?Oe(n):[Oe(n[0]),Oe(n[1])])}function $t(e,i,t){let n=F(e);kt(n);let r=[n[l.ExtraData][0],n[l.ExtraData][1]],s=T(r,i)||[];return T(s,t)||[]}function Fn(e){return F(e)[l.Directionality]}function T(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new E(2304,!1)}function Oe(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}function Ut(e,i,t="en"){let n=yn(t)[e]||Lt[e]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||e}var En=2;function zt(e){let i,t=Lt[e];return t&&(i=t[2]),typeof i=="number"?i:En}var wn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,de={},An=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function jt(e,i,t,n){let r=Rn(e);i=N(t,i)||i;let o=[],a;for(;i;)if(a=An.exec(i),a){o=o.concat(a.slice(1));let g=o.pop();if(!g)break;i=g}else{o.push(i);break}let D=r.getTimezoneOffset();n&&(D=Gt(n,D),r=Tn(r,n));let h="";return o.forEach(g=>{let c=Ln(g);h+=c?c(r,t,D):g==="''"?"'":g.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function De(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function N(e,i){let t=Tt(e);if(de[t]??={},de[t][i])return de[t][i];let n="";switch(i){case"shortDate":n=q(e,I.Short);break;case"mediumDate":n=q(e,I.Medium);break;case"longDate":n=q(e,I.Long);break;case"fullDate":n=q(e,I.Full);break;case"shortTime":n=J(e,I.Short);break;case"mediumTime":n=J(e,I.Medium);break;case"longTime":n=J(e,I.Long);break;case"fullTime":n=J(e,I.Full);break;case"short":let r=N(e,"shortTime"),s=N(e,"shortDate");n=le(Q(e,I.Short),[r,s]);break;case"medium":let o=N(e,"mediumTime"),a=N(e,"mediumDate");n=le(Q(e,I.Medium),[o,a]);break;case"long":let D=N(e,"longTime"),h=N(e,"longDate");n=le(Q(e,I.Long),[D,h]);break;case"full":let g=N(e,"fullTime"),c=N(e,"fullDate");n=le(Q(e,I.Full),[g,c]);break}return n&&(de[t][i]=n),n}function le(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function R(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function Sn(e,i){return R(e,3).substring(0,i)}function C(e,i,t=0,n=!1,r=!1){return function(s,o){let a=_n(e,s);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return Sn(a,i);let D=M(o,m.MinusSign);return R(a,i,D,n,r)}}function _n(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new E(2301,!1)}}function f(e,i,t=S.Format,n=!1){return function(r,s){return bn(r,s,e,i,t,n)}}function bn(e,i,t,n,r,s){switch(t){case 2:return Bt(i,r,n)[e.getMonth()];case 1:return Ot(i,r,n)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let h=xt(i),g=$t(i,r,n),c=h.findIndex(w=>{if(Array.isArray(w)){let[p,_]=w,H=o>=p.hours&&a>=p.minutes,x=o<_.hours||o===_.hours&&a<_.minutes;if(p.hours<_.hours){if(H&&x)return!0}else if(H||x)return!0}else if(w.hours===o&&w.minutes===a)return!0;return!1});if(c!==-1)return g[c]}return Rt(i,r,n)[o<12?0:1];case 3:return Pt(i,n)[e.getFullYear()<=0?0:1];default:let D=t;throw new E(2302,!1)}}function fe(e){return function(i,t,n){let r=-1*n,s=M(t,m.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+R(o,2,s)+R(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+R(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+R(o,2,s)+":"+R(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+R(o,2,s)+":"+R(Math.abs(r%60),2,s);default:throw new E(2310,!1)}}}var vn=0,ge=4;function In(e){let i=De(e,vn,1).getDay();return De(e,0,1+(i<=ge?ge:ge+7)-i)}function Vt(e){let i=e.getDay(),t=i===0?-3:ge-i;return De(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Be(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=Vt(t),o=In(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return R(r,e,M(n,m.MinusSign))}}function he(e,i=!1){return function(t,n){let s=Vt(t).getFullYear();return R(s,e,M(n,m.MinusSign),i)}}var Pe={};function Ln(e){if(Pe[e])return Pe[e];let i;switch(e){case"G":case"GG":case"GGG":i=f(3,d.Abbreviated);break;case"GGGG":i=f(3,d.Wide);break;case"GGGGG":i=f(3,d.Narrow);break;case"y":i=C(0,1,0,!1,!0);break;case"yy":i=C(0,2,0,!0,!0);break;case"yyy":i=C(0,3,0,!1,!0);break;case"yyyy":i=C(0,4,0,!1,!0);break;case"Y":i=he(1);break;case"YY":i=he(2,!0);break;case"YYY":i=he(3);break;case"YYYY":i=he(4);break;case"M":case"L":i=C(1,1,1);break;case"MM":case"LL":i=C(1,2,1);break;case"MMM":i=f(2,d.Abbreviated);break;case"MMMM":i=f(2,d.Wide);break;case"MMMMM":i=f(2,d.Narrow);break;case"LLL":i=f(2,d.Abbreviated,S.Standalone);break;case"LLLL":i=f(2,d.Wide,S.Standalone);break;case"LLLLL":i=f(2,d.Narrow,S.Standalone);break;case"w":i=Be(1);break;case"ww":i=Be(2);break;case"W":i=Be(1,!0);break;case"d":i=C(2,1);break;case"dd":i=C(2,2);break;case"c":case"cc":i=C(7,1);break;case"ccc":i=f(1,d.Abbreviated,S.Standalone);break;case"cccc":i=f(1,d.Wide,S.Standalone);break;case"ccccc":i=f(1,d.Narrow,S.Standalone);break;case"cccccc":i=f(1,d.Short,S.Standalone);break;case"E":case"EE":case"EEE":i=f(1,d.Abbreviated);break;case"EEEE":i=f(1,d.Wide);break;case"EEEEE":i=f(1,d.Narrow);break;case"EEEEEE":i=f(1,d.Short);break;case"a":case"aa":case"aaa":i=f(0,d.Abbreviated);break;case"aaaa":i=f(0,d.Wide);break;case"aaaaa":i=f(0,d.Narrow);break;case"b":case"bb":case"bbb":i=f(0,d.Abbreviated,S.Standalone,!0);break;case"bbbb":i=f(0,d.Wide,S.Standalone,!0);break;case"bbbbb":i=f(0,d.Narrow,S.Standalone,!0);break;case"B":case"BB":case"BBB":i=f(0,d.Abbreviated,S.Format,!0);break;case"BBBB":i=f(0,d.Wide,S.Format,!0);break;case"BBBBB":i=f(0,d.Narrow,S.Format,!0);break;case"h":i=C(3,1,-12);break;case"hh":i=C(3,2,-12);break;case"H":i=C(3,1);break;case"HH":i=C(3,2);break;case"m":i=C(4,1);break;case"mm":i=C(4,2);break;case"s":i=C(5,1);break;case"ss":i=C(5,2);break;case"S":i=C(6,1);break;case"SS":i=C(6,2);break;case"SSS":i=C(6,3);break;case"Z":case"ZZ":case"ZZZ":i=fe(0);break;case"ZZZZZ":i=fe(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=fe(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=fe(2);break;default:return null}return Pe[e]=i,i}function Gt(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function Mn(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function Tn(e,i,t){let r=e.getTimezoneOffset(),s=Gt(i,r);return Mn(e,-1*(s-r))}function Rn(e){if(wt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(a=>+a);return De(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(wn))return On(n)}let i=new Date(e);if(!wt(i))throw new E(2311,!1);return i}function On(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,a=Number(e[5]||0)-n,D=Number(e[6]||0),h=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,a,D,h),i}function wt(e){return e instanceof Date&&!isNaN(e.valueOf())}var Bn=/^(\d+)?\.((\d+)(-(\d+))?)?$/,At=22,pe=".",ee="0",Pn=";",Nn=",",Ne="#",St="\xA4",kn="%";function ze(e,i,t,n,r,s,o=!1){let a="",D=!1;if(!isFinite(e))a=M(t,m.Infinity);else{let h=$n(e);o&&(h=xn(h));let g=i.minInt,c=i.minFrac,w=i.maxFrac;if(s){let j=s.match(Bn);if(j===null)throw new E(2306,!1);let Ye=j[1],Ae=j[3],Ke=j[5];Ye!=null&&(g=ke(Ye)),Ae!=null&&(c=ke(Ae)),Ke!=null?w=ke(Ke):Ae!=null&&c>w&&(w=c)}Un(h,c,w);let p=h.digits,_=h.integerLen,H=h.exponent,x=[];for(D=p.every(j=>!j);_<g;_++)p.unshift(0);for(;_<0;_++)p.unshift(0);_>0?x=p.splice(_,p.length):(x=p,p=[0]);let ie=[];for(p.length>=i.lgSize&&ie.unshift(p.splice(-i.lgSize,p.length).join(""));p.length>i.gSize;)ie.unshift(p.splice(-i.gSize,p.length).join(""));p.length&&ie.unshift(p.join("")),a=ie.join(M(t,n)),x.length&&(a+=M(t,r)+x.join("")),H&&(a+=M(t,m.Exponential)+"+"+H)}return e<0&&!D?a=i.negPre+a+i.negSuf:a=i.posPre+a+i.posSuf,a}function Ht(e,i,t,n,r){let s=ye(i,ne.Currency),o=je(s,M(i,m.MinusSign));return o.minFrac=zt(n),o.maxFrac=o.minFrac,ze(e,o,i,m.CurrencyGroup,m.CurrencyDecimal,r).replace(St,t).replace(St,"").trim()}function Zt(e,i,t){let n=ye(i,ne.Percent),r=je(n,M(i,m.MinusSign));return ze(e,r,i,m.Group,m.Decimal,t,!0).replace(new RegExp(kn,"g"),M(i,m.PercentSign))}function Wt(e,i,t){let n=ye(i,ne.Decimal),r=je(n,M(i,m.MinusSign));return ze(e,r,i,m.Group,m.Decimal,t)}function je(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(Pn),r=n[0],s=n[1],o=r.indexOf(pe)!==-1?r.split(pe):[r.substring(0,r.lastIndexOf(ee)+1),r.substring(r.lastIndexOf(ee)+1)],a=o[0],D=o[1]||"";t.posPre=a.substring(0,a.indexOf(Ne));for(let g=0;g<D.length;g++){let c=D.charAt(g);c===ee?t.minFrac=t.maxFrac=g+1:c===Ne?t.maxFrac=g+1:t.posSuf+=c}let h=a.split(Nn);if(t.gSize=h[1]?h[1].length:0,t.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,s){let g=r.length-t.posPre.length-t.posSuf.length,c=s.indexOf(Ne);t.negPre=s.substring(0,c).replace(/'/g,""),t.negSuf=s.slice(c+g).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function xn(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function $n(e){let i=Math.abs(e)+"",t=0,n,r,s,o,a;for((r=i.indexOf(pe))>-1&&(i=i.replace(pe,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===ee;s++);if(s===(a=i.length))n=[0],r=1;else{for(a--;i.charAt(a)===ee;)a--;for(r-=s,n=[],o=0;s<=a;s++,o++)n[o]=Number(i.charAt(s))}return r>At&&(n=n.splice(0,At-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function Un(e,i,t){if(i>t)throw new E(2307,!1);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,a=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let c=o;c<n.length;c++)n[c]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let c=1;c<o;c++)n[c]=0}if(a>=5)if(o-1<0){for(let c=0;c>o;c--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let D=s!==0,h=i+e.integerLen,g=n.reduceRight(function(c,w,p,_){return w=w+c,_[p]=w<10?w:w-10,D&&(_[p]===0&&p>=h?_.pop():D=!1),w>=10?1:0},0);g&&(n.unshift(g),e.integerLen++)}function ke(e){let i=parseInt(e);if(isNaN(i))throw new E(2305,!1);return i}var Fe=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:()=>new Kt(y($)),providedIn:"root"})}return e})();function Yt(e,i,t,n){let r=`=${e}`;if(i.indexOf(r)>-1||(r=t.getPluralCategory(e,n),i.indexOf(r)>-1))return r;if(i.indexOf("other")>-1)return"other";throw new E(2308,!1)}var Kt=(()=>{class e extends Fe{locale;constructor(t){super(),this.locale=t}getPluralCategory(t,n){switch(Nt(n||this.locale)(t)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}}static \u0275fac=function(n){return new(n||e)(B($))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),xe=/\s+/,_t=[],zn=(()=>{class e{_ngEl;_renderer;initialClasses=_t;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(xe):_t}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(xe):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(xe).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(u(W),u(Y))};static \u0275dir=b({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),jn=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletEnvironmentInjector;ngComponentOutletContent;ngComponentOutletNgModule;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||t.ngComponentOutletEnvironmentInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=at(this.ngComponentOutletNgModule,Vn(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent,environmentInjector:this.ngComponentOutletEnvironmentInjector})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(u(k))};static \u0275dir=b({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletEnvironmentInjector:"ngComponentOutletEnvironmentInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule"},exportAs:["ngComponentOutlet"],features:[Z]})}return e})();function Vn(e){return e.get(ot).injector}var me=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}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}},Xt=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new me(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let a=n.get(s);n.move(a,o),bt(a,r)}});for(let r=0,s=n.length;r<s;r++){let a=n.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);bt(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(u(k),u(G),u(pt))};static \u0275dir=b({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function bt(e,i){e.context.$implicit=i.item}var Gn=(()=>{class e{_viewContainer;_context=new Ce;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){vt(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){vt(t,!1),this._elseTemplateRef=t,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(u(k),u(G))};static \u0275dir=b({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Ce=class{$implicit=null;ngIf=null};function vt(e,i){if(e&&!e.createEmbeddedView)throw new E(2020,!1)}var te=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,t){this._viewContainerRef=i,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},Ve=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=b({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),Hn=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,n,r){this.ngSwitch=r,r._addCase(),this._view=new te(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(u(k),u(G),u(Ve,9))};static \u0275dir=b({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),Zn=(()=>{class e{constructor(t,n,r){r._addDefault(new te(t,n))}static \u0275fac=function(n){return new(n||e)(u(k),u(G),u(Ve,9))};static \u0275dir=b({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})();var qt=(()=>{class e{_localization;_activeView;_caseViews={};constructor(t){this._localization=t}set ngPlural(t){this._updateView(t)}addCase(t,n){this._caseViews[t]=n}_updateView(t){this._clearViews();let n=Object.keys(this._caseViews),r=Yt(t,n,this._localization);this._activateView(this._caseViews[r])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}static \u0275fac=function(n){return new(n||e)(u(Fe))};static \u0275dir=b({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}})}return e})(),Wn=(()=>{class e{value;constructor(t,n,r,s){this.value=t;let o=!isNaN(Number(t));s.addCase(o?`=${t}`:t,new te(r,n))}static \u0275fac=function(n){return new(n||e)(tt("ngPluralCase"),u(G),u(k),u(qt,1))};static \u0275dir=b({type:e,selectors:[["","ngPluralCase",""]]})}return e})(),Yn=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:rt.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(u(W),u(Ie),u(Y))};static \u0275dir=b({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Kn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(u(k))};static \u0275dir=b({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Z]})}return e})();function O(e,i){return new E(2100,!1)}var $e=class{createSubscription(i,t,n){return be(()=>i.subscribe({next:t,error:n}))}dispose(i){be(()=>i.unsubscribe())}},Ue=class{createSubscription(i,t,n){return i.then(r=>t?.(r),r=>n?.(r)),{unsubscribe:()=>{t=null,n=null}}}dispose(i){i.unsubscribe()}},Xn=new Ue,qn=new $e,Jn=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=y(et);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n),n=>this.applicationErrorHandler(n))}_selectStrategy(t){if(ct(t))return Xn;if(dt(t))return qn;throw O(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(u(oe,16))};static \u0275pipe=v({name:"async",type:e,pure:!1})}return e})(),Qn=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw O(e,t);return t.toLowerCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"lowercase",type:e,pure:!0})}return e})(),ei=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,ti=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw O(e,t);return t.replace(ei,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"titlecase",type:e,pure:!0})}return e})(),ni=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw O(e,t);return t.toUpperCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"uppercase",type:e,pure:!0})}return e})(),ii="mediumDate",Jt=new P(""),Qt=new P(""),ri=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??ii,a=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return jt(t,o,s||this.locale,a)}catch(o){throw O(e,o.message)}}static \u0275fac=function(n){return new(n||e)(u($,16),u(Jt,24),u(Qt,24))};static \u0275pipe=v({name:"date",type:e,pure:!0})}return e})(),si=/#/g,oi=(()=>{class e{_localization;constructor(t){this._localization=t}transform(t,n,r){if(t==null)return"";if(typeof n!="object"||n===null)throw O(e,n);let s=Yt(t,Object.keys(n),this._localization,r);return n[s].replace(si,t.toString())}static \u0275fac=function(n){return new(n||e)(u(Fe,16))};static \u0275pipe=v({name:"i18nPlural",type:e,pure:!0})}return e})(),ai=(()=>{class e{transform(t,n){if(t==null)return"";if(typeof n!="object"||typeof t!="string")throw O(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"i18nSelect",type:e,pure:!0})}return e})(),ui=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"json",type:e,pure:!1})}return e})();function ci(e,i){return{key:e,value:i}}var di=(()=>{class e{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=It;transform(t,n=It){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let r=this.differ.diff(t),s=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(ci(o.key,o.currentValue))})),(r||s)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||e)(u(Ie,16))};static \u0275pipe=v({name:"keyvalue",type:e,pure:!1})}return e})();function It(e,i){let t=e.key,n=i.key;if(t===n)return 0;if(t==null)return 1;if(n==null)return-1;if(typeof t=="string"&&typeof n=="string")return t<n?-1:1;if(typeof t=="number"&&typeof n=="number")return t-n;if(typeof t=="boolean"&&typeof n=="boolean")return t<n?-1:1;let r=String(t),s=String(n);return r==s?0:r<s?-1:1}var li=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!Ge(t))return null;r||=this._locale;try{let s=He(t);return Wt(s,r,n)}catch(s){throw O(e,s.message)}}static \u0275fac=function(n){return new(n||e)(u($,16))};static \u0275pipe=v({name:"number",type:e,pure:!0})}return e})(),fi=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!Ge(t))return null;r||=this._locale;try{let s=He(t);return Zt(s,r,n)}catch(s){throw O(e,s.message)}}static \u0275fac=function(n){return new(n||e)(u($,16))};static \u0275pipe=v({name:"percent",type:e,pure:!0})}return e})(),hi=(()=>{class e{_locale;_defaultCurrencyCode;constructor(t,n="USD"){this._locale=t,this._defaultCurrencyCode=n}transform(t,n=this._defaultCurrencyCode,r="symbol",s,o){if(!Ge(t))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let a=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?a=Ut(a,r==="symbol"?"wide":"narrow",o):a=r);try{let D=He(t);return Ht(D,o,a,n,s)}catch(D){throw O(e,D.message)}}static \u0275fac=function(n){return new(n||e)(u($,16),u(Dt,16))};static \u0275pipe=v({name:"currency",type:e,pure:!0})}return e})();function Ge(e){return!(e==null||e===""||e!==e)}function He(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new E(2309,!1);return e}var gi=(()=>{class e{transform(t,n,r){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw O(e,t);return t.slice(n,r)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=v({name:"slice",type:e,pure:!1})}return e})();var Di=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ut({type:e});static \u0275inj=Je({})}return e})();var en=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:()=>window.navigation,providedIn:"platform"})}return e})();var fr=(()=>{class e extends Re{navigation=y(en);destroyRef=y(_e);constructor(){super(y(U)),this.registerNavigationListeners()}registerNavigationListeners(){let t=()=>{this._notifyUrlChangeListeners(this.path(!0),this.getState())};this.navigation.addEventListener("currententrychange",t),this.destroyRef.onDestroy(()=>{this.navigation.removeEventListener("currententrychange",t)})}getState(){return this.navigation.currentEntry?.getState()}replaceState(t,n="",r=null){let s=this.prepareExternalUrl(t+L(n));this.navigation.navigate(s,{state:r,history:"replace"})}go(t,n="",r=null){let s=this.prepareExternalUrl(t+L(n));this.navigation.navigate(s,{state:r,history:"push"})}back(){this.navigation.back()}forward(){this.navigation.forward()}onUrlChange(t){return this._urlChangeListeners.push(t),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();function hr(e,i,t){return lt(e,i,t)}var pi="browser",mi="server";function gr(e){return e===pi}function Dr(e){return e===mi}var pr=new qe("21.0.0"),mr=(()=>{class e{static \u0275prov=A({token:e,providedIn:"root",factory:()=>new Ze(y(V),window)})}return e})(),Ze=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,t){this.window.scrollTo(se(re({},t),{left:i[0],top:i[1]}))}scrollToAnchor(i,t){let n=Ci(this.document,i);n&&(this.scrollToElement(n,t),n.focus())}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch{console.warn(Se(2400,!1))}}scrollToElement(i,t){let n=i.getBoundingClientRect(),r=n.left+this.window.pageXOffset,s=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(se(re({},t),{left:r-o[0],top:s-o[1]}))}};function Ci(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var tn=class{setOffset(i){}getScrollPosition(){return[0,0]}scrollToPosition(i){}scrollToAnchor(i){}setHistoryScrollRestoration(i){}},Ee="20";function sn(e){return/^https?:\/\//.test(e)}function on(e){if(!(typeof e=="string")||e.trim()==="")return!1;try{let t=new URL(e);return!0}catch{return!1}}function yi(e){return e.endsWith("/")?e.slice(0,-1):e}function Fi(e){return e.startsWith("/")?e.slice(1):e}var an=e=>e.src,We=new P("",{factory:()=>an});function we(e,i){return function(n){return on(n)||Ei(n,i||[]),n=yi(n),[{provide:We,useValue:o=>(sn(o.src)&&wi(n,o.src),e(n,se(re({},o),{src:Fi(o.src)})))}]}}function Ei(e,i){throw new E(2959,!1)}function wi(e,i){throw new E(2959,!1)}var Cr=we(Ai,void 0);function Ai(e,i){let t="format=auto";return i.width&&(t+=`,width=${i.width}`),i.isPlaceholder&&(t+=`,quality=${Ee}`),`${e}/cdn-cgi/image/${t}/${i.src}`}var yr=we(Si,void 0);function Si(e,i){let n=`f_auto,${i.isPlaceholder?"q_auto:low":"q_auto"}`;return i.width&&(n+=`,w_${i.width}`),i.loaderParams?.rounded&&(n+=",r_max"),`${e}/image/upload/${n}/${i.src}`}var Fr=we(_i,void 0);function _i(e,i){let{src:t,width:n}=i,r=[];n&&r.push(`w-${n}`),i.isPlaceholder&&r.push(`q-${Ee}`);let s=r.length?[e,`tr:${r.join(",")}`,t]:[e,t];return new URL(s.join("/")).href}var Er=we(bi,void 0);function bi(e,i){let t=new URL(`${e}/${i.src}`);return t.searchParams.set("auto","format"),i.width&&t.searchParams.set("w",i.width.toString()),i.isPlaceholder&&t.searchParams.set("q",Ee),t.href}function wr(e){if(e&&!on(e))throw new E(2959,!1);return e&&(e=new URL(e).origin),[{provide:We,useValue:n=>vi(n,e)}]}var nn=new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]);function vi(e,i){let t=new URL(i??"https://a/");t.pathname="/.netlify/images",!sn(e.src)&&!e.src.startsWith("/")&&(e.src="/"+e.src),t.searchParams.set("url",e.src),e.width&&t.searchParams.set("w",e.width.toString());let n=e.loaderParams?.quality??e.loaderParams?.q;e.isPlaceholder&&!n&&t.searchParams.set("q",Ee);for(let[r,s]of Object.entries(e.loaderParams??{}))nn.has(r)&&t.searchParams.set(nn.get(r),s.toString());return t.hostname==="a"?t.href.replace(t.origin,""):t.href}var Ar=new P("");var rn=/^((\s*\d+w\s*(,|$)){1,})$/;var Ii=[1,2],Li=640;var Mi=1920,Ti=1080;var Sr=(()=>{class e{imageLoader=y(We);config=Ri(y(ve));renderer=y(Y);imgElement=y(W).nativeElement;injector=y(Qe);destroyRef=y(_e);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){st("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&rn.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(t){let n=t;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=rn.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let s=t?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(s=>s>=Li)),n.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return Ii.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>Mi||this.height>Ti),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==an&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let o=this.injector.get(oe);r(),s(),this.placeholder=!1,o.markForCheck()},r=this.renderer.listen(t,"load",n),s=this.renderer.listen(t,"error",n);this.destroyRef.onDestroy(()=>{r(),s()}),Oi(t,n)}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=b({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,r){n&2&>("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",Bi],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Le],height:[2,"height","height",Le],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",K],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",K],fill:[2,"fill","fill",K],placeholder:[2,"placeholder","placeholder",Pi],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Z]})}return e})();function Ri(e){let i={};return e.breakpoints&&(i.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({},nt,e,i)}function Oi(e,i){e.complete&&e.naturalWidth&&i()}function Bi(e){return typeof e=="string"?e:it(e)}function Pi(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:K(e)}export{ae as a,un as b,Me as c,X as d,cn as e,Ft as f,L as g,U as h,ce as i,Et as j,Re as k,hn as l,ne as m,z as n,S as o,d as p,I as q,m as r,Mt as s,Tt as t,Rt as u,Ot as v,Bt as w,Pt as x,gn as y,Dn as z,q as A,J as B,Q as C,M as D,ye as E,pn as F,mn as G,Cn as H,Nt as I,xt as J,$t as K,Fn as L,Ut as M,zt as N,jt as O,Ht as P,Zt as Q,Wt as R,Fe as S,Kt as T,zn as U,jn as V,me as W,Xt as X,Gn as Y,Ce as Z,Ve as _,Hn as $,Zn as aa,qt as ba,Wn as ca,Yn as da,Kn as ea,Jn as fa,Qn as ga,ti as ha,ni as ia,Jt as ja,Qt as ka,ri as la,oi as ma,ai as na,ui as oa,di as pa,li as qa,fi as ra,hi as sa,gi as ta,Di as ua,en as va,fr as wa,hr as xa,pi as ya,mi as za,gr as Aa,Dr as Ba,pr as Ca,mr as Da,tn as Ea,We as Fa,Cr as Ga,yr as Ha,Fr as Ia,Er as Ja,wr as Ka,Ar as La,Sr as Ma};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ba as fi,a as Ft,ea as pi,la as Pt}from"./chunk-RMOTUTEQ.js";import{$ as w,$c as It,Ab as g,Bb as se,Cb as A,Db as F,Eb as ye,Gc as ui,Hb as De,Ib as z,Lc as Tt,Mc as S,O as tt,Oa as ai,Pa as p,Q as X,Qc as re,R as we,Rc as m,S as Le,Sc as ee,Tc as Nt,U as ce,Ua as bt,Uc as H,Va as it,Vb as E,Vc as At,W as y,Wb as Se,Xa as ue,Xb as f,Ya as D,Yb as T,Z as oi,Za as li,Zb as u,Zc as hi,_ as si,a as Jt,aa as x,bc as wt,cb as O,cc as Z,da as xe,db as He,dc as ne,ea as Oe,eb as R,ec as xt,fa as he,fc as G,g as ei,gb as U,gc as N,ha as pe,hb as fe,hc as Ot,ic as K,jc as C,k as ti,kb as Mt,kc as Ne,la as v,lb as ci,lc as J,mc as nt,na as k,oa as de,ob as Et,oc as Ue,p as ii,pa as Be,pc as ze,qa as Ce,qc as $e,rb as ge,rc as ot,sa as I,sb as b,sc as oe,tb as M,tc as L,ub as je,v as ni,vb as di,wa as ri,wb as Ve,wc as $,xb as Te,xc as st,yb as Q,yc as rt,zb as h,zc as Vt}from"./chunk-XYHHESIX.js";import{a as P,b as j,c as Kt}from"./chunk-7CGTOI24.js";var bi=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||i)(D(ue),D(I))};static \u0275dir=R({type:i})}return i})(),Je=(()=>{class i extends bi{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ce(i)))(n||i)}})();static \u0275dir=R({type:i,features:[U]})}return i})(),ve=new ce(""),Xi={provide:ve,useExisting:X(()=>Qi),multi:!0},Qi=(()=>{class i extends Je{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ce(i)))(n||i)}})();static \u0275dir=R({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,n){t&1&&E("change",function(r){return n.onChange(r.target.checked)})("blur",function(){return n.onTouched()})},standalone:!1,features:[$([Xi]),U]})}return i})(),Zi={provide:ve,useExisting:X(()=>Mi),multi:!0};function Ki(){let i=Ft()?Ft().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Ji=new ce(""),Mi=(()=>{class i extends bi{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!Ki())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||i)(D(ue),D(I),D(Ji,8))};static \u0275dir=R({type:i,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(t,n){t&1&&E("input",function(r){return n._handleInput(r.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(r){return n._compositionEnd(r.target.value)})},standalone:!1,features:[$([Zi]),U]})}return i})();function Bt(i){return i==null||Ht(i)===0}function Ht(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var be=new ce(""),Me=new ce(""),en=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gi=class{static min(o){return tn(o)}static max(o){return nn(o)}static required(o){return on(o)}static requiredTrue(o){return sn(o)}static email(o){return rn(o)}static minLength(o){return an(o)}static maxLength(o){return ln(o)}static pattern(o){return cn(o)}static nullValidator(o){return Ei()}static compose(o){return Ni(o)}static composeAsync(o){return Ai(o)}};function tn(i){return o=>{if(o.value==null||i==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e<i?{min:{min:i,actual:o.value}}:null}}function nn(i){return o=>{if(o.value==null||i==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e>i?{max:{max:i,actual:o.value}}:null}}function on(i){return Bt(i.value)?{required:!0}:null}function sn(i){return i.value===!0?null:{required:!0}}function rn(i){return Bt(i.value)||en.test(i.value)?null:{email:!0}}function an(i){return o=>{let e=o.value?.length??Ht(o.value);return e===null||e===0?null:e<i?{minlength:{requiredLength:i,actualLength:e}}:null}}function ln(i){return o=>{let e=o.value?.length??Ht(o.value);return e!==null&&e>i?{maxlength:{requiredLength:i,actualLength:e}}:null}}function cn(i){if(!i)return Ei;let o,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),o=new RegExp(e)):(e=i.toString(),o=i),t=>{if(Bt(t.value))return null;let n=t.value;return o.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function Ei(i){return null}function wi(i){return i!=null}function xi(i){return ci(i)?ti(i):i}function Oi(i){let o={};return i.forEach(e=>{o=e!=null?P(P({},o),e):o}),Object.keys(o).length===0?null:o}function Vi(i,o){return o.map(e=>e(i))}function dn(i){return!i.validate}function Ti(i){return i.map(o=>dn(o)?o:e=>o.validate(e))}function Ni(i){if(!i)return null;let o=i.filter(wi);return o.length==0?null:function(e){return Oi(Vi(e,o))}}function jt(i){return i!=null?Ni(Ti(i)):null}function Ai(i){if(!i)return null;let o=i.filter(wi);return o.length==0?null:function(e){let t=Vi(e,o).map(xi);return ni(t).pipe(ii(Oi))}}function Ut(i){return i!=null?Ai(Ti(i)):null}function mi(i,o){return i===null?[o]:Array.isArray(i)?[...i,o]:[i,o]}function Ii(i){return i._rawValidators}function Fi(i){return i._rawAsyncValidators}function kt(i){return i?Array.isArray(i)?i:[i]:[]}function lt(i,o){return Array.isArray(i)?i.includes(o):i===o}function vi(i,o){let e=kt(o);return kt(i).forEach(n=>{lt(e,n)||e.push(n)}),e}function _i(i,o){return kt(o).filter(e=>!lt(i,e))}var ct=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=jt(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Ut(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control&&this.control.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},W=class extends ct{name;get formDirective(){return null}get path(){return null}},ae=class extends ct{_parent=null;name=null;valueAccessor=null},dt=class{_cd;constructor(o){this._cd=o}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Dr=(()=>{class i extends dt{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(D(ae,2))};static \u0275dir=R({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&N("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[U]})}return i})(),Sr=(()=>{class i extends dt{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(D(W,10))};static \u0275dir=R({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){t&2&&N("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},standalone:!1,features:[U]})}return i})();var We="VALID",at="INVALID",Ae="PENDING",Ge="DISABLED",me=class{},ut=class extends me{value;source;constructor(o,e){super(),this.value=o,this.source=e}},Ye=class extends me{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},Xe=class extends me{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},Ie=class extends me{status;source;constructor(o,e){super(),this.status=o,this.source=e}},ht=class extends me{source;constructor(o){super(),this.source=o}},Ze=class extends me{source;constructor(o){super(),this.source=o}};function zt(i){return(mt(i)?i.validators:i)||null}function un(i){return Array.isArray(i)?jt(i):i||null}function $t(i,o){return(mt(o)?o.asyncValidators:i)||null}function hn(i){return Array.isArray(i)?Ut(i):i||null}function mt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Pi(i,o,e){let t=i.controls;if(!(o?Object.keys(t):t).length)throw new tt(1e3,"");if(!t[e])throw new tt(1001,"")}function ki(i,o,e){i._forEachChild((t,n)=>{if(e[n]===void 0)throw new tt(1002,"")})}var Fe=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return de(this.statusReactive)}set status(o){de(()=>this.statusReactive.set(o))}_status=S(()=>this.statusReactive());statusReactive=v(void 0);get valid(){return this.status===We}get invalid(){return this.status===at}get pending(){return this.status==Ae}get disabled(){return this.status===Ge}get enabled(){return this.status!==Ge}errors;get pristine(){return de(this.pristineReactive)}set pristine(o){de(()=>this.pristineReactive.set(o))}_pristine=S(()=>this.pristineReactive());pristineReactive=v(!0);get dirty(){return!this.pristine}get touched(){return de(this.touchedReactive)}set touched(o){de(()=>this.touchedReactive.set(o))}_touched=S(()=>this.touchedReactive());touchedReactive=v(!1);get untouched(){return!this.touched}_events=new ei;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(vi(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(vi(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(_i(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(_i(o,this._rawAsyncValidators))}hasValidator(o){return lt(this._rawValidators,o)}hasAsyncValidator(o){return lt(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let t=o.sourceControl??this;this._parent&&!o.onlySelf&&this._parent.markAsTouched(j(P({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Xe(!0,t))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=o.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:t})}),this._parent&&!o.onlySelf&&this._parent._updateTouched(o,t),e&&o.emitEvent!==!1&&this._events.next(new Xe(!1,t))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let t=o.sourceControl??this;this._parent&&!o.onlySelf&&this._parent.markAsDirty(j(P({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Ye(!1,t))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=o.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),this._parent&&!o.onlySelf&&this._parent._updatePristine(o,t),e&&o.emitEvent!==!1&&this._events.next(new Ye(!0,t))}markAsPending(o={}){this.status=Ae;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Ie(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.markAsPending(j(P({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Ge,this.errors=null,this._forEachChild(n=>{n.disable(j(P({},o),{onlySelf:!0}))}),this._updateValue();let t=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new ut(this.value,t)),this._events.next(new Ie(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=We,this._forEachChild(t=>{t.enable(j(P({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(j(P({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o,e){this._parent&&!o.onlySelf&&(this._parent.updateValueAndValidity(o),o.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===We||this.status===Ae)&&this._runAsyncValidator(t,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new ut(this.value,e)),this._events.next(new Ie(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.updateValueAndValidity(j(P({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ge:We}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=Ae,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let t=xi(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(o,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,t){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||t)&&this._events.next(new Ie(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,t)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?Ge:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ae)?Ae:this._anyControlsHaveStatus(at)?at:We}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!o.onlySelf&&this._parent._updatePristine(o,e),n&&this._events.next(new Ye(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new Xe(this.touched,e)),this._parent&&!o.onlySelf&&this._parent._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){mt(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){let e=this._parent&&this._parent.dirty;return!o&&!!e&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=un(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=hn(this._rawAsyncValidators)}},Pe=class extends Fe{constructor(o,e,t){super(zt(e),$t(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){ki(this,!0,o),Object.keys(o).forEach(t=>{Pi(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(Object.keys(o).forEach(t=>{let n=this.controls[t];n&&n.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,n)=>{t.reset(o?o[n]:null,j(P({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Ze(this))}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){let o={};return this._reduceChildren(o,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((n,s)=>{t=e(t,n,s)}),t}_allControlsDisabled(){for(let o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}};var Rt=class extends Pe{};var Ee=new ce("",{factory:()=>et}),et="always";function vt(i,o){return[...o.path,i]}function Ke(i,o,e=et){Wt(i,o),o.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(i.disabled),fn(i,o),mn(i,o),gn(i,o),pn(i,o)}function pt(i,o,e=!0){let t=()=>{};o.valueAccessor&&(o.valueAccessor.registerOnChange(t),o.valueAccessor.registerOnTouched(t)),gt(i,o),i&&(o._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ft(i,o){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function pn(i,o){if(o.valueAccessor.setDisabledState){let e=t=>{o.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),o._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Wt(i,o){let e=Ii(i);o.validator!==null?i.setValidators(mi(e,o.validator)):typeof e=="function"&&i.setValidators([e]);let t=Fi(i);o.asyncValidator!==null?i.setAsyncValidators(mi(t,o.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();ft(o._rawValidators,n),ft(o._rawAsyncValidators,n)}function gt(i,o){let e=!1;if(i!==null){if(o.validator!==null){let n=Ii(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(r=>r!==o.validator);s.length!==n.length&&(e=!0,i.setValidators(s))}}if(o.asyncValidator!==null){let n=Fi(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(r=>r!==o.asyncValidator);s.length!==n.length&&(e=!0,i.setAsyncValidators(s))}}}let t=()=>{};return ft(o._rawValidators,t),ft(o._rawAsyncValidators,t),e}function fn(i,o){o.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Ri(i,o)})}function gn(i,o){o.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Ri(i,o),i.updateOn!=="submit"&&i.markAsTouched()})}function Ri(i,o){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function mn(i,o){let e=(t,n)=>{o.valueAccessor.writeValue(t),n&&o.viewToModelUpdate(t)};i.registerOnChange(e),o._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function Li(i,o){i==null,Wt(i,o)}function vn(i,o){return gt(i,o)}function Gt(i,o){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function _n(i){return Object.getPrototypeOf(i.constructor)===Je}function Bi(i,o){i._syncPendingControls(),o.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function qt(i,o){if(!o)return null;Array.isArray(o);let e,t,n;return o.forEach(s=>{s.constructor===Mi?e=s:_n(s)?t=s:n=s}),n||t||e||null}function Cn(i,o){let e=i.indexOf(o);e>-1&&i.splice(e,1)}var yn={provide:W,useExisting:X(()=>Dn)},qe=Promise.resolve(),Dn=(()=>{class i extends W{callSetDisabledState;get submitted(){return de(this.submittedReactive)}_submitted=S(()=>this.submittedReactive());submittedReactive=v(!1);_directives=new Set;form;ngSubmit=new pe;options;constructor(e,t,n){super(),this.callSetDisabledState=n,this.form=new Pe({},jt(e),Ut(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qe.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Ke(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qe.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qe.then(()=>{let t=this._findContainer(e.path),n=new Pe({});Li(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qe.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){qe.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Bi(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new ht(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||i)(D(be,10),D(Me,10),D(Ee,8))};static \u0275dir=R({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&E("submit",function(r){return n.onSubmit(r)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[$([yn]),U]})}return i})();function Ci(i,o){let e=i.indexOf(o);e>-1&&i.splice(e,1)}function yi(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Qe=class extends Fe{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,t){super(zt(e),$t(t,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mt(e)&&(e.nonNullable||e.initialValueIsDefault)&&(yi(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Ze(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Ci(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Ci(this._onDisabledChange,o)}_forEachChild(o){}_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(o){yi(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var Sn=i=>i instanceof Qe,bn=(()=>{class i extends W{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return vt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ce(i)))(n||i)}})();static \u0275dir=R({type:i,standalone:!1,features:[U]})}return i})();var Mn={provide:ae,useExisting:X(()=>_t)},Di=Promise.resolve(),_t=(()=>{class i extends ae{_changeDetectorRef;callSetDisabledState;control=new Qe;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new pe;constructor(e,t,n,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=qt(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Gt(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Ke(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Di.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&hi(t);Di.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?vt(e,this._parent):[e]}static \u0275fac=function(t){return new(t||i)(D(W,9),D(be,10),D(Me,10),D(ve,10),D(At,8),D(Ee,8))};static \u0275dir=R({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[$([Mn]),U,Be]})}return i})();var Mr=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=R({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),En={provide:ve,useExisting:X(()=>wn),multi:!0},wn=(()=>{class i extends Je{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ce(i)))(n||i)}})();static \u0275dir=R({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&E("input",function(r){return n.onChange(r.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[$([En]),U]})}return i})(),xn={provide:ve,useExisting:X(()=>Vn),multi:!0};var On=(()=>{class i{_accessors=[];add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e){this._accessors.splice(t,1);return}}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return e[0].control?e[0]._parent===t._control._parent&&e[1].name===t.name:!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=we({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Vn=(()=>{class i extends Je{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=y(Ee,{optional:!0})??et;constructor(e,t,n,s){super(e,t),this._registry=n,this._injector=s}ngOnInit(){this._control=this._injector.get(ae),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(t){return new(t||i)(D(ue),D(I),D(On),D(xe))};static \u0275dir=R({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,n){t&1&&E("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[$([xn]),U]})}return i})(),Tn={provide:ve,useExisting:X(()=>Nn),multi:!0},Nn=(()=>{class i extends Je{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ce(i)))(n||i)}})();static \u0275dir=R({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,n){t&1&&E("change",function(r){return n.onChange(r.target.value)})("input",function(r){return n.onChange(r.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[$([Tn]),U]})}return i})(),Lt=class extends Fe{constructor(o,e,t){super(zt(e),$t(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){Array.isArray(o)?o.forEach(t=>{this.controls.push(t),this._registerControl(t)}):(this.controls.push(o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let n=this._adjustIndex(o);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){ki(this,!1,o),o.forEach((t,n)=>{Pi(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(o.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,n)=>{t.reset(o[n],j(P({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Ze(this))}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(let o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}};var Hi=(()=>{class i extends W{callSetDisabledState;get submitted(){return de(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=S(()=>this._submittedReactive());_submittedReactive=v(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,t,n){super(),this.callSetDisabledState=n,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(gt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let t=this.form.get(e.path);return Ke(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){pt(e.control||null,e,!1),Cn(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,t){this.form.get(e.path).setValue(t)}onReset(){this.resetForm()}resetForm(e=void 0,t={}){this.form.reset(e,t),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,Bi(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ht(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(pt(t||null,e),Sn(n)&&(Ke(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);Li(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&vn(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wt(this.form,this),this._oldForm&>(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||i)(D(be,10),D(Me,10),D(Ee,8))};static \u0275dir=R({type:i,features:[U,Be]})}return i})();var Yt=new ce(""),An={provide:ae,useExisting:X(()=>In)},In=(()=>{class i extends ae{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new pe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,n,s,r){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=qt(this,n)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&pt(t,this,!1),Ke(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Gt(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&pt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(t){return new(t||i)(D(be,10),D(Me,10),D(ve,10),D(Yt,8),D(Ee,8))};static \u0275dir=R({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[$([An]),U,Be]})}return i})(),Fn={provide:W,useExisting:X(()=>ji)},ji=(()=>{class i extends bn{name=null;constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){zi(this._parent)}static \u0275fac=function(t){return new(t||i)(D(W,13),D(be,10),D(Me,10))};static \u0275dir=R({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[$([Fn]),U]})}return i})(),Pn={provide:W,useExisting:X(()=>Ui)},Ui=(()=>{class i extends W{_parent;name=null;constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){zi(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return vt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(t){return new(t||i)(D(W,13),D(be,10),D(Me,10))};static \u0275dir=R({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[$([Pn]),U]})}return i})();function zi(i){return!(i instanceof ji)&&!(i instanceof Hi)&&!(i instanceof Ui)}var kn={provide:ae,useExisting:X(()=>Rn)},Rn=(()=>{class i extends ae{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new pe;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,n,s,r){super(),this._ngModelWarningConfig=r,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=qt(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Gt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return vt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(t){return new(t||i)(D(W,13),D(be,10),D(Me,10),D(ve,10),D(Yt,8))};static \u0275dir=R({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[$([kn]),U,Be]})}return i})();var Ln={provide:W,useExisting:X(()=>Bn)},Bn=(()=>{class i extends Hi{form=null;ngSubmit=new pe;get control(){return this.form}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ce(i)))(n||i)}})();static \u0275dir=R({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&E("submit",function(r){return n.onSubmit(r)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[$([Ln]),U]})}return i})();var $i=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=He({type:i});static \u0275inj=Le({})}return i})();function Si(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Er=(()=>{class i{useNonNullable=!1;get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,t=null){let n=this._reduceControls(e),s={};return Si(t)?s=t:t!==null&&(s.validators=t.validator,s.asyncValidators=t.asyncValidator),new Pe(n,s)}record(e,t=null){let n=this._reduceControls(e);return new Rt(n,t)}control(e,t,n){let s={};return this.useNonNullable?(Si(t)?s=t:(s.validators=t,s.asyncValidators=n),new Qe(e,j(P({},s),{nonNullable:!0}))):new Qe(e,t,n)}array(e,t,n){let s=e.map(r=>this._createControl(r));return new Lt(s,t,n)}_reduceControls(e){let t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){if(e instanceof Qe)return e;if(e instanceof Fe)return e;if(Array.isArray(e)){let t=e[0],n=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(t,n,s)}else return this.control(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=we({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var wr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Ee,useValue:e.callSetDisabledState??et}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=He({type:i});static \u0275inj=Le({imports:[$i]})}return i})(),xr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Yt,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Ee,useValue:e.callSetDisabledState??et}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=He({type:i});static \u0275inj=Le({imports:[$i]})}return i})();var Y=["*"],Hn=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],jn=["[icon]","sh-icon","[title]","*","[content]","p"];function Un(i,o){i&1&&(h(0,"sh-icon",3),C(1,"info"),g())}function zn(i,o){i&1&&(h(0,"sh-icon",3),C(1,"info"),g())}function $n(i,o){i&1&&(h(0,"sh-icon",3),C(1,"warning"),g())}function Wn(i,o){i&1&&(h(0,"sh-icon",3),C(1,"warning-octagon"),g())}function Gn(i,o){i&1&&(h(0,"sh-icon",3),C(1,"check-circle"),g())}function qn(i,o){i&1&&(h(0,"sh-icon",3),C(1,"question"),g())}function Yn(i,o){if(i&1){let e=z();h(0,"sh-icon",7),E("click",function(){w(e);let n=f();return x(n.removeAlert())}),C(1,"plus"),g()}}var Xn=["dialogRef"];function Qn(i,o){if(i&1){let e=z();A(0,"div",5),Se("click",function(){w(e);let n=f(2);return x(n.isOpen.set(!1))}),F()}}function Zn(i,o){if(i&1&&(A(0,"dialog",2,0)(2,"div",3),u(3),F(),b(4,Qn,1,0,"div",4),F()),i&2){let e=f(),t=L(0);K(t.class),G("width",t.width??"")("max-width",t.maxWidth??"")("max-height",t.maxHeight??"")("height",t.height??""),p(4),M(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Kn=["shButton",""];var Jn=["daysRef"];function eo(i,o){if(i&1&&C(0),i&2){let e=f();J(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function to(i,o){if(i&1&&(h(0,"div"),C(1),g()),i&2){let e=o.$implicit;p(),Ne(e)}}function io(i,o){if(i&1){let e=z();h(0,"div",2,1),E("click",function(){let n=w(e).$implicit,s=xt(1),r=f(2);return x(r.setDate(n,s))}),C(2),g()}if(i&2){let e=o.$implicit,t=f().$implicit,n=f();K(n.isDateSelected(e)),N("out-of-scope",!n.isCurrentMonth(e,t)),p(2),J(" ",e.getDate()," ")}}function no(i,o){if(i&1&&(h(0,"article",7),se(1,"div",9),g()),i&2){let e=f(2);p(),Ot(e.selectedDateStylePosition())}}function oo(i,o){if(i&1&&(h(0,"div",5)(1,"nav",6),Ve(2,to,2,1,"div",null,je),g(),h(4,"div",7,0),Ve(6,io,3,5,"div",8,je),b(8,no,2,2,"article",7),g()()),i&2){let e=o.$implicit,t=f();p(2),Te(t.weekdays()),p(4),Te(t.getMonthDates(e)),p(2),M(t.asRange()?-1:8)}}var so=["triggerRef"],ro=["popoverRef"],ao=["popoverContentRef"],lo=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],co=["[trigger]","button","[shButton]","*"];function uo(i,o){if(i&1){let e=z();A(0,"div",6,1)(2,"div",7),Se("click",function(n){w(e);let s=f();return x(s.eventClose(n))}),F(),A(3,"div",8,2),u(5,3),F()()}if(i&2){let e=f();ge("id",e.id()+"hello"),p(3),Ot(e.menuStyle()),G("position-anchor",e.id())}}var ho=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","popoverContent",""]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],po=["label","[prefix]","[textPrefix]","input","[popoverContent]","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Wi=()=>({closeOnButton:!1,closeOnEsc:!0}),fo=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],go=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];function mo(i,o){if(i&1&&(h(0,"div",3),C(1),g()),i&2){let e=f();p(),J(" ",e._maskedDate()," ")}}function vo(i,o){if(i&1){let e=z();h(0,"sh-datepicker",7),E("dateChange",function(n){w(e);let s=f();return x(s.onDateChange(n))}),g()}if(i&2){let e=f();K(e.currentClass()),Q("date",e.internalDate())}}function _o(i,o){}var Co=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],yo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],Do=["input"],So=[[["label"]]],bo=["label"];function Mo(i,o){if(i&1&&(h(0,"div",3),C(1),g()),i&2){let e=f();p(),Ne(e.files()[0].name)}}function Eo(i,o){if(i&1&&(h(0,"div",3),C(1),g()),i&2){let e=f();p(),J("",e.files().length," files selected")}}function wo(i,o){if(i&1&&(h(0,"div",4),C(1),g()),i&2){let e=f();p(),Ne(e.filesOver()?e.overlayText():e.placeholder())}}var xo=["inputRef"],Oo=["optionsRef"],Vo=["*",[["","menu",""]]],To=["*","[menu]"];function No(i,o){i&1&&(h(0,"sh-icon",5),C(1,"caret-down"),g())}var Ao=[[["label"]],[["input","type","range"]]],Io=["label","input[type=range]"],Fo=["optionsWrap"],Po=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],ko=["label","[prefix]","[boxPrefix]","input","textarea"],Ro=()=>({closeOnButton:!1,closeOnEsc:!1}),Gi=(i,o)=>({$implicit:i,last:o}),Xt=i=>({$implicit:i});function Lo(i,o){if(i&1&&C(0),i&2){let e=f();J(" ",e.inputValue()," ")}}function Bo(i,o){i&1&&De(0)}function Ho(i,o){if(i&1&&fe(0,Bo,1,0,"ng-container",13),i&2){let e=f(3),t=e.$implicit,n=e.$index,s=e.$count;f(2);let r=L(3);Q("ngTemplateOutlet",r)("ngTemplateOutletContext",Vt(2,Gi,t,n===s-1))}}function jo(i,o){if(i&1&&C(0),i&2){let e=f(3).$implicit,t=f(2);J(" ",t.getLabel(e)," ")}}function Uo(i,o){if(i&1){let e=z();h(0,"sh-chip",12),E("click",function(n){w(e);let s=f(2).$index,r=f(2);return x(r.removeSelectedOptionByIndex(n,s))}),b(1,Ho,1,5,"ng-container")(2,jo,1,1),h(3,"sh-icon"),C(4,"x-bold"),g()()}if(i&2){let e=f(4),t=L(3);K(e.selectClasses()),p(),M(t?1:2)}}function zo(i,o){i&1&&De(0)}function $o(i,o){if(i&1&&fe(0,zo,1,0,"ng-container",13),i&2){let e=f(4),t=e.$implicit,n=e.$index,s=e.$count;f(2);let r=L(3);Q("ngTemplateOutlet",r)("ngTemplateOutletContext",Vt(2,Gi,t,n===s-1))}}function Wo(i,o){if(i&1&&C(0),i&2){let e=f(4),t=e.$implicit,n=e.$index,s=e.$count,r=f(2);J(" ",n===s-1?r.getLabel(t):r.getLabel(t)+","," ")}}function Go(i,o){if(i&1&&b(0,$o,1,5,"ng-container")(1,Wo,1,1),i&2){f(5);let e=L(3);M(e?0:1)}}function qo(i,o){if(i&1&&b(0,Go,2,1),i&2){f(4);let e=L(6);M(e?-1:0)}}function Yo(i,o){if(i&1&&b(0,Uo,5,3,"sh-chip",11)(1,qo,1,1),i&2){f(3);let e=L(5);M(e?0:1)}}function Xo(i,o){if(i&1&&b(0,Yo,2,1),i&2){let e=o.$implicit;M(e?0:-1)}}function Qo(i,o){if(i&1&&Ve(0,Xo,1,1,null,null,je),i&2){f();let e=L(2);Te(e)}}function Zo(i,o){i&1&&De(0)}function Ko(i,o){if(i&1&&fe(0,Zo,1,0,"ng-container",14),i&2){f(2);let e=L(0);Q("ngTemplateOutlet",e)}}function Jo(i,o){if(i&1&&C(0),i&2){let e=f(2);J(" ",e.placeholderText()??""," ")}}function es(i,o){if(i&1&&b(0,Ko,1,1,"ng-container")(1,Jo,1,1),i&2){f();let e=L(0);M(e?0:1)}}function ts(i,o){i&1&&(h(0,"sh-icon",6),C(1,"caret-down"),g())}function is(i,o){i&1&&se(0,"sh-spinner",7)}function ns(i,o){i&1&&(h(0,"sh-icon",6),C(1,"list-magnifying-glass"),g())}function os(i,o){i&1&&(h(0,"sh-icon",6),C(1,"magnifying-glass"),g())}function ss(i,o){if(i&1){let e=z();h(0,"sh-icon",15),E("click",function(n){w(e);let s=f();return x(s.clear(n))}),C(1,"x-bold"),g()}}function rs(i,o){i&1&&(h(0,"sh-icon",6),C(1,"caret-down"),g())}function as(i,o){i&1&&(h(0,"sh-icon",6),C(1,"caret-up"),g())}function ls(i,o){if(i&1&&(h(0,"p",9),C(1),g()),i&2){let e=f(3);p(),Ne(e.freeTextTitle())}}function cs(i,o){i&1&&De(0)}function ds(i,o){if(i&1&&fe(0,cs,1,0,"ng-container",13),i&2){f(2);let e=L(0);f();let t=L(1);Q("ngTemplateOutlet",t)("ngTemplateOutletContext",rt(2,Xt,e))}}function us(i,o){i&1&&De(0)}function hs(i,o){if(i&1&&fe(0,us,1,0,"ng-container",13),i&2){f(2);let e=L(0);f();let t=L(4);Q("ngTemplateOutlet",t)("ngTemplateOutletContext",rt(2,Xt,e))}}function ps(i,o){if(i&1&&C(0),i&2){f(2);let e=L(1);J(" ",e," ")}}function fs(i,o){i&1&&se(0,"sh-divider")}function gs(i,o){if(i&1){let e=z();b(0,ls,2,1,"p",9),h(1,"li",16),E("click",function(){w(e);let n=f(2);return x(n.toggleOptionByIndex(-1))}),b(2,ds,1,4,"ng-container")(3,hs,1,4,"ng-container")(4,ps,1,1),g(),b(5,fs,1,0,"sh-divider")}if(i&2){f();let e=L(0),t=f(),n=L(1),s=L(4);M(t.freeTextTitle()?0:-1),p(),N("selected",t.isSelected(-1))("focused",t.focusedOptionIndex()===-1),Q("id",t.getLabelAsSlug(e)),ge("aria-selected",t.isSelected(-1)),p(),M(n?2:s?3:4),p(3),M(t.freeTextTitle()&&t.filteredOptions().length>0?5:-1)}}function ms(i,o){if(i&1&&(ot(0)(1),b(2,gs,6,9)),i&2){let e=f(),t=oe(e.computedFreeTextOption());p();let n=oe(e.getValue(t));p(),M(n.length>0?2:-1)}}function vs(i,o){if(i&1&&(h(0,"p",9),C(1),g()),i&2){let e=f();p(),Ne(e.optionTitle())}}function _s(i,o){if(i&1&&se(0,"sh-checkbox"),i&2){let e=f().$index,t=f();K(t.selectClasses()),N("active",t.isSelected(e))}}function Cs(i,o){i&1&&De(0)}function ys(i,o){if(i&1&&fe(0,Cs,1,0,"ng-container",13),i&2){let e=f().$implicit;f();let t=L(4);Q("ngTemplateOutlet",t)("ngTemplateOutletContext",rt(2,Xt,e))}}function Ds(i,o){if(i&1&&C(0),i&2){let e=f().$implicit,t=f();J(" ",t.getLabel(e)," ")}}function Ss(i,o){if(i&1){let e=z();h(0,"li",16),E("click",function(){let n=w(e).$index,s=f();return x(s.toggleOptionByIndex(n))}),b(1,_s,1,4,"sh-checkbox",17),b(2,ys,1,4,"ng-container")(3,Ds,1,1),g()}if(i&2){let e=o.$implicit,t=o.$index,n=f(),s=L(4);N("selected",n.isSelected(t))("focused",t===n.focusedOptionIndex()),Q("id",n.getLabelAsSlug(e)),ge("aria-selected",n.isSelected(t)),p(),M(n.selectMultiple()?1:-1),p(),M(s?2:3)}}var bs=["dragImageElement"],Ms=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Es=["[sidenav]","[sidenav-closed-topbar]","*"];function ws(i,o){i&1&&ye(0,"div",1,0)}function xs(i,o){if(i&1){let e=z();A(0,"div",7),Se("drop",function(n){w(e);let s=f();return x(s.drop(n))})("dragenter",function(){w(e);let n=f();return x(n.dragEnter())})("dragleave",function(){w(e);let n=f();return x(n.dragLeave())}),F()}}function Os(i,o){if(i&1){let e=z();A(0,"div",8),Se("dragstart",function(n){w(e);let s=f();return x(s.dragStart(n))})("dragend",function(n){w(e);let s=f();return x(s.dragEnd(n))})("drag",function(n){w(e);let s=f();return x(s.drag(n))})("touchstart",function(n){w(e);let s=f();return x(s.touchStart(n))})("touchmove",function(n){w(e);let s=f();return x(s.touchMove(n))})("touchend",function(n){w(e);let s=f();return x(s.touchEnd(n))})("touchcancel",function(n){w(e);let s=f();return x(s.touchCancel(n))}),F()}}var Vs=["thead"],Ts=["tbody"],Ns=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],As=["th","[thead]","*","[table-no-rows]"];function Is(i,o){i&1&&se(0,"sh-progress-bar",2)}function Fs(i,o){i&1&&(h(0,"div",3),u(1,3),g())}var Ps=[[["","title",""]],"*"],ks=["[title]","*"];function Rs(i,o){i&1&&C(0,"Title")}function Ls(i,o){i&1&&(h(0,"sh-icon",1),C(1,"caret-down"),g())}var Bs=["bold","thin","light","fill","duotone"],_e=(()=>{class i{#e=y(I);#i=y(ue);ngAfterContentInit(){let e=this.#e.nativeElement.textContent?.trim();if(!e)return;let t=e.split("-").at(-1);t&&Bs.includes(t)&&this.#i.addClass(this.#e.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-icon"]],ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})();function Re(i=null){let o=i??y(I).nativeElement;if(!o)return v("");let e=v(o.className);if(typeof MutationObserver>"u")return e.asReadonly();let t=y(he),n=new MutationObserver(s=>{for(let r of s)if(r.type==="attributes"&&r.attributeName==="class"){let a=r.target;e.set(a.className)}});return n.observe(o,{attributes:!0,attributeFilter:["class"]}),t.onDestroy(()=>n.disconnect()),e.asReadonly()}var yt=new ce("Ship UI Config"),Hs=["simple","outlined","flat","raised"],Kr=(()=>{class i{constructor(){this.#e=y(yt,{optional:!0}),this.variant=v(this.#e?.alertVariant??""),this._el=y(I),this.alertService=m(null),this.id=m(null),this.currentClasses=Re(),this.activeClass=S(()=>{let e=this.variant(),t=`${this.currentClasses()} sh-sheet`;return e?Hs.find(s=>this.currentClasses().includes(s))?t:`${t} ${e}`:t})}#e;removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(t,n){t&2&&K(n.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:jn,decls:19,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,n){if(t&1&&(T(Hn),h(0,"div",1)(1,"div",2,0),u(3),u(4,1),g(),h(5,"div",2),b(6,Un,2,0,"sh-icon",3)(7,zn,2,0,"sh-icon",3)(8,$n,2,0,"sh-icon",3)(9,Wn,2,0,"sh-icon",3)(10,Gn,2,0,"sh-icon",3)(11,qn,2,0,"sh-icon",3),g(),h(12,"div",4),u(13,2),u(14,3),g(),b(15,Yn,2,0,"sh-icon",5),h(16,"div",6),u(17,4),u(18,5),g()()),t&2){let s=xt(2);p(),G("display",s.children.length?"block":"none");let r=n.currentClasses();p(5),M(r.includes("primary")?6:r.includes("accent")?7:r.includes("warn")?8:r.includes("error")?9:r.includes("success")?10:11),p(9),M(n.id()?15:-1)}},dependencies:[_e],encapsulation:2,changeDetection:0})}}return i})();function Dt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Jr=(()=>{class i{constructor(){this.alertHistory=v([]),this.alertHistoryIsOpen=v(!1),this.alertHistoryIsHidden=v(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=Dt();this.alertHistory.update(n=>[j(P({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...n]),setTimeout(()=>{this.alertHistory.update(n=>n.map(s=>j(P({},s),{animateIn:s.id===t?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(n=>j(P({},n),{animateOut:n.id===e?!1:n.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(n=>n.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(n=>j(P({},n),{isOpen:n.id===e?!1:n.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=we({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),js={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Us=(()=>{class i{constructor(){this.#e=y(Oe),this.#i=y(yt,{optional:!0}),this.dialogRef=ee("dialogRef"),this.isOpen=H(!1),this.options=m(),this.closed=re(),this.defaultOptionMerge=S(()=>P(j(P({},js),{class:this.#i?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=k(()=>{let e=this.dialogRef()?.nativeElement;e&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e.showModal(),e.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),this.#e.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(e.close(),queueMicrotask(()=>this.closed.emit())))})}#e;#i;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-dialog"]],viewQuery:function(t,n){t&1&&Z(n.dialogRef,Xn,5),t&2&&ne()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Y,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,n){t&1&&(T(),ot(0),b(1,Zn,5,11,"dialog",1)),t&2&&(oe(n.defaultOptionMerge()),p(),M(n.isOpen()?1:-1))},encapsulation:2,changeDetection:0})}}return i})(),ea=(()=>{class i{constructor(){this.#e=y(Oe),this.#i=this.#e.querySelector("body"),this.#t=y(Et),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;#t;open(e,t){let n=this.#t.injector,s=this.#n(),r=!1,te=t||{},{data:a,closed:l}=te,c=Kt(te,["data","closed"]);this.compRef&&this.#o(!0),this.insertedCompRef=It(e,{environmentInjector:n}),this.compRef=It(Us,{hostElement:s,environmentInjector:n,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let d=this.insertedCompRef.instance,_=d.data,V=d.closed;if(a){if(Mt(_))this.insertedCompRef.setInput("data",a);else if(!Mt(_))throw new Error("data is not an input signal on the passed component")}V instanceof Tt&&(this.closedFieldSub=V.subscribe(le=>{this.#o(),!r&&(r=!0,l?.(le),(this.compRef?.instance.closed).emit(le))})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",c),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>ie());let B=this;function ie(le=void 0){B.#o(),!r&&(r=!0,V&&V instanceof Tt&&V.emit(le),l?.(le))}return{component:this.insertedCompRef.instance,close:ie,closed:this.compRef.instance.closed}}#n(){let e=this.#e.createElement("sh-dialog-ref");return e.id="sh-dialog-ref",this.#e.getElementById("sh-dialog-ref")||this.#i?.append(e),this.#e.getElementById("sh-dialog-ref")}#o(e=!1){let t=this;e||queueMicrotask(()=>n());function n(){t.insertedCompRef&&(t.#t.detachView(t.insertedCompRef.hostView),t.closedFieldSub?.unsubscribe(),t.insertedCompRef.destroy()),t.compRef&&(t.#t.detachView(t.compRef.hostView),t.compClosedSub?.unsubscribe(),t.compRef.destroy())}}ngOnDestroy(){this.#o(!0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=we({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ta=(()=>{class i{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(t,n){t&2&&G("--btng-id",n.id)},ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})(),ia=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Kn,ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})(),na=(()=>{class i{constructor(){this.#e=y(yt,{optional:!0}),this.class=v(this.#e?.cardType??"type-a")}#e;static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-card"]],hostVars:2,hostBindings:function(t,n){t&2&&K(n.class())},ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})(),zs=(()=>{class i{constructor(){this.currentClassList=Re()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-checkbox"]],ngContentSelectors:Y,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(t,n){t&1&&(T(),h(0,"div",0)(1,"sh-icon",1),C(2,"check-bold"),g(),h(3,"sh-icon",2),C(4,"minus-bold"),g()(),h(5,"div",3),u(6),g()),t&2&&K(n.currentClassList())},dependencies:[_e],encapsulation:2,changeDetection:0})}}return i})(),$s=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:Y,decls:2,vars:0,template:function(t,n){t&1&&(T(),A(0,"div"),u(1),F())},encapsulation:2,changeDetection:0})}}return i})();var Ws=(()=>{class i{constructor(){this.#e=this.#r(new Date),this.date=H(null),this.endDate=H(null),this.asRange=m(!1),this.monthsToShow=m(1),this.disabled=m(!1),this.startOfWeek=m(1),this.weekdayLabels=m(["Su","Mo","Tu","We","Th","Fr","Sa"]),this.daysRef=ee("daysRef"),this.currentDate=v(this.date()??this.#e),this.monthOffsets=S(()=>Array.from({length:this.monthsToShow()},(e,t)=>t)),this.selectedDateStylePosition=v(null),this.weekdays=S(()=>{let e=this.startOfWeek(),t=this.weekdayLabels();return t.slice(e).concat(t.slice(0,e))}),this.currentClasses=Re(),this.someEffect=k(()=>{let e=this.currentClasses();this.#n()}),this.#i=k(()=>{this.monthsToShow()>1||this.#t()})}#e;getLastVisibleMonth(){let e=this.monthsToShow()-1;return this.getOffsetDate(e)}getOffsetDate(e){let t=new Date(this.currentDate());return t.setMonth(t.getMonth()+e),t}getMonthDates(e){let t=this.getOffsetDate(e);return this.#o(t,this.startOfWeek())}#i;ngOnInit(){this.monthsToShow()!==1&&this.#t()}#t(){let e=this.date();e&&this.currentDate.set(e),this.#n()}#n(){setTimeout(()=>{let e=this.daysRef()?.nativeElement.querySelector(".sel");if(!e)return this.selectedDateStylePosition.update(t=>t?j(P({},t),{opacity:"0"}):null);this.setSelectedDateStylePosition(e)})}#o(e,t){let n=e.getUTCFullYear(),s=e.getUTCMonth(),r=new Date(Date.UTC(n,s)).getUTCDay(),a=32-new Date(Date.UTC(n,s,32)).getUTCDate(),l=[],c=r-t;c<0&&(c+=7);let d=new Date(Date.UTC(n,s,0)).getUTCDate();for(let V=c-1;V>=0;V--){let B=new Date(Date.UTC(n,s-1,d-V));l.push(B)}for(let V=1;V<=a;V++)l.push(new Date(Date.UTC(n,s,V)));let _=1;for(;l.length%7!==0;)l.push(new Date(Date.UTC(n,s+1,_++)));return l}nextMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()+1),t}),this.#n()}previousMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()-1),t}),this.#n()}setDate(e,t){let n=(s,r)=>{let a=r?.getUTCHours()??0,l=r?.getUTCMinutes()??0,c=r?.getUTCSeconds()??0,d=r?.getUTCMilliseconds()??0;return this.#r(new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate(),a,l,c,d)))};if(!this.asRange())this.date.set(n(e,this.date())),this.endDate.set(null);else{let s=this.date(),r=this.endDate(),a=n(e,null);s?r?(this.date.set(a),this.endDate.set(null)):a<s?(this.date.set(a),this.endDate.set(null)):this.endDate.set(a):this.date.set(a)}this.asRange()||this.setSelectedDateStylePosition(t)}isDateSelected(e){let t=this.date(),n=this.endDate();if(t===null)return null;let s=_=>new Date(Date.UTC(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate(),0,0,0,0)),r=_=>new Date(Date.UTC(_.getUTCFullYear(),_.getUTCMonth(),_.getUTCDate(),23,59,59,999)),a=s(e),l=s(t),c=n?r(n):null,d=[];if(this.asRange())if(c===null)a.getTime()===l.getTime()&&d.push("sel first last");else{if(a.getTime()===l.getTime()&&d.push("first"),a.getTime()===s(c).getTime()&&d.push("last"),a>=l&&a<=c){d.push("sel");let te=a.getUTCDay(),le=this.startOfWeek();te===le&&d.push("week-start");let St=(le+6)%7;te===St&&d.push("week-end")}let _=new Date(a);_.setUTCDate(a.getUTCDate()+1),new Date(a).setUTCDate(a.getUTCDate()-1);let B=a.getUTCDate()===1,ie=_.getUTCMonth()!==a.getUTCMonth();B&&d.push("month-start"),ie&&d.push("month-end")}else a.getTime()===l.getTime()&&d.push("sel");return d.join(" ")||null}setSelectedDateStylePosition(e){this.selectedDateStylePosition.set({transform:`translate(${e.offsetLeft}px, ${e.offsetTop}px)`,opacity:"1"})}getMonthName(e){return e.toLocaleString("default",{month:"long"})}getFullYear(e){return e.getFullYear()}isCurrentMonth(e,t){let n=this.getOffsetDate(t);return e.getMonth()===n.getMonth()}#r(e){let n=e.getTimezoneOffset()*60*1e3;return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())+n)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-datepicker"]],viewQuery:function(t,n){t&1&&Z(n.daysRef,Jn,5),t&2&&ne()},hostVars:6,hostBindings:function(t,n){t&2&&(K("columns-"+n.monthsToShow()),N("as-range",n.asRange())("disabled",n.disabled()))},inputs:{date:[1,"date"],endDate:[1,"endDate"],asRange:[1,"asRange"],monthsToShow:[1,"monthsToShow"],disabled:[1,"disabled"],startOfWeek:[1,"startOfWeek"],weekdayLabels:[1,"weekdayLabels"]},outputs:{date:"dateChange",endDate:"endDateChange"},decls:14,vars:3,consts:[["daysRef",""],["elementRef",""],[3,"click"],[1,"title"],[1,"months-container"],[1,"month"],[1,"weekdays"],[1,"days"],[3,"out-of-scope","class"],[1,"sel-el"]],template:function(t,n){t&1&&(h(0,"header")(1,"button",2),E("click",function(){return n.previousMonth()}),h(2,"sh-icon"),C(3,"caret-left"),g()(),h(4,"div",3),C(5),b(6,eo,1,1),C(7),g(),h(8,"button",2),E("click",function(){return n.nextMonth()}),h(9,"sh-icon"),C(10,"caret-right"),g()()(),h(11,"section",4),Ve(12,oo,9,1,"div",5,di),g()),t&2&&(p(5),J(" ",n.getMonthName(n.currentDate())," "),p(),M(n.monthsToShow()>1?6:-1),p(),J(" ",n.getFullYear(n.currentDate())," "),p(5),Te(n.monthOffsets()))},dependencies:[_e],encapsulation:2,changeDetection:0})}}return i})(),Ct=4,Gs=["scroll","auto"],qs={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Qt=(()=>{class i{constructor(){this.#e=y(Oe),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=m(!1),this.disableOpenByClick=m(!1),this.isOpen=H(!1),this.options=m(),this.closed=re(),this.defaultOptionMerge=S(()=>P(P({},qs),this.options())),this.triggerRef=ee.required("triggerRef"),this.popoverRef=ee("popoverRef"),this.popoverContentRef=ee("popoverContentRef"),this.id=v("--"+Dt()),this.menuStyle=v(null),this.openAbort=null,this.openEffect=k(()=>{let e=this.isOpen();queueMicrotask(()=>{let t=this.popoverRef()?.nativeElement;if(!t){this.openAbort?.abort(),this.openAbort=null;return}e?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#e.addEventListener("keydown",n=>{n.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&n.preventDefault(),n.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#i(t).addEventListener("scroll",()=>this.#a(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#a(),{signal:this.openAbort?.signal}),this.#a()})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}#e;toggleIsOpen(e){this.disableOpenByClick()||(e.preventDefault(),e.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(e){this.isOpen()&&this.isOpen.set(!1)}#i(e){let t=e.parentElement;for(;t;){if(Gs.indexOf(window?.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return this.#e.documentElement}#t(e,t){let n=e.left,s=e.bottom+Ct;return{left:n,top:s}}#n(e,t){let n=e.right+Ct,s=e.top;return{left:n,top:s}}#o(e,t){let n=e.right+Ct,s=e.bottom;return{left:n,top:s}}#r(e,t){let n=e.left,s=e.bottom-e.height-t.height-Ct;return{left:n,top:s}}#a(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),n=[this.#n,this.#o],s=[this.#t,this.#r],r=this.asMultiLayer()?n:s;for(let l=0;l<r.length;l++){let c=r[l](e,t),d=c.left+(t?.width||0)>window.innerWidth,_=c.top+(t?.height||0)>window.innerHeight;if(!d&&!_){this.menuStyle.set({left:c.left+"px",top:c.top+"px"});return}}let a=r[0](e,t);this.menuStyle.set({left:a.left+"px",top:a.top+"px"})}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-popover"]],viewQuery:function(t,n){t&1&&(Z(n.triggerRef,so,5),Z(n.popoverRef,ro,5),Z(n.popoverContentRef,ao,5)),t&2&&ne(3)},hostVars:2,hostBindings:function(t,n){t&2&&N("multi-layer",n.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:co,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(t,n){if(t&1){let s=z();T(lo),A(0,"div",3,0),Se("click",function(a){return w(s),x(n.toggleIsOpen(a))}),A(2,"div",4),u(3),u(4,1),u(5,2),F(),ye(6,"div",5),F(),b(7,uo,6,5,"div",6)}t&2&&(ge("popovertarget",n.id()+"hello"),p(6),G("anchor-name",n.id()),p(),M(n.isOpen()?7:-1))},encapsulation:2,changeDetection:0})}}return i})(),Ys=(()=>{class i{constructor(){this.#e=y(I),this.isOpen=H(!1),this.closed=re()}#e;onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}close(){this.closed.emit()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let a=function(){r.style.height="auto",r.style.height=r.scrollHeight+"px"},l=function(){setTimeout(a,0)};var n=a,s=l;let r=this.#e.nativeElement.querySelector("textarea");r&&(r.addEventListener("change",a),r.addEventListener("cut",l),r.addEventListener("paste",l),r.addEventListener("drop",l),r.addEventListener("keydown",l),r.focus(),r.select(),a())}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-form-field-popover"]],hostBindings:function(t,n){t&1&&E("click",function(){return n.onClick()})},inputs:{isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:po,decls:18,vars:3,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[3,"isOpenChange","closed","isOpen","options"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,n){t&1&&(T(ho),u(0),h(1,"div",0)(2,"div",1),u(3,1),u(4,2),g(),se(5,"div",2),h(6,"sh-popover",3),$e("isOpenChange",function(r){return ze(n.isOpen,r)||(n.isOpen=r),r}),E("closed",function(){return n.close()}),u(7,3,["trigger",""]),u(8,4),g(),u(9,5),u(10,6),se(11,"div",4),u(12,7),g(),h(13,"div",5)(14,"div",6),u(15,8),g(),h(16,"div",7),u(17,9),g()()),t&2&&(p(6),Ue("isOpen",n.isOpen),Q("options",st(2,Wi)))},dependencies:[Qt],encapsulation:2,changeDetection:0})}}return i})();function Xs(i){let o=y(I).nativeElement,e=y(he),t=v([]),n=()=>{t.set(Array.from(o.querySelectorAll(i)))};if(n(),typeof MutationObserver>"u")return t.asReadonly();let s=new MutationObserver(r=>{r.some(l=>l.type==="childList")&&n()});return s.observe(o,{childList:!0}),e.onDestroy(()=>s.disconnect()),t.asReadonly()}var oa=(()=>{class i{constructor(){this.ngModels=Nt(_t),this.#e=y(Pt),this.#i=v(null),this.masking=m("mediumDate"),this.closed=re(),this._maskedDate=S(()=>{let e=this.internalDate(),t=this.masking();return t?e?this.#e.transform(e,t):null:e}),this.internalDate=v(null),this.isOpen=H(!1),this.currentClass=Re(),this.#t=Xs("#input-wrap input"),this.#n=k(()=>{let e=this.#t();if(!e.length)return;let t=e[0];t&&(this.#o(t),t.addEventListener("inputValueChanged",n=>{this.internalDate.set(n.detail.value?this.#r(new Date(n.detail.value)):null)}),t.addEventListener("focus",()=>{this.isOpen.set(!0),t.blur()}),this.#i.set(t),t.autocomplete="off",typeof t.value=="string"&&this.internalDate.set(t.value?this.#r(new Date(t.value)):null))})}#e;#i;#t;onDateChange(e){this.internalDate.set(e);let t=this.#i();t&&(t.value=e?e.toString():"",t.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}#n;#o(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}}),e}#r(e){let n=e.getTimezoneOffset()*60*1e3;return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())+n)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-datepicker-input"]],contentQueries:function(t,n,s){t&1&&wt(s,n.ngModels,_t,5),t&2&&ne()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[$([Pt])],ngContentSelectors:go,decls:15,vars:3,consts:[["defaultIndicator",""],[3,"closed","isOpenChange","isOpen"],["id","input-wrap","ngProjectAs","input",5,["input"],1,"input"],[1,"masked-value"],["suffix","",1,"default-indicator"],["popoverContent",""],[3,"date","class"],[3,"dateChange","date"]],template:function(t,n){if(t&1){let s=z();T(fo),h(0,"sh-form-field-popover",1),E("closed",function(){return w(s),x(n.close())}),$e("isOpenChange",function(a){return w(s),ze(n.isOpen,a)||(n.isOpen=a),x(a)}),u(1,0,["ngProjectAs","label",5,["label"]]),u(2,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),u(3,2,["ngProjectAs","[textPrefix]",5,["","textPrefix",""]]),h(4,"div",2),b(5,mo,2,1,"div",3),u(6,3),g(),u(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),u(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),h(9,"sh-icon",4),C(10,"calendar"),g(),h(11,"div",5),b(12,vo,1,3,"sh-datepicker",6),g()(),fe(13,_o,0,0,"ng-template",null,0,ui)}t&2&&(Ue("isOpen",n.isOpen),p(5),M(n.masking()?5:-1),p(7),M(n.isOpen()?12:-1))},dependencies:[Ws,Ys,_e],encapsulation:2,changeDetection:0})}}return i})();var Qs=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-divider"]],ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})();var Zt=(()=>{class i{#e=y(I);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}constructor(){bt(()=>{let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let r=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){setTimeout(r,0)};var n=r,s=a;t.addEventListener("change",r),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),r()}})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-form-field"]],hostBindings:function(t,n){t&1&&E("click",function(){return n.onClick()})},ngContentSelectors:yo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,n){t&1&&(T(Co),u(0),A(1,"div",0)(2,"div",1),u(3,1),u(4,2),u(5,3),F(),u(6,4),u(7,5),A(8,"div",2),u(9,6),u(10,7),u(11,8),F()(),A(12,"div",3)(13,"div",4),u(14,9),F(),A(15,"div",5),u(16,10),F()())},encapsulation:2,changeDetection:0})}}return i})(),sa=(()=>{class i{constructor(){this._el=y(I),this.inputRef=ee.required("input"),this.filesOver=v(!1),this.multiple=m(),this.accept=m(null),this.placeholder=H("Click or drag files here"),this.overlayText=m("Drop files here"),this.files=H([]),this.fileUploadClasses=S(()=>this._el.nativeElement.classList.toString()),this.inputEffect=k(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(!0)}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(!1)}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(!1);let n=t.dataTransfer?.files;n&&n.length>0&&(this.handleFileUpload(Array.from(n)),e.files=n)}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files))}))})}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-file-upload"]],viewQuery:function(t,n){t&1&&Z(n.inputRef,Do,5),t&2&&ne()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:bo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(t,n){t&1&&(T(So),h(0,"sh-form-field"),u(1,0,["ngProjectAs","label",5,["label"]]),h(2,"div",2,0),b(4,Mo,2,1,"div",3)(5,Eo,2,1,"div",3)(6,wo,2,1,"div",4),se(7,"input",5,1)(9,"div",6),g(),h(10,"sh-icon",7),C(11,"upload-simple"),g()()),t&2&&(K(n.fileUploadClasses()),p(4),M(n.files().length===1?4:n.files().length>1?5:6),p(3),ge("multiple",n.multiple())("accept",n.accept()),p(2),N("files-over",n.filesOver()))},dependencies:[Zt,_e],encapsulation:2,changeDetection:0})}}return i})(),ra=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-list"]],ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})();function Zs(i,o){let e=v(null),t=o.map(l=>l.toUpperCase()),n=y(xe),s=n.get(he);if(fi(n.get(ri))||typeof MutationObserver>"u")return e.asReadonly();if(t.find(l=>i.nativeElement.querySelector(l)))return e.set(new I(i.nativeElement.querySelector(o[0]))),e.asReadonly();let a=new MutationObserver(l=>{for(let c of l)if(c.addedNodes){for(let d of Array.from(c.addedNodes))if(d.nodeType===Node.ELEMENT_NODE&&t.includes(d.nodeName)){e.set(new I(d)),a.disconnect();return}}});return a.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>a.disconnect()),e.asReadonly()}function qi(i,o){let e=y(xe),t=e.get(he),n=v([]),s=null,r=null,a=(c,d)=>{r&&r.disconnect();let _=Array.from(c.nativeElement.querySelectorAll(d.join(",")));n.set(_),typeof MutationObserver<"u"&&(r=new MutationObserver(V=>{queueMicrotask(()=>{let B=Array.from(c.nativeElement.querySelectorAll(d.join(",")));n.set(B)})}),r.observe(c.nativeElement,{childList:!0,subtree:!0})),t.onDestroy(()=>l())};s=k(()=>{let c=typeof i=="function"&&i[Jt]?i():i,d=typeof o=="function"?o():o;c&&d?.length>0?a(c,d):(n.set([]),r&&(r.disconnect(),r=null))},{injector:e});function l(){s&&s.destroy(),r&&r.disconnect()}return{signal:n.asReadonly(),destroy:l}}function Ks(i,o=["input","textarea"]){let e=i||Zs(y(I),o),t=v(void 0),n=y(xe),s=n.get(he),r=v(null);k(l=>{let c=e();if(!c)return;let d=c.nativeElement;d&&(Js(d),r.set(d),t.set(d.value??""),l(()=>{r.set(null)}))},{injector:n});let a=null;return k(()=>{let l=r();if(!l)return;a&&(a(),a=null);let c=_=>{t.set(_.detail.value)},d=_=>{t.set(_.target.value)};l.addEventListener("input",d),l.addEventListener("inputValueChanged",c),t.set(l.value),a=()=>{l.removeEventListener("input",d),l.removeEventListener("inputValueChanged",c)},s.onDestroy(()=>{a&&a()})},{injector:n}),k(()=>{let l=r();if(!l)return;let c=t();c&&(l.value=c,l.dispatchEvent(new Event("input")))},{injector:n}),t}function Js(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(o){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,o);let t=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:o}});return this.dispatchEvent(t),o}}),i}var aa=(()=>{class i{constructor(){this.#e=y(Oe),this.#i=y(ue),this.asMultiLayer=m(!1),this.openIndicator=m(!1),this.disabled=m(!1),this.customOptionElementSelectors=m(["button"]),this.keepClickedOptionActive=m(!1),this.closeOnClick=m(!0),this.isOpen=H(!1),this.closed=re(),this.searchable=m(!1),this.activeOptionIndex=v(-1),this.inputRef=ee("inputRef"),this.optionsRef=ee("optionsRef"),this.options=qi(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=S(()=>this.options.signal().filter(e=>!e.disabled)),this.inputValue=Ks(this.inputRef),this.abortController=null,this.optionsEffect=k(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||this.#e.documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",s=>{let r=s.target,a=this.activeElements();if(!a.length){let c=this.optionsEl();this.activeElements.set(c),a=c}let l=a.findIndex(c=>c===r);l>-1&&(this.activeOptionIndex.set(l),t.focus())}))}),this.keyDownEventListener=e=>{let t=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t))):e.key==="Enter"?(e.preventDefault(),t>-1&&(this.activeElements()[t].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=v([]),this.lastInputValue="",this.inputValueEffect=k(()=>{if(!this.searchable())return;let t=(this.inputValue()??"").toLowerCase();if(this.#n(),!t||t===""){let s=this.optionsEl();this.activeElements.set(s),this._lastElementList=s;for(let r=0;r<s.length;r++)this.#i.removeStyle(s[r],"order");return}if(!t||t==="")return;let n=this._lastElementList.length&&t.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=t;for(let s=0;s<n.length;s++){let r=n[s],a=r.textContent?.toLowerCase()||"",l=this.#t(a,t);r.value=l}n=n.filter(s=>s.value>0).sort((s,r)=>r.value-s.value);for(let s=0;s<n.length;s++)this.#i.setStyle(n[s],"order",s);this.activeElements.set(n),this._lastElementList=n}),this.activeOptionIndexEffect=k(()=>{let e=this.activeElements(),t=this.activeOptionIndex();for(let n=0;n<e.length;n++)e[n].classList.remove("active");t>-1&&(e[t].scrollIntoView({block:"center"}),e[t].classList.add("active"))})}#e;#i;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}#t(e,t){if(!t)return 0;let n=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let c=t[l];if(e.length>s+1&&e[s+1]===c)n+=l===0?100:150,s++,r++;else{let d=e.indexOf(c,s+1);if(l>0&&(a=!1),d===-1)return 0;n+=100,s=d,r++}}return a&&t.length===r&&(n+=1e3),n+=r*20,n}nextActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===-1||e===t.length-1)return 0;let n=e+1;return t[n].disabled?this.nextActiveIndex(n):n}prevActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===0||e===-1)return t.length-1;let n=e-1;return t[n].disabled?this.prevActiveIndex(n):n}close(e="closed",t){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||e==="closed")&&this.#n(),this.isOpen.set(!1),this.closed.emit(e==="active"))}#n(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-menu"]],viewQuery:function(t,n){t&1&&(Z(n.inputRef,xo,5),Z(n.optionsRef,Oo,5)),t&2&&ne(2)},hostVars:6,hostBindings:function(t,n){t&2&&N("disabled",n.disabled())("has-search",n.searchable())("multi-layer",n.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:To,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(t,n){if(t&1){let s=z();T(Vo),h(0,"sh-popover",3,0),$e("isOpenChange",function(a){return w(s),ze(n.isOpen,a)||(n.isOpen=a),x(a)}),E("closed",function(){return w(s),x(n.close("fromPopover"))}),h(2,"div",4),E("click",function(a){return w(s),x(n.toggleIsOpen(a))}),u(3),b(4,No,2,0,"sh-icon",5),g(),h(5,"div",6)(6,"sh-form-field",7),se(7,"input",8,1),g()(),h(9,"div",9,2),E("click",function(){return w(s),x(n.close("active"))}),u(11,1),g()()}t&2&&(Ue("isOpen",n.isOpen),Q("disableOpenByClick",!0)("asMultiLayer",n.asMultiLayer())("options",st(11,Wi)),p(2),N("is-open",n.isOpen()),p(2),M(n.openIndicator()?4:-1),p(2),N("hidden",n.searchable()===!1),p(3),N("searching",n.searchable()&&n.inputValue()!==""))},dependencies:[Qt,Zt,_e],encapsulation:2,changeDetection:0})}}return i})(),er=(()=>{class i{constructor(){this.value=m(void 0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,n){t&1&&ye(0,"div",0),t&2&&G("width",n.value(),"%")},encapsulation:2,changeDetection:0})}}return i})(),la=(()=>{class i{constructor(){this.currentClassList=Re()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-radio"]],ngContentSelectors:Y,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(t,n){t&1&&(T(),ye(0,"div",0),u(1)),t&2&&K(n.currentClassList())},encapsulation:2,changeDetection:0})}}return i})(),ca=(()=>{class i{constructor(){this.#e=y(I),this.#i=null,this.#t=null,this.#n=0,this.unit=m(""),this.value=H(this.#n),this.inputState=v({min:0,max:100,step:1}),this.valuePercentage=S(()=>{let{min:e,max:t}=this.inputState(),n=this.value()??e;if(isNaN(n))return 0;let s=t-e;if(s===0)return 0;let r=(n-e)/s*100;return Math.max(0,Math.min(100,r))}),this.trackFilledPercentage=S(()=>this.valuePercentage()),this.thumbPositionPercentage=S(()=>this.valuePercentage()),this.syncModelToInputEffect=k(()=>{let e=this.value();if(this.#t){let t=parseFloat(this.#t.value);(isNaN(t)||String(t)!==String(e))&&(this.#t.value=String(e))}})}#e;#i;#t;#n;get hasInputElement(){return!!this.#t}ngAfterViewInit(){this.#t=this.#e.nativeElement.querySelector('input[type="range"]'),this.#t?(this.#s(this.#t),this.#t.oninput=()=>{this.setNewInputValue(this.#t.value)},this.#t.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value)}),queueMicrotask(()=>this.#o(!0)),this.#r()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(e){let t=parseFloat(e??"0");if(!isNaN(t)){let{min:n,max:s}=this.inputState();this.value.set(Math.max(n,Math.min(s,t)))}}trackEvent(e){if(!this.#t||this.#t.readOnly||this.#t.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#t||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let n=e.currentTarget.getBoundingClientRect(),s=e.clientX-n.left,r=n.width,{min:a,max:l,step:c}=this.inputState(),d=l-a;if(r>0&&d!==0&&c>0){let V=(s/r*d+a-a)/c,B=a+Math.round(V)*c,ie=this.#a(c);B=parseFloat(B.toFixed(ie));let te=Math.max(a,Math.min(l,B));this.value.set(te)}}#o(e=!1){if(!this.#t)return;let t=parseFloat(this.#t.min??"0")??0,n=parseFloat(this.#t.max??"100")??100,s=this.#t.step,r=1;if(s&&s.toLowerCase()!=="any"){let l=parseFloat(s);!isNaN(l)&&l>0&&(r=l)}this.inputState.set({min:t,max:n,step:r});let a=parseFloat(this.#t.value??String(t))??t;if(e&&this.value()!==this.#n){let l=this.value(),c=Math.max(t,Math.min(n,l));a!==c&&(this.#t.value=String(c)),l!==c&&this.value.set(c)}else{let l=Math.max(t,Math.min(n,a));this.value()!==l&&this.value.set(l)}}#r(){if(!this.#t||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(t=>{let n=!1;for(let s of t)if(s.type==="attributes"&&e.includes(s.attributeName??"")){n=!0;break}n&&this.#o(!1)}),this.#i.observe(this.#t,{attributes:!0,attributeFilter:e})}#a(e){if(isNaN(e)||Math.floor(e)===e)return 0;let n=e.toString().split(".")[1];return n?n.length:0}#s(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#t&&(this.#t.oninput=null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(t,n){t&2&&N("has-input",n.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:Io,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(t,n){t&1&&(T(Ao),A(0,"div",0),u(1),F(),A(2,"div",1)(3,"div",2),C(4),F(),A(5,"div",3),Se("click",function(r){return n.trackEvent(r)}),u(6,1),A(7,"div",4),ye(8,"div",5),F(),A(9,"div",6)(10,"div",7)(11,"div",8),C(12),F()()()(),A(13,"div",9),C(14),F()()),t&2&&(p(4),nt("",n.inputState().min,"",n.unit()),p(4),G("width",n.trackFilledPercentage(),"%"),p(),G("left",n.thumbPositionPercentage(),"%"),p(3),nt("",n.value(),"",n.unit()),p(2),nt("",n.inputState().max,"",n.unit()))},encapsulation:2,changeDetection:0})}}return i})(),tr=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0})}}return i})(),da=(()=>{class i{constructor(){this.#e=y(I),this.value=m(),this.label=m(),this.asFreeText=m(!1),this.optionTitle=m(null),this.freeTextTitle=m(null),this.freeTextPlaceholder=m("Type to create a new option"),this.validateFreeText=m(),this.placeholder=m(),this.readonly=H(!1),this.disabled=H(!1),this.lazySearch=m(!1),this.inlineSearch=m(!1),this.asText=m(!1),this.isClearable=m(!0),this.selectMultiple=m(!1),this.optionTemplate=m(null),this.selectedOptionTemplate=m(null),this.placeholderTemplate=m(null),this.freeTextOptionTemplate=m(null),this.isOpen=H(!1),this.isLoading=H(!1),this.options=H([]),this.selectedOptions=H([]),this.cleared=re(),this.onAddNewFreeTextOption=re(),this.computedFreeTextOption=S(()=>{let e=this.inputValue(),t=this.value(),n=t?{}:e;return t&&typeof n=="object"&&(n[t]=e),n}),this.#i=v(null),this.inlineTemplate=Nt(it),this.optionsWrapRef=ee.required("optionsWrap"),this.inputRefInput=v(null),this.#t=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t&&(t.target.nodeName==="INPUT"||t.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new I(t.target)),this.#t.disconnect())}),this.inputValue=v(""),this.prevInputValue=v(null),this.focusedOptionIndex=v(-1),this._isClearable=S(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=S(()=>this.#e.nativeElement.classList.toString()),this.stretch=S(()=>this.selectClasses().includes("stretch")),this.small=S(()=>this.selectClasses().includes("small")),this.placeholderText=S(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=S(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(n=>this.#s(n,t)):e}),this.filteredOptions=S(()=>{let e=this.options()||[],t=this.label(),n=this.value(),s=this.inlineSearch(),r=this.inputValue().toLowerCase(),a=this.#c(r);if(e.length<=0)return[];if(!s||r==="")return e;let c=e.filter(d=>{let _=t?(this.#s(d,t)??"").toString().toLowerCase():(d??"").toString().toLowerCase(),V=((n?this.#s(d,n):d)??"").toString().toLowerCase(),B=a.test(_),ie=a.test(V);return B||ie}).map(d=>{let _=t?(this.#s(d,t)??"").toString().toLowerCase():(d??"").toString().toLowerCase(),V=((n?this.#s(d,n):d)??"").toString().toLowerCase(),B=this.#n(_,r),ie=this.#n(V,r);return{item:d,score:Math.max(B,ie)}});return c.sort((d,_)=>_.score-d.score),c.map(d=>d.item)}),this.#o=Dt(),this.inputRefEl=S(()=>{let e=this.inputRefInput();if(e===null)return;let t=e?e.nativeElement:null;return t?(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("id",`combobox-${this.#o}`),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-owns","optionsWrapId"),this.#l(t),t.addEventListener("focus",()=>{this.readonly()||this.open()}),t.addEventListener("input",n=>{let s=n.target.value,r=this.inputValue();s!==r&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),t.addEventListener("inputValueChanged",n=>{let s=n.detail.value,r=this.inputValue();if(s!==r){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromOptions(this.selectedOptions()),this.#a()}}),t):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=k(()=>{let e=this.inputRefEl();if(!e)return;let t=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);t?e.setAttribute("aria-activedescendant",t):e.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=k(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl(),s=this.asFreeText()?-1:0;if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),t.addEventListener("keydown",r=>{if((r.key==="Escape"||r.key==="Tab")&&(r.preventDefault(),this.close()),r.key==="Enter"&&(r.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),r.key==="ArrowDown"){r.preventDefault();let a=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(a>this.filteredOptions().length-1?s:a)}if(r.key==="ArrowUp"){r.preventDefault();let a=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(a<s?this.filteredOptions().length-1:a)}},{signal:this.openAbortController?.signal})}else{let t=this.inputRefEl();if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=k(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=k(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.disabled.set(e.disabled),this.setSelectedOptionsFromValue(e.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=S(()=>{let e=this.selectedOptions();return this.label()?e.map(n=>this.getLabel(n)).join(", "):e.join(", ")}),this.inputState=S(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=S(()=>this.inlineSearch()||this.lazySearch()),this.#r=k(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),n=e.map(s=>t?this.#s(s,t):s).join(",");this.inputValue.set(n)})}#e;#i;#t;#n(e,t){if(!t)return 0;let n=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let c=t[l];if(e.length>s+1&&e[s+1]===c)n+=l===0?100:150,s++,r++;else{let d=e.indexOf(c,s+1);if(l>0&&(a=!1),d===-1)return 0;n+=100,s=d,r++}}return a&&t.length===r&&(n+=1e3),n+=r*20,n}#o;#r;ngOnInit(){this.setInitInput()}setInitInput(){let e=this.#e.nativeElement.querySelector("input");if(e){this.inputRefInput.set(new I(e));return}let t=this.#e.nativeElement.querySelector("textarea");if(t){this.inputRefInput.set(new I(t));return}typeof MutationObserver<"u"&&this.#t.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(e){let t=this.options()||[],n=this.value(),s=this.selectMultiple(),r=e.toString().split(",");if(r.length===0){this.selectedOptions.set([]);return}let a=s?r:[r[0]],l=t.filter(c=>{let d=n?this.#s(c,n)?.toString():c?.toString();return d&&a.includes(d)});this.selectedOptions.set(s?l:[l[0]])}setInputValueFromOptions(e){let t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let n=e.map(s=>t?this.#s(s,t):s).join(",");n!==this.inputValue()&&(this.inputValue.set(n),this.updateInputElValue())}getValue(e){let t=this.value();return t?this.#s(e,t):e}getLabel(e){let t=this.label();return t?this.#s(e,t):e}getLabelAsSlug(e){let t=this.getLabel(e);return!t||typeof t!="string"?"":t.replaceAll(" ","-")}toggleOptionByIndex(e,t,n=!1){let s=this.filteredOptions()[e];if(this.asFreeText()&&e===-1){let _=this.computedFreeTextOption(),V=this.getValue(_);if(!(this.validateFreeText()??(te=>!0))(V))return;this.options.update(te=>te.findIndex(St=>this.getValue(St)===V)>-1?te:(this.onAddNewFreeTextOption.emit(V),[_,...te])),e=0,s=_}else if(!s){this.close();return}t&&t.stopPropagation();let r=this.selectMultiple(),a=this._isClearable(),l=this.value(),c=this.selectedOptionValues(),d=l?this.#s(s,l):s;this.prevInputValue.set(null),this.#i.set(null),this.selectedOptions.update(_=>{let V=c.indexOf(d);if(V>-1){let B=[..._.slice(0,V),..._.slice(V+1)];return a||B.length>0?B:_}else return this.focusedOptionIndex.set(e),r?[..._,s]:[s]}),r?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),r&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(n=>[...n.slice(0,t),...n.slice(t+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(e){let t=this.value(),n=this.filteredOptions()[e],s=t?this.#s(n,t):n;return this.selectedOptionValues().indexOf(s)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):this.#i.set(this.selectedOptions()),this.selectMultiple()||this.#a())}#a(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let n=this.filteredOptions().findIndex(s=>t?this.#s(s,t)===e:s===e);this.focusedOptionIndex.set(n)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue(),t=this.#i();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&t!==null&&this.setInputValueFromOptions(t),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#s(e,t){return t.split(".").reduce((n,s)=>n?.[s],e)}#l(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}#c(e){let t=(e??"").toLowerCase(),n="^";for(let s of t)n+=".*"+this.#d(s);return n+=".*$",new RegExp(n,"i")}#d(e){return e.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#t.disconnect()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-select"]],contentQueries:function(t,n,s){t&1&&wt(s,n.inlineTemplate,it,5),t&2&&ne()},viewQuery:function(t,n){t&1&&Z(n.optionsWrapRef,Fo,5),t&2&&ne()},hostVars:2,hostBindings:function(t,n){t&2&&N("multiple",n.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:ko,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(t,n){if(t&1){let s=z();T(Po),ot(0)(1)(2)(3)(4)(5)(6),h(7,"sh-popover",2,0),$e("isOpenChange",function(a){return w(s),ze(n.isOpen,a)||(n.isOpen=a),x(a)}),E("closed",function(){return w(s),x(n.close())}),h(9,"sh-form-field",3),E("click",function(){return w(s),x(n.open())}),u(10,0,["ngProjectAs","label",5,["label"]]),u(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),u(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),h(13,"div",4)(14,"div",5),b(15,Lo,1,1)(16,Qo,2,0)(17,es,2,1),u(18,3),u(19,4),g()(),b(20,ts,2,0,"sh-icon",6)(21,is,1,0,"sh-spinner",7)(22,ns,2,0,"sh-icon",6)(23,os,2,0,"sh-icon",6)(24,ss,2,0,"sh-icon",6)(25,rs,2,0,"sh-icon",6)(26,as,2,0,"sh-icon",6),g(),h(27,"div",8,1),b(29,ms,3,3),b(30,vs,2,1,"p",9),Ve(31,Ss,4,8,"li",10,je),g()()}if(t&2){oe(n.placeholderTemplate());let s=n.optionTemplate();p(),oe(n.freeTextOptionTemplate());let r=n.selectedOptionTemplate(),a=n.inlineTemplate();p();let l=oe(n.selectedOptions()),c=n.inputState();p(),oe(r||s||a),p(),oe(s||a),p();let d=oe(!n.asText()&&n.selectMultiple());p();let _=oe(n.isOpen()&&n.hasSearch()&&(d||n.inputValue().length>-1));p(),Ue("isOpen",n.isOpen),Q("disableOpenByClick",!0)("options",st(24,Ro)),p(2),N("stretch",n.stretch())("small",n.small())("readonly",n.readonly()||n.disabled()),p(4),N("show-search-text",_),p(),N("is-selected",c==="selected"),p(),M(n.asFreeText()&&n.inputValue().length>0&&!n.isOpen()?15:l.length>0?16:_?-1:17),p(5),M(c==="closed"?20:c==="loading"?21:c==="open-searching"?22:c==="searching"?23:c==="selected"&&n._isClearable()?24:c==="selected"&&!n._isClearable()?25:26),p(9),M(n.asFreeText()?29:-1),p(),M(n.optionTitle()&&n.filteredOptions().length>0?30:-1),p(),Te(n.filteredOptions())}},dependencies:[pi,Qt,Zt,_e,zs,tr,$s,Qs],encapsulation:2,changeDetection:0})}}return i})();function ir(i){let o=y(I),e=y(he),t=v(!1),n=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&t.set(o.nativeElement.classList.contains(i))})});return si(o.nativeElement,()=>{n&&n.observe(o.nativeElement,{attributes:!0}),t.set(o.nativeElement.classList.contains(i))}),e.onDestroy(()=>{n&&n.disconnect()}),t}var ua=(()=>{class i{constructor(){this.#e=y(Oe),this.#i=y(I),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=m(!1),this.isOpen=H(!1),this.isOverlay=ir("overlay"),this.#t=this.#i.nativeElement.parentElement,this.#n=this.#t.getBoundingClientRect&&this.#t.getBoundingClientRect(),this.dragImageElement=ee.required("dragImageElement"),this.dragIsEnding=v(!1),this.dragIsOnScreen=v(!0),this.isDragging=v(!1),this.dragPositionX=v(0),this.dragActualPositionX=S(()=>{let e=this.dragPositionX(),t=280,n=100,s=.008,r=t/2,a=r-n/2,l=r+n/2;if(e>l){let c=e-l,_=(t-l)*(1-Math.exp(-s*c));return l+_}else if(e<a){let c=a-e,_=a*(1-Math.exp(-s*c));return a-_}return e}),this.draggingStyle=S(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=k(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"))})}#e;#i;#t;#n;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#n.left)}#o(e){this.isDragging.set(!1),e>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)}dragEnd(e){e.clientX-this.#n.left<0&&this.#o(0),e.clientX-this.#n.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(e){e.stopPropagation(),this.#n=this.#t.getBoundingClientRect(),this.isDragging.set(!0)}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#n.left)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#n=this.#t.getBoundingClientRect(),this.dragPositionX.set(0)}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#n.left)}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#n.left)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&Z(n.dragImageElement,bs,5),t&2&&ne()},hostVars:6,hostBindings:function(t,n){t&2&&N("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:Es,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(T(Ms),b(0,ws,2,0,"div",1),b(1,xs,1,0,"div",2),A(2,"div",3),u(3),F(),A(4,"div",4),b(5,Os,1,0,"div",5),A(6,"div",6),u(7,1),F(),A(8,"main"),u(9,2),F()()),t&2&&(M(n.isOverlay()&&!n.disableDrag()?0:-1),p(),M(n.isOverlay()&&n.isDragging()?1:-1),p(3),G("transform",!n.disableDrag()&&n.draggingStyle()),p(),M(n.isOverlay()&&!n.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return i})();var ha=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-stepper"]],ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})();var pa=(()=>{class i{constructor(){this.#e=y(nr),this.shSort=m(),this.sortAsc=S(()=>{let e=this.#e.sortByColumn(),t=this.shSort();return!e||!t?!1:e===t}),this.sortDesc=S(()=>{let e=this.#e.sortByColumn(),t=this.shSort();return!e||!t?!1:e===`-${t}`})}#e;toggleSort(){let e=this.shSort();e&&this.#e.toggleSort(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=R({type:i,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(t,n){t&1&&E("mousedown",function(){return n.toggleSort()}),t&2&&N("sort-asc",n.sortAsc())("sort-desc",n.sortDesc())},inputs:{shSort:[1,"shSort"]}})}}return i})();var ke=1.5,nr=(()=>{class i{constructor(){this.#e=y(I),this.#i=y(yt,{optional:!0}),this.loading=m(!1),this.data=m([]),this.dataChange=re(),this.sortByColumn=H(null),this.currentClass=Re(),this.thead=ee("thead"),this.tbody=ee("tbody"),this.columns=qi(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=S(()=>{let e=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=k(()=>{let e=this.tbody()?.nativeElement,t=this.thead()?.nativeElement;if(!e||!t)return;let n=this.stickyHeaderHeight();queueMicrotask(()=>{let s=t.querySelectorAll("tr.sticky").length>0,r=e.querySelectorAll("tr.sticky");if(r.length>0&&s)for(let l=0;l<r.length;l++)r[l].style.top=`${n}px`})}),this.class=v(this.#i?.tableType??"default"),this.resizing=v(!1),this.sizeTrigger=v(!0),this.#t=null,this.#n=v(!1),this.scrollXState=v(-1),this.scrollYState=v(-1),this.canScrollX=v(!1),this.canScrollY=v(!1),this.columnSizes=S(()=>{this.sizeTrigger();let e=this.columns.signal();return e.reduce((t,n,s)=>{let r=n,a=r.getAttribute("size"),l=s===e.length-1;return a?`${t} ${a}`:r.classList.contains("sticky")||r.classList.contains("sticky-end")?`${t} min-content`:l?`${t} 1fr`:`${t} 1fr`},"")}),this.e=k(()=>{let e=this.sortByColumn();if(e===null)return this.#n()||(this.#t=this.data(),this.#n.set(!0)),this.dataChange.emit(structuredClone(this.#t));let t=e.startsWith("-")?e.slice(1):e,n=e.startsWith("-"),s=this.data().sort((r,a)=>{let l=r[t],c=a[t],d=0;return typeof l=="number"&&typeof c=="number"&&(d=l-c),l instanceof Date&&c instanceof Date&&(d=l.getTime()-c.getTime()),typeof l=="string"&&typeof c=="string"&&(d=l.localeCompare(c,void 0,{sensitivity:"base"})),n?-d:d});this.dataChange.emit(s)})}#e;#i;#t;#n;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#o()}onResize(e){this.#o()}ngAfterViewInit(){queueMicrotask(()=>this.#o())}toggleSort(e){let t=this.sortByColumn(),n=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(n)}#o(){let e=this.#e.nativeElement,t=-1,n=-1,s=e.scrollWidth>e.clientWidth+ke;if(s){let a=e.scrollLeft<=ke;e.scrollWidth-(e.scrollLeft+e.clientWidth)<ke?t=1:a||(t=0)}this.scrollXState.set(t),this.canScrollX.set(s);let r=e.scrollHeight>e.clientHeight+ke;if(r){let a=e.scrollTop<=ke;e.scrollHeight-(e.scrollTop+e.clientHeight)<ke?n=1:a||(n=0)}this.scrollYState.set(n),this.canScrollY.set(r)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-table"]],viewQuery:function(t,n){t&1&&(Z(n.thead,Vs,5),Z(n.tbody,Ts,5)),t&2&&ne(2)},hostVars:18,hostBindings:function(t,n){t&1&&E("scroll",function(){return n.onScroll()})("resize",function(r){return n.onResize(r)},ai),t&2&&(K(n.class()),G("grid-template-columns",n.columnSizes()),N("resizing",n.resizing())("can-scroll-x",n.canScrollX())("can-scroll-y",n.canScrollY())("scrolled-x",n.scrollXState()>=0)("scrolled-x-end",n.scrollXState()===1)("scrolled-y",n.scrollYState()>=0)("scrolled-y-end",n.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:As,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,n){t&1&&(T(Ns),b(0,Is,1,0,"sh-progress-bar",2),h(1,"thead",null,0),u(3),u(4,1),g(),h(5,"tbody",null,1),u(7,2),g(),b(8,Fs,2,0,"div",3)),t&2&&(M(n.loading()?0:-1),p(8),M(n.loading()?-1:8))},dependencies:[er],encapsulation:2,changeDetection:0})}}return i})(),fa=(()=>{class i{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(t,n){t&2&&G("--tabs-id",n.id)},ngContentSelectors:Y,decls:1,vars:0,template:function(t,n){t&1&&(T(),u(0))},encapsulation:2,changeDetection:0})}}return i})(),ga=(()=>{class i{constructor(){this.isActive=H(!1),this.disallowToggle=m(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(t,n){t&2&&N("active",n.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:ks,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(t,n){t&1&&(T(Ps),h(0,"h3",0),E("click",function(){return n.disallowToggle()||n.toggle()}),u(1,0,null,Rs,1,0),b(3,Ls,2,0,"sh-icon",1),g(),h(4,"div",2)(5,"div",3),u(6,1),g()()),t&2&&(p(3),M(n.disallowToggle()?-1:3))},dependencies:[_e],encapsulation:2,changeDetection:0})}}return i})(),ma=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-toggle"]],ngContentSelectors:Y,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,n){t&1&&(T(),A(0,"div",0),ye(1,"div",1),F(),u(2))},encapsulation:2,changeDetection:0})}}return i})();var va=(()=>{class i{constructor(){this.filesOver=v(!1),this.filesDropped=re()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=R({type:i,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(t,n){t&1&&E("dragover",function(r){return n.onDragOver(r)})("dragleave",function(r){return n.onDragLeave(r)})("drop",function(r){return n.ondrop(r)}),t&2&&N("filesover",n.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return i})();var or=(()=>{class i{constructor(){this.positionAnchorName=m.required(),this.anchorEl=m.required(),this.isOpen=m(!1),this.#e=y(I),this.#i=y(ue),this.#t=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=v(!1),this.openEffect=k(()=>{this.isOpen()?setTimeout(()=>{this.#e.nativeElement.showPopover(),this.calculateTooltipPosition()}):this.#e.nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let e=this.anchorEl().nativeElement.getBoundingClientRect(),t=this.#e.nativeElement,n=t.getBoundingClientRect();if(n.width===0&&n.height===0)return;let s=e.top-n.height<0;if(this.isBelow.set(s),!this.SUPPORTS_ANCHOR){let r=t.getBoundingClientRect(),a=e.top-r.height,l=e.left+e.width/2-r.width/2;s&&(a=e.top+e.height),l+r.width>window?.innerWidth&&(l=e.right-r.width/2),l<0&&(l=-(r.width/2)),this.#i.setStyle(t,"left",`${l}px`),this.#i.setStyle(t,"top",`${a}px`),this.#i.setStyle(t,"position","fixed")}}}#e;#i;#t;ngAfterViewInit(){this.#t=new AbortController;let e={signal:this.#t.signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,e),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:this.#t.signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){this.#t?.abort()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,n){t&2&&(ge("popover","manual"),G("position-anchor",n.positionAnchorName()),N("below",n.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(t,n){t&1&&(T(),A(0,"div",0),u(1),F())},encapsulation:2})}}return i})(),q=null,_a=(()=>{class i{constructor(){this.shTooltip=m.required(),this.#e=y(I),this.#i=y(li),this.#t=y(oi),this.#n=y(ue),this.#o=null,this.DEBOUNCE_DELAY=500,this.anchorName=`--${Dt()}`,this.isOpen=v(!1)}#e;#i;#t;#n;#o;onMouseEnter(){q?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(q?.wrapperComponentRef||!this.shTooltip())return;let e,t=this.shTooltip();if(typeof t=="string")e=[[this.#n.createText(t)]];else if(t instanceof it)this.#o=t.createEmbeddedView({}),this.#o.detectChanges(),e=[this.#o.rootNodes];else return;q={wrapperComponentRef:this.#i.createComponent(or,{environmentInjector:this.#t,projectableNodes:e}),component:this},q.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),q.wrapperComponentRef.setInput("anchorEl",this.#e),q.wrapperComponentRef?.setInput("isOpen",this.isOpen),q.wrapperComponentRef.changeDetectorRef.detectChanges(),q.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),q.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){q?.wrapperComponentRef&&(q.component.cancelCleanupTimer(),q.wrapperComponentRef.destroy(),q.component.isOpen.set(!1),q=null),this.#o&&(this.#o.destroy(),this.#o=null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=R({type:i,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(t,n){t&1&&E("mouseenter",function(){return n.onMouseEnter()})("mouseleave",function(){return n.onMouseLeave()}),t&2&&(G("anchor-name",n.anchorName),N("active",n.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}})}}return i})();export{ve as a,Qi as b,Mi as c,gi as d,Dr as e,Sr as f,Dn as g,Qe as h,_t as i,Mr as j,wn as k,Vn as l,Nn as m,In as n,ji as o,Rn as p,Bn as q,Er as r,wr as s,xr as t,_e as u,yt as v,Kr as w,Jr as x,Us as y,ea as z,ta as A,ia as B,na as C,zs as D,$s as E,oa as F,Qs as G,Zt as H,sa as I,ra as J,aa as K,er as L,la as M,ca as N,tr as O,da as P,ua as Q,ha as R,pa as S,nr as T,fa as U,ga as V,ma as W,va as X,_a as Y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as d}from"./chunk-
|
|
1
|
+
import{b as d}from"./chunk-BKANUILG.js";import{E as o,Mc as s,R as n,W as r,la as l,na as g}from"./chunk-XYHHESIX.js";var u=[{value:"Disabled",label:$localize`Disabled`},{value:"Verbose",label:$localize`Verbose`},{value:"ExplicitOnly",label:$localize`Explicit only`},{value:"Profiling",label:$localize`Profiling`},{value:"Retry",label:$localize`Retry`},{value:"Information",label:$localize`Information`},{value:"DryRun",label:$localize`Dry run`},{value:"Warning",label:$localize`Warning`},{value:"Error",label:$localize`Error`}],v=class a{#l=r(d);#e=l([]);LOG_LEVELS=u;logLevel=l("Disabled");logLevelByLabel=s(()=>u.find(e=>e.value===this.logLevel())?.label);whenFilter=l(null);backupIdFilter=l(null);id=l(0);logs=s(()=>this.whenFilter()&&this.backupIdFilter()?this.#e().filter(e=>e.BackupID===this.backupIdFilter()&&new Date(e.When).getTime()>=this.whenFilter()&&e.BackupID===this.backupIdFilter()):this.#e());timerInterval;logsLoading=l(!1);isPolling=l(!1);pagination=l({offset:0,pagesize:100});logLevelEffect=g(()=>{this.isPolling()?(this.#e.set([]),this.id.set(0),queueMicrotask(()=>this.loadLogs()),this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=setInterval(()=>{this.loadLogs()},3e3)):this.clearPolling()});setWhenFilter(e){this.whenFilter.set(e)}setBackupIdFilter(e){this.backupIdFilter.set(e)}loadLogs(){this.logsLoading.set(!0),this.#l.getApiV1LogdataPoll({id:this.id(),level:this.logLevel(),pagesize:this.pagination().pagesize}).pipe(o(()=>this.logsLoading.set(!1))).subscribe({next:e=>{let i=e.reverse(),t=this.#i(i);t>0&&this.id.set(t),this.#e.set([...i,...this.#e()])}})}updateLogLevel(e){this.logLevel.set(e),e==="Disabled"&&this.clearPolling()}#i(e){return e.reduce((i,t)=>Math.max(i,t.ID),0)}destroy(){this.logLevel.set("Disabled"),this.clearPolling()}clearPolling(){this.timerInterval&&clearInterval(this.timerInterval),this.timerInterval=void 0}static \u0275fac=function(i){return new(i||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a,f as b}from"./chunk-YDYZVJL7.js";import"./chunk-PD4KFJ3B.js";import"./chunk-T5LLH46J.js";import"./chunk-KK7TLGME.js";import"./chunk-GMNCWLGX.js";import"./chunk-B5LH4P4E.js";import"./chunk-SS7TCWY5.js";import"./chunk-U63HBLGG.js";import"./chunk-WILUKPQ3.js";import"./chunk-NEV6JB5M.js";import"./chunk-QWNOPLJC.js";import"./chunk-FBWFZMGL.js";import"./chunk-RYXU2QDS.js";import"./chunk-BKANUILG.js";import"./chunk-GO4NSDR6.js";import"./chunk-56FBKSBN.js";import"./chunk-FIBRO5I3.js";import"./chunk-RMOTUTEQ.js";import"./chunk-QF5K4MHH.js";import"./chunk-XYHHESIX.js";import"./chunk-7CGTOI24.js";export{a as createRestoreSelectFilesForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-NEV6JB5M.js";import{b as $,d as j}from"./chunk-QWNOPLJC.js";import{z as f}from"./chunk-RYXU2QDS.js";import{b}from"./chunk-BKANUILG.js";import{qa as L}from"./chunk-RMOTUTEQ.js";import{Cb as N,Cc as W,Db as C,Eb as I,Ec as G,L as E,Mc as p,Pa as R,Pb as _,Qb as w,R as h,Rb as A,Sb as P,Tb as F,W as r,cb as M,f as m,g as k,la as s,na as O}from"./chunk-XYHHESIX.js";var S=class i{reconnectTimer=s(15e3);countdown=s(0);connectTimerEffect=O(()=>{let e=this.reconnectTimer();this.countdown.set(e/1e3)});interval=setInterval(()=>{if(this.countdown()<=1){this.countdown.set(this.reconnectTimer()/1e3);return}this.countdown.set(this.countdown()-1)},1e3);ngOnDestroy(){clearInterval(this.interval)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["app-disconnected-dialog"]],decls:8,vars:4,consts:()=>{let e;e=$localize`Reconnecting...`;let t;return t=$localize` The connection to the server is lost, attempting again in ${"\uFFFD#6\uFFFD"}:START_TAG_STRONG:0:${"\uFFFD0\uFFFD"}:INTERPOLATION:${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_STRONG:`,[e,t,["header",""],["content",""]]},template:function(t,n){t&1&&(N(0,"header",2)(1,"h3"),A(2,0),C()(),N(3,"div",3)(4,"p"),_(5,1),I(6,"strong"),W(7,"number"),w(),C()()),t&2&&(R(7),P(G(7,1,n.countdown(),"2.0-0")),F(5))},dependencies:[L],styles:["[_nghost-%COMP%]{display:block;padding:1rem}"],changeDetection:0})};var v=class i{dialog=r(f);#t=r(b);#i=s("disconnected");#n=s(null);#e=s(-1);#c=s(0);#l=s(!1);#u=new k;connectionStatus=this.#i.asReadonly();serverState=this.#n.asReadonly();#s=void 0;duration=r($).relayIsEnabled()?"94s":"299s";start(){this.#l.set(!0),this.#u=new k,this.#o()}stop(){this.#u.next(),this.#u.complete(),this.#l.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){this.#l()||this.reconnect()}#o(){this.#i.set("connecting"),this.#t.getApiV1Serverstate({lastEventId:this.#e(),longpoll:this.#e()>=0,duration:this.duration}).pipe(E(this.#u)).subscribe({next:e=>{e&&this.#r(e),this.#a()},error:e=>{let n=this.#c()+1,a=Math.min(5e3*n,3e4);this.#c.set(n),n>3&&this.#i.set("disconnected"),this.#s||(this.#s=this.dialog.open(S,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1})),this.#s.component.reconnectTimer.set(a),setTimeout(()=>{this.#o()},a)}})}#r(e){this.#i.set("connected"),this.#n.set(e),this.#e.set(e.LastEventID??-1),this.#c.set(0)}#a(){this.#l()&&this.#o()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=h({token:i,factory:i.\u0275fac,providedIn:"root"})};var u=!1,T=class i{#t=r(j);#i=r(D);dialog=r(f);#n=null;#e=s("disconnected");#c=s(null);#l=s(null);#u=s(null);#s=s(null);#o=void 0;#r=s({legacystatus:!0});shouldConnect=s(!0);connectionStatus=this.#e.asReadonly();serverState=this.#c.asReadonly();serverProgress=this.#l.asReadonly();subscriptions=this.#r.asReadonly();serverTaskQueue=this.#u.asReadonly();backupListState=this.#s.asReadonly();#a=null;taskCompleted=new m(e=>{this.#a=e});#h=0;start(){this.#d(),this.shouldConnect.set(!0)}#d(){let e=this.#t.token();if(!e){console.error("No access token available");return}let t=window.location.protocol==="https:"?"wss:":"ws:",n=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(n=":8200");let a=window.location.hostname,g=this.#i.hasWebSocketAuth()?`${t}//${a}${n}/notifications`:`${t}//${a}${n}/notifications?token=${e}`;this.#e.set("connecting"),this.#n=new WebSocket(g),this.#n.onopen=()=>{u&&console.log("WebSocket connection established"),this.#i.hasWebSocketAuth()?(this.#e.set("authenticating"),this.#n?.send(JSON.stringify({Version:1,Token:e}))):this.#p()},this.#n.onmessage=d=>{if(this.#e()==="authenticating")try{let o=JSON.parse(d.data);o.Success?(u&&console.log("WebSocket authentication successful"),this.#p()):(console.error("WebSocket authentication failed:",o.Message),this.#e.set("disconnected"));return}catch(o){console.error("Error parsing WebSocket authentication reply",o),this.#e.set("disconnected");return}try{let o=JSON.parse(d.data),l=o?.Type;if(l==="legacystatus"||l==null)u&&console.log("Received legacy status update:",o),this.#c.set(o);else if(l==="reply"){let c=o;c.Success||console.error("WebSocket reply error:",c.Message)}else if(l==="progress"){let c=o;u&&console.log("Received progress update:",c.Data),this.#l.set(c.Data)}else if(l==="taskqueue"){let c=o;u&&console.log("Received task update:",c.Data),this.#u.set(c.Data)}else if(l==="taskcompleted"){let c=o;u&&console.log("Received task completed:",c.Data),this.#a?.next(c.Data)}else if(l==="backuplist"){let c=o;u&&console.log("Received backup list update:",c.Data),this.#s.set(c.Data)}else console.warn("Unknown WebSocket message type:",l)}catch(o){console.error("Error parsing WebSocket message",o)}},this.#n.onclose=d=>{u&&console.log("WebSocket connection closed",d),this.#e.set("disconnected"),this.shouldConnect()&&(this.#o||(this.#o=this.dialog.open(S,{closeOnButton:!1,closeOnEsc:!1,closeOnOutsideClick:!1}),this.#o.component.reconnectTimer.set(15e3)),setTimeout(()=>this.#d(),5e3))},this.#n.onerror=d=>{console.error("WebSocket error",d),this.#e.set("disconnected")}}#p(){this.#e.set("connected");let e=this.#r();Object.keys(e).length>0&&Object.entries(e).forEach(([t,n])=>{n!=null&&this.sendSubscribeRequest(t,n)}),this.#o&&this.#o.close()}stop(){this.shouldConnect.set(!1),this.#n?.close()}reconnect(){this.#n?.close(),this.start()}reconnectIfNeeded(){this.#n?.readyState!==WebSocket.OPEN&&this.reconnect()}sendSubscribeRequest(e,t){this.#n?.send(JSON.stringify({Version:1,Id:`req-${++this.#h}`,Action:"sub",Service:e,Data:t||null}))}subscribe(e,t=void 0){let n=this.#r(),a=n[e];(!a||JSON.stringify(a)!==JSON.stringify(t||!0))&&(n[e]=t||!0,this.#r.set(n),this.#e()=="connected"&&this.sendSubscribeRequest(e,t))}unsubscribe(e){let t=this.#r();t[e]&&(delete t[e],this.#r.set(t),this.#e()=="connected"&&this.#n?.send(JSON.stringify({Version:1,Id:`req-${++this.#h}`,Action:"unsub",Service:e})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=h({token:i,factory:i.\u0275fac,providedIn:"root"})};var x=10,q=class i{#t=r(T);#i=r(v);#n=r(b);#e=r(D);#c=s("longpoll");#l=s(!1);#u=p(()=>this.#e.hasTaskCompletedOption()&&this.#c()==="websocket");#s={};#o=null;#r=!1;#a=[];constructor(){this.#t.subscribe("taskcompleted"),this.#t.taskCompleted.subscribe(e=>{if(this.#a.unshift(e),this.#a.length>x&&this.#a.pop(),!e.ID)return;let t=this.#s[e.ID];t&&(t.forEach(n=>{n.next(e),n.complete()}),delete this.#s[e.ID])})}connectionStatus=p(()=>this.#c()==="websocket"?this.#t.connectionStatus():this.#i.connectionStatus());isConnectionMethodSet=this.#l.asReadonly();serverState=p(()=>this.#c()==="websocket"?this.#t.serverState():this.#i.serverState());progressState=this.#t.serverProgress;taskQueueState=this.#t.serverTaskQueue;activeTaskQueueState=p(()=>this.#c()==="websocket"?this.#t.serverTaskQueue()?.map(t=>t.ID).filter(t=>t)??[]:(this.#i.serverState()?.SchedulerQueueIds??[]).map(t=>t.Item1).filter(t=>t));backupListState=p(()=>this.#t.backupListState());setConnectionMethod(e){e==="websocket"?(this.#t.reconnectIfNeeded(),this.#i.stop()):(this.#i.reconnectIfNeeded(),this.#t.stop()),this.#c.set(e),this.#l.set(!0)}getConnectionMethod(){return this.#c()}subscribe(e,t=null){this.#t.subscribe(e,t)}unsubscribe(e){this.#t.unsubscribe(e)}waitForTaskToComplete(e){return new m(t=>{let n=this.#a.find(a=>a.ID===e);if(n){t.next(n),t.complete();return}this.#s[e]=this.#s[e]||[],this.#s[e].push(t),this.#h()})}#h(){this.#r||this.#u()||(this.#r=!0,this.#d())}#d(){let e=Object.keys(this.#s).map(n=>parseInt(n,10));if(e.length===0){this.#p();return}let t=Math.min(...e);this.#n.getApiV1TaskByTaskid({taskid:t}).subscribe({next:n=>{n.TaskFinished!=null&&(this.#a.unshift(n),this.#a.length>x&&this.#a.pop(),this.#s[t].forEach(g=>{g.next(n),g.complete()}),delete this.#s[t])},complete:()=>{this.#o=window.setTimeout(()=>{this.#d()},1e3)},error:n=>{this.#o=window.setTimeout(()=>{this.#d()},3e3)}})}#p(){this.#o!==null&&(clearTimeout(this.#o),this.#o=null),this.#r=!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=h({token:i,factory:i.\u0275fac,providedIn:"root"})};export{q as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as j,H as B,K as U,a as L,c as w,e as V,i as x,k as z,s as G}from"./chunk-RYXU2QDS.js";import{$ as C,Ab as a,Fb as b,Gb as P,Ib as v,Mc as m,Pa as i,Rb as g,Rc as h,Sb as _,Tb as T,Vb as y,Xb as I,Yb as D,Zb as d,aa as M,cb as f,la as r,na as c,oc as F,pc as A,qc as $,rb as E,ub as N,wb as S,wc as R,xb as O,yb as u,zb as p}from"./chunk-XYHHESIX.js";var k=[[["label"]],[["","prefix",""]],[["","suffix",""]]],J=["label","[prefix]","[suffix]"];function X(o,e){if(o&1){let t=v();p(0,"button",7),y("click",function(){let s=C(t).$implicit,l=I();return M(l.updateUnit(s.value))}),g(1,1),a()}if(o&2){let t=e.$implicit;i(),_(t.label),T(1)}}var Y=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],H=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],q=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],W=class o{customId=h();inputType=h();timespan=r(0);#e="D";unit=r(this.#e);unitLabel=m(()=>{let e=this.timeOptions(),t=e.findIndex(n=>n.value===this.unit());return e[t]?.label??this.unit()});isShortTime=m(()=>{let e=this.inputType();return e&&q.includes(e.replace("--",""))});timeOptions=m(()=>this.isShortTime()?Y:H);readonly=r(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=c(()=>{this.onChange(this.getValue())});inputTypeEffect=c(()=>{let e=this.timeOptions(),t=this.isShortTime()?"s":"D";this.#e=t,this.unit.set(t)});updateUnit(e){this.unit.set(e)}writeValue(e){let t=this.isShortTime();if(e){let n=t?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,s=e.match(n);s?(this.timespan.set(parseInt(s[1],10)),this.unit.set(s[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.readonly.set(e)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=f({type:o,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[R([{provide:L,useExisting:o,multi:!0}])],ngContentSelectors:J,decls:11,vars:6,consts:()=>{let e;e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[e,t,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(t,n){t&1&&(D(k),d(0,0,["ngProjectAs","label",5,["label"]]),p(1,"sh-form-field")(2,"input",2),$("ngModelChange",function(l){return A(n.timespan,l)||(n.timespan=l),l}),a(),d(3,1),d(4,2),a(),p(5,"sh-menu",3)(6,"button",4),g(7,0),a(),b(8,5),S(9,X,2,1,"button",6,N),P(),a()),t&2&&(i(),E("readonly",n.readonly()||void 0),i(),u("id",n.customId()),F("ngModel",n.timespan),u("disabled",n.readonly()),i(3),u("openIndicator",!0),i(2),_(n.unitLabel()),T(7),i(2),O(n.timeOptions()))},dependencies:[U,B,G,w,z,V,x,j],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as s}from"./chunk-6Q6SSTBK.js";import{
|
|
1
|
+
import{b as s}from"./chunk-6Q6SSTBK.js";import{R as c}from"./chunk-XYHHESIX.js";import{a as i}from"./chunk-7CGTOI24.js";var d=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,m=class n{generate(r,t=d){let a;do a=this.generatePassword(r,t);while(this.calculatePasswordStrength(a)<5);return a}generatePassword(r,t=d){return Array.apply(null,{length:r}).map(()=>{let a;for(;;)if(a=String.fromCharCode(s()),t.test(a))return a},this).join("")}calculatePasswordStrength(r){let t=1;return r.length>=8&&t++,r.match(/[a-z]/)&&r.match(/[A-Z]/)&&t++,r.match(/\d+/)&&t++,r.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"})};function F(n,r,t="conditional"){return a=>{if(!a.parent)return null;let e=null;if(n(a.parent)&&(e=(Array.isArray(r)?r:[r]).find(l=>l(a)!==null)??null),t&&e){let o={};o[t]=e,e=o}return e}}function y(){return n=>(n.parent&&Object.values(n.parent.controls).forEach(r=>{r!==n&&r.updateValueAndValidity()}),null)}function C(n,r,t,a="conditional"){return e=>{if(!e.parent)return null;let o={},l=e.parent.get(n);if(!l)return console.warn("Conditional field not found"),null;if(Array.isArray(r)?l.value?.includes(r):l.value===r){let f=Array.isArray(t)?t:[t];for(let A of f){let u=A(e),p=o||{};if(u!==null){o=i(i({},p),u);break}}}return o}}export{m as a,F as b,y as c,C as d};
|