homebridge-config-ui-x 5.3.1-beta.9 → 5.4.0

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 (152) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/dist/bin/standalone.d.ts +2 -0
  3. package/dist/bin/standalone.js +58 -0
  4. package/dist/bin/standalone.js.map +1 -0
  5. package/dist/modules/platform-tools/terminal/terminal.service.js +26 -26
  6. package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
  7. package/dist/modules/server/server.service.js +1 -1
  8. package/package.json +4 -4
  9. package/public/assets/monaco-0.21.3/LICENSE +21 -0
  10. package/public/assets/monaco-0.21.3/README.md +96 -0
  11. package/public/assets/monaco-0.21.3/ThirdPartyNotices.txt +283 -0
  12. package/public/assets/monaco-0.21.3/package.json +38 -0
  13. package/public/assets/service-icons/air-purifier.svg +50 -0
  14. package/public/assets/{hap-icons → service-icons}/air-quality-sensor.svg +2 -2
  15. package/public/assets/service-icons/carbon-dioxide-sensor.svg +53 -0
  16. package/public/assets/service-icons/carbon-monoxide-sensor.svg +53 -0
  17. package/public/assets/service-icons/contact-sensor.svg +45 -0
  18. package/public/assets/service-icons/door.svg +28 -0
  19. package/public/assets/service-icons/doorbell.svg +7 -0
  20. package/public/assets/service-icons/fan.svg +15 -0
  21. package/public/assets/service-icons/filter-maintenance.svg +54 -0
  22. package/public/assets/service-icons/garage-door.svg +120 -0
  23. package/public/assets/service-icons/microphone.svg +12 -0
  24. package/public/assets/service-icons/smoke-sensor.svg +38 -0
  25. package/public/assets/service-icons/speaker.svg +28 -0
  26. package/public/assets/service-icons/television.svg +17 -0
  27. package/public/assets/service-icons/washing-machine.svg +34 -0
  28. package/public/assets/service-icons/window-covering.svg +44 -0
  29. package/public/assets/service-icons/window.svg +67 -0
  30. package/public/{chunk-B5AYH2BC.js → chunk-2HZOWWRB.js} +1 -1
  31. package/public/{chunk-GEXFURZE.js → chunk-2TDOLECC.js} +1 -1
  32. package/public/chunk-2ZM2CO7S.js +1 -0
  33. package/public/{chunk-KKMV35EJ.js → chunk-3JNJJOX6.js} +1 -1
  34. package/public/{chunk-S5VOLN5S.js → chunk-3L7PIOD5.js} +1 -1
  35. package/public/{chunk-AKD24HZC.js → chunk-3QBYXJ7T.js} +1 -1
  36. package/public/{chunk-FG353N2G.js → chunk-3WCZQYFM.js} +1 -1
  37. package/public/{chunk-7G2YYPIL.js → chunk-4A6F5427.js} +1 -1
  38. package/public/{chunk-VWWI5W24.js → chunk-4I4YTNGD.js} +1 -1
  39. package/public/{chunk-GYBGIQ6I.js → chunk-5FOJUOIT.js} +1 -1
  40. package/public/chunk-645YHJEQ.js +4 -0
  41. package/public/{chunk-FXOH6MUI.js → chunk-6BITWEO6.js} +1 -1
  42. package/public/{chunk-25NXLXGL.js → chunk-6HJHVJPI.js} +1 -1
  43. package/public/chunk-6NW4EKE6.js +4 -0
  44. package/public/{chunk-GBILZGBS.js → chunk-73PB5ERF.js} +1 -1
  45. package/public/{chunk-7OOZYU5L.js → chunk-7M4GTFPB.js} +1 -1
  46. package/public/{chunk-IH6TCZKW.js → chunk-7NWB7MN6.js} +1 -1
  47. package/public/chunk-BHQK7H4B.js +1 -0
  48. package/public/{chunk-E3QIV2NC.js → chunk-BLNEXUND.js} +1 -1
  49. package/public/{chunk-G6OT66TG.js → chunk-BQ7Q4FRF.js} +1 -1
  50. package/public/chunk-CLGDJPWG.js +12 -0
  51. package/public/{chunk-DE76AGV3.js → chunk-DCEE4BJT.js} +1 -1
  52. package/public/{chunk-RPRM66DV.js → chunk-DYB33NRF.js} +1 -1
  53. package/public/{chunk-TVRTT63H.js → chunk-EKINPADV.js} +1 -1
  54. package/public/{chunk-UPWD7C23.js → chunk-EQHN6CPG.js} +1 -1
  55. package/public/{chunk-3T4CLJZB.js → chunk-EZQF5CUM.js} +1 -1
  56. package/public/{chunk-CYSLA66J.js → chunk-F6NZALU5.js} +1 -1
  57. package/public/{chunk-P72KTIAV.js → chunk-FG5QICVJ.js} +1 -1
  58. package/public/{chunk-RYQXCZEW.js → chunk-FIQUQJTU.js} +1 -1
  59. package/public/{chunk-WYH2UWLZ.js → chunk-FKZEDXUZ.js} +1 -1
  60. package/public/chunk-FYDO54CR.js +1 -0
  61. package/public/{chunk-MJK6N6PA.js → chunk-FYI7RHOJ.js} +1 -1
  62. package/public/{chunk-S7AIVWKK.js → chunk-G6KV6PYE.js} +1 -1
  63. package/public/chunk-GNULJZ2P.js +1 -0
  64. package/public/{chunk-H337OZRD.js → chunk-HHGB2T2Q.js} +1 -1
  65. package/public/{chunk-2FTHA637.js → chunk-HO4UVRDI.js} +1 -1
  66. package/public/{chunk-23XH7HBN.js → chunk-HSAZV5QQ.js} +1 -1
  67. package/public/{chunk-6WLDPZET.js → chunk-IAVKQO7M.js} +1 -1
  68. package/public/{chunk-RHCMG64A.js → chunk-JCYDPJQ5.js} +1 -1
  69. package/public/chunk-KLQ6BEKS.js +2 -0
  70. package/public/chunk-KPOP67KE.js +1 -0
  71. package/public/{chunk-VPU5FNT3.js → chunk-KYB236MX.js} +1 -1
  72. package/public/{chunk-HWXVYPUM.js → chunk-LJDW32KF.js} +3 -3
  73. package/public/{chunk-F3MG6UU6.js → chunk-M4QDQWSG.js} +1 -1
  74. package/public/chunk-O7RJ6JXM.js +1 -0
  75. package/public/{chunk-2APX6TML.js → chunk-OMGXHYZA.js} +1 -1
  76. package/public/{chunk-O3ZUJHYU.js → chunk-OSQ37ZQY.js} +1 -1
  77. package/public/{chunk-HJ4A27B3.js → chunk-OW6LBBVH.js} +1 -1
  78. package/public/{chunk-NO7RIAKI.js → chunk-PPSFRNJC.js} +1 -1
  79. package/public/{chunk-HC4PHBTI.js → chunk-QL5UNVZO.js} +1 -1
  80. package/public/{chunk-OFGO6QZU.js → chunk-QM6QRTMV.js} +1 -1
  81. package/public/{chunk-Y6FHYF3A.js → chunk-QZWC7RP4.js} +1 -1
  82. package/public/{chunk-YP6XHKAT.js → chunk-R6KN5Y43.js} +1 -1
  83. package/public/{chunk-UKEZ5GGN.js → chunk-RCYYU6LQ.js} +1 -1
  84. package/public/{chunk-V2JQMGNW.js → chunk-RGXCQLZU.js} +1 -1
  85. package/public/{chunk-S7D4ALZN.js → chunk-RZ4UMDVF.js} +1 -1
  86. package/public/{chunk-TP4NTACL.js → chunk-TOI5IERI.js} +1 -1
  87. package/public/{chunk-3E7ISGPA.js → chunk-U4UZ4WQX.js} +1 -1
  88. package/public/{chunk-O64A5SOM.js → chunk-U52WKM74.js} +1 -1
  89. package/public/{chunk-6TXOJ5PS.js → chunk-UFFQKHXE.js} +1 -1
  90. package/public/{chunk-O4DNLPYF.js → chunk-ULWO2VVV.js} +1 -1
  91. package/public/{chunk-IMT3YYMD.js → chunk-V35TPDVW.js} +1 -1
  92. package/public/{chunk-T5INXMWC.js → chunk-V7OQR5Y4.js} +1 -1
  93. package/public/{chunk-5DCA7TNW.js → chunk-VJOMQ46T.js} +1 -1
  94. package/public/{chunk-5KQOUNSC.js → chunk-VRXR6ACJ.js} +1 -1
  95. package/public/{chunk-KZE6PFIV.js → chunk-WG533VX7.js} +1 -1
  96. package/public/{chunk-OH5DGT3H.js → chunk-YPZJFK3W.js} +1 -1
  97. package/public/{chunk-KB5AKZT6.js → chunk-Z6DMMN6D.js} +1 -1
  98. package/public/{chunk-AJZXTLH5.js → chunk-ZO74PVYQ.js} +1 -1
  99. package/public/index.html +2 -2
  100. package/public/main-HN6ISZGH.js +1 -0
  101. package/public/media/fa-brands-400-Q3XCMWHQ.woff2 +0 -0
  102. package/public/media/fa-brands-400-R2XQZCET.ttf +0 -0
  103. package/public/media/fa-regular-400-QSNYFYRT.woff2 +0 -0
  104. package/public/media/fa-regular-400-XUOPSR7E.ttf +0 -0
  105. package/public/media/fa-solid-900-5ZUYHGA7.woff2 +0 -0
  106. package/public/media/fa-solid-900-PJNKLK6W.ttf +0 -0
  107. package/public/styles-XESJTHVW.css +1 -0
  108. package/public/assets/hap-icons/air-purifier.svg +0 -62
  109. package/public/assets/hap-icons/carbon-dioxide-sensor.svg +0 -72
  110. package/public/assets/hap-icons/carbon-monoxide-sensor.svg +0 -72
  111. package/public/assets/hap-icons/contact-sensor-closed.svg +0 -36
  112. package/public/assets/hap-icons/contact-sensor-open.svg +0 -81
  113. package/public/assets/hap-icons/door-closed.svg +0 -33
  114. package/public/assets/hap-icons/door-open.svg +0 -49
  115. package/public/assets/hap-icons/doorbell.svg +0 -9
  116. package/public/assets/hap-icons/fan-off.svg +0 -25
  117. package/public/assets/hap-icons/fan-on.svg +0 -25
  118. package/public/assets/hap-icons/filter-maintenance.svg +0 -26
  119. package/public/assets/hap-icons/garage-door.svg +0 -25
  120. package/public/assets/hap-icons/microphone.svg +0 -14
  121. package/public/assets/hap-icons/smoke-sensor.svg +0 -59
  122. package/public/assets/hap-icons/speaker.svg +0 -46
  123. package/public/assets/hap-icons/television.svg +0 -16
  124. package/public/assets/hap-icons/window-closed.svg +0 -86
  125. package/public/assets/hap-icons/window-covering-closed.svg +0 -49
  126. package/public/assets/hap-icons/window-covering-open.svg +0 -44
  127. package/public/assets/hap-icons/window-open.svg +0 -137
  128. package/public/chunk-3MXSPHL2.js +0 -1
  129. package/public/chunk-7SQCM466.js +0 -1
  130. package/public/chunk-CFYGJBJN.js +0 -1
  131. package/public/chunk-CPAHENLQ.js +0 -1
  132. package/public/chunk-DEQA7IOH.js +0 -4
  133. package/public/chunk-HVZJ7SFU.js +0 -1
  134. package/public/chunk-IDOLIFNQ.js +0 -1
  135. package/public/chunk-MADTYIL6.js +0 -12
  136. package/public/chunk-RJOGO4M5.js +0 -2
  137. package/public/chunk-WEVBEUAJ.js +0 -4
  138. package/public/main-KCMESMSJ.js +0 -1
  139. package/public/media/fa-brands-400-WVWUIHCX.woff2 +0 -0
  140. package/public/media/fa-regular-400-I5DJMINO.woff2 +0 -0
  141. package/public/media/fa-solid-900-C5F6UWGT.woff2 +0 -0
  142. package/public/styles-LG2MDN7O.css +0 -1
  143. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  144. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/base/worker/workerMain.js +0 -0
  145. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/basic-languages/shell/shell.js +0 -0
  146. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.css +0 -0
  147. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.js +0 -0
  148. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.nls.js +0 -0
  149. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/language/json/jsonMode.js +0 -0
  150. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/language/json/jsonWorker.js +0 -0
  151. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/loader.js +0 -0
  152. /package/public/assets/{hap-icons → service-icons}/robot-vacuum.svg +0 -0
@@ -1,46 +0,0 @@
1
- <svg
2
- width="32px"
3
- height="32px"
4
- viewBox="0 0 32 32"
5
- version="1.1"
6
- xmlns="http://www.w3.org/2000/svg"
7
- xmlns:xlink="http://www.w3.org/1999/xlink"
8
- >
9
- <g>
10
- <title>speaker</title>
11
- <!-- Speaker path -->
12
- <path
13
- stroke="#7f7f7f"
14
- id="speaker"
15
- d="m2.63366,10.44981l0,11.04296l6.25803,0l8.3897,7.72829l0,-26.49955l-8.38553,7.7283l-6.26221,0z"
16
- fill-opacity="null"
17
- stroke-opacity="null"
18
- stroke-width="2"
19
- fill="none"
20
- />
21
-
22
- <!-- First wave -->
23
- <path
24
- stroke="none"
25
- id="wave1"
26
- d="m21.86025,22.54724c1.7013,-1.70615 2.7538,-4.07114 2.75518,-6.67943c0.00138,-2.60829 -1.05806,-4.98158 -2.75796,-6.68786"
27
- fill-opacity="null"
28
- stroke-opacity="null"
29
- stroke-width="2"
30
- fill="none"
31
- class="wave"
32
- />
33
-
34
- <!-- Second wave -->
35
- <path
36
- stroke="none"
37
- id="wave2"
38
- d="m25.06092,26.02826c2.51718,-2.53001 4.07787,-6.03471 4.07506,-9.89195c0.00141,-3.86001 -1.55925,-7.3675 -4.08062,-9.8947"
39
- fill-opacity="null"
40
- stroke-opacity="null"
41
- stroke-width="2"
42
- fill="none"
43
- class="wave"
44
- />
45
- </g>
46
- </svg>
@@ -1,16 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg
4
- xmlns="http://www.w3.org/2000/svg"
5
- xmlns:xlink="http://www.w3.org/1999/xlink"
6
- version="1.1"
7
- width="24"
8
- height="24"
9
- viewBox="0 0 24 24"
10
- >
11
- <path
12
- id="accessoryIcon"
13
- fill="#666666"
14
- d="M21,17H3V5H21M21,3H3A2,2 0 0,0 1,5V17A2,2 0 0,0 3,19H8V21H16V19H21A2,2 0 0,0 23,17V5A2,2 0 0,0 21,3Z"
15
- />
16
- </svg>
@@ -1,86 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg
4
- version="1.1"
5
- xmlns="http://www.w3.org/2000/svg"
6
- xmlns:xlink="http://www.w3.org/1999/xlink"
7
- preserveAspectRatio="xMidYMid meet"
8
- viewBox="0 0 640 640"
9
- width="640"
10
- height="640"
11
- >
12
- <defs>
13
- <path
14
- d="M506.35 123.61L506.35 506.98L133.65 506.98L133.65 123.61L506.35 123.61M112.94 536.47L527.06 536.47L527.06 94.12L527.06 94.12L112.94 94.12L112.94 536.47Z"
15
- id="f2pCRcSgv"
16
- />
17
- <path
18
- d="M506.35 123.61L506.35 506.98L133.65 506.98L133.65 123.61L506.35 123.61M112.94 536.47L527.06 536.47L527.06 94.12L527.06 94.12L112.94 94.12L112.94 536.47Z"
19
- id="jvy0XBu5M"
20
- />
21
- <path
22
- d="M329.41 94.12C329.41 359.53 329.41 506.98 329.41 536.47C329.41 536.47 329.41 536.47 329.41 536.47C318.12 536.47 311.84 536.47 310.59 536.47C310.59 536.47 310.59 536.47 310.59 536.47C310.59 271.06 310.59 123.61 310.59 94.12C310.59 94.12 310.59 94.12 310.59 94.12C321.88 94.12 328.16 94.12 329.41 94.12C329.41 94.12 329.41 94.12 329.41 94.12Z"
23
- id="eTErwsP1o"
24
- />
25
- <path
26
- d="M329.41 94.12C329.41 359.53 329.41 506.98 329.41 536.47C329.41 536.47 329.41 536.47 329.41 536.47C318.12 536.47 311.84 536.47 310.59 536.47C310.59 536.47 310.59 536.47 310.59 536.47C310.59 271.06 310.59 123.61 310.59 94.12C310.59 94.12 310.59 94.12 310.59 94.12C321.88 94.12 328.16 94.12 329.41 94.12C329.41 94.12 329.41 94.12 329.41 94.12Z"
27
- id="f1QuyuvIlz"
28
- />
29
- </defs>
30
- <g>
31
- <g>
32
- <g>
33
- <use xlink:href="#f2pCRcSgv" opacity="1" fill="#666666" fill-opacity="1" />
34
- <g>
35
- <use
36
- xlink:href="#f2pCRcSgv"
37
- opacity="1"
38
- fill-opacity="0"
39
- stroke="#000000"
40
- stroke-width="1"
41
- stroke-opacity="0"
42
- />
43
- </g>
44
- </g>
45
- <g>
46
- <use xlink:href="#jvy0XBu5M" opacity="1" fill="#666666" fill-opacity="0" />
47
- <g>
48
- <use
49
- xlink:href="#jvy0XBu5M"
50
- opacity="1"
51
- fill-opacity="0"
52
- stroke="#000000"
53
- stroke-width="1"
54
- stroke-opacity="0"
55
- />
56
- </g>
57
- </g>
58
- <g>
59
- <use xlink:href="#eTErwsP1o" opacity="1" fill="#666666" fill-opacity="1" />
60
- <g>
61
- <use
62
- xlink:href="#eTErwsP1o"
63
- opacity="1"
64
- fill-opacity="0"
65
- stroke="#000000"
66
- stroke-width="1"
67
- stroke-opacity="0"
68
- />
69
- </g>
70
- </g>
71
- <g>
72
- <use xlink:href="#f1QuyuvIlz" opacity="1" fill="#000000" fill-opacity="0" />
73
- <g>
74
- <use
75
- xlink:href="#f1QuyuvIlz"
76
- opacity="1"
77
- fill-opacity="0"
78
- stroke="#000000"
79
- stroke-width="1"
80
- stroke-opacity="0"
81
- />
82
- </g>
83
- </g>
84
- </g>
85
- </g>
86
- </svg>
@@ -1,49 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg
4
- version="1.1"
5
- id="Ebene_1"
6
- xmlns="http://www.w3.org/2000/svg"
7
- xmlns:xlink="http://www.w3.org/1999/xlink"
8
- x="0px"
9
- y="0px"
10
- viewBox="0 0 68 56"
11
- style="enable-background:new 0 0 68 56;"
12
- xml:space="preserve"
13
- >
14
- <style type="text/css">
15
- .st0 {
16
- fill: #666666;
17
- }
18
- </style>
19
- <g id="Layer_1" />
20
- <g id="bell_x5F_icon_x5F_large" />
21
- <g id="security_x5F_icon_x5F_large" />
22
- <g id="camera_x5F_icon_x5F_large" />
23
- <g id="bridges_x5F_icon_x5F_large" />
24
- <g id="light_x5F_icon_x5F_large" />
25
- <g id="sensors_x5F_icon_x5F_large" />
26
- <g id="ac_x5F_icon_x5F_large" />
27
- <g id="fan_x5F_icon_x5F_large" />
28
- <g id="outlet_x5F_icon_x5F_large" />
29
- <g id="garage_x5F_icon_x5F_large" />
30
- <g id="humidifier_x5F_icon_x5F_large" />
31
- <g id="heating_x5F_icon_x5F_large" />
32
- <g id="locks_x5F_icon_x5F_large" />
33
- <g id="shades_x5F_icon_x5F_large">
34
- <g>
35
- <path class="st0" d="M54,6v16H14V6H54 M56,4H12v20h44V4L56,4z" />
36
- </g>
37
- <g>
38
- <path class="st0" d="M52,24v26H16V24H52 M54,22H14v30h40V22L54,22z" />
39
- </g>
40
- <rect x="33" y="23.4" class="st0" width="2" height="27.6" />
41
- <rect x="14" y="46" class="st0" width="38" height="2" />
42
- <rect x="15" y="42" class="st0" width="38" height="2" />
43
- <rect x="15" y="37.8" class="st0" width="38" height="2" />
44
- <rect x="15" y="33.3" class="st0" width="38" height="2" />
45
- <rect x="15.2" y="29.3" class="st0" width="38" height="2" />
46
- <rect x="15.1" y="25.3" class="st0" width="38" height="2" />
47
- </g>
48
- <g id="purifiers_x5F_icon_x5F_large" />
49
- </svg>
@@ -1,44 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg
4
- version="1.1"
5
- id="Ebene_1"
6
- xmlns="http://www.w3.org/2000/svg"
7
- xmlns:xlink="http://www.w3.org/1999/xlink"
8
- x="0px"
9
- y="0px"
10
- viewBox="0 0 68 56"
11
- style="enable-background:new 0 0 68 56;"
12
- xml:space="preserve"
13
- >
14
- <style type="text/css">
15
- .st0 {
16
- fill: #00acff;
17
- }
18
- </style>
19
- <g id="Layer_1" />
20
- <g id="bell_x5F_icon_x5F_large" />
21
- <g id="security_x5F_icon_x5F_large" />
22
- <g id="camera_x5F_icon_x5F_large" />
23
- <g id="bridges_x5F_icon_x5F_large" />
24
- <g id="light_x5F_icon_x5F_large" />
25
- <g id="sensors_x5F_icon_x5F_large" />
26
- <g id="ac_x5F_icon_x5F_large" />
27
- <g id="fan_x5F_icon_x5F_large" />
28
- <g id="outlet_x5F_icon_x5F_large" />
29
- <g id="garage_x5F_icon_x5F_large" />
30
- <g id="humidifier_x5F_icon_x5F_large" />
31
- <g id="heating_x5F_icon_x5F_large" />
32
- <g id="locks_x5F_icon_x5F_large" />
33
- <g id="shades_x5F_icon_x5F_large">
34
- <g>
35
- <path class="st0" d="M54,6v16H14V6H54 M56,4H12v20h44V4L56,4z" />
36
- </g>
37
- <g>
38
- <path class="st0" d="M52,24v26H16V24H52 M54,22H14v30h40V22L54,22z" />
39
- </g>
40
- <rect x="33" y="23.4" class="st0" width="2" height="27.6" />
41
- <rect x="15.1" y="25.3" class="st0" width="38" height="2" />
42
- </g>
43
- <g id="purifiers_x5F_icon_x5F_large" />
44
- </svg>
@@ -1,137 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg
4
- version="1.1"
5
- xmlns="http://www.w3.org/2000/svg"
6
- xmlns:xlink="http://www.w3.org/1999/xlink"
7
- preserveAspectRatio="xMidYMid meet"
8
- viewBox="0 0 640 640"
9
- width="640"
10
- height="640"
11
- >
12
- <defs>
13
- <path
14
- d="M506.35 123.61L506.35 506.98L133.65 506.98L133.65 123.61L506.35 123.61M112.94 94.12L112.94 536.47L527.06 536.47L527.06 94.12L527.06 94.12L112.94 94.12Z"
15
- id="b4Fl6hSQ5v"
16
- />
17
- <path
18
- d="M247.89 467.69C247.89 467.69 247.89 467.69 247.89 467.69C170.82 495.74 128 511.32 119.44 514.43C119.44 514.43 119.44 514.43 119.44 514.43C115.58 503.82 113.43 497.92 113 496.75C113 496.75 113 496.75 113 496.75C190.07 468.7 232.89 453.12 241.45 450C241.45 450 241.45 450 241.45 450C245.31 460.61 247.46 466.51 247.89 467.69Z"
19
- id="e29097qVAi"
20
- />
21
- <path
22
- d="M247.63 150.94C247.63 150.94 247.63 150.94 247.63 150.94C247.73 340.57 247.79 445.92 247.8 466.99C247.8 466.99 247.8 466.99 247.8 466.99C236.5 467 230.23 467 228.97 467C228.97 467 228.97 467 228.97 467C228.87 277.37 228.82 172.02 228.81 150.95C228.81 150.95 228.81 150.95 228.81 150.95C240.1 150.95 246.38 150.95 247.63 150.94Z"
23
- id="b4gFt7F5c5"
24
- />
25
- <path
26
- d="M241.45 169.44C241.45 169.44 241.45 169.44 241.45 169.44C164.38 141.39 121.57 125.8 113 122.69C113 122.69 113 122.69 113 122.69C116.87 112.07 119.01 106.18 119.44 105C119.44 105 119.44 105 119.44 105C196.51 133.05 239.32 148.64 247.89 151.75C247.89 151.75 247.89 151.75 247.89 151.75C244.02 162.36 241.88 168.26 241.45 169.44Z"
27
- id="a16AiNZUmY"
28
- />
29
- <path
30
- d="M519.45 514.43C519.45 514.43 519.45 514.43 519.45 514.43C442.38 486.38 399.56 470.8 391 467.69C391 467.69 391 467.69 391 467.69C394.86 457.08 397.01 451.18 397.44 450C397.44 450 397.44 450 397.44 450C474.51 478.04 517.32 493.62 525.89 496.74C525.89 496.74 525.89 496.74 525.89 496.74C522.02 507.35 519.88 513.25 519.45 514.43Z"
31
- id="b1uuBEfib"
32
- />
33
- <path
34
- d="M410.48 151.94C410.48 151.94 410.48 151.94 410.48 151.94C410.57 341.57 410.63 446.92 410.64 467.99C410.64 467.99 410.64 467.99 410.64 467.99C399.35 468 393.07 468 391.82 468C391.82 468 391.82 468 391.82 468C391.72 278.37 391.66 173.02 391.65 151.95C391.65 151.95 391.65 151.95 391.65 151.95C402.95 151.95 409.22 151.95 410.48 151.94Z"
35
- id="bAmqCK33"
36
- />
37
- <path
38
- d="M525.88 122.69C525.88 122.69 525.88 122.69 525.88 122.69C448.81 150.74 406 166.32 397.43 169.44C397.43 169.44 397.43 169.44 397.43 169.44C393.57 158.82 391.43 152.93 391 151.75C391 151.75 391 151.75 391 151.75C468.07 123.7 510.88 108.12 519.44 105C519.44 105 519.44 105 519.44 105C523.31 115.61 525.45 121.51 525.88 122.69Z"
39
- id="c3F93mW3Nx"
40
- />
41
- </defs>
42
- <g>
43
- <g>
44
- <g>
45
- <use xlink:href="#b4Fl6hSQ5v" opacity="1" fill="#f9bd2b" fill-opacity="1" />
46
- <g>
47
- <use
48
- xlink:href="#b4Fl6hSQ5v"
49
- opacity="1"
50
- fill-opacity="0"
51
- stroke="#000000"
52
- stroke-width="1"
53
- stroke-opacity="0"
54
- />
55
- </g>
56
- </g>
57
- <g>
58
- <use xlink:href="#e29097qVAi" opacity="1" fill="#f9bd2b" fill-opacity="1" />
59
- <g>
60
- <use
61
- xlink:href="#e29097qVAi"
62
- opacity="1"
63
- fill-opacity="0"
64
- stroke="#000000"
65
- stroke-width="1"
66
- stroke-opacity="0"
67
- />
68
- </g>
69
- </g>
70
- <g>
71
- <use xlink:href="#b4gFt7F5c5" opacity="1" fill="#f9bd2b" fill-opacity="1" />
72
- <g>
73
- <use
74
- xlink:href="#b4gFt7F5c5"
75
- opacity="1"
76
- fill-opacity="0"
77
- stroke="#000000"
78
- stroke-width="1"
79
- stroke-opacity="0"
80
- />
81
- </g>
82
- </g>
83
- <g>
84
- <use xlink:href="#a16AiNZUmY" opacity="1" fill="#f9bd2b" fill-opacity="1" />
85
- <g>
86
- <use
87
- xlink:href="#a16AiNZUmY"
88
- opacity="1"
89
- fill-opacity="0"
90
- stroke="#000000"
91
- stroke-width="1"
92
- stroke-opacity="0"
93
- />
94
- </g>
95
- </g>
96
- <g>
97
- <use xlink:href="#b1uuBEfib" opacity="1" fill="#f9bd2b" fill-opacity="1" />
98
- <g>
99
- <use
100
- xlink:href="#b1uuBEfib"
101
- opacity="1"
102
- fill-opacity="0"
103
- stroke="#000000"
104
- stroke-width="1"
105
- stroke-opacity="0"
106
- />
107
- </g>
108
- </g>
109
- <g>
110
- <use xlink:href="#bAmqCK33" opacity="1" fill="#f9bd2b" fill-opacity="1" />
111
- <g>
112
- <use
113
- xlink:href="#bAmqCK33"
114
- opacity="1"
115
- fill-opacity="0"
116
- stroke="#000000"
117
- stroke-width="1"
118
- stroke-opacity="0"
119
- />
120
- </g>
121
- </g>
122
- <g>
123
- <use xlink:href="#c3F93mW3Nx" opacity="1" fill="#f9bd2b" fill-opacity="1" />
124
- <g>
125
- <use
126
- xlink:href="#c3F93mW3Nx"
127
- opacity="1"
128
- fill-opacity="0"
129
- stroke="#000000"
130
- stroke-width="1"
131
- stroke-opacity="0"
132
- />
133
- </g>
134
- </g>
135
- </g>
136
- </g>
137
- </svg>
@@ -1 +0,0 @@
1
- import{a as n}from"./chunk-CYSLA66J.js";import"./chunk-AJZXTLH5.js";import{g as r}from"./chunk-25NXLXGL.js";import"./chunk-KB5AKZT6.js";import"./chunk-CFYGJBJN.js";import"./chunk-CPAHENLQ.js";import"./chunk-RJOGO4M5.js";import{ha as o,nb as e}from"./chunk-WEVBEUAJ.js";var c=[{path:"",loadComponent:()=>import("./chunk-IH6TCZKW.js").then(t=>t.SettingsComponent),canActivate:[n]}],m=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[r.forChild(c),r]})}return t})();var l=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=e({type:t});static \u0275inj=o({imports:[m]})}return t})();export{l as SettingsModule};
@@ -1 +0,0 @@
1
- import{a as s}from"./chunk-KZE6PFIV.js";import"./chunk-3E7ISGPA.js";import"./chunk-T5INXMWC.js";import"./chunk-S7AIVWKK.js";import"./chunk-MJK6N6PA.js";import"./chunk-VPU5FNT3.js";import"./chunk-O64A5SOM.js";import"./chunk-AJZXTLH5.js";import{g as i}from"./chunk-25NXLXGL.js";import"./chunk-KB5AKZT6.js";import"./chunk-CFYGJBJN.js";import"./chunk-CPAHENLQ.js";import"./chunk-RJOGO4M5.js";import{ha as e,nb as t}from"./chunk-WEVBEUAJ.js";var u=[{path:"",loadComponent:()=>import("./chunk-5KQOUNSC.js").then(o=>o.AccessoriesComponent)}],c=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=t({type:o});static \u0275inj=e({imports:[i.forChild(u),i]})}return o})();var l=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=t({type:o});static \u0275inj=e({imports:[s,c]})}return o})();export{l as AccessoriesModule};
@@ -1 +0,0 @@
1
- import{e as ft,n as gt}from"./chunk-RJOGO4M5.js";import{Gb as M,Hb as E,Ob as l,Pb as h,Qb as p,Rb as F,Vb as Y,Wa as ht,Wb as K,Xa as q,_b as Q,a as u,ab as r,ac as mt,b as T,bc as j,db as dt,dc as c,e as It,ga as C,gb as y,ha as lt,ja as ct,ka as w,kd as J,la as _,ma as ut,mb as G,n as g,nb as pt,nc as A,pc as m,qc as f,ra as V,sa as z,sb as S,sc as b,ua as N,va as Z,vb as U,za as O}from"./chunk-WEVBEUAJ.js";var Tt=It((De,Ut)=>{Ut.exports={name:"homebridge-config-ui-x",displayName:"Homebridge UI",version:"5.3.1-beta.9",description:"A web based management, configuration and control platform for Homebridge.",author:"oznu <dev@oz.nu>",license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/oznu"},{type:"paypal",url:"https://paypal.me/oznu"}],repository:{type:"git",url:"git+https://github.com/homebridge/homebridge-config-ui-x.git"},bugs:{url:"https://github.com/homebridge/homebridge-config-ui-x/issues"},keywords:["homebridge-plugin","ui","gui","web","homebridge","homebridge-config-ui-x","ui-x","config-ui-x","homebridge-x","homebridge server","homebridge ui","homebridge-ui","homebridge gui","homebridge-gui","web interface","config ui","management","config editor","linux","macOS","osx","windows","raspberry pi","accessory control","smart home","hb-service"],main:"./dist/index.js",bin:{"hb-service":"dist/bin/hb-service.js"},engines:{node:"^20.19.0 || ^22.12.0 || ^24.0.0",homebridge:"^1.8.0 || ^2.0.0-beta.0"},scripts:{build:"npm run build:server && npm run build:ui","build:server":"rimraf dist && tsc -p tsconfig.build.json","build:ui":"npm run build --prefix ui",check:"npm run check:server && npm run check:ui","check:server":"npm install && npm outdated","check:ui":"npm install --prefix ui && npm outdated --prefix ui","lang-sync":"ts-node scripts/lang-sync.ts",lint:"eslint . --max-warnings=0","lint:fix":"npm run lint -- --fix",prepublishOnly:"npm i --package-lock-only && npm run lint && npm run build",start:"ts-node -r tsconfig-paths/register src/main.ts",test:"vitest run","test-coverage":"npm run test -- --coverage","upgrade-install":"./scripts/upgrade-install.sh",watch:'concurrently "npm run watch:ui" "npm run watch:server"',"watch:server":"nodemon","watch:ui":"npm run start --prefix ui"},dependencies:{"@fastify/helmet":"13.0.1","@fastify/multipart":"9.0.3","@fastify/static":"8.2.0","@homebridge/hap-client":"3.1.1","@homebridge/node-pty-prebuilt-multiarch":"0.14.1-beta.1","@nestjs/axios":"4.0.1","@nestjs/common":"11.1.5","@nestjs/core":"11.1.5","@nestjs/jwt":"11.0.0","@nestjs/passport":"11.0.5","@nestjs/platform-fastify":"11.1.5","@nestjs/platform-socket.io":"11.1.5","@nestjs/swagger":"11.2.0","@nestjs/websockets":"11.1.5",axios:"1.11.0","bash-color":"0.0.4","class-transformer":"0.5.1","class-validator":"0.14.2",commander:"14.0.0",dayjs:"1.11.13",fastify:"5.4.0","fs-extra":"11.3.0",jsonwebtoken:"9.0.2",lodash:"4.17.21","node-cache":"5.1.2","node-schedule":"2.1.1",ora:"8.2.0",otplib:"12.0.1","p-limit":"6.2.0",passport:"0.7.0","passport-jwt":"4.0.1","reflect-metadata":"0.2.2",rxjs:"7.8.2",semver:"7.7.2",systeminformation:"5.27.7",tail:"2.2.6",tar:"7.4.3","tcp-port-used":"1.0.2",unzipper:"0.12.3"},devDependencies:{"@antfu/eslint-config":"^5.0.0","@nestjs/testing":"^11.1.5","@prettier/plugin-xml":"^3.4.2","@types/fs-extra":"^11.0.4","@types/lodash":"^4.17.20","@types/node":"^24.1.0","@types/node-schedule":"^2.1.8","@types/passport-jwt":"^4.0.1","@types/semver":"^7.7.0","@types/tail":"^2.2.3","@types/tcp-port-used":"^1.0.4","@types/unzipper":"^0.10.11","@vitest/coverage-v8":"^3.2.4",concurrently:"^9.2.0","eslint-plugin-format":"^1.0.1","form-data":"^4.0.4",nodemon:"^3.1.10",rimraf:"^6.0.1","ts-loader":"^9.5.2","ts-node":"^10.9.2","tsconfig-paths":"^4.2.0",typescript:"^5.8.3","unplugin-swc":"^1.5.5",vitest:"^3.2.4"},maintainers:[{email:"bwp91@icloud.com",name:"bwp91"},{email:"dev@oz.nu",name:"oznu"},{email:"northern.man1@gmail.com",name:"northernman"},{email:"mail@anderl-bauer.de",name:"supereg"},{email:"khaos.tian@gmail.com",name:"khaost"},{email:"erik.baauw@xs4all.nl",name:"ebaauw"},{email:"donavan.becker@icloud.com",name:"donavanbecker"},{email:"dustin.greif@gmail.com",name:"dustin.greif"},{email:"nfarina@gmail.com",name:"nfarina"}],scarfSettings:{enabled:!1}}});var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),xt="*";function tt(i,s){return{type:v.Trigger,name:i,definitions:s,options:{}}}function P(i,s=null){return{type:v.Animate,styles:s,timings:i}}function Yt(i,s=null){return{type:v.Sequence,steps:i,options:s}}function R(i){return{type:v.Style,styles:i,offset:null}}function H(i,s,t){return{type:v.State,name:i,styles:s,options:t}}function B(i,s,t=null){return{type:v.Transition,expr:i,animation:s,options:t}}var W=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(s=0,t=0){this.totalTime=s+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(s=>s()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(s){this._position=this.totalTime?s*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},X=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(s){this.players=s;let t=0,e=0,n=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==o&&this._onFinish()}),a.onDestroy(()=>{++e==o&&this._onDestroy()}),a.onStart(()=>{++n==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,d)=>Math.max(a,d.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this.players.forEach(s=>s.init())}onStart(s){this._onStartFns.push(s)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(s=>s()),this._onStartFns=[])}onDone(s){this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(s=>s.play())}pause(){this.players.forEach(s=>s.pause())}restart(){this.players.forEach(s=>s.restart())}finish(){this._onFinish(),this.players.forEach(s=>s.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(s=>s.destroy()),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}reset(){this.players.forEach(s=>s.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(s){let t=s*this.totalTime;this.players.forEach(e=>{let n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let s=this.players.reduce((t,e)=>t===null||e.totalTime>t.totalTime?e:t,null);return s!=null?s.getPosition():0}beforeDestroy(){this.players.forEach(s=>{s.beforeDestroy&&s.beforeDestroy()})}triggerCallback(s){let t=s=="start"?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}},Ot="!";var _t=["toast-component",""];function Et(i,s){if(i&1){let t=Q();h(0,"button",5),j("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),p()()}}function Ft(i,s){if(i&1&&(Y(0),f(1),K()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function jt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Ft,2,1,"ng-container",4),p()),i&2){let t=c();m(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function At(i,s){if(i&1&&F(0,"div",7),i&2){let t=c();m(t.options.messageClass),l("innerHTML",t.message,q)}}function Rt(i,s){if(i&1&&(h(0,"div",8),f(1),p()),i&2){let t=c();m(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function Ht(i,s){if(i&1&&(h(0,"div"),F(1,"div",9),p()),i&2){let t=c();r(),A("width",t.width()+"%")}}function kt(i,s){if(i&1){let t=Q();h(0,"button",5),j("click",function(){V(t);let n=c();return z(n.remove())}),h(1,"span",6),f(2,"\xD7"),p()()}}function Nt(i,s){if(i&1&&(Y(0),f(1),K()),i&2){let t=c(2);r(),b("[",t.duplicatesCount+1,"]")}}function Mt(i,s){if(i&1&&(h(0,"div"),f(1),S(2,Nt,2,1,"ng-container",4),p()),i&2){let t=c();m(t.options.titleClass),E("aria-label",t.title),r(),b(" ",t.title," "),r(),l("ngIf",t.duplicatesCount)}}function Pt(i,s){if(i&1&&F(0,"div",7),i&2){let t=c();m(t.options.messageClass),l("innerHTML",t.message,q)}}function Bt(i,s){if(i&1&&(h(0,"div",8),f(1),p()),i&2){let t=c();m(t.options.messageClass),E("aria-label",t.message),r(),b(" ",t.message," ")}}function $t(i,s){if(i&1&&(h(0,"div"),F(1,"div",9),p()),i&2){let t=c();r(),A("width",t.width()+"%")}}var et=class{_attachedHost;component;viewContainerRef;injector;constructor(s,t){this.component=s,this.injector=t}attach(s,t){return this._attachedHost=s,s.attach(this,t)}detach(){let s=this._attachedHost;if(s)return this._attachedHost=void 0,s.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(s){this._attachedHost=s}},it=class{_attachedPortal;_disposeFn;attach(s,t){return this._attachedPortal=s,this.attachComponentPortal(s,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(s){this._disposeFn=s}},st=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new g;_activate=new g;_manualClose=new g;_resetTimeout=new g;_countDuplicate=new g;constructor(s){this._overlayRef=s}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(s,t){s&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},D=class{toastId;config;message;title;toastType;toastRef;_onTap=new g;_onAction=new g;constructor(s,t,e,n,o,a){this.toastId=s,this.config=t,this.message=e,this.title=n,this.toastType=o,this.toastRef=a,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(s){this._onAction.next(s)}onAction(){return this._onAction.asObservable()}},vt={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},yt=new ct("ToastConfig"),nt=class extends it{_hostDomElement;_componentFactoryResolver;_appRef;constructor(s,t,e){super(),this._hostDomElement=s,this._componentFactoryResolver=t,this._appRef=e}attachComponentPortal(s,t){let e=this._componentFactoryResolver.resolveComponentFactory(s.component),n;return n=e.create(s.injector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}_getComponentRootNode(s){return s.hostView.rootNodes[0]}},Lt=(()=>{class i{_document=_(Z);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ot=class{_portalHost;constructor(s){this._portalHost=s}attach(s,t=!0){return this._portalHost.attach(s,t)}detach(){return this._portalHost.detach()}},Vt=(()=>{class i{_overlayContainer=_(Lt);_componentFactoryResolver=_(dt);_appRef=_(M);_document=_(Z);_paneElements=new Map;create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){let n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new nt(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new ot(this._createPortalHost(t))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),bt=(()=>{class i{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,e,n,o,a){this.overlay=e,this._injector=n,this.sanitizer=o,this.ngZone=a,this.toastrConfig=u(u({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=u(u({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},o=""){return this._preBuildNotification(o,t,e,this.applyConfig(n))}success(t,e,n={}){let o=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}error(t,e,n={}){let o=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}info(t,e,n={}){let o=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}warning(t,e,n={}){let o=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(o,t,e,this.applyConfig(n))}clear(t){for(let e of this.toasts)if(t!==void 0){if(e.toastId===t){e.toastRef.manualClose();return}}else e.toastRef.manualClose()}remove(t){let e=this._findToast(t);if(!e||(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}findDuplicate(t="",e="",n,o){let{includeTitleDuplicates:a}=this.toastrConfig;for(let d of this.toasts){let k=a&&d.title===t;if((!a||k)&&d.message===e)return d.toastRef.onDuplicate(n,o),d}return null}applyConfig(t={}){return u(u({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,o){return o.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,o)):this._buildNotification(t,e,n,o)}_buildNotification(t,e,n,o){if(!o.toastComponent)throw new Error("toastComponent required");let a=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&o.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&a!==null)return a;this.previousToastMessage=e;let d=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(d=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let k=this.overlay.create(o.positionClass,this.overlayContainer);this.index=this.index+1;let rt=e;e&&o.enableHtml&&(rt=this.sanitizer.sanitize(ht.HTML,e));let x=new st(k),$=new D(this.index,o,rt,n,t,x),Ct=[{provide:D,useValue:$}],wt=N.create({providers:Ct,parent:this._injector}),Dt=new et(o.toastComponent,wt),at=k.attach(Dt,o.newestOnTop);x.componentInstance=at.instance;let L={toastId:this.index,title:n||"",message:e||"",toastRef:x,onShown:x.afterActivate(),onHidden:x.afterClosed(),onTap:$.onTap(),onAction:$.onAction(),portal:at};return d||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{L.toastRef.activate()})),this.toasts.push(L),L}static \u0275fac=function(e){return new(e||i)(w(yt),w(Vt),w(N),w(gt),w(U))};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),zt=(()=>{class i{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o}),this.state=O({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>T(u({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>T(u({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>T(u({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(U))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(e,n){e&1&&j("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(mt("@flyInOut",n._state),m(n.toastClasses),A("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,Et,3,0,"button",0)(1,jt,3,5,"div",1)(2,At,1,3,"div",2)(3,Rt,2,4,"div",3)(4,Ht,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,data:{animation:[tt("flyInOut",[H("inactive",R({opacity:0})),H("active",R({opacity:1})),H("removed",R({opacity:0})),B("inactive => active",P("{{ easeTime }}ms {{ easing }}")),B("active => removed",P("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return i})(),Zt=T(u({},vt),{toastComponent:zt}),qt=(i={})=>ut([{provide:yt,useValue:{default:Zt,config:i}}]),be=(()=>{class i{static forRoot(t={}){return{ngModule:i,providers:[qt(t)]}}static \u0275fac=function(e){return new(e||i)};static \u0275mod=pt({type:i});static \u0275inj=lt({})}return i})();var Gt=(()=>{class i{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=O(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=O("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.appRef=n,this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(o=>{this.duplicatesCount=o})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),e=this.hideTime-t;this.width.set(e/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(n=>100-n),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(e){return new(e||i)(y(bt),y(D),y(M))};static \u0275cmp=G({type:i,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(e,n){e&1&&j("click",function(){return n.tapToast()})("mouseenter",function(){return n.stickAround()})("mouseleave",function(){return n.delayedHideToast()}),e&2&&(m(n.toastClasses),A("display",n.displayStyle))},attrs:_t,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(e,n){e&1&&S(0,kt,3,0,"button",0)(1,Mt,3,5,"div",1)(2,Pt,1,3,"div",2)(3,Bt,2,4,"div",3)(4,$t,2,2,"div",4),e&2&&(l("ngIf",n.options.closeButton),r(),l("ngIf",n.title),r(),l("ngIf",n.message&&n.options.enableHtml),r(),l("ngIf",n.message&&!n.options.enableHtml),r(),l("ngIf",n.options.progressBar))},dependencies:[J],encapsulation:2,changeDetection:0})}return i})(),Te=T(u({},vt),{toastComponent:Gt});var I={serverTarget:Tt().version,production:!0,socket:"",api:{base:"/api",socket:`${window.location.protocol==="http:"?"ws://":"wss://"}${window.location.host}`,origin:window.location.origin},jwt:{tokenKey:"access_token",allowedDomains:[document.location.host],disallowedRoutes:[`${window.location.protocol}//${document.location.host}/api/auth/login`]},apiHttpOptions:{},owm:{appid:"fec67b55f7f74deaa28df89ba6a60821"}};var Fe=(()=>{class i{$http=_(ft);get(t,e){return this.$http.get(`${I.api.base}${t}`,e)}post(t,e,n){return this.$http.post(`${I.api.base}${t}`,e,n)}put(t,e,n){return this.$http.put(`${I.api.base}${t}`,e,n)}patch(t,e,n){return this.$http.patch(`${I.api.base}${t}`,e,n)}delete(t,e){return this.$http.delete(`${I.api.base}${t}`,e)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{v as a,xt as b,tt as c,P as d,Yt as e,R as f,B as g,W as h,X as i,Ot as j,bt as k,be as l,I as m,Fe as n};
@@ -1 +0,0 @@
1
- import{$ as M,B as F,C as P,D as q,Da as w,L as J,O as L,Uc as Z,Y as R,a as I,ga as h,gb as N,ha as X,ja as v,ka as o,nb as z,pb as W,r as p,t as f,ub as S,x as V}from"./chunk-WEVBEUAJ.js";var c=class{},Q=(()=>{class n extends c{getTranslation(e){return p({})}static \u0275fac=(()=>{let e;return function(s){return(e||(e=w(n)))(s||n)}})();static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),b=class{},Y=(()=>{class n{handle(e){return e.key}static \u0275fac=function(t){return new(t||n)};static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})();function j(n,r){if(n===r)return!0;if(n===null||r===null)return!1;if(n!==n&&r!==r)return!0;let e=typeof n,t=typeof r,s,i,a;if(e==t&&e=="object")if(Array.isArray(n)){if(!Array.isArray(r))return!1;if((s=n.length)==r.length){for(i=0;i<s;i++)if(!j(n[i],r[i]))return!1;return!0}}else{if(Array.isArray(r))return!1;a=Object.create(null);for(i in n){if(!j(n[i],r[i]))return!1;a[i]=!0}for(i in r)if(!(i in a)&&typeof r[i]<"u")return!1;return!0}return!1}function u(n){return typeof n<"u"&&n!==null}function D(n){return E(n)&&!H(n)&&n!==null}function E(n){return typeof n=="object"}function H(n){return Array.isArray(n)}function $(n){return typeof n=="string"}function ne(n){return typeof n=="function"}function K(n,r){let e=Object.assign({},n);return E(n)?(E(n)&&E(r)&&Object.keys(r).forEach(t=>{D(r[t])?t in n?e[t]=K(n[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e):K({},r)}function x(n,r){let e=r.split(".");r="";do r+=e.shift(),u(n)&&u(n[r])&&(D(n[r])||H(n[r])||!e.length)?(n=n[r],r=""):e.length?r+=".":n=void 0;while(e.length);return n}function se(n,r,e){let t=r.split("."),s=n;for(let i=0;i<t.length;i++){let a=t[i];i===t.length-1?s[a]=e:((!s[a]||!D(s[a]))&&(s[a]={}),s=s[a])}}var d=class{},k=(()=>{class n extends d{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,t){if($(e))return this.interpolateString(e,t);if(ne(e))return this.interpolateFunction(e,t)}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,i)=>{let a=x(t,i);return u(a)?a:s}):e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=w(n)))(s||n)}})();static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),g=class{},ee=(()=>{class n extends g{compile(e,t){return e}compileTranslations(e,t){return e}static \u0275fac=(()=>{let e;return function(s){return(e||(e=w(n)))(s||n)}})();static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})(),m=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new S;onLangChange=new S;onDefaultLangChange=new S},O=new v("ISOLATE_TRANSLATE_SERVICE"),U=new v("USE_DEFAULT_LANG"),_=new v("DEFAULT_LANGUAGE"),B=new v("USE_EXTEND"),C=n=>f(n)?n:p(n),G=(()=>{class n{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,t,s,i,a,A=!0,l=!1,T=!1,y){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=i,this.missingTranslationHandler=a,this.useDefaultLang=A,this.extend=T,l&&(this.store=new m),y&&this.setDefaultLang(y)}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(this.defaultLang==null&&(this.defaultLang=e),t.pipe(L(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return p(this.translations[e]);this.currentLang||(this.currentLang=e);let t=this.retrieveTranslations(e);return f(t)?(t.pipe(L(1)).subscribe(()=>{this.changeLang(e)}),t):(this.changeLang(e),p(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let t=this.currentLoader.getTranslation(e).pipe(R(1),L(1));return this.loadingTranslations=t.pipe(V(s=>this.compiler.compileTranslations(s,e)),R(1),L(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?I(I({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){let i=this.compiler.compileTranslations(t,e);(s||this.extend)&&this.translations[e]?this.translations[e]=K(this.translations[e],i):this.translations[e]=i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let t=e.filter(s=>!this.langs.includes(s));t.length>0&&(this.langs=[...this.langs,...t])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,t,s){let i;if(e&&(i=this.runInterpolation(x(e,t),s)),i===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.runInterpolation(x(this.translations[this.defaultLang],t),s)),i===void 0){let a={key:t,translateService:this};typeof s<"u"&&(a.interpolateParams=s),i=this.missingTranslationHandler.handle(a)}return i!==void 0?i:t}runInterpolation(e,t){if(H(e))return e.map(s=>this.runInterpolation(s,t));if(D(e)){let s={};for(let i in e){let a=this.runInterpolation(e[i],t);a!==void 0&&(s[i]=a)}return s}else return this.parser.interpolate(e,t)}getParsedResult(e,t,s){if(t instanceof Array){let i={},a=!1;for(let l of t)i[l]=this.getParsedResultForKey(e,l,s),a=a||f(i[l]);if(!a)return i;let A=t.map(l=>C(i[l]));return q(A).pipe(V(l=>{let T={};return l.forEach((y,te)=>{T[t[te]]=y}),T}))}return this.getParsedResultForKey(e,t,s)}get(e,t){if(!u(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(J(s=>C(this.getParsedResult(s,e,t)))):C(this.getParsedResult(this.translations[this.currentLang],e,t))}getStreamOnTranslationChange(e,t){if(!u(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return F(P(()=>this.get(e,t)),this.onTranslationChange.pipe(M(s=>{let i=this.getParsedResult(s.translations,e,t);return C(i)})))}stream(e,t){if(!u(e)||!e.length)throw new Error('Parameter "key" required');return F(P(()=>this.get(e,t)),this.onLangChange.pipe(M(s=>{let i=this.getParsedResult(s.translations,e,t);return C(i)})))}instant(e,t){if(!u(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let s=this.getParsedResult(this.translations[this.currentLang],e,t);return f(s)?Array.isArray(e)?e.reduce((i,a)=>(i[a]=a,i),{}):e:s}set(e,t,s=this.currentLang){se(this.translations[s],e,$(t)?this.compiler.compile(t,s):this.compiler.compileTranslations(t,s)),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(t){return new(t||n)(o(m),o(c),o(g),o(d),o(b),o(U),o(O),o(B),o(_))};static \u0275prov=h({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var ve=(()=>{class n{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,t){this.translate=e,this._ref=t}updateValue(e,t,s){let i=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(s){let a=this.translate.getParsedResult(s,e,t);f(a)?a.subscribe(i):i(a)}this.translate.get(e,t).subscribe(i)}transform(e,...t){if(!e||!e.length)return e;if(j(e,this.lastKey)&&j(t,this.lastParams))return this.value;let s;if(u(t[0])&&t.length)if($(t[0])&&t[0].length){let i=t[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{s=JSON.parse(i)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else D(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(t){return new(t||n)(N(G,16),N(Z,16))};static \u0275pipe=W({name:"translate",type:n,pure:!1});static \u0275prov=h({token:n,factory:n.\u0275fac})}return n})();var Ce=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:c,useClass:Q},e.compiler||{provide:g,useClass:ee},e.parser||{provide:d,useClass:k},e.missingTranslationHandler||{provide:b,useClass:Y},m,{provide:O,useValue:e.isolate},{provide:U,useValue:e.useDefaultLang},{provide:B,useValue:e.extend},{provide:_,useValue:e.defaultLanguage},G]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:c,useClass:Q},e.compiler||{provide:g,useClass:ee},e.parser||{provide:d,useClass:k},e.missingTranslationHandler||{provide:b,useClass:Y},{provide:O,useValue:e.isolate},{provide:U,useValue:e.useDefaultLang},{provide:B,useValue:e.extend},{provide:_,useValue:e.defaultLanguage},G]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=z({type:n});static \u0275inj=X({})}return n})();export{G as a,ve as b,Ce as c};