homebridge-config-ui-x 5.0.0-beta.2 → 5.0.0-beta.21

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.
Files changed (156) hide show
  1. package/CHANGELOG.md +76 -5
  2. package/README.md +6 -8
  3. package/dist/bin/fork.js +17 -7
  4. package/dist/bin/fork.js.map +1 -1
  5. package/dist/bin/hb-service.js +18 -8
  6. package/dist/bin/hb-service.js.map +1 -1
  7. package/dist/bin/standalone.js +17 -7
  8. package/dist/bin/standalone.js.map +1 -1
  9. package/dist/core/auth/auth.module.js +1 -1
  10. package/dist/core/auth/auth.module.js.map +1 -1
  11. package/dist/index.js +17 -7
  12. package/dist/index.js.map +1 -1
  13. package/dist/modules/config-editor/config-editor.controller.d.ts +1 -1
  14. package/dist/modules/config-editor/config-editor.service.d.ts +1 -1
  15. package/dist/modules/plugins/plugins.service.js +2 -2
  16. package/dist/modules/plugins/plugins.service.js.map +1 -1
  17. package/package.json +25 -21
  18. package/public/3rdpartylicenses.txt +632 -606
  19. package/public/assets/hap-icons/valve-generic.svg +2 -2
  20. package/public/assets/hap-icons/valve-irrigation.svg +4 -4
  21. package/public/assets/hap-icons/valve-showerhead.svg +13 -0
  22. package/public/assets/hap-icons/valve-waterfaucet.svg +7 -0
  23. package/public/assets/plugin-ui-utils/ui.js +38 -19
  24. package/public/assets/plugin-ui-utils/ui.js.map +1 -1
  25. package/public/chunk-2DAPKUN5.js +1 -0
  26. package/public/chunk-32ESUCGF.js +1 -0
  27. package/public/chunk-3HQDWIYS.js +1 -0
  28. package/public/chunk-3O26TYAX.js +1 -0
  29. package/public/chunk-3TJ2GE2Y.js +1 -0
  30. package/public/chunk-3TW227A7.js +23 -0
  31. package/public/chunk-3U5HE6LL.js +1 -0
  32. package/public/chunk-3Z6U5O5M.js +14 -0
  33. package/public/chunk-44XAYR34.js +1 -0
  34. package/public/chunk-4JS645EV.js +1 -0
  35. package/public/chunk-5LT65NDZ.js +1 -0
  36. package/public/chunk-62UMOIOG.js +1 -0
  37. package/public/{chunk-6QEO3BTW.js → chunk-6MDI4RNQ.js} +14 -14
  38. package/public/chunk-6UMPRFLK.js +1 -0
  39. package/public/chunk-6VXGO53S.js +1 -0
  40. package/public/chunk-ADKE5LJF.js +5 -0
  41. package/public/chunk-B5VI2Y6M.js +1 -0
  42. package/public/chunk-BIXO3U6C.js +1 -0
  43. package/public/chunk-BZVO3JIQ.js +1 -0
  44. package/public/chunk-C4QSWDVR.js +8 -0
  45. package/public/chunk-CK234OHO.js +1 -0
  46. package/public/chunk-CTN2DQV5.js +1 -0
  47. package/public/chunk-DCVY3IA2.js +1 -0
  48. package/public/chunk-DKO4HAIB.js +1 -0
  49. package/public/chunk-E5FZHVEC.js +20 -0
  50. package/public/chunk-EA6RKP5G.js +1 -0
  51. package/public/chunk-EAYDVYFZ.js +1 -0
  52. package/public/chunk-EFBNPDVN.js +1 -0
  53. package/public/chunk-EXVHFPLG.js +1 -0
  54. package/public/{chunk-THFLPY67.js → chunk-F4QKTMKG.js} +1 -1
  55. package/public/chunk-F5SS6TN7.js +5 -0
  56. package/public/chunk-FRTATUBX.js +1 -0
  57. package/public/chunk-FWQXO3EP.js +1 -0
  58. package/public/chunk-GMU4IJBT.js +1 -0
  59. package/public/chunk-H3E4T6KH.js +1 -0
  60. package/public/chunk-HBGENGOA.js +1 -0
  61. package/public/chunk-HMOW3VNR.js +1 -0
  62. package/public/chunk-I5SM3GCQ.js +1 -0
  63. package/public/chunk-IDHLJZZJ.js +1 -0
  64. package/public/chunk-JZGR3WU5.js +1 -0
  65. package/public/chunk-KDJPDALB.js +7 -0
  66. package/public/chunk-KFM3IHPE.js +1 -0
  67. package/public/chunk-KMGDOXVO.js +1 -0
  68. package/public/chunk-KUG6OIB5.js +1 -0
  69. package/public/chunk-MDOAXUID.js +1 -0
  70. package/public/chunk-MMPQXC6H.js +2 -0
  71. package/public/chunk-MVS2OMCO.js +1 -0
  72. package/public/chunk-MXPZGRWK.js +1 -0
  73. package/public/chunk-N2HZUJ5D.js +1 -0
  74. package/public/chunk-NBLWBPNU.js +1 -0
  75. package/public/chunk-NIGZKKLM.js +1 -0
  76. package/public/chunk-NNKBGNWL.js +1 -0
  77. package/public/chunk-NPPEMRCU.js +1 -0
  78. package/public/chunk-NQVVIP7W.js +1 -0
  79. package/public/chunk-O2BHQ2WA.js +1 -0
  80. package/public/chunk-O2KNAZ5T.js +1 -0
  81. package/public/chunk-OVGWWGKD.js +1 -0
  82. package/public/chunk-OZTQT47N.js +1 -0
  83. package/public/chunk-P4FORPUA.js +1 -0
  84. package/public/chunk-P5WCYSBI.js +8 -0
  85. package/public/chunk-QAG66PLL.js +1 -0
  86. package/public/chunk-QHHRJOCD.js +2 -0
  87. package/public/chunk-REILQUGC.js +1 -0
  88. package/public/chunk-SEGRKPCL.js +1 -0
  89. package/public/chunk-SZD4AWYF.js +1 -0
  90. package/public/chunk-SZQRABYM.js +1 -0
  91. package/public/{chunk-GNQUXZMN.js → chunk-T6FYP7FJ.js} +1 -1
  92. package/public/chunk-TFLT3S56.js +1 -0
  93. package/public/chunk-UC6G6EJI.js +1 -0
  94. package/public/chunk-UIX722MQ.js +6 -0
  95. package/public/chunk-VPMXTLP5.js +1 -0
  96. package/public/chunk-VR52TTMY.js +4 -0
  97. package/public/chunk-WDTCTPKS.js +1 -0
  98. package/public/chunk-XB3CBRQE.js +1 -0
  99. package/public/chunk-XK4344ZY.js +32 -0
  100. package/public/chunk-XKJ6VGZO.js +1 -0
  101. package/public/chunk-Z2EXMZJ3.js +1 -0
  102. package/public/chunk-Z4CHNCHA.js +1 -0
  103. package/public/chunk-ZA2VSVJA.js +1 -0
  104. package/public/chunk-ZNOZDCL3.js +1 -0
  105. package/public/chunk-ZQQS75SA.js +1 -0
  106. package/public/index.html +2 -2
  107. package/public/main-XV4IWRJF.js +1 -0
  108. package/public/media/fa-brands-400-6PJPV6JM.woff2 +0 -0
  109. package/public/media/{fa-brands-400-CNBICIQT.ttf → fa-brands-400-KOKGDU7E.ttf} +0 -0
  110. package/public/media/{fa-regular-400-2FI4ICQD.ttf → fa-regular-400-IPMAEX5Y.ttf} +0 -0
  111. package/public/media/fa-regular-400-OHB6J4OK.woff2 +0 -0
  112. package/public/media/fa-solid-900-ABTK6BNK.woff2 +0 -0
  113. package/public/media/{fa-solid-900-XVWCCN5V.ttf → fa-solid-900-SRFFQLRM.ttf} +0 -0
  114. package/public/{polyfills-CE2SNIQF.js → polyfills-C6JHVXJJ.js} +2 -2
  115. package/public/prerendered-routes.json +3 -0
  116. package/public/styles-EG5MFQEM.css +1 -0
  117. package/public/chunk-2ZL77L5V.js +0 -5
  118. package/public/chunk-36QI2JZZ.js +0 -1
  119. package/public/chunk-4R6MSI5I.js +0 -14
  120. package/public/chunk-54RIF7BL.js +0 -1
  121. package/public/chunk-6PFEOQAC.js +0 -1
  122. package/public/chunk-AA4ALV5Q.js +0 -23
  123. package/public/chunk-B6C32ZRK.js +0 -1
  124. package/public/chunk-BROUJ7PT.js +0 -1
  125. package/public/chunk-C4DMFK2F.js +0 -1
  126. package/public/chunk-CMASH2I6.js +0 -20
  127. package/public/chunk-D63P2BMG.js +0 -4
  128. package/public/chunk-E6TKCZQK.js +0 -1
  129. package/public/chunk-EEAGROCO.js +0 -8
  130. package/public/chunk-EXLYVJ3I.js +0 -1
  131. package/public/chunk-F22FMU37.js +0 -1
  132. package/public/chunk-H7H7YVXE.js +0 -1
  133. package/public/chunk-IGUSDGD6.js +0 -8
  134. package/public/chunk-JM7QCDMZ.js +0 -1
  135. package/public/chunk-LL4U2S7T.js +0 -20
  136. package/public/chunk-MMU5EB5I.js +0 -1
  137. package/public/chunk-MQHO5ODL.js +0 -1
  138. package/public/chunk-MQOC5AAT.js +0 -1
  139. package/public/chunk-NJRXPLIM.js +0 -1
  140. package/public/chunk-NLHSKWUN.js +0 -1
  141. package/public/chunk-PCHM6ESV.js +0 -1
  142. package/public/chunk-PREOLVG7.js +0 -1
  143. package/public/chunk-RYWTZYEC.js +0 -1
  144. package/public/chunk-SJTXTMYT.js +0 -2
  145. package/public/chunk-TBJQ2Y3M.js +0 -1
  146. package/public/chunk-TCMARCBB.js +0 -1
  147. package/public/chunk-UBGLUD5C.js +0 -20
  148. package/public/chunk-V7NUKNPP.js +0 -1
  149. package/public/chunk-W5QNZH4U.js +0 -1
  150. package/public/chunk-WCDFKYP6.js +0 -5
  151. package/public/chunk-YXVNS6GA.js +0 -1
  152. package/public/main-EIMWK4RL.js +0 -6
  153. package/public/media/fa-brands-400-MDS4TU4L.woff2 +0 -0
  154. package/public/media/fa-regular-400-N56QV3DR.woff2 +0 -0
  155. package/public/media/fa-solid-900-Z3HFQTXF.woff2 +0 -0
  156. package/public/styles-7ETWN6DQ.css +0 -1
@@ -1,5 +0,0 @@
1
- import{$ as Ke,A as ts,Ba as Et,Bb as ds,C as Xe,Ca as Ui,Cb as us,D as Vi,Da as qe,Db as Ji,E as Zt,Ea as x,Fa as ji,Fb as Pe,Ga as It,Gb as hs,Ha as Ne,Hb as Ye,I as Ot,Ia as oi,Ib as ve,J as is,Ja as Tt,Jb as ci,Ka as he,Kb as Yi,L as ns,La as ri,Lb as ye,Na as V,Oa as Fe,Q as Gi,Qa as $i,R as B,Ra as Li,S as Ct,Sa as Wi,T as ei,Ta as zi,U as Mt,Ua as ct,V as $,Va as dt,W as ee,Wa as Xi,Wb as ps,X as M,Xa as os,Y as we,Ya as rs,Za as Ki,_ as u,_a as ge,a as J,aa as E,ab as q,b as ne,ba as _,bb as xe,cb as ai,db as li,ea as Hi,eb as Qe,fa as ss,fb as as,ga as de,gb as Ae,ha as ti,hb as ke,ia as ii,ib as ls,jb as qi,k as Yt,ka as ue,kb as Qi,l as Y,la as se,m as Qn,ma as ni,n as Jn,na as D,o as Yn,oa as me,p as wt,pa as L,rb as W,sb as Je,u as De,v as Zn,wa as lt,wb as cs,xa as m,y as es,ya as si,z as Z}from"./chunk-IGUSDGD6.js";var ws=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(m(Et),m(L))},e.\u0275dir=_({type:e});let i=e;return i})(),Bt=(()=>{let e=class e extends ws{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,features:[x]});let i=e;return i})(),be=new we(""),Xo={provide:be,useExisting:$(()=>Ko),multi:!0},Ko=(()=>{let e=class e extends Bt{writeValue(t){this.setProperty("checked",t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&q("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},features:[W([Xo]),x]});let i=e;return i})(),qo={provide:be,useExisting:$(()=>Os),multi:!0};function Qo(){let i=Yi()?Yi().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Jo=new we(""),Os=(()=>{let e=class e extends ws{constructor(t,n,o){super(t,n),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Qo())}writeValue(t){let n=t==null?"":t;this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(m(Et),m(L),m(Jo,8))},e.\u0275dir=_({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&q("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[W([qo]),x]});let i=e;return i})();function Be(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function Cs(i){return i!=null&&typeof i.length=="number"}var Me=new we(""),Vt=new we(""),Yo=/^(?=.{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])?)*$/,fs=class{static min(e){return Ms(e)}static max(e){return Es(e)}static required(e){return Zo(e)}static requiredTrue(e){return er(e)}static email(e){return tr(e)}static minLength(e){return ir(e)}static maxLength(e){return nr(e)}static pattern(e){return Is(e)}static nullValidator(e){return ui(e)}static compose(e){return xs(e)}static composeAsync(e){return As(e)}};function Ms(i){return e=>{if(Be(e.value)||Be(i))return null;let s=parseFloat(e.value);return!isNaN(s)&&s<i?{min:{min:i,actual:e.value}}:null}}function Es(i){return e=>{if(Be(e.value)||Be(i))return null;let s=parseFloat(e.value);return!isNaN(s)&&s>i?{max:{max:i,actual:e.value}}:null}}function Zo(i){return Be(i.value)?{required:!0}:null}function er(i){return i.value===!0?null:{required:!0}}function tr(i){return Be(i.value)||Yo.test(i.value)?null:{email:!0}}function ir(i){return e=>Be(e.value)||!Cs(e.value)?null:e.value.length<i?{minlength:{requiredLength:i,actualLength:e.value.length}}:null}function nr(i){return e=>Cs(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function Is(i){if(!i)return ui;let e,s;return typeof i=="string"?(s="",i.charAt(0)!=="^"&&(s+="^"),s+=i,i.charAt(i.length-1)!=="$"&&(s+="$"),e=new RegExp(s)):(s=i.toString(),e=i),t=>{if(Be(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:s,actualValue:n}}}}function ui(i){return null}function Ts(i){return i!=null}function Ss(i){return us(i)?Yn(i):i}function Rs(i){let e={};return i.forEach(s=>{e=s!=null?J(J({},e),s):e}),Object.keys(e).length===0?null:e}function Ns(i,e){return e.map(s=>s(i))}function sr(i){return!i.validate}function Fs(i){return i.map(e=>sr(e)?e:s=>e.validate(s))}function xs(i){if(!i)return null;let e=i.filter(Ts);return e.length==0?null:function(s){return Rs(Ns(s,e))}}function sn(i){return i!=null?xs(Fs(i)):null}function As(i){if(!i)return null;let e=i.filter(Ts);return e.length==0?null:function(s){let t=Ns(s,e).map(Ss);return es(t).pipe(De(Rs))}}function on(i){return i!=null?As(Fs(i)):null}function _s(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function ks(i){return i._rawValidators}function Ps(i){return i._rawAsyncValidators}function Zi(i){return i?Array.isArray(i)?i:[i]:[]}function hi(i,e){return Array.isArray(i)?i.includes(e):i===e}function ms(i,e){let s=Zi(e);return Zi(i).forEach(n=>{hi(s,n)||s.push(n)}),s}function gs(i,e){return Zi(e).filter(s=>!hi(i,s))}var pi=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=sn(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=on(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,s){return this.control?this.control.hasError(e,s):!1}getError(e,s){return this.control?this.control.getError(e,s):null}},Oe=class extends pi{get formDirective(){return null}get path(){return null}},Ce=class extends pi{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},fi=class{constructor(e){this._cd=e}get isTouched(){var e,s,t,n,o;return(t=(s=(e=this._cd)==null?void 0:e.control)==null?void 0:s._touched)==null||t.call(s),!!((o=(n=this._cd)==null?void 0:n.control)!=null&&o.touched)}get isUntouched(){var e,s;return!!((s=(e=this._cd)==null?void 0:e.control)!=null&&s.untouched)}get isPristine(){var e,s,t,n,o;return(t=(s=(e=this._cd)==null?void 0:e.control)==null?void 0:s._pristine)==null||t.call(s),!!((o=(n=this._cd)==null?void 0:n.control)!=null&&o.pristine)}get isDirty(){var e,s;return!!((s=(e=this._cd)==null?void 0:e.control)!=null&&s.dirty)}get isValid(){var e,s,t,n,o;return(t=(s=(e=this._cd)==null?void 0:e.control)==null?void 0:s._status)==null||t.call(s),!!((o=(n=this._cd)==null?void 0:n.control)!=null&&o.valid)}get isInvalid(){var e,s;return!!((s=(e=this._cd)==null?void 0:e.control)!=null&&s.invalid)}get isPending(){var e,s;return!!((s=(e=this._cd)==null?void 0:e.control)!=null&&s.pending)}get isSubmitted(){var e,s,t;return(s=(e=this._cd)==null?void 0:e._submitted)==null||s.call(e),!!((t=this._cd)!=null&&t.submitted)}},or={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ul=ne(J({},or),{"[class.ng-submitted]":"isSubmitted"}),jl=(()=>{let e=class e extends fi{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(m(Ce,2))},e.\u0275dir=_({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&V("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[x]});let i=e;return i})(),$l=(()=>{let e=class e extends fi{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(m(Oe,10))},e.\u0275dir=_({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&V("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[x]});let i=e;return i})();var St="VALID",di="INVALID",ut="PENDING",Rt="DISABLED",Ve=class{},_i=class extends Ve{constructor(e,s){super(),this.value=e,this.source=s}},Ft=class extends Ve{constructor(e,s){super(),this.pristine=e,this.source=s}},xt=class extends Ve{constructor(e,s){super(),this.touched=e,this.source=s}},ht=class extends Ve{constructor(e,s){super(),this.status=e,this.source=s}},en=class extends Ve{constructor(e){super(),this.source=e}},tn=class extends Ve{constructor(e){super(),this.source=e}};function rn(i){return(yi(i)?i.validators:i)||null}function rr(i){return Array.isArray(i)?sn(i):i||null}function an(i,e){return(yi(e)?e.asyncValidators:i)||null}function ar(i){return Array.isArray(i)?on(i):i||null}function yi(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Bs(i,e,s){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new Mt(1e3,"");if(!t[s])throw new Mt(1001,"")}function Vs(i,e,s){i._forEachChild((t,n)=>{if(s[n]===void 0)throw new Mt(1002,"")})}var At=class{constructor(e,s){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ye(()=>this.statusReactive()),this.statusReactive=qe(void 0),this._pristine=Ye(()=>this.pristineReactive()),this.pristineReactive=qe(!0),this._touched=Ye(()=>this.touchedReactive()),this.touchedReactive=qe(!1),this._events=new Y,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(s)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return ve(this.statusReactive)}set status(e){ve(()=>this.statusReactive.set(e))}get valid(){return this.status===St}get invalid(){return this.status===di}get pending(){return this.status==ut}get disabled(){return this.status===Rt}get enabled(){return this.status!==Rt}get pristine(){return ve(this.pristineReactive)}set pristine(e){ve(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return ve(this.touchedReactive)}set touched(e){ve(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(ms(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ms(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(gs(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(gs(e,this._rawAsyncValidators))}hasValidator(e){return hi(this._rawValidators,e)}hasAsyncValidator(e){return hi(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){var n;let s=this.touched===!1;this.touched=!0;let t=(n=e.sourceControl)!=null?n:this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ne(J({},e),{sourceControl:t})),s&&e.emitEvent!==!1&&this._events.next(new xt(!0,t))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(s=>s.markAllAsTouched(e))}markAsUntouched(e={}){var n;let s=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=(n=e.sourceControl)!=null?n:this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),s&&e.emitEvent!==!1&&this._events.next(new xt(!1,t))}markAsDirty(e={}){var n;let s=this.pristine===!0;this.pristine=!1;let t=(n=e.sourceControl)!=null?n:this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ne(J({},e),{sourceControl:t})),s&&e.emitEvent!==!1&&this._events.next(new Ft(!1,t))}markAsPristine(e={}){var n;let s=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=(n=e.sourceControl)!=null?n:this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),s&&e.emitEvent!==!1&&this._events.next(new Ft(!0,t))}markAsPending(e={}){var t;this.status=ut;let s=(t=e.sourceControl)!=null?t:this;e.emitEvent!==!1&&(this._events.next(new ht(this.status,s)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ne(J({},e),{sourceControl:s}))}disable(e={}){var n;let s=this._parentMarkedDirty(e.onlySelf);this.status=Rt,this.errors=null,this._forEachChild(o=>{o.disable(ne(J({},e),{onlySelf:!0}))}),this._updateValue();let t=(n=e.sourceControl)!=null?n:this;e.emitEvent!==!1&&(this._events.next(new _i(this.value,t)),this._events.next(new ht(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ne(J({},e),{skipPristineCheck:s}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let s=this._parentMarkedDirty(e.onlySelf);this.status=St,this._forEachChild(t=>{t.enable(ne(J({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ne(J({},e),{skipPristineCheck:s}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e,s){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},s),this._parent._updateTouched({},s))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){var t;if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===St||this.status===ut)&&this._runAsyncValidator(n,e.emitEvent)}let s=(t=e.sourceControl)!=null?t:this;e.emitEvent!==!1&&(this._events.next(new _i(this.value,s)),this._events.next(new ht(this.status,s)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ne(J({},e),{sourceControl:s}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(s=>s._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Rt:St}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,s){if(this.asyncValidator){this.status=ut,this._hasOwnPendingAsyncValidator={emitEvent:s!==!1};let t=Ss(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:s,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){var e,s;if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(s=(e=this._hasOwnPendingAsyncValidator)==null?void 0:e.emitEvent)!=null?s:!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(e,s={}){this.errors=e,this._updateControlsErrors(s.emitEvent!==!1,this,s.shouldHaveEmitted)}get(e){let s=e;return s==null||(Array.isArray(s)||(s=s.split(".")),s.length===0)?null:s.reduce((t,n)=>t&&t._find(n),this)}getError(e,s){let t=s?this.get(s):this;return t&&t.errors?t.errors[e]:null}hasError(e,s){return!!this.getError(e,s)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,s,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new ht(this.status,s)),this._parent&&this._parent._updateControlsErrors(e,s,t)}_initObservables(){this.valueChanges=new D,this.statusChanges=new D}_calculateStatus(){return this._allControlsDisabled()?Rt:this.errors?di:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ut)?ut:this._anyControlsHaveStatus(di)?di:St}_anyControlsHaveStatus(e){return this._anyControls(s=>s.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,s){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,s),n&&this._events.next(new Ft(this.pristine,s))}_updateTouched(e={},s){this.touched=this._anyControlsTouched(),this._events.next(new xt(this.touched,s)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,s)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){yi(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let s=this._parent&&this._parent.dirty;return!e&&!!s&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=rr(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ar(this._rawAsyncValidators)}},kt=class extends At{constructor(e,s,t){super(rn(s),an(t,s)),this.controls=e,this._initObservables(),this._setUpdateStrategy(s),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,s){return this.controls[e]?this.controls[e]:(this.controls[e]=s,s.setParent(this),s._registerOnCollectionChange(this._onCollectionChange),s)}addControl(e,s,t={}){this.registerControl(e,s),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,s={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}setControl(e,s,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],s&&this.registerControl(e,s),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,s={}){Vs(this,!0,e),Object.keys(e).forEach(t=>{Bs(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s)}patchValue(e,s={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s))}reset(e={},s={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:s.emitEvent})}),this._updatePristine(s,this),this._updateTouched(s,this),this.updateValueAndValidity(s)}getRawValue(){return this._reduceChildren({},(e,s,t)=>(e[t]=s.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(s,t)=>t._syncPendingControls()?!0:s);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(s=>{let t=this.controls[s];t&&e(t,s)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[s,t]of Object.entries(this.controls))if(this.contains(s)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(s,t,n)=>((t.enabled||this.disabled)&&(s[n]=t.value),s))}_reduceChildren(e,s){let t=e;return this._forEachChild((n,o)=>{t=s(t,n,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Ll=kt;var pt=new we("CallSetDisabledState",{providedIn:"root",factory:()=>bi}),bi="always";function Gs(i,e){return[...e.path,i]}function Pt(i,e,s=bi){var t,n;ln(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||s==="always")&&((n=(t=e.valueAccessor).setDisabledState)==null||n.call(t,i.disabled)),cr(i,e),ur(i,e),dr(i,e),lr(i,e)}function mi(i,e,s=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),vi(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function gi(i,e){i.forEach(s=>{s.registerOnValidatorChange&&s.registerOnValidatorChange(e)})}function lr(i,e){if(e.valueAccessor.setDisabledState){let s=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(s),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(s)})}}function ln(i,e){let s=ks(i);e.validator!==null?i.setValidators(_s(s,e.validator)):typeof s=="function"&&i.setValidators([s]);let t=Ps(i);e.asyncValidator!==null?i.setAsyncValidators(_s(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();gi(e._rawValidators,n),gi(e._rawAsyncValidators,n)}function vi(i,e){let s=!1;if(i!==null){if(e.validator!==null){let n=ks(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(r=>r!==e.validator);o.length!==n.length&&(s=!0,i.setValidators(o))}}if(e.asyncValidator!==null){let n=Ps(i);if(Array.isArray(n)&&n.length>0){let o=n.filter(r=>r!==e.asyncValidator);o.length!==n.length&&(s=!0,i.setAsyncValidators(o))}}}let t=()=>{};return gi(e._rawValidators,t),gi(e._rawAsyncValidators,t),s}function cr(i,e){e.valueAccessor.registerOnChange(s=>{i._pendingValue=s,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Hs(i,e)})}function dr(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Hs(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Hs(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ur(i,e){let s=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(s),e._registerOnDestroy(()=>{i._unregisterOnChange(s)})}function Us(i,e){i==null,ln(i,e)}function hr(i,e){return vi(i,e)}function cn(i,e){if(!i.hasOwnProperty("model"))return!1;let s=i.model;return s.isFirstChange()?!0:!Object.is(e,s.currentValue)}function pr(i){return Object.getPrototypeOf(i.constructor)===Bt}function js(i,e){i._syncPendingControls(),e.forEach(s=>{let t=s.control;t.updateOn==="submit"&&t._pendingChange&&(s.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function dn(i,e){if(!e)return null;Array.isArray(e);let s,t,n;return e.forEach(o=>{o.constructor===Os?s=o:pr(o)?t=o:n=o}),n||t||s||null}function fr(i,e){let s=i.indexOf(e);s>-1&&i.splice(s,1)}var _r={provide:Oe,useExisting:$(()=>mr)},Nt=Promise.resolve(),mr=(()=>{let e=class e extends Oe{get submitted(){return ve(this.submittedReactive)}constructor(t,n,o){super(),this.callSetDisabledState=o,this._submitted=Ye(()=>this.submittedReactive()),this.submittedReactive=qe(!1),this._directives=new Set,this.ngSubmit=new D,this.form=new kt({},sn(t),on(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Nt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Pt(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Nt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Nt.then(()=>{let n=this._findContainer(t.path),o=new kt({});Us(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Nt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){Nt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){var n;return this.submittedReactive.set(!0),js(this.form,this._directives),this.ngSubmit.emit(t),((n=t==null?void 0:t.target)==null?void 0:n.method)==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(m(Me,10),m(Vt,10),m(pt,8))},e.\u0275dir=_({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&q("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[W([_r]),x]});let i=e;return i})();function vs(i,e){let s=i.indexOf(e);s>-1&&i.splice(s,1)}function ys(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var un=class extends At{constructor(e=null,s,t){super(rn(s),an(t,s)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(s),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),yi(s)&&(s.nonNullable||s.initialValueIsDefault)&&(ys(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,s={}){this.value=this._pendingValue=e,this._onChange.length&&s.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,s.emitViewToModelChange!==!1)),this.updateValueAndValidity(s)}patchValue(e,s={}){this.setValue(e,s)}reset(e=this.defaultValue,s={}){this._applyFormState(e),this.markAsPristine(s),this.markAsUntouched(s),this.setValue(this.value,s),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){vs(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){vs(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ys(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},zl=un,gr=i=>i instanceof un;var vr={provide:Ce,useExisting:$(()=>yr)},bs=Promise.resolve(),yr=(()=>{let e=class e extends Ce{constructor(t,n,o,r,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new un,this._registered=!1,this.name="",this.update=new D,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=dn(this,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),cn(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Pt(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){bs.then(()=>{var n;this.control.setValue(t,{emitViewToModelChange:!1}),(n=this._changeDetectorRef)==null||n.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&hs(n);bs.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(r=this._changeDetectorRef)==null||r.markForCheck()})}_getPath(t){return this._parent?Gs(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(m(Oe,9),m(Me,10),m(Vt,10),m(be,10),m(Pe,8),m(pt,8))},e.\u0275dir=_({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[W([vr]),x,de]});let i=e;return i})(),Xl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),br={provide:be,useExisting:$(()=>Dr),multi:!0},Dr=(()=>{let e=class e extends Bt{writeValue(t){let n=t==null?"":t;this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&q("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[W([br]),x]});let i=e;return i})();var hn=new we(""),wr={provide:Ce,useExisting:$(()=>Or)},Or=(()=>{let e=class e extends Ce{set isDisabled(t){}constructor(t,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new D,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=dn(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&mi(n,this,!1),Pt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}cn(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&mi(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(Me,10),m(Vt,10),m(be,10),m(hn,8),m(pt,8))},e.\u0275dir=_({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[W([wr]),x,de]});let i=e;return i})(),Cr={provide:Oe,useExisting:$(()=>Mr)},Mr=(()=>{let e=class e extends Oe{get submitted(){return ve(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}constructor(t,n,o){super(),this.callSetDisabledState=o,this._submitted=Ye(()=>this._submittedReactive()),this._submittedReactive=qe(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new D,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(vi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return Pt(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){mi(t.control||null,t,!1),fr(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){var n;return this._submittedReactive.set(!0),js(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new en(this.control)),((n=t==null?void 0:t.target)==null?void 0:n.method)==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this._submittedReactive.set(!1),this.form._events.next(new tn(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(mi(n||null,t),gr(o)&&(Pt(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);Us(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&hr(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ln(this.form,this),this._oldForm&&vi(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(m(Me,10),m(Vt,10),m(pt,8))},e.\u0275dir=_({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&q("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[W([Cr]),x,de]});let i=e;return i})();var Er={provide:Ce,useExisting:$(()=>Ir)},Ir=(()=>{let e=class e extends Ce{set isDisabled(t){}constructor(t,n,o,r,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new D,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=dn(this,r)}ngOnChanges(t){this._added||this._setUpControl(),cn(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Gs(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(Oe,13),m(Me,10),m(Vt,10),m(be,10),m(hn,8))},e.\u0275dir=_({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[W([Er]),x,de]});let i=e;return i})(),Tr={provide:be,useExisting:$(()=>Ls),multi:!0};function $s(i,e){return i==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Sr(i){return i.split(":")[0]}var Ls=(()=>{let e=class e extends Bt{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n=this._getOptionId(t),o=$s(n,t);this.setProperty("value",o)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=Sr(t);return this._optionMap.has(n)?this._optionMap.get(n):t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,o){n&1&&q("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[W([Tr]),x]});let i=e;return i})(),Kl=(()=>{let e=class e{constructor(t,n,o){this._element=t,this._renderer=n,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue($s(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(m(L),m(Et),m(Ls,9))},e.\u0275dir=_({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})(),Rr={provide:be,useExisting:$(()=>Ws),multi:!0};function Ds(i,e){return i==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Nr(i){return i.split(":")[0]}var Ws=(()=>{let e=class e extends Bt{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n;if(Array.isArray(t)){let o=t.map(r=>this._getOptionId(r));n=(r,a)=>{r._setSelected(o.indexOf(a.toString())>-1)}}else n=(o,r)=>{o._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let o=[],r=n.selectedOptions;if(r!==void 0){let a=r;for(let l=0;l<a.length;l++){let d=a[l],c=this._getOptionValue(d.value);o.push(c)}}else{let a=n.options;for(let l=0;l<a.length;l++){let d=a[l];if(d.selected){let c=this._getOptionValue(d.value);o.push(c)}}}this.value=o,t(o)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=Nr(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,o){n&1&&q("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[W([Rr]),x]});let i=e;return i})(),ql=(()=>{let e=class e{constructor(t,n,o){this._element=t,this._renderer=n,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(Ds(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ds(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(m(L),m(Et),m(Ws,9))},e.\u0275dir=_({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})();function zs(i){return typeof i=="number"?i:parseFloat(i)}var pn=(()=>{let e=class e{constructor(){this._validator=ui}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):ui,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,features:[de]});let i=e;return i})(),Fr={provide:Me,useExisting:$(()=>xr),multi:!0},xr=(()=>{let e=class e extends pn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=t=>zs(t),this.createValidator=t=>Es(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&he("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[W([Fr]),x]});let i=e;return i})(),Ar={provide:Me,useExisting:$(()=>kr),multi:!0},kr=(()=>{let e=class e extends pn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>zs(t),this.createValidator=t=>Ms(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&he("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[W([Ar]),x]});let i=e;return i})();var Pr={provide:Me,useExisting:$(()=>Br),multi:!0},Br=(()=>{let e=class e extends pn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>Is(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&he("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},features:[W([Pr]),x]});let i=e;return i})();var Xs=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),nn=class extends At{constructor(e,s,t){super(rn(s),an(t,s)),this.controls=e,this._initObservables(),this._setUpdateStrategy(s),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,s={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:s.emitEvent}),this._onCollectionChange()}insert(e,s,t={}){this.controls.splice(e,0,s),this._registerControl(s),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(e,s={}){let t=this._adjustIndex(e);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:s.emitEvent})}setControl(e,s,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),s&&(this.controls.splice(n,0,s),this._registerControl(s)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,s={}){Vs(this,!1,e),e.forEach((t,n)=>{Bs(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s)}patchValue(e,s={}){e!=null&&(e.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:s.emitEvent})}),this.updateValueAndValidity(s))}reset(e=[],s={}){this._forEachChild((t,n)=>{t.reset(e[n],{onlySelf:!0,emitEvent:s.emitEvent})}),this._updatePristine(s,this),this._updateTouched(s,this),this.updateValueAndValidity(s)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(s=>s._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((s,t)=>t._syncPendingControls()?!0:s,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((s,t)=>{e(s,t)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(s=>s.enabled&&e(s))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){var s;return(s=this.at(e))!=null?s:null}},Ql=nn;var Jl=(()=>{let e=class e{static withConfig(t){var n;return{ngModule:e,providers:[{provide:pt,useValue:(n=t.callSetDisabledState)!=null?n:bi}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[Xs]});let i=e;return i})(),Yl=(()=>{let e=class e{static withConfig(t){var n,o;return{ngModule:e,providers:[{provide:hn,useValue:(n=t.warnOnNgModelWithFormControl)!=null?n:"always"},{provide:pt,useValue:(o=t.callSetDisabledState)!=null?o:bi}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[Xs]});let i=e;return i})();function Di(i){i||(ss(Di),i=u(ni));let e=new Yt(s=>i.onDestroy(s.next.bind(s)));return s=>s.pipe(B(e))}var N="top",z="bottom",G="right",A="left",wi="auto",Ge=[N,z,G,A],Ee="start",Ze="end",Ks="clippingParents",Oi="viewport",ft="popper",qs="reference",fn=Ge.reduce(function(i,e){return i.concat([e+"-"+Ee,e+"-"+Ze])},[]),Ci=[].concat(Ge,[wi]).reduce(function(i,e){return i.concat([e,e+"-"+Ee,e+"-"+Ze])},[]),Vr="beforeRead",Gr="read",Hr="afterRead",Ur="beforeMain",jr="main",$r="afterMain",Lr="beforeWrite",Wr="write",zr="afterWrite",Qs=[Vr,Gr,Hr,Ur,jr,$r,Lr,Wr,zr];function H(i){return i?(i.nodeName||"").toLowerCase():null}function I(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function oe(i){var e=I(i).Element;return i instanceof e||i instanceof Element}function k(i){var e=I(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function _t(i){if(typeof ShadowRoot>"u")return!1;var e=I(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function Xr(i){var e=i.state;Object.keys(e.elements).forEach(function(s){var t=e.styles[s]||{},n=e.attributes[s]||{},o=e.elements[s];!k(o)||!H(o)||(Object.assign(o.style,t),Object.keys(n).forEach(function(r){var a=n[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function Kr(i){var e=i.state,s={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,s.popper),e.styles=s,e.elements.arrow&&Object.assign(e.elements.arrow.style,s.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:s[t]),a=r.reduce(function(l,d){return l[d]="",l},{});!k(n)||!H(n)||(Object.assign(n.style,a),Object.keys(o).forEach(function(l){n.removeAttribute(l)}))})}}var Js={name:"applyStyles",enabled:!0,phase:"write",fn:Xr,effect:Kr,requires:["computeStyles"]};function U(i){return i.split("-")[0]}var pe=Math.max,et=Math.min,Ie=Math.round;function mt(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gt(){return!/^((?!chrome|android).)*safari/i.test(mt())}function re(i,e,s){e===void 0&&(e=!1),s===void 0&&(s=!1);var t=i.getBoundingClientRect(),n=1,o=1;e&&k(i)&&(n=i.offsetWidth>0&&Ie(t.width)/i.offsetWidth||1,o=i.offsetHeight>0&&Ie(t.height)/i.offsetHeight||1);var r=oe(i)?I(i):window,a=r.visualViewport,l=!Gt()&&s,d=(t.left+(l&&a?a.offsetLeft:0))/n,c=(t.top+(l&&a?a.offsetTop:0))/o,f=t.width/n,p=t.height/o;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function tt(i){var e=re(i),s=i.offsetWidth,t=i.offsetHeight;return Math.abs(e.width-s)<=1&&(s=e.width),Math.abs(e.height-t)<=1&&(t=e.height),{x:i.offsetLeft,y:i.offsetTop,width:s,height:t}}function Ht(i,e){var s=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(s&&_t(s)){var t=e;do{if(t&&i.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function te(i){return I(i).getComputedStyle(i)}function _n(i){return["table","td","th"].indexOf(H(i))>=0}function X(i){return((oe(i)?i.ownerDocument:i.document)||window.document).documentElement}function Te(i){return H(i)==="html"?i:i.assignedSlot||i.parentNode||(_t(i)?i.host:null)||X(i)}function Ys(i){return!k(i)||te(i).position==="fixed"?null:i.offsetParent}function qr(i){var e=/firefox/i.test(mt()),s=/Trident/i.test(mt());if(s&&k(i)){var t=te(i);if(t.position==="fixed")return null}var n=Te(i);for(_t(n)&&(n=n.host);k(n)&&["html","body"].indexOf(H(n))<0;){var o=te(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function fe(i){for(var e=I(i),s=Ys(i);s&&_n(s)&&te(s).position==="static";)s=Ys(s);return s&&(H(s)==="html"||H(s)==="body"&&te(s).position==="static")?e:s||qr(i)||e}function it(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function nt(i,e,s){return pe(i,et(e,s))}function Zs(i,e,s){var t=nt(i,e,s);return t>s?s:t}function Ut(){return{top:0,right:0,bottom:0,left:0}}function jt(i){return Object.assign({},Ut(),i)}function $t(i,e){return e.reduce(function(s,t){return s[t]=i,s},{})}var Qr=function(e,s){return e=typeof e=="function"?e(Object.assign({},s.rects,{placement:s.placement})):e,jt(typeof e!="number"?e:$t(e,Ge))};function Jr(i){var e,s=i.state,t=i.name,n=i.options,o=s.elements.arrow,r=s.modifiersData.popperOffsets,a=U(s.placement),l=it(a),d=[A,G].indexOf(a)>=0,c=d?"height":"width";if(!(!o||!r)){var f=Qr(n.padding,s),p=tt(o),h=l==="y"?N:A,v=l==="y"?z:G,b=s.rects.reference[c]+s.rects.reference[l]-r[l]-s.rects.popper[c],y=r[l]-s.rects.reference[l],C=fe(o),S=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,R=b/2-y/2,g=f[h],w=S-p[c]-f[v],O=S/2-p[c]/2+R,T=nt(g,O,w),j=l;s.modifiersData[t]=(e={},e[j]=T,e.centerOffset=T-O,e)}}function Yr(i){var e=i.state,s=i.options,t=s.element,n=t===void 0?"[data-popper-arrow]":t;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||Ht(e.elements.popper,n)&&(e.elements.arrow=n))}var mn={name:"arrow",enabled:!0,phase:"main",fn:Jr,effect:Yr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(i){return i.split("-")[1]}var Zr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ea(i,e){var s=i.x,t=i.y,n=e.devicePixelRatio||1;return{x:Ie(s*n)/n||0,y:Ie(t*n)/n||0}}function eo(i){var e,s=i.popper,t=i.popperRect,n=i.placement,o=i.variation,r=i.offsets,a=i.position,l=i.gpuAcceleration,d=i.adaptive,c=i.roundOffsets,f=i.isFixed,p=r.x,h=p===void 0?0:p,v=r.y,b=v===void 0?0:v,y=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=y.x,b=y.y;var C=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),R=A,g=N,w=window;if(d){var O=fe(s),T="clientHeight",j="clientWidth";if(O===I(s)&&(O=X(s),te(O).position!=="static"&&a==="absolute"&&(T="scrollHeight",j="scrollWidth")),O=O,n===N||(n===A||n===G)&&o===Ze){g=z;var P=f&&O===w&&w.visualViewport?w.visualViewport.height:O[T];b-=P-t.height,b*=l?1:-1}if(n===A||(n===N||n===z)&&o===Ze){R=G;var F=f&&O===w&&w.visualViewport?w.visualViewport.width:O[j];h-=F-t.width,h*=l?1:-1}}var K=Object.assign({position:a},d&&Zr),le=c===!0?ea({x:h,y:b},I(s)):{x:h,y:b};if(h=le.x,b=le.y,l){var Q;return Object.assign({},K,(Q={},Q[g]=S?"0":"",Q[R]=C?"0":"",Q.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",Q))}return Object.assign({},K,(e={},e[g]=S?b+"px":"",e[R]=C?h+"px":"",e.transform="",e))}function ta(i){var e=i.state,s=i.options,t=s.gpuAcceleration,n=t===void 0?!0:t,o=s.adaptive,r=o===void 0?!0:o,a=s.roundOffsets,l=a===void 0?!0:a,d={placement:U(e.placement),variation:ae(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,eo(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,eo(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var to={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ta,data:{}};var Mi={passive:!0};function ia(i){var e=i.state,s=i.instance,t=i.options,n=t.scroll,o=n===void 0?!0:n,r=t.resize,a=r===void 0?!0:r,l=I(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(c){c.addEventListener("scroll",s.update,Mi)}),a&&l.addEventListener("resize",s.update,Mi),function(){o&&d.forEach(function(c){c.removeEventListener("scroll",s.update,Mi)}),a&&l.removeEventListener("resize",s.update,Mi)}}var io={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ia,data:{}};var na={left:"right",right:"left",bottom:"top",top:"bottom"};function gt(i){return i.replace(/left|right|bottom|top/g,function(e){return na[e]})}var sa={start:"end",end:"start"};function Ei(i){return i.replace(/start|end/g,function(e){return sa[e]})}function st(i){var e=I(i),s=e.pageXOffset,t=e.pageYOffset;return{scrollLeft:s,scrollTop:t}}function ot(i){return re(X(i)).left+st(i).scrollLeft}function gn(i,e){var s=I(i),t=X(i),n=s.visualViewport,o=t.clientWidth,r=t.clientHeight,a=0,l=0;if(n){o=n.width,r=n.height;var d=Gt();(d||!d&&e==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:o,height:r,x:a+ot(i),y:l}}function vn(i){var e,s=X(i),t=st(i),n=(e=i.ownerDocument)==null?void 0:e.body,o=pe(s.scrollWidth,s.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=pe(s.scrollHeight,s.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-t.scrollLeft+ot(i),l=-t.scrollTop;return te(n||s).direction==="rtl"&&(a+=pe(s.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function rt(i){var e=te(i),s=e.overflow,t=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(s+n+t)}function Ii(i){return["html","body","#document"].indexOf(H(i))>=0?i.ownerDocument.body:k(i)&&rt(i)?i:Ii(Te(i))}function He(i,e){var s;e===void 0&&(e=[]);var t=Ii(i),n=t===((s=i.ownerDocument)==null?void 0:s.body),o=I(t),r=n?[o].concat(o.visualViewport||[],rt(t)?t:[]):t,a=e.concat(r);return n?a:a.concat(He(Te(r)))}function vt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function oa(i,e){var s=re(i,!1,e==="fixed");return s.top=s.top+i.clientTop,s.left=s.left+i.clientLeft,s.bottom=s.top+i.clientHeight,s.right=s.left+i.clientWidth,s.width=i.clientWidth,s.height=i.clientHeight,s.x=s.left,s.y=s.top,s}function no(i,e,s){return e===Oi?vt(gn(i,s)):oe(e)?oa(e,s):vt(vn(X(i)))}function ra(i){var e=He(Te(i)),s=["absolute","fixed"].indexOf(te(i).position)>=0,t=s&&k(i)?fe(i):i;return oe(t)?e.filter(function(n){return oe(n)&&Ht(n,t)&&H(n)!=="body"}):[]}function yn(i,e,s,t){var n=e==="clippingParents"?ra(i):[].concat(e),o=[].concat(n,[s]),r=o[0],a=o.reduce(function(l,d){var c=no(i,d,t);return l.top=pe(c.top,l.top),l.right=et(c.right,l.right),l.bottom=et(c.bottom,l.bottom),l.left=pe(c.left,l.left),l},no(i,r,t));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Lt(i){var e=i.reference,s=i.element,t=i.placement,n=t?U(t):null,o=t?ae(t):null,r=e.x+e.width/2-s.width/2,a=e.y+e.height/2-s.height/2,l;switch(n){case N:l={x:r,y:e.y-s.height};break;case z:l={x:r,y:e.y+e.height};break;case G:l={x:e.x+e.width,y:a};break;case A:l={x:e.x-s.width,y:a};break;default:l={x:e.x,y:e.y}}var d=n?it(n):null;if(d!=null){var c=d==="y"?"height":"width";switch(o){case Ee:l[d]=l[d]-(e[c]/2-s[c]/2);break;case Ze:l[d]=l[d]+(e[c]/2-s[c]/2);break;default:}}return l}function Ue(i,e){e===void 0&&(e={});var s=e,t=s.placement,n=t===void 0?i.placement:t,o=s.strategy,r=o===void 0?i.strategy:o,a=s.boundary,l=a===void 0?Ks:a,d=s.rootBoundary,c=d===void 0?Oi:d,f=s.elementContext,p=f===void 0?ft:f,h=s.altBoundary,v=h===void 0?!1:h,b=s.padding,y=b===void 0?0:b,C=jt(typeof y!="number"?y:$t(y,Ge)),S=p===ft?qs:ft,R=i.rects.popper,g=i.elements[v?S:p],w=yn(oe(g)?g:g.contextElement||X(i.elements.popper),l,c,r),O=re(i.elements.reference),T=Lt({reference:O,element:R,strategy:"absolute",placement:n}),j=vt(Object.assign({},R,T)),P=p===ft?j:O,F={top:w.top-P.top+C.top,bottom:P.bottom-w.bottom+C.bottom,left:w.left-P.left+C.left,right:P.right-w.right+C.right},K=i.modifiersData.offset;if(p===ft&&K){var le=K[n];Object.keys(F).forEach(function(Q){var je=[G,z].indexOf(Q)>=0?1:-1,$e=[N,z].indexOf(Q)>=0?"y":"x";F[Q]+=le[$e]*je})}return F}function bn(i,e){e===void 0&&(e={});var s=e,t=s.placement,n=s.boundary,o=s.rootBoundary,r=s.padding,a=s.flipVariations,l=s.allowedAutoPlacements,d=l===void 0?Ci:l,c=ae(t),f=c?a?fn:fn.filter(function(v){return ae(v)===c}):Ge,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,b){return v[b]=Ue(i,{placement:b,boundary:n,rootBoundary:o,padding:r})[U(b)],v},{});return Object.keys(h).sort(function(v,b){return h[v]-h[b]})}function aa(i){if(U(i)===wi)return[];var e=gt(i);return[Ei(i),e,Ei(e)]}function la(i){var e=i.state,s=i.options,t=i.name;if(!e.modifiersData[t]._skip){for(var n=s.mainAxis,o=n===void 0?!0:n,r=s.altAxis,a=r===void 0?!0:r,l=s.fallbackPlacements,d=s.padding,c=s.boundary,f=s.rootBoundary,p=s.altBoundary,h=s.flipVariations,v=h===void 0?!0:h,b=s.allowedAutoPlacements,y=e.options.placement,C=U(y),S=C===y,R=l||(S||!v?[gt(y)]:aa(y)),g=[y].concat(R).reduce(function(at,Re){return at.concat(U(Re)===wi?bn(e,{placement:Re,boundary:c,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:b}):Re)},[]),w=e.rects.reference,O=e.rects.popper,T=new Map,j=!0,P=g[0],F=0;F<g.length;F++){var K=g[F],le=U(K),Q=ae(K)===Ee,je=[N,z].indexOf(le)>=0,$e=je?"width":"height",ie=Ue(e,{placement:K,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),ce=je?Q?G:A:Q?z:N;w[$e]>O[$e]&&(ce=gt(ce));var Xt=gt(ce),Le=[];if(o&&Le.push(ie[le]<=0),a&&Le.push(ie[ce]<=0,ie[Xt]<=0),Le.every(function(at){return at})){P=K,j=!1;break}T.set(K,Le)}if(j)for(var Kt=v?3:1,Ai=function(Re){var Dt=g.find(function(Qt){var We=T.get(Qt);if(We)return We.slice(0,Re).every(function(ki){return ki})});if(Dt)return P=Dt,"break"},bt=Kt;bt>0;bt--){var qt=Ai(bt);if(qt==="break")break}e.placement!==P&&(e.modifiersData[t]._skip=!0,e.placement=P,e.reset=!0)}}var Dn={name:"flip",enabled:!0,phase:"main",fn:la,requiresIfExists:["offset"],data:{_skip:!1}};function ca(i,e,s){var t=U(i),n=[A,N].indexOf(t)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},e,{placement:i})):s,r=o[0],a=o[1];return r=r||0,a=(a||0)*n,[A,G].indexOf(t)>=0?{x:a,y:r}:{x:r,y:a}}function da(i){var e=i.state,s=i.options,t=i.name,n=s.offset,o=n===void 0?[0,0]:n,r=Ci.reduce(function(c,f){return c[f]=ca(f,e.rects,o),c},{}),a=r[e.placement],l=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[t]=r}var wn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:da};function ua(i){var e=i.state,s=i.name;e.modifiersData[s]=Lt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var so={name:"popperOffsets",enabled:!0,phase:"read",fn:ua,data:{}};function On(i){return i==="x"?"y":"x"}function ha(i){var e=i.state,s=i.options,t=i.name,n=s.mainAxis,o=n===void 0?!0:n,r=s.altAxis,a=r===void 0?!1:r,l=s.boundary,d=s.rootBoundary,c=s.altBoundary,f=s.padding,p=s.tether,h=p===void 0?!0:p,v=s.tetherOffset,b=v===void 0?0:v,y=Ue(e,{boundary:l,rootBoundary:d,padding:f,altBoundary:c}),C=U(e.placement),S=ae(e.placement),R=!S,g=it(C),w=On(g),O=e.modifiersData.popperOffsets,T=e.rects.reference,j=e.rects.popper,P=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,F=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,le={x:0,y:0};if(O){if(o){var Q,je=g==="y"?N:A,$e=g==="y"?z:G,ie=g==="y"?"height":"width",ce=O[g],Xt=ce+y[je],Le=ce-y[$e],Kt=h?-j[ie]/2:0,Ai=S===Ee?T[ie]:j[ie],bt=S===Ee?-j[ie]:-T[ie],qt=e.elements.arrow,at=h&&qt?tt(qt):{width:0,height:0},Re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ut(),Dt=Re[je],Qt=Re[$e],We=nt(0,T[ie],at[ie]),ki=R?T[ie]/2-Kt-We-Dt-F.mainAxis:Ai-We-Dt-F.mainAxis,Ho=R?-T[ie]/2+Kt+We+Qt+F.mainAxis:bt+We+Qt+F.mainAxis,Pi=e.elements.arrow&&fe(e.elements.arrow),Uo=Pi?g==="y"?Pi.clientTop||0:Pi.clientLeft||0:0,Un=(Q=K==null?void 0:K[g])!=null?Q:0,jo=ce+ki-Un-Uo,$o=ce+Ho-Un,jn=nt(h?et(Xt,jo):Xt,ce,h?pe(Le,$o):Le);O[g]=jn,le[g]=jn-ce}if(a){var $n,Lo=g==="x"?N:A,Wo=g==="x"?z:G,ze=O[w],Jt=w==="y"?"height":"width",Ln=ze+y[Lo],Wn=ze-y[Wo],Bi=[N,A].indexOf(C)!==-1,zn=($n=K==null?void 0:K[w])!=null?$n:0,Xn=Bi?Ln:ze-T[Jt]-j[Jt]-zn+F.altAxis,Kn=Bi?ze+T[Jt]+j[Jt]-zn-F.altAxis:Wn,qn=h&&Bi?Zs(Xn,ze,Kn):nt(h?Xn:Ln,ze,h?Kn:Wn);O[w]=qn,le[w]=qn-ze}e.modifiersData[t]=le}}var Cn={name:"preventOverflow",enabled:!0,phase:"main",fn:ha,requiresIfExists:["offset"]};function Mn(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function En(i){return i===I(i)||!k(i)?st(i):Mn(i)}function pa(i){var e=i.getBoundingClientRect(),s=Ie(e.width)/i.offsetWidth||1,t=Ie(e.height)/i.offsetHeight||1;return s!==1||t!==1}function In(i,e,s){s===void 0&&(s=!1);var t=k(e),n=k(e)&&pa(e),o=X(e),r=re(i,n,s),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(t||!t&&!s)&&((H(e)!=="body"||rt(o))&&(a=En(e)),k(e)?(l=re(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=ot(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function fa(i){var e=new Map,s=new Set,t=[];i.forEach(function(o){e.set(o.name,o)});function n(o){s.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!s.has(a)){var l=e.get(a);l&&n(l)}}),t.push(o)}return i.forEach(function(o){s.has(o.name)||n(o)}),t}function Tn(i){var e=fa(i);return Qs.reduce(function(s,t){return s.concat(e.filter(function(n){return n.phase===t}))},[])}function Sn(i){var e;return function(){return e||(e=new Promise(function(s){Promise.resolve().then(function(){e=void 0,s(i())})})),e}}function Rn(i){var e=i.reduce(function(s,t){var n=s[t.name];return s[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,s},{});return Object.keys(e).map(function(s){return e[s]})}var oo={placement:"bottom",modifiers:[],strategy:"absolute"};function ro(){for(var i=arguments.length,e=new Array(i),s=0;s<i;s++)e[s]=arguments[s];return!e.some(function(t){return!(t&&typeof t.getBoundingClientRect=="function")})}function ao(i){i===void 0&&(i={});var e=i,s=e.defaultModifiers,t=s===void 0?[]:s,n=e.defaultOptions,o=n===void 0?oo:n;return function(a,l,d){d===void 0&&(d=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},oo,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(C){var S=typeof C=="function"?C(c.options):C;b(),c.options=Object.assign({},o,c.options,S),c.scrollParents={reference:oe(a)?He(a):a.contextElement?He(a.contextElement):[],popper:He(l)};var R=Tn(Rn([].concat(t,c.options.modifiers)));return c.orderedModifiers=R.filter(function(g){return g.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var C=c.elements,S=C.reference,R=C.popper;if(ro(S,R)){c.rects={reference:In(S,fe(R),c.options.strategy==="fixed"),popper:tt(R)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var g=0;g<c.orderedModifiers.length;g++){if(c.reset===!0){c.reset=!1,g=-1;continue}var w=c.orderedModifiers[g],O=w.fn,T=w.options,j=T===void 0?{}:T,P=w.name;typeof O=="function"&&(c=O({state:c,options:j,name:P,instance:h})||c)}}}},update:Sn(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){b(),p=!0}};if(!ro(a,l))return h;h.setOptions(d).then(function(y){!p&&d.onFirstUpdate&&d.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var C=y.name,S=y.options,R=S===void 0?{}:S,g=y.effect;if(typeof g=="function"){var w=g({state:c,name:C,instance:h,options:R}),O=function(){};f.push(w||O)}})}function b(){f.forEach(function(y){return y()}),f=[]}return h}}var _a=[io,so,to,Js],Nn=ao({defaultModifiers:_a});var kn=["*"];function ma(i,e){if(i&1){let s=Ki();ct(0,"button",1),q("click",function(){ti(s);let n=xe();return ii(n.close())}),dt()}}var ga=["dialog"];function va(i,e){if(i&1&&(ct(0,"span"),qi(1),dt()),i&2){let s=xe().$implicit,t=xe();Fe(t.highlightClass),lt(),Qi(s)}}function ya(i,e){if(i&1&&(os(0),qi(1),rs()),i&2){let s=xe().$implicit;lt(),Qi(s)}}function ba(i,e){if(i&1&&It(0,va,2,4,"span",0)(1,ya,2,1,"ng-container"),i&2){let s=e.$index;$i(s%2!==0?0:1)}}var Da=(i,e,s)=>({result:i,term:e,formatter:s});function wa(i,e){if(i&1&&Xi(0,"ngb-highlight",2),i&2){let s=e.result,t=e.term,n=e.formatter;ri("result",n(s))("term",t)}}function Oa(i,e){}function Ca(i,e){if(i&1){let s=Ki();ct(0,"button",3),q("mouseenter",function(){let n=ti(s).$index,o=xe();return ii(o.markActive(n))})("click",function(){let n=ti(s).$implicit,o=xe();return ii(o.select(n))}),It(1,Oa,0,0,"ng-template",4),dt()}if(i&2){let s=e.$implicit,t=e.$index,n=xe(),o=ls(1);V("active",t===n.activeIdx),ri("id",n.id+"-"+t),lt(),ri("ngTemplateOutlet",n.resultTemplate||o)("ngTemplateOutletContext",cs(5,Da,s,n.term,n.formatter))}}var _o={animation:!0,transitionTimerDelayMs:5},zt=(()=>{let e=class e{constructor(){this.animation=_o.animation}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Ma=(()=>{let e=class e{constructor(){this._ngbConfig=u(zt),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){var t;return(t=this._animation)!=null?t:this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Ea(i){let{transitionDelay:e,transitionDuration:s}=window.getComputedStyle(i),t=parseFloat(e),n=parseFloat(s);return(t+n)*1e3}function Wt(i){return i!=null?`${i}`:""}function xi(i){return typeof i=="string"}function Ri(i){return i!=null}function Ia(i){return i&&i.then}function Ta(i){return i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Sa(i,e){return!e||typeof i.closest>"u"?null:i.closest(e)}function Pn(i){return(i||document.body).getBoundingClientRect()}function Ra(i){return e=>new Yt(s=>{let t=r=>i.run(()=>s.next(r)),n=r=>i.run(()=>s.error(r)),o=()=>i.run(()=>s.complete());return e.subscribe({next:t,error:n,complete:o})})}function lo(i){return i.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function mo(i=document){let e=i==null?void 0:i.activeElement;return e?e.shadowRoot?mo(e.shadowRoot):e:null}var Na=()=>{},{transitionTimerDelayMs:Fa}=_o,Ti=new Map,_e=(i,e,s,t)=>{let n=t.context||{},o=Ti.get(e);if(o)switch(t.runningTransition){case"continue":return Jn;case"stop":i.run(()=>o.transition$.complete()),n=Object.assign(o.context,n),Ti.delete(e)}let r=s(e,t.animation,n)||Na;if(!t.animation||window.getComputedStyle(e).transitionProperty==="none")return i.run(()=>r()),wt(void 0).pipe(Ra(i));let a=new Y,l=new Y,d=a.pipe(ns(!0));Ti.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:n});let c=Ea(e);return i.runOutsideAngular(()=>{let f=Z(e,"transitionend").pipe(B(d),Xe(({target:h})=>h===e)),p=ts(c+Fa).pipe(B(d));Vi(p,f,l).pipe(B(d)).subscribe(()=>{Ti.delete(e),i.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function xa(i,e){if(typeof navigator>"u")return"0px";let{classList:s}=i,t=s.contains("show");t||s.add("show"),i.style[e]="";let n=i.getBoundingClientRect()[e]+"px";return t||s.remove("show"),n}var Aa=(i,e,s)=>{let{direction:t,maxSize:n,dimension:o}=s,{classList:r}=i;function a(){r.add("collapse"),t==="show"?r.add("show"):r.remove("show")}if(!e){a();return}return n||(n=xa(i,o),s.maxSize=n,i.style[o]=t!=="show"?n:"0px",r.remove("collapse","collapsing","show"),Pn(i),r.add("collapsing")),i.style[o]=t==="show"?n:"0px",()=>{a(),r.remove("collapsing"),i.style[o]=""}},ka=(()=>{let e=class e{constructor(){this._ngbConfig=u(zt),this.horizontal=!1}get animation(){var t;return(t=this._animation)!=null?t:this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),co=(()=>{let e=class e{constructor(){this._config=u(ka),this._element=u(L),this._zone=u(me),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new D,this.horizontal=this._config.horizontal,this.shown=new D,this.hidden=new D}set collapsed(t){this._isCollapsed!==t&&(this._isCollapsed=t,this._afterInit&&this._runTransitionWithEvents(t,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(t=this._isCollapsed){this.collapsed=!t,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(t,n){return _e(this._zone,this._element.nativeElement,Aa,{animation:n,runningTransition:"stop",context:{direction:t?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(t,n){this._runTransition(t,n).subscribe(()=>{t?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(n,o){n&2&&V("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let i=e;return i})(),Pa=0,jp=(()=>{let e=class e{constructor(){this._vcr=u(Ui),this._element=u(L).nativeElement,this._item=u(yt),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){var t;(t=this._viewRef)==null||t.destroy(),this._viewRef=null}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(let t of this._viewRef.rootNodes)this._element.appendChild(t)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(n,o,r){if(n&1&&Qe(r,si,7),n&2){let a;Ae(a=ke())&&(o._bodyTpl=a.first)}},hostAttrs:[1,"accordion-body"],standalone:!0});let i=e;return i})(),Ba=(()=>{let e=class e{constructor(){this.item=u(yt),this.ngbCollapse=u(co)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(n,o){n&2&&(ge("id",o.item.collapseId),he("aria-labelledby",o.item.toggleId))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[ji([co])]});let i=e;return i})(),Va=(()=>{let e=class e{constructor(){this.item=u(yt),this.accordion=u(go)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(n,o){n&1&&q("click",function(){return!o.item.disabled&&o.accordion.toggle(o.item.id)}),n&2&&(ge("id",o.item.toggleId),he("aria-controls",o.item.collapseId)("aria-expanded",!o.item.collapsed),V("collapsed",o.item.collapsed))},standalone:!0});let i=e;return i})(),$p=(()=>{let e=class e{constructor(){this.item=u(yt)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button",1,"accordion-button"],hostVars:1,hostBindings:function(n,o){n&2&&ge("disabled",o.item.disabled)},standalone:!0,features:[ji([Va])]});let i=e;return i})(),Lp=(()=>{let e=class e{constructor(){this.item=u(yt)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(n,o){n&2&&V("collapsed",o.item.collapsed)},standalone:!0});let i=e;return i})(),yt=(()=>{let e=class e{constructor(){this._accordion=u(go),this._cd=u(Pe),this._destroyRef=u(ni),this._collapsed=!0,this._id=`ngb-accordion-item-${Pa++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new D,this.shown=new D,this.hide=new D,this.hidden=new D}set id(t){xi(t)&&t!==""&&(this._id=t)}set destroyOnHide(t){this._destroyOnHide=t}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(t){t?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:t}=this._collapse;t.animation=!1,t.collapsed=this.collapsed,t.animation=this._accordion.animation,t.hidden.pipe(Di(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),t.shown.pipe(Di(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(n,o,r){if(n&1&&Qe(r,Ba,7),n&2){let a;Ae(a=ke())&&(o._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(n,o){n&2&&ge("id",o.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0});let i=e;return i})(),go=(()=>{let e=class e{constructor(){this._config=u(Ma),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new D,this.shown=new D,this.hide=new D,this.hidden=new D}toggle(t){var n;(n=this._getItem(t))==null||n.toggle()}expand(t){var n;(n=this._getItem(t))==null||n.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(t=>!t.collapsed)||this._items.first.expand():this._items.forEach(t=>t.expand()))}collapse(t){var n;(n=this._getItem(t))==null||n.collapse()}collapseAll(){var t;(t=this._items)==null||t.forEach(n=>n.collapse())}isExpanded(t){let n=this._getItem(t);return n?!n.collapsed:!1}_ensureCanExpand(t){var n;return this.closeOthers?this._items?((n=this._items.find(o=>!o.collapsed&&t!==o))==null||n.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(t){var n;return(n=this._items)==null?void 0:n.find(o=>o.id===t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(n,o,r){if(n&1&&Qe(r,yt,4),n&2){let a;Ae(a=ke())&&(o._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0});let i=e;return i})();var vo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),Ga=(()=>{let e=class e{constructor(){this._ngbConfig=u(zt),this.dismissible=!0,this.type="warning"}get animation(){var t;return(t=this._animation)!=null?t:this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Ha=({classList:i})=>{i.remove("show")},Wp=(()=>{let e=class e{constructor(){this._config=u(Ga),this._elementRef=u(L),this._zone=u(me),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new D}close(){let t=_e(this._zone,this._elementRef.nativeElement,Ha,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(n,o){n&2&&(Fe("alert show"+(o.type?" alert-"+o.type:"")),V("fade",o.animation)("alert-dismissible",o.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],standalone:!0,features:[Je],ngContentSelectors:kn,decls:2,vars:1,consts:()=>{let t;return t=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",t,1,"btn-close"],["type","button","aria-label",t,1,"btn-close",3,"click"]]},template:function(n,o){n&1&&(ai(),li(0),It(1,ma,1,0,"button",0)),n&2&&(lt(),$i(o.dismissible?1:-1))},styles:[`ngb-alert{display:block}
2
- `],encapsulation:2,changeDetection:0});let i=e;return i})(),yo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var bo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),Do=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Si=(i,e)=>e?e.some(s=>s.contains(i)):!1,uo=(i,e)=>!e||Sa(i,e)!=null,Ua=(()=>{let i=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(i()||e()):!1})(),ja=i=>Ua?()=>setTimeout(()=>i(),100):i;function Bn(i,e,s,t,n,o,r,a){s&&i.runOutsideAngular(ja(()=>{let l=p=>{let h=p.target;return p.button===2||Si(h,r)?!1:s==="inside"?Si(h,o)&&uo(h,a):s==="outside"?!Si(h,o):uo(h,a)||!Si(h,o)},d=Z(e,"keydown").pipe(B(n),Xe(p=>p.key==="Escape"),Ct(p=>p.preventDefault())),c=Z(e,"mousedown").pipe(De(l),B(n)),f=Z(e,"mouseup").pipe(ei(c),Xe(([p,h])=>h),is(0),B(n));Vi([d.pipe(De(p=>0)),f.pipe(De(p=>1))]).subscribe(p=>i.run(()=>t(p)))}))}var wo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Oo(i){let e=Array.from(i.querySelectorAll(wo)).filter(s=>s.tabIndex!==-1);return[e[0],e[e.length-1]]}var $a=(i,e,s,t=!1)=>{i.runOutsideAngular(()=>{let n=Z(e,"focusin").pipe(B(s),De(o=>o.target));Z(e,"keydown").pipe(B(s),Xe(o=>o.key==="Tab"),ei(n)).subscribe(([o,r])=>{let[a,l]=Oo(e);(r===a||r===e)&&o.shiftKey&&(l.focus(),o.preventDefault()),r===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),t&&Z(e,"click").pipe(B(s),ei(n),De(o=>o[1])).subscribe(o=>o.focus())})},La=(()=>{let e=class e{constructor(){this._element=u(ye).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Wa=/\s+/,za=/ +/gi,Xa={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function Ka(i,e){let[s,t]=Xa[i];return e&&t||s}var qa=/^left/,Qa=/^right/,Ja=/^start/,Ya=/^end/;function Za(i,e){let[s,t]=e.split("-"),n=s.replace(qa,"start").replace(Qa,"end"),o=[n];if(t){let r=t;(s==="left"||s==="right")&&(r=r.replace(Ja,"top").replace(Ya,"bottom")),o.push(`${n}-${r}`)}return i&&(o=o.map(r=>`${i}-${r}`)),o.join(" ")}function ho({placement:i,baseClass:e},s){let t=Array.isArray(i)?i:i.split(Wa),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=t.findIndex(d=>d==="auto");o>=0&&n.forEach(function(d){t.find(c=>c.search("^"+d)!==-1)==null&&t.splice(o++,1,d)});let r=t.map(d=>Ka(d,s.isRTL()));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:d}){let c=new RegExp(e+"(-[a-z]+)*","gi"),f=d.elements.popper,p=d.placement,h=f.className;h=h.replace(c,""),h+=` ${Za(e,p)}`,h=h.trim().replace(za," "),f.className=h}},Dn,Cn,mn,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function po(i){return i}function Vn(){let i=u(La),e=null;return{createPopper(s){if(!e){let n=(s.updatePopperOptions||po)(ho(s,i));e=Nn(s.hostElement,s.targetElement,n)}},update(){e&&e.update()},setOptions(s){if(e){let n=(s.updatePopperOptions||po)(ho(s,i));e.setOptions(n)}},destroy(){e&&(e.destroy(),e=null)}}}function Gn(i){return e=>(e.modifiers.push(wn,{name:"offset",options:{offset:()=>i}}),e)}var zp=new Date(1882,10,12),Xp=new Date(2174,10,25);var Kp=1e3*60*60*24;var Hn=1080,el=24*Hn,tl=12*Hn+793,qp=29*el+tl,Qp=11*Hn+204;var Co=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),il=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=t=>t,this.container=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Mo=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=u(L).nativeElement,this.tabindex=0}set disabled(t){this._disabled=t===""||t===!0}get disabled(){return this._disabled}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(n,o){n&2&&(ge("tabIndex",o.disabled?-1:o.tabindex),V("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let i=e;return i})(),Jp=(()=>{let e=class e{constructor(){this.item=u(Mo)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(n,o){n&2&&ge("disabled",o.item.disabled)},standalone:!0});let i=e;return i})(),nl=(()=>{let e=class e{constructor(){this.dropdown=u(Eo),this.nativeElement=u(L).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(n,o,r){if(n&1&&Qe(r,Mo,4),n&2){let a;Ae(a=ke())&&(o.menuItems=a)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(n,o){n&1&&q("keydown.ArrowUp",function(a){return o.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return o.dropdown.onKeyDown(a)})("keydown.Home",function(a){return o.dropdown.onKeyDown(a)})("keydown.End",function(a){return o.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return o.dropdown.onKeyDown(a)})("keydown.Space",function(a){return o.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return o.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return o.dropdown.onKeyDown(a)}),n&2&&V("show",o.dropdown.isOpen())},standalone:!0});let i=e;return i})(),Fn=(()=>{let e=class e{constructor(){this.dropdown=u(Eo),this.nativeElement=u(L).nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&2&&(he("aria-expanded",o.dropdown.isOpen()),V("show",o.dropdown.isOpen()))},standalone:!0});let i=e;return i})(),Yp=(()=>{let e=class e extends Fn{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=ue(e)))(o||e)}})(),e.\u0275dir=_({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(n,o){n&1&&q("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(a){return o.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return o.dropdown.onKeyDown(a)})("keydown.Home",function(a){return o.dropdown.onKeyDown(a)})("keydown.End",function(a){return o.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return o.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return o.dropdown.onKeyDown(a)}),n&2&&(he("aria-expanded",o.dropdown.isOpen()),V("show",o.dropdown.isOpen()))},standalone:!0,features:[W([{provide:Fn,useExisting:$(()=>e)}]),x]});let i=e;return i})(),Eo=(()=>{let e=class e{constructor(){this._changeDetector=u(Pe),this._config=u(il),this._document=u(ye),this._injector=u(se),this._ngZone=u(me),this._nativeElement=u(L).nativeElement,this._destroyCloseHandlers$=new Y,this._bodyContainer=null,this._positioning=Vn(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new D}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){Tt(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:Ne.Write,injector:this._injector})}ngOnChanges(t){if(t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),t.dropdownClass){let{currentValue:n,previousValue:o}=t.dropdownClass;this._applyCustomDropdownClass(n,o)}t.autoClose&&this._open&&(this.autoClose=t.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:t=>this.popperOptions(Gn([0,2])(t))}),this._applyPlacementClasses(),this._afterRenderRef=oi(()=>{this._positionMenu()},{phase:Ne.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Bn(this._ngZone,this._document,this.autoClose,t=>{this.close(),t===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){var t;this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),(t=this._afterRenderRef)==null||t.destroy(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(t){let{key:n}=t,o=this._getMenuElements(),r=-1,a=null,l=this._isEventFromToggle(t);if(!l&&o.length&&o.forEach((d,c)=>{d.contains(t.target)&&(a=d),d===mo(this._document)&&(r=c)}),n===" "||n==="Enter"){a&&(this.autoClose===!0||this.autoClose==="inside")&&Z(a,"click").pipe(Ot(1)).subscribe(()=>this.close());return}if(n==="Tab"){if(t.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===t.target){this.container==="body"&&!t.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):t.shiftKey&&this.close();return}else if(this.container==="body"){let d=this._menu.nativeElement.querySelectorAll(wo);t.shiftKey&&t.target===d[0]?(this._anchor.nativeElement.focus(),t.preventDefault()):!t.shiftKey&&t.target===d[d.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else Z(t.target,"focusout").pipe(Ot(1)).subscribe(({relatedTarget:d})=>{this._nativeElement.contains(d)||this.close()});return}if(l||a){if(this.open(),o.length){switch(n){case"ArrowDown":r=Math.min(r+1,o.length-1);break;case"ArrowUp":if(this._isDropup()&&r===-1){r=o.length-1;break}r=Math.max(r-1,0);break;case"Home":r=0;break;case"End":r=o.length-1;break}o[r].focus()}t.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.nativeElement.contains(t.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:t})=>!t).map(({nativeElement:t})=>t):[]}_positionMenu(){let t=this._menu;this.isOpen()&&t&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),t==="body"){let n=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",n.style.position="static",o.style.zIndex="1055",o.appendChild(n),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(t,n){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(n&&o.classList.remove(n),t&&o.classList.add(t))}_applyPlacementClasses(t){if(this._menu){t||(t=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let n=t.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(n),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(n))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(n,o,r){if(n&1&&(Qe(r,nl,5),Qe(r,Fn,5)),n&2){let a;Ae(a=ke())&&(o._menu=a.first),Ae(a=ke())&&(o._anchor=a.first)}},hostVars:2,hostBindings:function(n,o){n&2&&V("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[de]});let i=e;return i})();var Io=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),sl=(()=>{let e=class e{constructor(){this._ngbConfig=u(zt),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){var t;return(t=this._animation)!=null?t:this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Se=class{constructor(e,s,t){this.nodes=e,this.viewRef=s,this.componentRef=t}},Ni=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=u(ye),this._applicationRef=u(Ji),this._injector=u(se),this._viewContainerRef=u(Ui),this._ngZone=u(me)}open(e,s,t=!1){this._windowRef||(this._contentRef=this._getContentRef(e,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,o=new Y;Tt(()=>{o.next(),o.complete()},{injector:this._injector,phase:Ne.MixedReadWrite});let r=o.pipe(Zn(()=>_e(this._ngZone,n,({classList:a})=>a.add("show"),{animation:t,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(e=!1){return this._windowRef?_e(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:e,runningTransition:"stop"}).pipe(Ct(()=>{var s,t,n;(s=this._windowRef)==null||s.destroy(),(n=(t=this._contentRef)==null?void 0:t.viewRef)==null||n.destroy(),this._windowRef=null,this._contentRef=null})):wt(void 0)}_getContentRef(e,s){if(e)if(e instanceof si){let t=e.createEmbeddedView(s);return this._applicationRef.attachView(t),new Se([t.rootNodes],t)}else return new Se([[this._document.createTextNode(`${e}`)]]);else return new Se([])}},ol=(()=>{let e=class e{constructor(){this._document=u(ye)}hide(){let t=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),n=this._document.body,o=n.style,{overflow:r,paddingRight:a}=o;if(t>0){let l=parseFloat(window.getComputedStyle(n).paddingRight);o.paddingRight=`${l+t}px`}return o.overflow="hidden",()=>{t>0&&(o.paddingRight=a),o.overflow=r}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),rl=(()=>{let e=class e{constructor(){this._nativeElement=u(L).nativeElement,this._zone=u(me),this._injector=u(se)}ngOnInit(){Tt(()=>_e(this._zone,this._nativeElement,(t,n)=>{n&&Pn(t),t.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:Ne.MixedReadWrite})}hide(){return _e(this._zone,this._nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(n,o){n&2&&(Fe("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),V("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Je],decls:0,vars:0,template:function(n,o){},encapsulation:2});let i=e;return i})(),Fi=class{update(e){}close(e){}dismiss(e){}},al=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],ll=["animation","backdropClass"],xn=class{_applyWindowOptions(e,s){al.forEach(t=>{Ri(s[t])&&(e[t]=s[t])})}_applyBackdropOptions(e,s){ll.forEach(t=>{Ri(s[t])&&(e[t]=s[t])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(B(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(B(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,s,t,n){this._windowCmptRef=e,this._contentRef=s,this._backdropCmptRef=t,this._beforeDismiss=n,this._closed=new Y,this._dismissed=new Y,this._hidden=new Y,e.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,r)=>{this._resolve=o,this._reject=r}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let s=this._beforeDismiss();Ia(s)?s.then(t=>{t!==!1&&this._dismiss(e)},()=>{}):s!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():wt(void 0);e.subscribe(()=>{var n,o;let{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),(o=(n=this._contentRef)==null?void 0:n.viewRef)==null||o.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Zt(e,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},An=function(i){return i[i.BACKDROP_CLICK=0]="BACKDROP_CLICK",i[i.ESC=1]="ESC",i}(An||{}),cl=(()=>{let e=class e{constructor(){this._document=u(ye),this._elRef=u(L),this._zone=u(me),this._injector=u(se),this._closed$=new Y,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new D,this.shown=new Y,this.hidden=new Y}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":xi(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement,Tt(()=>this._show(),{injector:this._injector,phase:Ne.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:t}=this._elRef,n={animation:this.animation,runningTransition:"stop"},o=_e(this._zone,t,()=>t.classList.remove("show"),n),r=_e(this._zone,this._dialogEl.nativeElement,()=>{},n),a=Zt(o,r);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let t={animation:this.animation,runningTransition:"continue"},n=_e(this._zone,this._elRef.nativeElement,(r,a)=>{a&&Pn(r),r.classList.add("show")},t),o=_e(this._zone,this._dialogEl.nativeElement,()=>{},t);Zt(n,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Z(t,"keydown").pipe(B(this._closed$),Xe(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(An.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let n=!1;Z(this._dialogEl.nativeElement,"mousedown").pipe(B(this._closed$),Ct(()=>n=!1),Gi(()=>Z(t,"mouseup").pipe(B(this._closed$),Ot(1))),Xe(({target:o})=>t===o)).subscribe(()=>{n=!0}),Z(t,"click").pipe(B(this._closed$)).subscribe(({target:o})=>{t===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!n&&this._zone.run(()=>this.dismiss(An.BACKDROP_CLICK))),n=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){let n=t.querySelector("[ngbAutofocus]"),o=Oo(t)[0];(n||o||t).focus()}}_restoreFocus(){let t=this._document.body,n=this._elWithFocus,o;n&&n.focus&&t.contains(n)?o=n:o=t,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&_e(this._zone,this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(n,o){if(n&1&&as(ga,7),n&2){let r;Ae(r=ke())&&(o._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(n,o){n&2&&(he("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),Fe("modal d-block"+(o.windowClass?" "+o.windowClass:"")),V("fade",o.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Je],ngContentSelectors:kn,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(n,o){n&1&&(ai(),ct(0,"div",1,0)(2,"div",2),li(3),dt()()),n&2&&Fe("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
3
- `],encapsulation:2});let i=e;return i})(),dl=(()=>{let e=class e{constructor(){this._applicationRef=u(Ji),this._injector=u(se),this._environmentInjector=u(Hi),this._document=u(ye),this._scrollBar=u(ol),this._activeWindowCmptHasChanged=new Y,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new D;let t=u(me);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let n=this._windowCmpts[this._windowCmpts.length-1];$a(t,n.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(n.location.nativeElement)}})}_restoreScrollBar(){let t=this._scrollBarRestoreFn;t&&(this._scrollBarRestoreFn=null,t())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(t,n,o){let r=o.container instanceof HTMLElement?o.container:Ri(o.container)?this._document.querySelector(o.container):this._document.body;if(!r)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new Fi;t=o.injector||t;let l=t.get(Hi,null)||this._environmentInjector,d=this._getContentRef(t,l,n,a,o),c=o.backdrop!==!1?this._attachBackdrop(r):void 0,f=this._attachWindowComponent(r,d.nodes),p=new xn(f,d,c,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe(Ot(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=h=>{p.close(h)},a.dismiss=h=>{p.dismiss(h)},a.update=h=>{p.update(h)},p.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),c&&c.instance&&c.changeDetectorRef.detectChanges(),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(n=>n.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t){let n=ci(rl,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,n){let o=ci(cl,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:n});return this._applicationRef.attachView(o.hostView),t.appendChild(o.location.nativeElement),o}_getContentRef(t,n,o,r,a){return o?o instanceof si?this._createFromTemplateRef(o,r):xi(o)?this._createFromString(o):this._createFromComponent(t,n,o,r,a):new Se([])}_createFromTemplateRef(t,n){let o={$implicit:n,close(a){n.close(a)},dismiss(a){n.dismiss(a)}},r=t.createEmbeddedView(o);return this._applicationRef.attachView(r),new Se([r.rootNodes],r)}_createFromString(t){let n=this._document.createTextNode(`${t}`);return new Se([[n]])}_createFromComponent(t,n,o,r,a){let l=se.create({providers:[{provide:Fi,useValue:r}],parent:t}),d=ci(o,{environmentInjector:n,elementInjector:l}),c=d.location.nativeElement;return a.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(d.hostView),new Se([[c]],d.hostView,d)}_setAriaHidden(t){let n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(o=>{o!==t&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,n)=>{t?n.setAttribute("aria-hidden",t):n.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){let n=()=>{let o=this._modalRefs.indexOf(t);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(n,n)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{let n=this._windowCmpts.indexOf(t);n>-1&&(this._windowCmpts.splice(n,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ul=(()=>{let e=class e{constructor(){this._injector=u(se),this._modalStack=u(dl),this._config=u(sl)}open(t,n={}){let o=J(ne(J({},this._config),{animation:this._config.animation}),n);return this._modalStack.open(this._injector,t,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),To=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({providers:[ul]});let i=e;return i})();var So=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Ro=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),hl={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function pl(i){let e=(i||"").trim();if(e.length===0)return[];let s=e.split(/\s+/).map(n=>n.split(":")).map(n=>hl[n[0]]||n),t=s.filter(n=>n.includes("manual"));if(t.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(t.length===1&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return t.length?[]:s}function fl(i,e,s,t,n,o=0,r=0){let a=pl(e);if(a.length===0)return()=>{};let l=new Set,d=[],c;function f(h,v){i.addEventListener(h,v),d.push(()=>i.removeEventListener(h,v))}function p(h,v){clearTimeout(c),v>0?c=setTimeout(h,v):h()}for(let[h,v]of a)v?(f(h,()=>{l.add(h),p(()=>l.size>0&&t(),o)}),f(v,()=>{l.delete(h),p(()=>l.size===0&&n(),r)})):f(h,()=>s()?p(n,r):p(t,o));return()=>d.forEach(h=>h())}var No=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Fo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var xo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Ao=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var ko=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Po=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),_l=(()=>{let e=class e{constructor(){this._ngbConfig=u(zt),this.autoClose=!0,this.placement="auto",this.popperOptions=t=>t,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){var t;return(t=this._animation)!=null?t:this._ngbConfig.animation}set animation(t){this._animation=t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),ml=0,gl=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(n,o){n&2&&(ge("id",o.id),Fe("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),V("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[Je],ngContentSelectors:kn,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(n,o){n&1&&(ai(),Xi(0,"div",0),ct(1,"div",1),li(2),dt())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}
4
- `],encapsulation:2,changeDetection:0});let i=e;return i})(),Zp=(()=>{let e=class e{constructor(){this._config=u(_l),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new D,this.hidden=new D,this._nativeElement=u(L).nativeElement,this._ngZone=u(me),this._document=u(ye),this._changeDetector=u(Pe),this._injector=u(se),this._ngbTooltipWindowId=`ngb-tooltip-${ml++}`,this._popupService=new Ni(gl),this._windowRef=null,this._positioning=Vn()}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:n,transition$:o}=this._popupService.open(this._ngbTooltip,t!=null?t:this.tooltipContext,this.animation);this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,baseClass:"bs-tooltip",updatePopperOptions:r=>this.popperOptions(Gn([0,6])(r))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=oi(()=>{this._positioning.update()},{phase:Ne.MixedReadWrite,injector:this._injector})}),Bn(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>this.shown.emit())}}close(t=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(t).subscribe(()=>{var n;this._windowRef=null,this._positioning.destroy(),(n=this._afterRenderRef)==null||n.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=fl(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&this._windowRef.setInput("tooltipClass",t.currentValue)}ngOnDestroy(){var t;this.close(!1),(t=this._unregisterListenersFn)==null||t.call(this)}_getPositionTargetElement(){return(xi(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[de]});let i=e;return i})(),Bo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),vl=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(t){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let n=Wt(this.result),o=Array.isArray(this.term)?this.term:[this.term],r=c=>this.accentSensitive?c:lo(c),a=o.map(c=>Ta(r(Wt(c)))).filter(c=>c),l=this.accentSensitive?n:lo(n),d=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[n];if(this.accentSensitive)this.parts=d;else{let c=0;this.parts=d.map(f=>n.substring(c,c+=f.length))}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[de,Je],decls:2,vars:0,consts:[[3,"class"]],template:function(n,o){n&1&&Wi(0,ba,2,1,null,null,Li),n&2&&zi(o.parts)},styles:[`.ngb-highlight{font-weight:700}
5
- `],encapsulation:2,changeDetection:0});let i=e;return i})(),yl=new we("live announcer delay",{providedIn:"root",factory:()=>100});function fo(i,e=!1){let s=i.body.querySelector("#ngb-live");return s==null&&e&&(s=i.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),i.body.appendChild(s)),s}var bl=(()=>{let e=class e{constructor(){this._document=u(ye),this._delay=u(yl)}ngOnDestroy(){let t=fo(this._document);t&&t.parentElement.removeChild(t)}say(t){let n=fo(this._document,!0),o=this._delay;if(n!=null){n.textContent="";let r=()=>n.textContent=t;o===null?r():setTimeout(r,o)}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),Dl=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=t=>t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),wl=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Wt,this.selectEvent=new D,this.activeChangeEvent=new D}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(t){this.activeIdx=t,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(t){this.selectEvent.emit(t)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Ke({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(n,o){n&1&&q("mousedown",function(a){return a.preventDefault()}),n&2&&(ge("id",o.id),Fe("dropdown-menu show"+(o.popupClass?" "+o.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[Je],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){n&1&&(It(0,wa,1,2,"ng-template",null,0,ds),Wi(2,Ca,2,9,"button",1,Li)),n&2&&(lt(2),zi(o.results))},dependencies:[vl,ps],encapsulation:2});let i=e;return i})(),Ol=0,ef=(()=>{let e=class e{constructor(){this._nativeElement=u(L).nativeElement,this._config=u(Dl),this._live=u(bl),this._document=u(ye),this._ngZone=u(me),this._changeDetector=u(Pe),this._injector=u(se),this._popupService=new Ni(wl),this._positioning=Vn(),this._subscription=null,this._closed$=new Y,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=Z(this._nativeElement,"input").pipe(De(t=>t.target.value)),this._resubscribeTypeahead$=new Qn(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new D,this.activeDescendant=null,this.popupId=`ngb-typeahead-${Ol++}`,this._onTouched=()=>{},this._onChange=t=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:t}){t&&!t.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._nativeElement.disabled=t}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.key){case"ArrowDown":t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let n=this._windowRef.instance.getActive();Ri(n)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(n)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:t}=this._popupService.open();this._windowRef=t,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(n=>this._selectResultClosePopup(n)),this._windowRef.instance.activeChangeEvent.subscribe(n=>this.activeDescendant=n),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:n=>this.popperOptions(Gn([0,2])(n))}),this._afterRenderRef=oi(()=>{this._positioning.update()},{phase:Ne.MixedReadWrite,injector:this._injector}))}),Bn(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{var t;this._positioning.destroy(),(t=this._afterRenderRef)==null||t.destroy(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(t){let n=!1;this.selectItem.emit({item:t,preventDefault:()=>{n=!0}}),this._resubscribeTypeahead$.next(null),n||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){var t;if(this.showHint&&((t=this._windowRef)!=null&&t.instance.hasActive())&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),o=this._formatItemForInput(this._windowRef.instance.getActive());n===o.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+o.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,o.length])):this._writeInputValue(o)}}_formatItemForInput(t){return t!=null&&this.inputFormatter?this.inputFormatter(t):Wt(t)}_writeInputValue(t){this._nativeElement.value=Wt(t)}_subscribeToUserInput(){let t=this._valueChanges$.pipe(Ct(n=>{this._inputValueBackup=this.showHint?n:null,this._inputValueForSelectOnExact=this.selectOnExact?n:null,this._onChange(this.editable?n:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>wt([]));this._subscription=this._resubscribeTypeahead$.pipe(Gi(()=>t)).subscribe(n=>{!n||n.length===0?this._closePopup():this.selectOnExact&&n.length===1&&this._formatItemForInput(n[0])===this._inputValueForSelectOnExact?(this._selectResult(n[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",n),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let o=n?n.length:0;this._live.say(o===0?"No results available":`${o} result${o===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(n,o){n&1&&q("blur",function(){return o.handleBlur()})("keydown",function(a){return o.handleKeyDown(a)}),n&2&&(ge("autocomplete",o.autocomplete),he("aria-autocomplete",o.showHint?"both":"list")("aria-activedescendant",o.activeDescendant)("aria-owns",o.isPopupOpen()?o.popupId:null)("aria-expanded",o.isPopupOpen()),V("open",o.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[W([{provide:be,useExisting:$(()=>e),multi:!0}]),de]});let i=e;return i})(),Vo=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Go=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})(),Cl=[vo,yo,bo,Do,Co,Io,To,So,Go,Ro,No,Fo,xo,Ao,ko,Po,Bo,Vo],tf=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[Cl,vo,yo,bo,Do,Co,Io,To,So,Go,Ro,No,Fo,xo,Ao,ko,Po,Bo,Vo]});let i=e;return i})();export{be as a,Ko as b,Os as c,fs as d,jl as e,$l as f,kt as g,Ll as h,mr as i,un as j,zl as k,yr as l,Xl as m,Dr as n,Or as o,Mr as p,Ir as q,Ls as r,Kl as s,ql as t,xr as u,kr as v,Br as w,Ql as x,Jl as y,Yl as z,jp as A,Ba as B,$p as C,Lp as D,yt as E,go as F,Wp as G,Mo as H,Jp as I,nl as J,Yp as K,Eo as L,Fi as M,ul as N,Zp as O,ef as P,tf as Q};
@@ -1 +0,0 @@
1
- import{O as D,Q as F,z as R}from"./chunk-WCDFKYP6.js";import{c as N,k as O,m as H}from"./chunk-54RIF7BL.js";import{a as M,b as P,c as B}from"./chunk-F22FMU37.js";import{$ as S,$b as V,Ga as I,La as _,Rb as j,Ua as s,Va as a,Wa as k,X as g,Za as h,aa as x,ab as d,bb as y,h as r,ha as b,ia as w,jb as l,kb as T,lb as f,sc as E,vc as $,wa as o,xa as u,yb as p,zb as c}from"./chunk-IGUSDGD6.js";function J(e,t){if(e&1){let v=h();s(0,"p",5)(1,"button",6),d("click",function(){b(v);let i=y();return w(i.restartServer())}),l(2),p(3,"translate"),a()()}e&2&&(o(2),f(" ",c(3,1,"menu.linux.label_restart_server")," "))}function K(e,t){if(e&1){let v=h();s(0,"p",5)(1,"button",6),d("click",function(){b(v);let i=y();return w(i.shutdownServer())}),l(2),p(3,"translate"),a()()}e&2&&(o(2),f(" ",c(3,1,"menu.linux.label_shutdown_server")," "))}function L(e,t){if(e&1){let v=h();s(0,"p",5)(1,"button",6),d("click",function(){b(v);let i=y();return w(i.dockerRestartContainer())}),l(2),p(3,"translate"),a()()}e&2&&(o(2),f(" ",c(3,1,"menu.docker.restart_container")," "))}var A=(()=>{let t=class t{constructor(n,i,m,C,G){r(this,"$api");r(this,"$router");r(this,"$settings");r(this,"$toastr");r(this,"$translate");this.$api=n,this.$router=i,this.$settings=m,this.$toastr=C,this.$translate=G}restartHomebridge(){this.$router.navigate(["/restart"])}restartHomebridgeService(){this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>{this.$router.navigate(["/restart"])},error:n=>{console.error(n),this.$toastr.error(n.message,this.$translate.instant("toast.title_error"))}})}restartServer(){this.$router.navigate(["/platform-tools/linux/restart-server"])}shutdownServer(){this.$router.navigate(["/platform-tools/linux/shutdown-server"])}dockerRestartContainer(){this.$router.navigate(["/platform-tools/docker/restart-container"])}};r(t,"\u0275fac",function(i){return new(i||t)(u(N),u(E),u(H),u(O),u(M))}),r(t,"\u0275cmp",S({type:t,selectors:[["ng-component"]],decls:19,vars:15,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"w-100","text-center","my-5"],["type","button",1,"btn","btn-primary","p-3","my-0",2,"width","85%",3,"click"],["type","button","container","body","openDelay","150","triggers","hover",1,"btn","btn-primary","p-3","my-0",2,"width","85%",3,"click","ngbTooltip"],["class","w-100 text-center my-5",4,"ngIf"]],template:function(i,m){i&1&&(s(0,"div",0)(1,"h3",1),l(2),p(3,"translate"),a()(),s(4,"div",2)(5,"div",3),k(6,"i",4),a(),s(7,"p",5)(8,"button",6),d("click",function(){return m.restartHomebridge()}),l(9),p(10,"translate"),a()(),s(11,"p",5)(12,"button",7),p(13,"translate"),d("click",function(){return m.restartHomebridgeService()}),l(14),p(15,"translate"),a()(),I(16,J,4,3,"p",8)(17,K,4,3,"p",8)(18,L,4,3,"p",8),a()),i&2&&(o(2),T(c(3,7,"menu.restart.title")),o(7),f(" ",c(10,9,"menu.hbrestart.confirm_hb")," "),o(3),_("ngbTooltip",c(13,11,"reset.force_restart_hb_help_text")),o(2),f(" ",c(15,13,"menu.hbrestart.confirm_ui")," "),o(2),_("ngIf",m.$settings.env.canShutdownRestartHost),o(),_("ngIf",m.$settings.env.canShutdownRestartHost),o(),_("ngIf",m.$settings.env.runningInDocker))},dependencies:[j,D,P],encapsulation:2}));let e=t;return e})();var Q=[{path:"",component:A}],q=(()=>{let t=class t{};r(t,"\u0275fac",function(i){return new(i||t)}),r(t,"\u0275mod",x({type:t})),r(t,"\u0275inj",g({imports:[$.forChild(Q),$]}));let e=t;return e})();var vt=(()=>{let t=class t{};r(t,"\u0275fac",function(i){return new(i||t)}),r(t,"\u0275mod",x({type:t})),r(t,"\u0275inj",g({imports:[V,q,F,R,B]}));let e=t;return e})();export{vt as PowerOptionsModule};