homebridge-config-ui-x 5.0.0-beta.1 → 5.0.0-beta.100

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 (287) hide show
  1. package/CHANGELOG.md +439 -18
  2. package/CONTRIBUTING.md +5 -4
  3. package/LICENSE +1 -1
  4. package/README.md +6 -8
  5. package/config.schema.json +55 -252
  6. package/dist/bin/fork.js +17 -7
  7. package/dist/bin/fork.js.map +1 -1
  8. package/dist/bin/hb-service.d.ts +2 -2
  9. package/dist/bin/hb-service.js +69 -58
  10. package/dist/bin/hb-service.js.map +1 -1
  11. package/dist/bin/platforms/darwin.js +2 -2
  12. package/dist/bin/platforms/darwin.js.map +1 -1
  13. package/dist/bin/platforms/win32.js +4 -2
  14. package/dist/bin/platforms/win32.js.map +1 -1
  15. package/dist/bin/standalone.js +18 -7
  16. package/dist/bin/standalone.js.map +1 -1
  17. package/dist/core/auth/auth.controller.d.ts +31 -3
  18. package/dist/core/auth/auth.controller.js.map +1 -1
  19. package/dist/core/auth/auth.module.js +1 -1
  20. package/dist/core/auth/auth.module.js.map +1 -1
  21. package/dist/core/auth/auth.service.js +10 -10
  22. package/dist/core/auth/auth.service.js.map +1 -1
  23. package/dist/core/auth/jwt.strategy.d.ts +3 -1
  24. package/dist/core/config/config.service.d.ts +46 -11
  25. package/dist/core/config/config.service.js +57 -20
  26. package/dist/core/config/config.service.js.map +1 -1
  27. package/dist/core/config/config.startup.js +2 -2
  28. package/dist/core/config/config.startup.js.map +1 -1
  29. package/dist/core/homebridge-ipc/homebridge-ipc.service.js +3 -3
  30. package/dist/core/homebridge-ipc/homebridge-ipc.service.js.map +1 -1
  31. package/dist/index.js +6 -67
  32. package/dist/index.js.map +1 -1
  33. package/dist/main.js +2 -1
  34. package/dist/main.js.map +1 -1
  35. package/dist/modules/accessories/accessories.controller.js +5 -5
  36. package/dist/modules/accessories/accessories.controller.js.map +1 -1
  37. package/dist/modules/accessories/accessories.service.js +8 -7
  38. package/dist/modules/accessories/accessories.service.js.map +1 -1
  39. package/dist/modules/backup/backup.controller.js +7 -7
  40. package/dist/modules/backup/backup.controller.js.map +1 -1
  41. package/dist/modules/backup/backup.service.js +19 -79
  42. package/dist/modules/backup/backup.service.js.map +1 -1
  43. package/dist/modules/child-bridges/child-bridges.service.js +0 -7
  44. package/dist/modules/child-bridges/child-bridges.service.js.map +1 -1
  45. package/dist/modules/config-editor/config-editor.controller.d.ts +7 -1
  46. package/dist/modules/config-editor/config-editor.controller.js +36 -8
  47. package/dist/modules/config-editor/config-editor.controller.js.map +1 -1
  48. package/dist/modules/config-editor/config-editor.service.d.ts +5 -1
  49. package/dist/modules/config-editor/config-editor.service.js +132 -69
  50. package/dist/modules/config-editor/config-editor.service.js.map +1 -1
  51. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.d.ts +1 -1
  52. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js +13 -11
  53. package/dist/modules/custom-plugins/plugins-settings-ui/plugins-settings-ui.service.js.map +1 -1
  54. package/dist/modules/log/log.gateway.d.ts +2 -1
  55. package/dist/modules/log/log.gateway.js.map +1 -1
  56. package/dist/modules/log/log.service.js +3 -3
  57. package/dist/modules/log/log.service.js.map +1 -1
  58. package/dist/modules/platform-tools/docker/docker.controller.js +3 -3
  59. package/dist/modules/platform-tools/docker/docker.controller.js.map +1 -1
  60. package/dist/modules/platform-tools/docker/docker.service.js +1 -1
  61. package/dist/modules/platform-tools/docker/docker.service.js.map +1 -1
  62. package/dist/modules/platform-tools/hb-service/hb-service.controller.js +3 -3
  63. package/dist/modules/platform-tools/hb-service/hb-service.controller.js.map +1 -1
  64. package/dist/modules/platform-tools/hb-service/hb-service.service.js +6 -6
  65. package/dist/modules/platform-tools/hb-service/hb-service.service.js.map +1 -1
  66. package/dist/modules/platform-tools/linux/linux.controller.js +2 -2
  67. package/dist/modules/platform-tools/linux/linux.controller.js.map +1 -1
  68. package/dist/modules/platform-tools/linux/linux.service.js +2 -2
  69. package/dist/modules/platform-tools/linux/linux.service.js.map +1 -1
  70. package/dist/modules/platform-tools/terminal/terminal.gateway.d.ts +2 -1
  71. package/dist/modules/platform-tools/terminal/terminal.gateway.js.map +1 -1
  72. package/dist/modules/platform-tools/terminal/terminal.service.js +2 -2
  73. package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
  74. package/dist/modules/plugins/plugins.controller.js +4 -4
  75. package/dist/modules/plugins/plugins.controller.js.map +1 -1
  76. package/dist/modules/plugins/plugins.service.d.ts +7 -1
  77. package/dist/modules/plugins/plugins.service.js +215 -127
  78. package/dist/modules/plugins/plugins.service.js.map +1 -1
  79. package/dist/modules/server/server.controller.d.ts +33 -3
  80. package/dist/modules/server/server.controller.js +162 -20
  81. package/dist/modules/server/server.controller.js.map +1 -1
  82. package/dist/modules/server/server.service.d.ts +35 -6
  83. package/dist/modules/server/server.service.js +265 -66
  84. package/dist/modules/server/server.service.js.map +1 -1
  85. package/dist/modules/status/status.controller.d.ts +0 -1
  86. package/dist/modules/status/status.controller.js +3 -4
  87. package/dist/modules/status/status.controller.js.map +1 -1
  88. package/dist/modules/status/status.gateway.d.ts +1 -1
  89. package/dist/modules/status/status.service.d.ts +1 -1
  90. package/dist/modules/status/status.service.js +25 -41
  91. package/dist/modules/status/status.service.js.map +1 -1
  92. package/dist/modules/users/users.controller.js +7 -7
  93. package/dist/modules/users/users.controller.js.map +1 -1
  94. package/dist/self-check.js +6 -6
  95. package/dist/self-check.js.map +1 -1
  96. package/package.json +50 -44
  97. package/public/3rdpartylicenses.txt +573 -463
  98. package/public/assets/hap-icons/airpurifier.svg +49 -16
  99. package/public/assets/hap-icons/airquality.svg +24 -13
  100. package/public/assets/hap-icons/co-sensor.svg +72 -0
  101. package/public/assets/hap-icons/co2-sensor.svg +72 -0
  102. package/public/assets/hap-icons/contactsensor-closed.svg +35 -2
  103. package/public/assets/hap-icons/contactsensor-open.svg +80 -2
  104. package/public/assets/hap-icons/door-closed.svg +32 -2
  105. package/public/assets/hap-icons/door-open.svg +48 -2
  106. package/public/assets/hap-icons/fan-off.svg +24 -13
  107. package/public/assets/hap-icons/fan-on.svg +24 -13
  108. package/public/assets/hap-icons/garagedoor.svg +24 -13
  109. package/public/assets/hap-icons/humidity.svg +24 -13
  110. package/public/assets/hap-icons/irrigation-system.svg +47 -18
  111. package/public/assets/hap-icons/leaksensor.svg +52 -2
  112. package/public/assets/hap-icons/light.svg +47 -28
  113. package/public/assets/hap-icons/lightbulb.svg +24 -13
  114. package/public/assets/hap-icons/lock-locked.svg +24 -13
  115. package/public/assets/hap-icons/lock-unlocked.svg +24 -13
  116. package/public/assets/hap-icons/motionsensor.svg +100 -2
  117. package/public/assets/hap-icons/occupancysensor.svg +97 -2
  118. package/public/assets/hap-icons/outlet.svg +24 -13
  119. package/public/assets/hap-icons/securitysystem-active.svg +102 -2
  120. package/public/assets/hap-icons/securitysystem-off.svg +68 -2
  121. package/public/assets/hap-icons/smokesensor.svg +42 -9
  122. package/public/assets/hap-icons/speaker.svg +29 -13
  123. package/public/assets/hap-icons/statelessprogrammableswitch.svg +51 -2
  124. package/public/assets/hap-icons/switch.svg +24 -13
  125. package/public/assets/hap-icons/television.svg +15 -4
  126. package/public/assets/hap-icons/temperature.svg +24 -13
  127. package/public/assets/hap-icons/unknown.svg +24 -13
  128. package/public/assets/hap-icons/valve-generic.svg +27 -16
  129. package/public/assets/hap-icons/valve-irrigation.svg +37 -21
  130. package/public/assets/hap-icons/valve-showerhead.svg +52 -0
  131. package/public/assets/hap-icons/valve-waterfaucet.svg +21 -0
  132. package/public/assets/hap-icons/window-closed.svg +85 -2
  133. package/public/assets/hap-icons/window-open.svg +136 -2
  134. package/public/assets/hap-icons/windowcovering-closed.svg +45 -49
  135. package/public/assets/hap-icons/windowcovering-open.svg +40 -44
  136. package/public/assets/homebridge-color-round.svg +36 -1
  137. package/public/assets/homebridge-logo.svg +11 -1
  138. package/public/assets/mask-icon.svg +5 -1
  139. package/public/assets/plugin-ui-utils/ui.js +41 -19
  140. package/public/assets/plugin-ui-utils/ui.js.map +1 -1
  141. package/public/chunk-2E6EOZUJ.js +1 -0
  142. package/public/chunk-2EEZAGZA.js +1 -0
  143. package/public/chunk-2G7GNBIF.js +1 -0
  144. package/public/chunk-3GEFBFMQ.js +1 -0
  145. package/public/chunk-3VYIHHCL.js +1 -0
  146. package/public/chunk-45NQ4GBG.js +1 -0
  147. package/public/chunk-4G7RRMI2.js +1 -0
  148. package/public/chunk-4L2H4MMG.js +29 -0
  149. package/public/chunk-4LX4LX6P.js +1 -0
  150. package/public/chunk-4SLRCK6B.js +2 -0
  151. package/public/chunk-53ILAFUX.js +1 -0
  152. package/public/chunk-5FYL3TBQ.js +1 -0
  153. package/public/chunk-5PN6UJOB.js +1 -0
  154. package/public/chunk-6IOCCVAH.js +1 -0
  155. package/public/chunk-7REMZHOO.js +1 -0
  156. package/public/chunk-AH6LOD34.js +1 -0
  157. package/public/chunk-ALG7CIS3.js +5 -0
  158. package/public/chunk-AQNNOWXC.js +1 -0
  159. package/public/chunk-B4X7IOGK.js +1 -0
  160. package/public/chunk-BALPGJEG.js +1 -0
  161. package/public/chunk-BIRWL4X3.js +1 -0
  162. package/public/chunk-BMCQHGMB.js +1 -0
  163. package/public/chunk-BNYXD34L.js +1 -0
  164. package/public/chunk-BRW7C4BZ.js +1 -0
  165. package/public/chunk-C6HQUAQJ.js +1 -0
  166. package/public/chunk-C6LXQBT3.js +1 -0
  167. package/public/chunk-CG7LPZUJ.js +1 -0
  168. package/public/chunk-CMZBGXBL.js +1 -0
  169. package/public/chunk-CRIZPUI6.js +8 -0
  170. package/public/chunk-DDFZVHUO.js +1 -0
  171. package/public/chunk-DQUBVCJE.js +1 -0
  172. package/public/chunk-EULZTUQA.js +1 -0
  173. package/public/chunk-F6PRUGSN.js +1 -0
  174. package/public/chunk-FD3D3FMF.js +1 -0
  175. package/public/chunk-FJJNRLA7.js +1 -0
  176. package/public/chunk-FSQ4KA4X.js +1 -0
  177. package/public/chunk-FXS7MG4Z.js +1 -0
  178. package/public/chunk-GMY5QOXR.js +7 -0
  179. package/public/chunk-HE2YZMXJ.js +1 -0
  180. package/public/chunk-HOGBMPOF.js +1 -0
  181. package/public/chunk-HOI6GB6V.js +1 -0
  182. package/public/chunk-IOWBVW62.js +2 -0
  183. package/public/chunk-LCYRJQ4W.js +1 -0
  184. package/public/chunk-M2U64RPA.js +1 -0
  185. package/public/chunk-MAXJEMB2.js +1 -0
  186. package/public/chunk-MGEQZI52.js +1 -0
  187. package/public/chunk-MTSNBCD6.js +1 -0
  188. package/public/chunk-O752QW52.js +8 -0
  189. package/public/chunk-OHSRCO5R.js +1 -0
  190. package/public/chunk-OTJCSRHZ.js +1 -0
  191. package/public/chunk-PAQIQJ5I.js +1 -0
  192. package/public/chunk-PODF4FUD.js +1 -0
  193. package/public/chunk-PYWNQR2G.js +1 -0
  194. package/public/chunk-Q5OGHYTC.js +1 -0
  195. package/public/chunk-QIH36FRX.js +1 -0
  196. package/public/chunk-QMB5XE4Y.js +1 -0
  197. package/public/chunk-R3VPSO5X.js +7 -0
  198. package/public/chunk-RGUTUTJY.js +20 -0
  199. package/public/chunk-RJAFS3B2.js +1 -0
  200. package/public/chunk-RNHMRKPJ.js +8 -0
  201. package/public/chunk-SHP2ASKV.js +5 -0
  202. package/public/chunk-SMR5XBWZ.js +1 -0
  203. package/public/chunk-T5VLECCH.js +23 -0
  204. package/public/chunk-TFSUXAYX.js +1 -0
  205. package/public/chunk-UCO62FWN.js +1 -0
  206. package/public/chunk-UTAVUGTT.js +14 -0
  207. package/public/chunk-UVOJ3BF7.js +1 -0
  208. package/public/chunk-UVQC4EUO.js +6 -0
  209. package/public/chunk-VECPBVSQ.js +1 -0
  210. package/public/{chunk-GNQUXZMN.js → chunk-VHTQTL2S.js} +1 -1
  211. package/public/chunk-VJEUBTTK.js +1 -0
  212. package/public/chunk-VLX322GM.js +1 -0
  213. package/public/chunk-VUYAK52W.js +2 -0
  214. package/public/{chunk-6QEO3BTW.js → chunk-WAA5KWIN.js} +14 -14
  215. package/public/chunk-WGYMALW2.js +1 -0
  216. package/public/chunk-WU2EPT6Y.js +1 -0
  217. package/public/chunk-WUMR3VEV.js +1 -0
  218. package/public/chunk-WZZWFCHX.js +4 -0
  219. package/public/chunk-XB7KM2X2.js +1 -0
  220. package/public/chunk-YJ2ZKKJQ.js +1 -0
  221. package/public/index.html +2 -2
  222. package/public/main-BQGRDRA6.js +1 -0
  223. package/public/media/fa-brands-400-Q3XCMWHQ.woff2 +0 -0
  224. package/public/media/{fa-brands-400-CNBICIQT.ttf → fa-brands-400-R2XQZCET.ttf} +0 -0
  225. package/public/media/fa-regular-400-QSNYFYRT.woff2 +0 -0
  226. package/public/media/{fa-regular-400-2FI4ICQD.ttf → fa-regular-400-XUOPSR7E.ttf} +0 -0
  227. package/public/media/fa-solid-900-5ZUYHGA7.woff2 +0 -0
  228. package/public/media/{fa-solid-900-XVWCCN5V.ttf → fa-solid-900-PJNKLK6W.ttf} +0 -0
  229. package/public/polyfills-GCAZ7JAV.js +2 -0
  230. package/public/prerendered-routes.json +3 -0
  231. package/public/styles-PKR3EGHP.css +1 -0
  232. package/scripts/upgrade-install-plugin.sh +1 -1
  233. package/public/chunk-3KSUXL3K.js +0 -20
  234. package/public/chunk-422JXES4.js +0 -23
  235. package/public/chunk-4R6MSI5I.js +0 -14
  236. package/public/chunk-5UYN5OWH.js +0 -1
  237. package/public/chunk-7564WJJL.js +0 -1
  238. package/public/chunk-7R6JSPNH.js +0 -1
  239. package/public/chunk-B6C32ZRK.js +0 -1
  240. package/public/chunk-B6G7GTDI.js +0 -1
  241. package/public/chunk-BQLALGZ5.js +0 -4
  242. package/public/chunk-BROUJ7PT.js +0 -1
  243. package/public/chunk-C4OONTE3.js +0 -1
  244. package/public/chunk-DOLYKWZH.js +0 -1
  245. package/public/chunk-DRWF7R4E.js +0 -1
  246. package/public/chunk-F22FMU37.js +0 -1
  247. package/public/chunk-FBP5C7VG.js +0 -1
  248. package/public/chunk-FPOZAQLC.js +0 -5
  249. package/public/chunk-IGUSDGD6.js +0 -8
  250. package/public/chunk-JM7QCDMZ.js +0 -1
  251. package/public/chunk-K3YXRBTH.js +0 -1
  252. package/public/chunk-K6TZNXIW.js +0 -1
  253. package/public/chunk-LS7T2AVU.js +0 -8
  254. package/public/chunk-NZPTOWFC.js +0 -20
  255. package/public/chunk-RID7V4NP.js +0 -1
  256. package/public/chunk-RIWBPQF3.js +0 -1
  257. package/public/chunk-S4SOWUAW.js +0 -1
  258. package/public/chunk-SJTXTMYT.js +0 -2
  259. package/public/chunk-T5QVI4H2.js +0 -1
  260. package/public/chunk-TBJQ2Y3M.js +0 -1
  261. package/public/chunk-THFLPY67.js +0 -7
  262. package/public/chunk-TS27NWVA.js +0 -20
  263. package/public/chunk-VROGSJLF.js +0 -1
  264. package/public/chunk-VVILZWTF.js +0 -1
  265. package/public/chunk-WCDFKYP6.js +0 -5
  266. package/public/chunk-WCQIGCXO.js +0 -1
  267. package/public/chunk-Z47RP4BH.js +0 -1
  268. package/public/chunk-ZEONO5N6.js +0 -1
  269. package/public/main-VTRWQ63R.js +0 -6
  270. package/public/media/01-RQ3S2L53.png +0 -0
  271. package/public/media/02-VNCG2I2A.png +0 -0
  272. package/public/media/03-HI42L4ZG.png +0 -0
  273. package/public/media/04-FJLL55LZ.png +0 -0
  274. package/public/media/05-V3EO6SPT.png +0 -0
  275. package/public/media/06-EOJZCQZN.png +0 -0
  276. package/public/media/07-KMKB5PBD.png +0 -0
  277. package/public/media/08-UQJRF6B2.png +0 -0
  278. package/public/media/09-2DJQFRHH.png +0 -0
  279. package/public/media/arrow_left-CQT7FZM7.svg +0 -4
  280. package/public/media/arrow_right-SBUDRR2G.svg +0 -4
  281. package/public/media/fa-brands-400-MDS4TU4L.woff2 +0 -0
  282. package/public/media/fa-regular-400-N56QV3DR.woff2 +0 -0
  283. package/public/media/fa-solid-900-Z3HFQTXF.woff2 +0 -0
  284. package/public/polyfills-CE2SNIQF.js +0 -2
  285. package/public/scripts-6GVLYD7F.js +0 -62
  286. package/public/styles-7ETWN6DQ.css +0 -1
  287. /package/public/assets/{bootstrap-4 → bootstrap-5}/cssframework/assets.json +0 -0
@@ -0,0 +1,20 @@
1
+ import{a as ee}from"./chunk-BRW7C4BZ.js";import{a as Z,b as ne}from"./chunk-UTAVUGTT.js";import{a as W,b as Y}from"./chunk-IOWBVW62.js";import{a as X}from"./chunk-UVOJ3BF7.js";import{m as J,n as K,o as U}from"./chunk-ALG7CIS3.js";import{c as N,e as F,l as q,z}from"./chunk-VLX322GM.js";import{b as G}from"./chunk-2G7GNBIF.js";import{b as Q}from"./chunk-WU2EPT6Y.js";import{k as M,n as V}from"./chunk-DQUBVCJE.js";import{a as k,b as T}from"./chunk-QMB5XE4Y.js";import{$a as n,Ac as s,Bc as d,Cc as O,Gb as C,Hb as m,Ib as p,Kb as I,Lb as j,Mb as H,Nb as v,Ob as r,Pb as a,Qb as w,Ub as b,Xb as _,Yb as l,eb as D,g as oe,h as S,id as L,jc as y,kc as x,la as h,lb as $,lc as E,qc as R,ra as g,rc as P,sa as u,sc as B,w as A}from"./chunk-R3VPSO5X.js";var ie=oe(ne(),1);function ae(o,f){o&1&&(r(0,"div",5),w(1,"i",12),a())}function se(o,f){if(o&1){let e=b();r(0,"li",17),y(1),s(2,"date"),r(3,"button",18),s(4,"translate"),_("click",function(){let t=g(e).$implicit,c=l(3);return u(c.restore(t.id))}),w(5,"i",19),a()()}if(o&2){let e=f.$implicit;n(),E(" ",O(2,2,e.timestamp,"medium")," "),n(2),C("aria-label",d(4,5,"config.restore.copy_to_editor"))}}function le(o,f){if(o&1&&(r(0,"ul",15),j(1,se,6,7,"li",17,I),a()),o&2){let e=l(2);n(),H(e.backupList)}}function de(o,f){o&1&&(r(0,"p",16),y(1),s(2,"translate"),a()),o&2&&(n(),x(d(2,1,"config.restore.no_backups")))}function ce(o,f){if(o&1&&(r(0,"div",13),w(1,"i",14),a(),r(2,"p",13),y(3),s(4,"translate"),a(),m(5,le,3,0,"ul",15),m(6,de,3,3,"p",16)),o&2){let e=l();n(3),x(d(4,3,"config.restore.title_restore_homebridge_backup")),n(2),p(e.backupList&&e.backupList.length?5:-1),n(),p(!e.backupList||!e.backupList.length?6:-1)}}function me(o,f){if(o&1){let e=b();r(0,"button",20),s(1,"translate"),_("click",function(){g(e);let t=l();return u(t.$activeModal.dismiss("Dismiss"))}),y(2),s(3,"translate"),a()}o&2&&(C("aria-label",d(1,2,"form.button_close")),n(2),E(" ",d(3,4,"form.button_close")," "))}function pe(o,f){if(o&1){let e=b();r(0,"button",20),s(1,"translate"),_("click",function(){g(e);let t=l();return u(t.$activeModal.dismiss("Dismiss"))}),y(2),s(3,"translate"),a()}o&2&&(C("aria-label",d(1,2,"form.button_close")),n(2),E(" ",d(3,4,"form.button_close")," "))}function fe(o,f){if(o&1){let e=b();r(0,"button",21),s(1,"translate"),_("click",function(){g(e);let t=l();return u(t.deleteAllBackups())}),y(2),s(3,"translate"),a()}o&2&&(C("aria-label",d(1,2,"form.button_remove")),n(2),E(" ",d(3,4,"form.button_remove")," "))}var te=(()=>{class o{$activeModal=h(J);$api=h(V);$toastr=h(M);$translate=h(k);loading=!0;backupList=[];constructor(){}ngOnInit(){this.$api.get("/config-editor/backups").subscribe({next:e=>{this.loading=!1,this.backupList=e},error:e=>{this.loading=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error"))}})}restore(e){return this.$activeModal.close(e)}deleteAllBackups(){return this.$api.delete("/config-editor/backups").subscribe({next:()=>{this.$activeModal.dismiss(),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success"))},error:e=>{console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error"))}})}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=$({type:o,selectors:[["ng-component"]],decls:17,vars:11,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"text-center","primary-text"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-danger","me-auto"],[1,"fa","fa-fw","fa-cog","fa-spin",2,"font-size","75px"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-history","primary-text",2,"font-size","75px"],[1,"list-group","list-group-box"],[1,"text-center","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","m-0","ms-3",3,"click"],[1,"fas","fa-fw","fa-arrow-right"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],["type","button",1,"btn","btn-danger","me-auto",3,"click"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"h5",2),y(3),s(4,"translate"),a(),r(5,"button",3),s(6,"translate"),_("click",function(){return t.$activeModal.dismiss("Dismiss")}),a()(),r(7,"div",4),m(8,ae,2,0,"div",5),m(9,ce,7,5),a(),r(10,"div",6)(11,"div",7),m(12,me,4,6,"button",8),a(),r(13,"div",9),m(14,pe,4,6,"button",8),a(),r(15,"div",10),m(16,fe,4,6,"button",11),a()()()),i&2&&(n(3),x(d(4,7,"form.button_restore")),n(2),C("aria-label",d(6,9,"form.button_close")),n(3),p(t.loading?8:-1),n(),p(t.loading?-1:9),n(3),p(!t.loading&&t.backupList.length?12:-1),n(2),p(t.loading||!t.loading&&!t.backupList.length?14:-1),n(2),p(!t.loading&&t.backupList.length?16:-1))},dependencies:[L,T],encapsulation:2})}return o})();function ge(o,f){if(o&1){let e=b();r(0,"button",13),s(1,"translate"),s(2,"translate"),_("click",function(){g(e);let t=l();return u(t.onExportConfig())}),w(3,"i",14),a()}o&2&&(v("ngbTooltip",d(1,2,"form.button_download")),C("aria-label",d(2,4,"form.button_download")))}function ue(o,f){if(o&1){let e=b();r(0,"button",15),s(1,"translate"),s(2,"translate"),_("click",function(){g(e);let t=l();return u(t.onCancelRestore())}),w(3,"i",16),a()}if(o&2){let e=l();v("disabled",e.saveInProgress)("ngbTooltip",d(1,3,"form.button_cancel")),C("aria-label",d(2,5,"form.button_cancel"))}}function he(o,f){if(o&1){let e=b();r(0,"button",13),s(1,"translate"),s(2,"translate"),_("click",function(){g(e);let t=l();return u(t.onRestore())}),w(3,"i",17),a()}o&2&&(v("ngbTooltip",d(1,2,"form.button_restore")),C("aria-label",d(2,4,"form.button_restore")))}function _e(o,f){o&1&&w(0,"i",8)}function be(o,f){o&1&&w(0,"i",9)}function Ce(o,f){if(o&1){let e=b();r(0,"ngx-monaco-editor",18),_("onInit",function(t){g(e);let c=l();return u(c.onEditorInit(t))})("keydown.control.s",function(t){g(e);let c=l();return t.preventDefault(),u(c.onSave())})("keydown.meta.s",function(t){g(e);let c=l();return t.preventDefault(),u(c.onSave())}),a()}if(o&2){let e=l();v("options",e.editorOptions)("model",e.monacoEditorModel)}}function ye(o,f){if(o&1){let e=b();r(0,"ngx-monaco-diff-editor",19),_("onInit",function(t){g(e);let c=l();return u(c.onInitDiffEditor(t))})("keydown.control.s",function(t){g(e);let c=l();return t.preventDefault(),u(c.onSave())})("keydown.meta.s",function(t){g(e);let c=l();return t.preventDefault(),u(c.onSave())}),a()}if(o&2){let e=l();v("options",e.editorOptions)("originalModel",e.monacoEditorModel)("modifiedModel",e.monacoEditorModel)}}function we(o,f){if(o&1){let e=b();r(0,"textarea",20),B("ngModelChange",function(t){g(e);let c=l();return P(c.homebridgeConfig,t)||(c.homebridgeConfig=t),u(t)}),y(1," "),a()}if(o&2){let e=l();R("ngModel",e.homebridgeConfig)}}var Ke=(()=>{class o{$api=h(V);$md=h(X);$modal=h(K);$monacoEditor=h(ee);$route=h(G);$renderer=h(D);$settings=h(Q);$toastr=h(M);$translate=h(k);homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;editorDecorations=[];lastHeight;visualViewPortEventCallback;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(i=>{this.homebridgeConfig=i.config}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>{this.setMonacoEditorModel()}})}onEditorInit(e){window.editor=e,this.monacoEditor=e,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(e){this.monacoEditor=e.modifiedEditor,e.getModel().original.setValue(this.originalConfig),e.getModel().modified.setValue(this.homebridgeConfig),window.editor=e}onSave(){return S(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let i=window.monaco.editor.getModelMarkers({owner:"json"});for(let t of i)if(t.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let e=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(e,null,4),typeof e.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(e.bridge.username)?e.accessories&&!Array.isArray(e.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&!Array.isArray(e.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&Array.isArray(e.platforms)&&!this.validateSection(e.platforms,"platform")||e.accessories&&Array.isArray(e.accessories)&&!this.validateSection(e.accessories,"accessory")||e.plugins&&Array.isArray(e.plugins)&&!this.validatePlugins(e.plugins,"plugins")||e.disabledPlugins&&Array.isArray(e.disabledPlugins)&&!this.validatePlugins(e.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(e),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let i=ie.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(i,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),i}}saveConfig(e){return S(this,null,function*(){try{let i=yield A(this.$api.post("/config-editor",e));this.homebridgeConfig=JSON.stringify(i,null,4),this.$modal.open(Z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}onRestore(){this.$modal.open(te,{size:"lg",backdrop:"static"}).result.then(e=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig),this.$api.get(`/config-editor/backups/${e}`).subscribe({next:i=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(i,null,4),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:i=>{console.error(i),this.$toastr.error(i.error.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onExportConfig(){let e=`data:text/json;charset=utf-8,${encodeURIComponent(this.homebridgeConfig)}`,i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("download","config.json"),document.body.appendChild(i),i.click(),i.remove()}onCancelRestore(){this.homebridgeConfig=this.originalConfig,this.originalConfig=""}validateSection(e,i){for(let t of e){if(typeof t!="object"||Array.isArray(t))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1;if(!t[i])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1;if(typeof t[i]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:i}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(t),!1}return!0}validatePlugins(e,i){for(let t of e)if(typeof t!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:i}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(e){this.monacoEditor&&(e=JSON.stringify(e,null,4).split(`
2
+ `).map(i=>` ${i}`).join(`
3
+ `),setTimeout(()=>{let i=this.monacoEditor.getModel().findMatches(e);if(i.length){let t=i[0].range,c=new monaco.Range(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn);this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[{range:c,options:{isWholeLine:!0,linesDecorationsClassName:"hb-monaco-editor-line-error"}}])}},200))}setMonacoEditorModel(){if(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas.some(i=>i.uri==="http://homebridge/config.json"))return;let e=monaco.Uri.parse("a://homebridge/config.json");window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!1,validate:!0,schemas:[{uri:"http://homebridge/config.json",fileMatch:[e.toString()],schema:{type:"object",required:["bridge"],properties:{bridge:{type:"object",required:["name","username","port","pin"],properties:{name:{type:"string",description:`The Homebridge instance name.
4
+ This should be unique if you are running multiple instances of Homebridge.`,default:"Homebridge"},username:{type:"string",description:`Homebridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
5
+ You should change this pin if you need to re-pair your instance with HomeKit.
6
+ Example: 0E:89:49:64:91:86`,default:"0E:89:49:64:91:86",pattern:"^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$"},port:{type:"number",description:`The port Homebridge listens on.
7
+ If running more than one instance of Homebridge on the same server make sure each instance is given a unique port.`,default:51173,minimum:1025,maximum:65534},pin:{type:"string",description:`The Homebridge instance pin.
8
+ This is used when pairing Homebridge to HomeKit.
9
+ Example: 630-27-655`,default:"630-27-655",pattern:"^([0-9]{3}-[0-9]{2}-[0-9]{3})$"},manufacturer:{type:"string",description:"The bridge manufacturer to be displayed in HomeKit"},firmwareRevision:{type:"string",description:"The bridge firmware version to be displayed in HomeKit"},model:{type:"string",description:"The bridge model to be displayed in HomeKit"},bind:{description:`A string or an array of strings with the name(s) of the network interface(s) Homebridge should bind to.
10
+
11
+ Requires Homebridge v1.3 or later.`,type:["string","array"],items:{type:"string",description:"Network Interface name that Homebridge should bind to."}}},default:{name:"Homebridge",username:"0E:89:49:64:91:86",port:51173,pin:"6302-7655"}},mdns:{type:"object",properties:{interface:{type:"string",description:`The interface or IP address of the interface you want Homebridge to listen on. This is useful if your server has multiple interfaces.
12
+
13
+ Deprecated as of Homebridge v1.3.0 - use bridge.bind instead.`},legacyAdvertiser:{type:"boolean",description:"Set to `false` to use the new mdns library, ciao."}},default:{legacyAdvertiser:!1}},plugins:{type:"array",description:"An array of plugins that should be selectively enabled. Remove this array to enable all plugins.",items:{type:"string",description:`The full plugin npm package name.
14
+ Example: homebridge-dummy`},default:["homebridge-config-ui-x"]},disabledPlugins:{type:"array",description:`An array of plugins that should be disabled.
15
+
16
+ Requires Homebridge v1.3 or later.`,items:{type:"string",description:`The full plugin npm package name.
17
+ Example: homebridge-dummy`},default:[]},ports:{type:"object",description:"The range of ports that should be used for certain accessories like cameras and TVs",required:["start","end"],properties:{start:{type:"number",default:52100,minimum:1025,maximum:65534},end:{type:"number",default:52150,minimum:1025,maximum:65534}},default:{start:52100,end:52150}},platforms:{type:"array",description:`Any plugin that exposes a platform should have its config entered in this array.
18
+ Separate each plugin config block using a comma.`,items:{type:"object",required:["platform"],anyOf:[{type:"object",required:["platform"],properties:{platform:{type:"string",description:"This is used by Homebridge to identify which plugin this platform belongs to.",not:{enum:["config"]}},name:{type:"string",description:"The name of the platform."}}},{type:"object",properties:{platform:{type:"string",description:`Homebridge UI platform name must be set to "config".
19
+ Do Not Change!`,oneOf:[{enum:"config"}]},name:{type:"string",description:"The name used in the Homebridge log."}}}]}},accessories:{type:"array",description:`Any plugin that exposes an accessory should have its config entered in this array.
20
+ Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],properties:{accessory:{type:"string",description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",description:"The name of the accessory."}}}}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}ngOnDestroy(){let e=document.querySelector(".content");this.$renderer.removeStyle(e,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=$({type:o,selectors:[["ng-component"]],decls:18,vars:18,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"ngbTooltip"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"disabled","ngbTooltip"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-0",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"click","ngbTooltip"],[1,"fas","fa-fw","fa-download"],["container","body","placement","bottom","openDelay","150","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"click","disabled","ngbTooltip"],[1,"fas","fa-fw","fa-times"],[1,"fas","fa-fw","fa-history"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(i,t){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),y(4),s(5,"translate"),a()(),r(6,"div",4),m(7,ge,4,6,"button",5),m(8,ue,4,7,"button",6),m(9,he,4,6,"button",5),r(10,"button",7),s(11,"translate"),s(12,"translate"),_("click",function(){return t.onSave()}),m(13,_e,1,0,"i",8),m(14,be,1,0,"i",9),a()()(),m(15,Ce,1,2,"ngx-monaco-editor",10),m(16,ye,1,3,"ngx-monaco-diff-editor",11),m(17,we,2,1,"textarea",12),a()),i&2&&(n(4),x(d(5,12,"menu.config_json_editor")),n(3),p(t.originalConfig?-1:7),n(),p(t.originalConfig?8:-1),n(),p(t.originalConfig?-1:9),n(),v("disabled",t.saveInProgress)("ngbTooltip",d(11,14,"form.button_save")),C("aria-label",d(12,16,"form.button_save")),n(3),p(t.saveInProgress?-1:13),n(),p(t.saveInProgress?14:-1),n(),p(!t.isMobile&&!t.originalConfig?15:-1),n(),p(!t.isMobile&&t.originalConfig?16:-1),n(),p(t.isMobile?17:-1))},dependencies:[U,W,Y,z,N,F,q,T],encapsulation:2})}return o})();export{Ke as a};
@@ -0,0 +1 @@
1
+ import{a as _,b as D}from"./chunk-WU2EPT6Y.js";import{m as c,n as S}from"./chunk-DQUBVCJE.js";import{f as x}from"./chunk-VUYAK52W.js";import{C as v,g as O,ga as h,h as a,ha as E,ja as y,ka as l,la as f,mb as I,r as p,va as j,w as d,x as T,z as w}from"./chunk-R3VPSO5X.js";var g=new y("JWT_OPTIONS"),m=(()=>{class r{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:{t+="==";break}case 3:{t+="=";break}default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="";if(e=String(e).replace(/=+$/,""),e.length%4===1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let i=0,s,n,b=0;n=e.charAt(b++);~n&&(s=i%4?s*64+n:n,i++%4)?o+=String.fromCharCode(255&s>>(-2*i&6)):0)n=t.indexOf(n);return o}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._decodeToken(t)):this._decodeToken(e)}_decodeToken(e){if(!e||e==="")return null;let t=e.split(".");if(t.length!==3)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");let o=this.urlBase64Decode(t[1]);if(!o)throw new Error("Cannot decode the token.");return JSON.parse(o)}getTokenExpirationDate(e=this.tokenGetter()){return e instanceof Promise?e.then(t=>this._getTokenExpirationDate(t)):this._getTokenExpirationDate(e)}_getTokenExpirationDate(e){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;let o=new Date(0);return o.setUTCSeconds(t.exp),o}isTokenExpired(e=this.tokenGetter(),t){return e instanceof Promise?e.then(o=>this._isTokenExpired(o,t)):this._isTokenExpired(e,t)}_isTokenExpired(e,t){if(!e||e==="")return!0;let o=this.getTokenExpirationDate(e);return t=t||0,o===null?!1:!(o.valueOf()>new Date().valueOf()+t*1e3)}getAuthScheme(e,t){return typeof e=="function"?e(t):e}}return r.\u0275fac=function(e){return new(e||r)(l(g))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),$=r=>r instanceof Promise?v(()=>r):p(r),R=(()=>{class r{constructor(e,t,o){this.jwtHelper=t,this.document=o,this.standardPorts=["80","443"],this.tokenGetter=e.tokenGetter,this.headerName=e.headerName||"Authorization",this.authScheme=e.authScheme||e.authScheme===""?e.authScheme:"Bearer ",this.allowedDomains=e.allowedDomains||[],this.disallowedRoutes=e.disallowedRoutes||[],this.throwNoTokenError=e.throwNoTokenError||!1,this.skipWhenExpired=e.skipWhenExpired}isAllowedDomain(e){let t=new URL(e.url,this.document.location.origin);if(t.host===this.document.location.host)return!0;let o=`${t.hostname}${t.port&&!this.standardPorts.includes(t.port)?":"+t.port:""}`;return this.allowedDomains.findIndex(i=>typeof i=="string"?i===o:i instanceof RegExp?i.test(o):!1)>-1}isDisallowedRoute(e){let t=new URL(e.url,this.document.location.origin);return this.disallowedRoutes.findIndex(o=>{if(typeof o=="string"){let i=new URL(o,this.document.location.origin);return i.hostname===t.hostname&&i.pathname===t.pathname}return o instanceof RegExp?o.test(e.url):!1})>-1}handleInterception(e,t,o){let i=this.jwtHelper.getAuthScheme(this.authScheme,t);if(!e&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let s=p(!1);return this.skipWhenExpired&&(s=e?$(this.jwtHelper.isTokenExpired(e)):p(!0)),e?s.pipe(T(n=>n&&this.skipWhenExpired?t.clone():t.clone({setHeaders:{[this.headerName]:`${i}${e}`}})),w(n=>o.handle(n))):o.handle(t)}intercept(e,t){if(!this.isAllowedDomain(e)||this.isDisallowedRoute(e))return t.handle(e);let o=this.tokenGetter(e);return $(o).pipe(w(i=>this.handleInterception(i,e,t)))}}return r.\u0275fac=function(e){return new(e||r)(l(g),l(m),l(j))},r.\u0275prov=h({token:r,factory:r.\u0275fac}),r})(),F=(()=>{class r{constructor(e){if(e)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:r,providers:[{provide:x,useClass:R,multi:!0},e.jwtOptionsProvider||{provide:g,useValue:e.config},m]}}}return r.\u0275fac=function(e){return new(e||r)(l(r,12))},r.\u0275mod=I({type:r}),r.\u0275inj=E({}),r})();var k=O(_(),1);var q=(()=>{class r{$api=f(S);$jwtHelper=f(m);$settings=f(D);token;user={};logoutTimer;constructor(){this.loadToken()}login(e){return a(this,null,function*(){let t=yield d(this.$api.post("/auth/login",e));if(!this.validateToken(t.access_token))throw new Error("Invalid username or password.");window.localStorage.setItem(c.jwt.tokenKey,t.access_token),yield this.$settings.getAppSettings()})}noauth(){return a(this,null,function*(){let e=yield d(this.$api.post("/auth/noauth",{}));if(this.validateToken(e.access_token))window.localStorage.setItem(c.jwt.tokenKey,e.access_token),yield this.$settings.getAppSettings();else throw new Error("Invalid username or password.")})}logout(){this.user=null,this.token=null,window.localStorage.removeItem(c.jwt.tokenKey),window.location.reload()}loadToken(){return a(this,null,function*(){this.$settings.settingsLoaded||(yield d(this.$settings.onSettingsLoaded));let e=window.localStorage.getItem(c.jwt.tokenKey);e&&this.validateToken(e)})}validateToken(e){try{return this.$jwtHelper.isTokenExpired(e,this.$settings.serverTimeOffset)&&this.logout(),this.user=this.$jwtHelper.decodeToken(e),this.token=e,this.setLogoutTimer(),!0}catch{return window.localStorage.removeItem(c.jwt.tokenKey),this.token=null,!1}}checkToken(){return a(this,null,function*(){try{return yield d(this.$api.get("/auth/check"))}catch(e){e.status===401&&(console.error("Current token is not valid"),this.logout())}})}setLogoutTimer(){if(clearTimeout(this.logoutTimer),!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)){let t=(0,k.default)(this.$jwtHelper.getTokenExpirationDate(this.token)).diff((0,k.default)().add(this.$settings.serverTimeOffset,"s"),"millisecond");t<=2147483647&&(this.logoutTimer=setTimeout(()=>a(this,null,function*(){this.$settings.formAuth===!1?(yield this.noauth(),window.location.reload()):this.logout()}),t))}}isLoggedIn(){return this.$settings.env.instanceId!==this.user.instanceId?(console.error("Token does not match instance"),!1):this.user&&this.token&&!this.$jwtHelper.isTokenExpired(this.token,this.$settings.serverTimeOffset)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=h({token:r,factory:r.\u0275fac})}return r})();export{F as a,q as b};
@@ -0,0 +1,8 @@
1
+ import{Ca as qt,Lc as Ft,Qb as xt,dc as Ut,e as d,ec as Dt,g as He,h as Lt,lb as _t}from"./chunk-R3VPSO5X.js";var zt=d((Dn,kt)=>{kt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var I=d(P=>{var st,Ve=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];P.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};P.getSymbolTotalCodewords=function(t){return Ve[t]};P.getBCHDigit=function(n){let t=0;for(;n!==0;)t++,n>>>=1;return t};P.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');st=t};P.isKanjiModeEnabled=function(){return typeof st<"u"};P.toSJIS=function(t){return st(t)}});var Q=d(w=>{w.L={bit:1};w.M={bit:0};w.Q={bit:3};w.H={bit:2};function Ke(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return w.L;case"m":case"medium":return w.M;case"q":case"quartile":return w.Q;case"h":case"high":return w.H;default:throw new Error("Unknown EC Level: "+n)}}w.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};w.from=function(t,e){if(w.isValid(t))return t;try{return Ke(t)}catch{return e}}});var Kt=d((zn,Vt)=>{function Ht(){this.buffer=[],this.length=0}Ht.prototype={get:function(n){let t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)===1},put:function(n,t){for(let e=0;e<t;e++)this.putBit((n>>>t-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};Vt.exports=Ht});var Ot=d((Hn,Jt)=>{function k(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}k.prototype.set=function(n,t,e,r){let o=n*this.size+t;this.data[o]=e,r&&(this.reservedBit[o]=!0)};k.prototype.get=function(n,t){return this.data[n*this.size+t]};k.prototype.xor=function(n,t,e){this.data[n*this.size+t]^=e};k.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};Jt.exports=k});var Yt=d(j=>{var Je=I().getSymbolSize;j.getRowColCoords=function(t){if(t===1)return[];let e=Math.floor(t/7)+2,r=Je(t),o=r===145?26:Math.ceil((r-13)/(2*e-2))*2,i=[r-7];for(let s=1;s<e-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};j.getPositions=function(t){let e=[],r=j.getRowColCoords(t),o=r.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||e.push([r[i],r[s]]);return e}});var vt=d(jt=>{var Oe=I().getSymbolSize,Qt=7;jt.getPositions=function(t){let e=Oe(t);return[[0,0],[e-Qt,0],[0,e-Qt]]}});var Gt=d(g=>{g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var b={N1:3,N2:3,N3:40,N4:10};g.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};g.from=function(t){return g.isValid(t)?parseInt(t,10):void 0};g.getPenaltyN1=function(t){let e=t.size,r=0,o=0,i=0,s=null,u=null;for(let c=0;c<e;c++){o=i=0,s=u=null;for(let l=0;l<e;l++){let a=t.get(c,l);a===s?o++:(o>=5&&(r+=b.N1+(o-5)),s=a,o=1),a=t.get(l,c),a===u?i++:(i>=5&&(r+=b.N1+(i-5)),u=a,i=1)}o>=5&&(r+=b.N1+(o-5)),i>=5&&(r+=b.N1+(i-5))}return r};g.getPenaltyN2=function(t){let e=t.size,r=0;for(let o=0;o<e-1;o++)for(let i=0;i<e-1;i++){let s=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(s===4||s===0)&&r++}return r*b.N2};g.getPenaltyN3=function(t){let e=t.size,r=0,o=0,i=0;for(let s=0;s<e;s++){o=i=0;for(let u=0;u<e;u++)o=o<<1&2047|t.get(s,u),u>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|t.get(u,s),u>=10&&(i===1488||i===93)&&r++}return r*b.N3};g.getPenaltyN4=function(t){let e=0,r=t.data.length;for(let i=0;i<r;i++)e+=t.data[i];return Math.abs(Math.ceil(e*100/r/5)-10)*b.N4};function Ye(n,t,e){switch(n){case g.Patterns.PATTERN000:return(t+e)%2===0;case g.Patterns.PATTERN001:return t%2===0;case g.Patterns.PATTERN010:return e%3===0;case g.Patterns.PATTERN011:return(t+e)%3===0;case g.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case g.Patterns.PATTERN101:return t*e%2+t*e%3===0;case g.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case g.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}g.applyMask=function(t,e){let r=e.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)e.isReserved(i,o)||e.xor(i,o,Ye(t,i,o))};g.getBestMask=function(t,e){let r=Object.keys(g.Patterns).length,o=0,i=1/0;for(let s=0;s<r;s++){e(s),g.applyMask(s,t);let u=g.getPenaltyN1(t)+g.getPenaltyN2(t)+g.getPenaltyN3(t)+g.getPenaltyN4(t);g.applyMask(s,t),u<i&&(i=u,o=s)}return o}});var ct=d(ut=>{var N=Q(),v=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],G=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ut.getBlocksCount=function(t,e){switch(e){case N.L:return v[(t-1)*4+0];case N.M:return v[(t-1)*4+1];case N.Q:return v[(t-1)*4+2];case N.H:return v[(t-1)*4+3];default:return}};ut.getTotalCodewordsCount=function(t,e){switch(e){case N.L:return G[(t-1)*4+0];case N.M:return G[(t-1)*4+1];case N.Q:return G[(t-1)*4+2];case N.H:return G[(t-1)*4+3];default:return}}});var $t=d(W=>{var z=new Uint8Array(512),$=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)z[e]=t,$[t]=e,t<<=1,t&256&&(t^=285);for(let e=255;e<512;e++)z[e]=z[e-255]})();W.log=function(t){if(t<1)throw new Error("log("+t+")");return $[t]};W.exp=function(t){return z[t]};W.mul=function(t,e){return t===0||e===0?0:z[$[t]+$[e]]}});var Wt=d(H=>{var lt=$t();H.mul=function(t,e){let r=new Uint8Array(t.length+e.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<e.length;i++)r[o+i]^=lt.mul(t[o],e[i]);return r};H.mod=function(t,e){let r=new Uint8Array(t);for(;r.length-e.length>=0;){let o=r[0];for(let s=0;s<e.length;s++)r[s]^=lt.mul(e[s],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};H.generateECPolynomial=function(t){let e=new Uint8Array([1]);for(let r=0;r<t;r++)e=H.mul(e,new Uint8Array([1,lt.exp(r)]));return e}});var te=d((jn,Xt)=>{var Zt=Wt();function at(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}at.prototype.initialize=function(t){this.degree=t,this.genPoly=Zt.generateECPolynomial(this.degree)};at.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let e=new Uint8Array(t.length+this.degree);e.set(t);let r=Zt.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};Xt.exports=at});var ft=d(ee=>{ee.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var dt=d(B=>{var ne="[0-9]+",Qe="[A-Z $%*+\\-./:]+",V="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";V=V.replace(/u/g,"\\u");var je="(?:(?![A-Z0-9 $%*+\\-./:]|"+V+`)(?:.|[\r
2
+ ]))+`;B.KANJI=new RegExp(V,"g");B.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");B.BYTE=new RegExp(je,"g");B.NUMERIC=new RegExp(ne,"g");B.ALPHANUMERIC=new RegExp(Qe,"g");var ve=new RegExp("^"+V+"$"),Ge=new RegExp("^"+ne+"$"),$e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");B.testKanji=function(t){return ve.test(t)};B.testNumeric=function(t){return Ge.test(t)};B.testAlphanumeric=function(t){return $e.test(t)}});var M=d(p=>{var We=ft(),gt=dt();p.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};p.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};p.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};p.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};p.MIXED={bit:-1};p.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!We.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]};p.getBestModeForData=function(t){return gt.testNumeric(t)?p.NUMERIC:gt.testAlphanumeric(t)?p.ALPHANUMERIC:gt.testKanji(t)?p.KANJI:p.BYTE};p.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};p.isValid=function(t){return t&&t.bit&&t.ccBits};function Ze(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return p.NUMERIC;case"alphanumeric":return p.ALPHANUMERIC;case"kanji":return p.KANJI;case"byte":return p.BYTE;default:throw new Error("Unknown mode: "+n)}}p.from=function(t,e){if(p.isValid(t))return t;try{return Ze(t)}catch{return e}}});var ue=d(R=>{var Z=I(),Xe=ct(),re=Q(),S=M(),ht=ft(),ie=7973,oe=Z.getBCHDigit(ie);function tn(n,t,e){for(let r=1;r<=40;r++)if(t<=R.getCapacity(r,e,n))return r}function se(n,t){return S.getCharCountIndicator(n,t)+4}function en(n,t){let e=0;return n.forEach(function(r){let o=se(r.mode,t);e+=o+r.getBitsLength()}),e}function nn(n,t){for(let e=1;e<=40;e++)if(en(n,e)<=R.getCapacity(e,t,S.MIXED))return e}R.from=function(t,e){return ht.isValid(t)?parseInt(t,10):e};R.getCapacity=function(t,e,r){if(!ht.isValid(t))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=S.BYTE);let o=Z.getSymbolTotalCodewords(t),i=Xe.getTotalCodewordsCount(t,e),s=(o-i)*8;if(r===S.MIXED)return s;let u=s-se(r,t);switch(r){case S.NUMERIC:return Math.floor(u/10*3);case S.ALPHANUMERIC:return Math.floor(u/11*2);case S.KANJI:return Math.floor(u/13);case S.BYTE:default:return Math.floor(u/8)}};R.getBestVersionForData=function(t,e){let r,o=re.from(e,re.M);if(Array.isArray(t)){if(t.length>1)return nn(t,o);if(t.length===0)return 1;r=t[0]}else r=t;return tn(r.mode,r.getLength(),o)};R.getEncodedBits=function(t){if(!ht.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;Z.getBCHDigit(e)-oe>=0;)e^=ie<<Z.getBCHDigit(e)-oe;return t<<12|e}});var fe=d(ae=>{var pt=I(),le=1335,rn=21522,ce=pt.getBCHDigit(le);ae.getEncodedBits=function(t,e){let r=t.bit<<3|e,o=r<<10;for(;pt.getBCHDigit(o)-ce>=0;)o^=le<<pt.getBCHDigit(o)-ce;return(r<<10|o)^rn}});var ge=d((Xn,de)=>{var on=M();function _(n){this.mode=on.NUMERIC,this.data=n.toString()}_.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};_.prototype.getLength=function(){return this.data.length};_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)};_.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);let i=this.data.length-e;i>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,i*3+1))};de.exports=_});var pe=d((tr,he)=>{var sn=M(),mt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x(n){this.mode=sn.ALPHANUMERIC,this.data=n}x.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=mt.indexOf(this.data[e])*45;r+=mt.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(mt.indexOf(this.data[e]),6)};he.exports=x});var we=d((er,me)=>{var un=M();function U(n){this.mode=un.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}U.getBitsLength=function(t){return t*8};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(n){for(let t=0,e=this.data.length;t<e;t++)n.put(this.data[t],8)};me.exports=U});var Ee=d((nr,ye)=>{var cn=M(),ln=I();function D(n){this.mode=cn.KANJI,this.data=n}D.getBitsLength=function(t){return t*13};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=ln.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
+ Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}};ye.exports=D});var Ce=d((rr,wt)=>{"use strict";var K={single_source_shortest_paths:function(n,t,e){var r={},o={};o[t]=0;var i=K.PriorityQueue.make();i.push(t,0);for(var s,u,c,l,a,m,h,y,A;!i.empty();){s=i.pop(),u=s.value,l=s.cost,a=n[u]||{};for(c in a)a.hasOwnProperty(c)&&(m=a[c],h=l+m,y=o[c],A=typeof o[c]>"u",(A||y>h)&&(o[c]=h,i.push(c,h),r[c]=u))}if(typeof e<"u"&&typeof o[e]>"u"){var T=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(T)}return r},extract_shortest_path_from_predecessor_list:function(n,t){for(var e=[],r=t,o;r;)e.push(r),o=n[r],r=n[r];return e.reverse(),e},find_path:function(n,t,e){var r=K.single_source_shortest_paths(n,t,e);return K.extract_shortest_path_from_predecessor_list(r,e)},PriorityQueue:{make:function(n){var t=K.PriorityQueue,e={},r;n=n||{};for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e.queue=[],e.sorter=n.sorter||t.default_sorter,e},default_sorter:function(n,t){return n.cost-t.cost},push:function(n,t){var e={value:n,cost:t};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof wt<"u"&&(wt.exports=K)});var Pe=d(F=>{var f=M(),Te=ge(),Ie=pe(),Ne=we(),Me=Ee(),J=dt(),X=I(),an=Ce();function Be(n){return unescape(encodeURIComponent(n)).length}function O(n,t,e){let r=[],o;for(;(o=n.exec(e))!==null;)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function Se(n){let t=O(J.NUMERIC,f.NUMERIC,n),e=O(J.ALPHANUMERIC,f.ALPHANUMERIC,n),r,o;return X.isKanjiModeEnabled()?(r=O(J.BYTE,f.BYTE,n),o=O(J.KANJI,f.KANJI,n)):(r=O(J.BYTE_KANJI,f.BYTE,n),o=[]),t.concat(e,r,o).sort(function(s,u){return s.index-u.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function yt(n,t){switch(t){case f.NUMERIC:return Te.getBitsLength(n);case f.ALPHANUMERIC:return Ie.getBitsLength(n);case f.KANJI:return Me.getBitsLength(n);case f.BYTE:return Ne.getBitsLength(n)}}function fn(n){return n.reduce(function(t,e){let r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}function dn(n){let t=[];for(let e=0;e<n.length;e++){let r=n[e];switch(r.mode){case f.NUMERIC:t.push([r,{data:r.data,mode:f.ALPHANUMERIC,length:r.length},{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.ALPHANUMERIC:t.push([r,{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.KANJI:t.push([r,{data:r.data,mode:f.BYTE,length:Be(r.data)}]);break;case f.BYTE:t.push([{data:r.data,mode:f.BYTE,length:Be(r.data)}])}}return t}function gn(n,t){let e={},r={start:{}},o=["start"];for(let i=0;i<n.length;i++){let s=n[i],u=[];for(let c=0;c<s.length;c++){let l=s[c],a=""+i+c;u.push(a),e[a]={node:l,lastCount:0},r[a]={};for(let m=0;m<o.length;m++){let h=o[m];e[h]&&e[h].node.mode===l.mode?(r[h][a]=yt(e[h].lastCount+l.length,l.mode)-yt(e[h].lastCount,l.mode),e[h].lastCount+=l.length):(e[h]&&(e[h].lastCount=l.length),r[h][a]=yt(l.length,l.mode)+4+f.getCharCountIndicator(l.mode,t))}}o=u}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:e}}function Ae(n,t){let e,r=f.getBestModeForData(n);if(e=f.from(t,r),e!==f.BYTE&&e.bit<r.bit)throw new Error('"'+n+'" cannot be encoded with mode '+f.toString(e)+`.
4
+ Suggested mode is: `+f.toString(r));switch(e===f.KANJI&&!X.isKanjiModeEnabled()&&(e=f.BYTE),e){case f.NUMERIC:return new Te(n);case f.ALPHANUMERIC:return new Ie(n);case f.KANJI:return new Me(n);case f.BYTE:return new Ne(n)}}F.fromArray=function(t){return t.reduce(function(e,r){return typeof r=="string"?e.push(Ae(r,null)):r.data&&e.push(Ae(r.data,r.mode)),e},[])};F.fromString=function(t,e){let r=Se(t,X.isKanjiModeEnabled()),o=dn(r),i=gn(o,e),s=an.find_path(i.map,"start","end"),u=[];for(let c=1;c<s.length-1;c++)u.push(i.table[s[c]].node);return F.fromArray(fn(u))};F.rawSplit=function(t){return F.fromArray(Se(t,X.isKanjiModeEnabled()))}});var Re=d(be=>{var et=I(),Et=Q(),hn=Kt(),pn=Ot(),mn=Yt(),wn=vt(),At=Gt(),Tt=ct(),yn=te(),tt=ue(),En=fe(),Cn=M(),Ct=Pe();function Bn(n,t){let e=n.size,r=wn.getPositions(t);for(let o=0;o<r.length;o++){let i=r[o][0],s=r[o][1];for(let u=-1;u<=7;u++)if(!(i+u<=-1||e<=i+u))for(let c=-1;c<=7;c++)s+c<=-1||e<=s+c||(u>=0&&u<=6&&(c===0||c===6)||c>=0&&c<=6&&(u===0||u===6)||u>=2&&u<=4&&c>=2&&c<=4?n.set(i+u,s+c,!0,!0):n.set(i+u,s+c,!1,!0))}}function An(n){let t=n.size;for(let e=8;e<t-8;e++){let r=e%2===0;n.set(e,6,r,!0),n.set(6,e,r,!0)}}function Tn(n,t){let e=mn.getPositions(t);for(let r=0;r<e.length;r++){let o=e[r][0],i=e[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?n.set(o+s,i+u,!0,!0):n.set(o+s,i+u,!1,!0)}}function In(n,t){let e=n.size,r=tt.getEncodedBits(t),o,i,s;for(let u=0;u<18;u++)o=Math.floor(u/3),i=u%3+e-8-3,s=(r>>u&1)===1,n.set(o,i,s,!0),n.set(i,o,s,!0)}function Bt(n,t,e){let r=n.size,o=En.getEncodedBits(t,e),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?n.set(i,8,s,!0):i<8?n.set(i+1,8,s,!0):n.set(r-15+i,8,s,!0),i<8?n.set(8,r-i-1,s,!0):i<9?n.set(8,15-i-1+1,s,!0):n.set(8,15-i-1,s,!0);n.set(r-8,8,1,!0)}function Nn(n,t){let e=n.size,r=-1,o=e-1,i=7,s=0;for(let u=e-1;u>0;u-=2)for(u===6&&u--;;){for(let c=0;c<2;c++)if(!n.isReserved(o,u-c)){let l=!1;s<t.length&&(l=(t[s]>>>i&1)===1),n.set(o,u-c,l),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||e<=o){o-=r,r=-r;break}}}function Mn(n,t,e){let r=new hn;e.forEach(function(c){r.put(c.mode.bit,4),r.put(c.getLength(),Cn.getCharCountIndicator(c.mode,n)),c.write(r)});let o=et.getSymbolTotalCodewords(n),i=Tt.getTotalCodewordsCount(n,t),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let u=(s-r.getLengthInBits())/8;for(let c=0;c<u;c++)r.put(c%2?17:236,8);return Sn(r,n,t)}function Sn(n,t,e){let r=et.getSymbolTotalCodewords(t),o=Tt.getTotalCodewordsCount(t,e),i=r-o,s=Tt.getBlocksCount(t,e),u=r%s,c=s-u,l=Math.floor(r/s),a=Math.floor(i/s),m=a+1,h=l-a,y=new yn(h),A=0,T=new Array(s),bt=new Array(s),rt=0,ze=new Uint8Array(n.buffer);for(let q=0;q<s;q++){let it=q<c?a:m;T[q]=ze.slice(A,A+it),bt[q]=y.encode(T[q]),A+=it,rt=Math.max(rt,it)}let ot=new Uint8Array(r),Rt=0,E,C;for(E=0;E<rt;E++)for(C=0;C<s;C++)E<T[C].length&&(ot[Rt++]=T[C][E]);for(E=0;E<h;E++)for(C=0;C<s;C++)ot[Rt++]=bt[C][E];return ot}function Pn(n,t,e,r){let o;if(Array.isArray(n))o=Ct.fromArray(n);else if(typeof n=="string"){let l=t;if(!l){let a=Ct.rawSplit(n);l=tt.getBestVersionForData(a,e)}o=Ct.fromString(n,l||40)}else throw new Error("Invalid data");let i=tt.getBestVersionForData(o,e);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
5
+ The chosen QR Code version cannot contain this amount of data.
6
+ Minimum version required to store current data is: `+i+`.
7
+ `);let s=Mn(t,e,o),u=et.getSymbolSize(t),c=new pn(u);return Bn(c,t),An(c),Tn(c,t),Bt(c,e,0),t>=7&&In(c,t),Nn(c,s),isNaN(r)&&(r=At.getBestMask(c,Bt.bind(null,c,e))),At.applyMask(r,c),Bt(c,e,r),{modules:c,version:t,errorCorrectionLevel:e,maskPattern:r,segments:o}}be.create=function(t,e){if(typeof t>"u"||t==="")throw new Error("No input text");let r=Et.M,o,i;return typeof e<"u"&&(r=Et.from(e.errorCorrectionLevel,Et.M),o=tt.from(e.version),i=At.from(e.maskPattern),e.toSJISFunc&&et.setToSJISFunction(e.toSJISFunc)),Pn(t,o,r,i)}});var It=d(L=>{function Le(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let t=n.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+n);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(r){return[r,r]}))),t.length===6&&t.push("F","F");let e=parseInt(t.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+t.slice(0,6).join("")}}L.getOptions=function(t){t||(t={}),t.color||(t.color={});let e=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:e,color:{dark:Le(t.color.dark||"#000000ff"),light:Le(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};L.getScale=function(t,e){return e.width&&e.width>=t+e.margin*2?e.width/(t+e.margin*2):e.scale};L.getImageWidth=function(t,e){let r=L.getScale(t,e);return Math.floor((t+e.margin*2)*r)};L.qrToImageData=function(t,e,r){let o=e.modules.size,i=e.modules.data,s=L.getScale(o,r),u=Math.floor((o+r.margin*2)*s),c=r.margin*s,l=[r.color.light,r.color.dark];for(let a=0;a<u;a++)for(let m=0;m<u;m++){let h=(a*u+m)*4,y=r.color.light;if(a>=c&&m>=c&&a<u-c&&m<u-c){let A=Math.floor((a-c)/s),T=Math.floor((m-c)/s);y=l[i[A*o+T]?1:0]}t[h++]=y.r,t[h++]=y.g,t[h++]=y.b,t[h]=y.a}}});var qe=d(nt=>{var Nt=It();function bn(n,t,e){n.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=e,t.width=e,t.style.height=e+"px",t.style.width=e+"px"}function Rn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}nt.render=function(t,e,r){let o=r,i=e;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),e||(i=Rn()),o=Nt.getOptions(o);let s=Nt.getImageWidth(t.modules.size,o),u=i.getContext("2d"),c=u.createImageData(s,s);return Nt.qrToImageData(c.data,t,o),bn(u,i,s),u.putImageData(c,0,0),i};nt.renderToDataURL=function(t,e,r){let o=r;typeof o>"u"&&(!e||!e.getContext)&&(o=e,e=void 0),o||(o={});let i=nt.render(t,e,o),s=o.type||"image/png",u=o.rendererOpts||{};return i.toDataURL(s,u.quality)}});var Ue=d(xe=>{var Ln=It();function _e(n,t){let e=n.a/255,r=t+'="'+n.hex+'"';return e<1?r+" "+t+'-opacity="'+e.toFixed(2).slice(1)+'"':r}function Mt(n,t,e){let r=n+t;return typeof e<"u"&&(r+=" "+e),r}function qn(n,t,e){let r="",o=0,i=!1,s=0;for(let u=0;u<n.length;u++){let c=Math.floor(u%t),l=Math.floor(u/t);!c&&!i&&(i=!0),n[u]?(s++,u>0&&c>0&&n[u-1]||(r+=i?Mt("M",c+e,.5+l+e):Mt("m",o,0),o=0,i=!1),c+1<t&&n[u+1]||(r+=Mt("h",s),s=0)):o++}return r}xe.render=function(t,e,r){let o=Ln.getOptions(e),i=t.modules.size,s=t.modules.data,u=i+o.margin*2,c=o.color.light.a?"<path "+_e(o.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",l="<path "+_e(o.color.dark,"stroke")+' d="'+qn(s,i,o.margin)+'"/>',a='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+a+' shape-rendering="crispEdges">'+c+l+`</svg>
8
+ `;return typeof r=="function"&&r(null,h),h}});var Fe=d(Y=>{var _n=zt(),St=Re(),De=qe(),xn=Ue();function Pt(n,t,e,r,o){let i=[].slice.call(arguments,1),s=i.length,u=typeof i[s-1]=="function";if(!u&&!_n())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(o=e,e=t,t=r=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=r,r=void 0):(o=r,r=e,e=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(e=t,t=r=void 0):s===2&&!t.getContext&&(r=e,e=t,t=void 0),new Promise(function(c,l){try{let a=St.create(e,r);c(n(a,t,r))}catch(a){l(a)}})}try{let c=St.create(e,r);o(null,n(c,t,r))}catch(c){o(c)}}Y.create=St.create;Y.toCanvas=Pt.bind(null,De.render);Y.toDataURL=Pt.bind(null,De.renderToDataURL);Y.toString=Pt.bind(null,function(n,t,e){return xn.render(n,e)})});var ke=He(Fe(),1);var Un=["qrcode"],hr=(()=>{class n{data;qrcodeElement=Ft("qrcode");ngOnChanges(){this.renderQrCode()}renderQrCode(){return Lt(this,null,function*(){if(this.data){let e=this.qrcodeElement();e.nativeElement.innerHTML=yield(0,ke.toString)(this.data,{type:"svg",margin:0,color:{light:"#ffffff00",dark:document.body.classList.contains("dark-mode")?"#FFF":"#000"}}),e.nativeElement.querySelector("svg").querySelector("path").classList.add("qr-code-theme-color")}})}static \u0275fac=function(r){return new(r||n)};static \u0275cmp=_t({type:n,selectors:[["app-qrcode"]],viewQuery:function(r,o){r&1&&Ut(o.qrcodeElement,Un,5),r&2&&Dt()},inputs:{data:"data"},features:[qt],decls:2,vars:0,consts:[["qrcode",""],[2,"width","100%","height","100%"]],template:function(r,o){r&1&&xt(0,"div",1,0)},encapsulation:2})}return n})();export{hr as a};
@@ -0,0 +1,5 @@
1
+ import{a as b}from"./chunk-VHTQTL2S.js";import{a as p,b as w}from"./chunk-GMY5QOXR.js";import{a as c}from"./chunk-EULZTUQA.js";import{M as i,g as o,ga as m,la as h,n}from"./chunk-R3VPSO5X.js";var d=o(p(),1),a=o(w(),1),l=o(b(),1);var v=(()=>{class e{$ws=h(c);term;io;fitAddon;webLinksAddon;resize;elementResize;constructor(){}destroyTerminal(){this.io.end(),this.term.dispose(),this.resize.complete(),this.elementResize&&this.elementResize.complete()}startTerminal(r,s={},f){this.elementResize=f,this.io=this.$ws.connectToNamespace("platform-tools/terminal"),this.term=new d.Terminal(s),setTimeout(()=>{this.term.loadAddon(this.fitAddon),this.term.loadAddon(this.webLinksAddon)}),this.fitAddon=new a.FitAddon,this.webLinksAddon=new l.WebLinksAddon,this.resize=new n,this.term.open(r.nativeElement),setTimeout(()=>{this.fitAddon.activate(this.term),this.fitAddon.fit()}),this.io.connected.pipe(i(200)).subscribe(()=>{this.startSession()}),this.io.socket.on("disconnect",()=>{this.term.write(`
2
+ \r
3
+ \rTerminal disconnected. Is the server running?
4
+ \r
5
+ \r`)}),this.io.socket.on("process-exit",()=>{this.io.socket.emit("end"),this.startSession()}),this.resize.pipe(i(500)).subscribe(t=>{this.io.socket.emit("resize",t)}),this.io.socket.on("stdout",t=>{this.term.write(t)}),this.term.onData(t=>{this.io.socket.emit("stdin",t)}),this.term.onResize(t=>{this.resize.next(t)}),this.elementResize&&this.elementResize.pipe(i(100)).subscribe({next:()=>{this.fitAddon.fit()}})}startSession(){this.term.reset(),this.io.socket.emit("start-session",{cols:this.term.cols,rows:this.term.rows}),this.resize.next({cols:this.term.cols,rows:this.term.rows})}static \u0275fac=function(s){return new(s||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{v as a};
@@ -0,0 +1 @@
1
+ import{g as a}from"./chunk-AQNNOWXC.js";import"./chunk-M2U64RPA.js";import"./chunk-CG7LPZUJ.js";import"./chunk-GMY5QOXR.js";import"./chunk-ALG7CIS3.js";import"./chunk-VLX322GM.js";import"./chunk-2G7GNBIF.js";import"./chunk-EULZTUQA.js";import"./chunk-RJAFS3B2.js";import"./chunk-WU2EPT6Y.js";import"./chunk-DQUBVCJE.js";import"./chunk-VUYAK52W.js";import"./chunk-QMB5XE4Y.js";import"./chunk-R3VPSO5X.js";export{a as SettingsComponent};
@@ -0,0 +1,23 @@
1
+ import{a as pl}from"./chunk-BMCQHGMB.js";import{c as Mr,d as tl,e as ut,f as ne,g as el,h as Fr,i as Wr,j as Re,k as Le,l as rl,m as il,p as ul,q as ol,r as sl,s as ll,t as fl,u as al,v as cl,w as hl}from"./chunk-4L2H4MMG.js";import{c as nl}from"./chunk-IOWBVW62.js";import{b as Pr}from"./chunk-WAA5KWIN.js";import{q as Te}from"./chunk-ALG7CIS3.js";import{A as Er,z as Lr}from"./chunk-VLX322GM.js";import{c as Or}from"./chunk-QMB5XE4Y.js";import{$a as V,Ca as Sr,Gb as iu,Kc as yt,Mc as Vs,Nb as J,Nc as Rr,Ob as yn,Pb as On,Qb as Kn,Ub as Js,Xa as jt,Xb as Xs,Yb as xn,a as qs,b as Gs,dd as js,e as __,g as m_,ga as Ie,ha as mt,hc as Se,ic as Zn,ja as zs,jc as Ft,ka as Ks,kc as Qs,kd as xt,la as zn,lb as Tr,mb as vt,n as $s,ra as Zs,rb as wt,sa as Ys}from"./chunk-R3VPSO5X.js";var dl=__((te,Ee)=>{(function(){var s,y="4.17.21",T=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",x="Expected a function",m="Invalid `variable` option passed into `_.template`",P="__lodash_hash_undefined__",B=500,en="__lodash_placeholder__",on=1,su=2,Wt=4,Pt=1,Me=2,Cn=1,Ct=2,lu=4,Hn=8,Dt=16,Un=32,Bt=64,Yn=128,ee=256,Dr=512,yl=30,xl="...",Cl=800,bl=16,fu=1,Al=2,Il=3,bt=1/0,ot=9007199254740991,Sl=17976931348623157e292,Fe=NaN,kn=4294967295,Tl=kn-1,Rl=kn>>>1,Ll=[["ary",Yn],["bind",Cn],["bindKey",Ct],["curry",Hn],["curryRight",Dt],["flip",Dr],["partial",Un],["partialRight",Bt],["rearg",ee]],Nt="[object Arguments]",We="[object Array]",El="[object AsyncFunction]",re="[object Boolean]",ie="[object Date]",Ol="[object DOMException]",Pe="[object Error]",De="[object Function]",au="[object GeneratorFunction]",Mn="[object Map]",ue="[object Number]",Ml="[object Null]",Jn="[object Object]",cu="[object Promise]",Fl="[object Proxy]",oe="[object RegExp]",Fn="[object Set]",se="[object String]",Be="[object Symbol]",Wl="[object Undefined]",le="[object WeakMap]",Pl="[object WeakSet]",fe="[object ArrayBuffer]",Ht="[object DataView]",Br="[object Float32Array]",Nr="[object Float64Array]",Hr="[object Int8Array]",Ur="[object Int16Array]",kr="[object Int32Array]",qr="[object Uint8Array]",Gr="[object Uint8ClampedArray]",$r="[object Uint16Array]",zr="[object Uint32Array]",Dl=/\b__p \+= '';/g,Bl=/\b(__p \+=) '' \+/g,Nl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hu=/&(?:amp|lt|gt|quot|#39);/g,pu=/[&<>"']/g,Hl=RegExp(hu.source),Ul=RegExp(pu.source),kl=/<%-([\s\S]+?)%>/g,ql=/<%([\s\S]+?)%>/g,du=/<%=([\s\S]+?)%>/g,Gl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$l=/^\w*$/,zl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kr=/[\\^$.*+?()[\]{}|]/g,Kl=RegExp(Kr.source),Zr=/^\s+/,Zl=/\s/,Yl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jl=/\{\n\/\* \[wrapped with (.+)\] \*/,Xl=/,? & /,Ql=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vl=/[()=,{}\[\]\/\s]/,jl=/\\(\\)?/g,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gu=/\w*$/,tf=/^[-+]0x[0-9a-f]+$/i,ef=/^0b[01]+$/i,rf=/^\[object .+?Constructor\]$/,uf=/^0o[0-7]+$/i,of=/^(?:0|[1-9]\d*)$/,sf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ne=/($^)/,lf=/['\n\r\u2028\u2029\\]/g,He="\\ud800-\\udfff",ff="\\u0300-\\u036f",af="\\ufe20-\\ufe2f",cf="\\u20d0-\\u20ff",_u=ff+af+cf,mu="\\u2700-\\u27bf",vu="a-z\\xdf-\\xf6\\xf8-\\xff",hf="\\xac\\xb1\\xd7\\xf7",pf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",df="\\u2000-\\u206f",gf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wu="A-Z\\xc0-\\xd6\\xd8-\\xde",yu="\\ufe0e\\ufe0f",xu=hf+pf+df+gf,Yr="['\u2019]",_f="["+He+"]",Cu="["+xu+"]",Ue="["+_u+"]",bu="\\d+",mf="["+mu+"]",Au="["+vu+"]",Iu="[^"+He+xu+bu+mu+vu+wu+"]",Jr="\\ud83c[\\udffb-\\udfff]",vf="(?:"+Ue+"|"+Jr+")",Su="[^"+He+"]",Xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Qr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ut="["+wu+"]",Tu="\\u200d",Ru="(?:"+Au+"|"+Iu+")",wf="(?:"+Ut+"|"+Iu+")",Lu="(?:"+Yr+"(?:d|ll|m|re|s|t|ve))?",Eu="(?:"+Yr+"(?:D|LL|M|RE|S|T|VE))?",Ou=vf+"?",Mu="["+yu+"]?",yf="(?:"+Tu+"(?:"+[Su,Xr,Qr].join("|")+")"+Mu+Ou+")*",xf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fu=Mu+Ou+yf,bf="(?:"+[mf,Xr,Qr].join("|")+")"+Fu,Af="(?:"+[Su+Ue+"?",Ue,Xr,Qr,_f].join("|")+")",If=RegExp(Yr,"g"),Sf=RegExp(Ue,"g"),Vr=RegExp(Jr+"(?="+Jr+")|"+Af+Fu,"g"),Tf=RegExp([Ut+"?"+Au+"+"+Lu+"(?="+[Cu,Ut,"$"].join("|")+")",wf+"+"+Eu+"(?="+[Cu,Ut+Ru,"$"].join("|")+")",Ut+"?"+Ru+"+"+Lu,Ut+"+"+Eu,Cf,xf,bu,bf].join("|"),"g"),Rf=RegExp("["+Tu+He+_u+yu+"]"),Lf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ef=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Of=-1,G={};G[Br]=G[Nr]=G[Hr]=G[Ur]=G[kr]=G[qr]=G[Gr]=G[$r]=G[zr]=!0,G[Nt]=G[We]=G[fe]=G[re]=G[Ht]=G[ie]=G[Pe]=G[De]=G[Mn]=G[ue]=G[Jn]=G[oe]=G[Fn]=G[se]=G[le]=!1;var q={};q[Nt]=q[We]=q[fe]=q[Ht]=q[re]=q[ie]=q[Br]=q[Nr]=q[Hr]=q[Ur]=q[kr]=q[Mn]=q[ue]=q[Jn]=q[oe]=q[Fn]=q[se]=q[Be]=q[qr]=q[Gr]=q[$r]=q[zr]=!0,q[Pe]=q[De]=q[le]=!1;var Mf={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Ff={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wf={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Pf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Df=parseFloat,Bf=parseInt,Wu=typeof global=="object"&&global&&global.Object===Object&&global,Nf=typeof self=="object"&&self&&self.Object===Object&&self,j=Wu||Nf||Function("return this")(),jr=typeof te=="object"&&te&&!te.nodeType&&te,At=jr&&typeof Ee=="object"&&Ee&&!Ee.nodeType&&Ee,Pu=At&&At.exports===jr,ni=Pu&&Wu.process,bn=function(){try{var a=At&&At.require&&At.require("util").types;return a||ni&&ni.binding&&ni.binding("util")}catch{}}(),Du=bn&&bn.isArrayBuffer,Bu=bn&&bn.isDate,Nu=bn&&bn.isMap,Hu=bn&&bn.isRegExp,Uu=bn&&bn.isSet,ku=bn&&bn.isTypedArray;function dn(a,p,h){switch(h.length){case 0:return a.call(p);case 1:return a.call(p,h[0]);case 2:return a.call(p,h[0],h[1]);case 3:return a.call(p,h[0],h[1],h[2])}return a.apply(p,h)}function Hf(a,p,h,C){for(var R=-1,N=a==null?0:a.length;++R<N;){var X=a[R];p(C,X,h(X),a)}return C}function An(a,p){for(var h=-1,C=a==null?0:a.length;++h<C&&p(a[h],h,a)!==!1;);return a}function Uf(a,p){for(var h=a==null?0:a.length;h--&&p(a[h],h,a)!==!1;);return a}function qu(a,p){for(var h=-1,C=a==null?0:a.length;++h<C;)if(!p(a[h],h,a))return!1;return!0}function st(a,p){for(var h=-1,C=a==null?0:a.length,R=0,N=[];++h<C;){var X=a[h];p(X,h,a)&&(N[R++]=X)}return N}function ke(a,p){var h=a==null?0:a.length;return!!h&&kt(a,p,0)>-1}function ti(a,p,h){for(var C=-1,R=a==null?0:a.length;++C<R;)if(h(p,a[C]))return!0;return!1}function $(a,p){for(var h=-1,C=a==null?0:a.length,R=Array(C);++h<C;)R[h]=p(a[h],h,a);return R}function lt(a,p){for(var h=-1,C=p.length,R=a.length;++h<C;)a[R+h]=p[h];return a}function ei(a,p,h,C){var R=-1,N=a==null?0:a.length;for(C&&N&&(h=a[++R]);++R<N;)h=p(h,a[R],R,a);return h}function kf(a,p,h,C){var R=a==null?0:a.length;for(C&&R&&(h=a[--R]);R--;)h=p(h,a[R],R,a);return h}function ri(a,p){for(var h=-1,C=a==null?0:a.length;++h<C;)if(p(a[h],h,a))return!0;return!1}var qf=ii("length");function Gf(a){return a.split("")}function $f(a){return a.match(Ql)||[]}function Gu(a,p,h){var C;return h(a,function(R,N,X){if(p(R,N,X))return C=N,!1}),C}function qe(a,p,h,C){for(var R=a.length,N=h+(C?1:-1);C?N--:++N<R;)if(p(a[N],N,a))return N;return-1}function kt(a,p,h){return p===p?ea(a,p,h):qe(a,$u,h)}function zf(a,p,h,C){for(var R=h-1,N=a.length;++R<N;)if(C(a[R],p))return R;return-1}function $u(a){return a!==a}function zu(a,p){var h=a==null?0:a.length;return h?oi(a,p)/h:Fe}function ii(a){return function(p){return p==null?s:p[a]}}function ui(a){return function(p){return a==null?s:a[p]}}function Ku(a,p,h,C,R){return R(a,function(N,X,k){h=C?(C=!1,N):p(h,N,X,k)}),h}function Kf(a,p){var h=a.length;for(a.sort(p);h--;)a[h]=a[h].value;return a}function oi(a,p){for(var h,C=-1,R=a.length;++C<R;){var N=p(a[C]);N!==s&&(h=h===s?N:h+N)}return h}function si(a,p){for(var h=-1,C=Array(a);++h<a;)C[h]=p(h);return C}function Zf(a,p){return $(p,function(h){return[h,a[h]]})}function Zu(a){return a&&a.slice(0,Qu(a)+1).replace(Zr,"")}function gn(a){return function(p){return a(p)}}function li(a,p){return $(p,function(h){return a[h]})}function ae(a,p){return a.has(p)}function Yu(a,p){for(var h=-1,C=a.length;++h<C&&kt(p,a[h],0)>-1;);return h}function Ju(a,p){for(var h=a.length;h--&&kt(p,a[h],0)>-1;);return h}function Yf(a,p){for(var h=a.length,C=0;h--;)a[h]===p&&++C;return C}var Jf=ui(Mf),Xf=ui(Ff);function Qf(a){return"\\"+Pf[a]}function Vf(a,p){return a==null?s:a[p]}function qt(a){return Rf.test(a)}function jf(a){return Lf.test(a)}function na(a){for(var p,h=[];!(p=a.next()).done;)h.push(p.value);return h}function fi(a){var p=-1,h=Array(a.size);return a.forEach(function(C,R){h[++p]=[R,C]}),h}function Xu(a,p){return function(h){return a(p(h))}}function ft(a,p){for(var h=-1,C=a.length,R=0,N=[];++h<C;){var X=a[h];(X===p||X===en)&&(a[h]=en,N[R++]=h)}return N}function Ge(a){var p=-1,h=Array(a.size);return a.forEach(function(C){h[++p]=C}),h}function ta(a){var p=-1,h=Array(a.size);return a.forEach(function(C){h[++p]=[C,C]}),h}function ea(a,p,h){for(var C=h-1,R=a.length;++C<R;)if(a[C]===p)return C;return-1}function ra(a,p,h){for(var C=h+1;C--;)if(a[C]===p)return C;return C}function Gt(a){return qt(a)?ua(a):qf(a)}function Wn(a){return qt(a)?oa(a):Gf(a)}function Qu(a){for(var p=a.length;p--&&Zl.test(a.charAt(p)););return p}var ia=ui(Wf);function ua(a){for(var p=Vr.lastIndex=0;Vr.test(a);)++p;return p}function oa(a){return a.match(Vr)||[]}function sa(a){return a.match(Tf)||[]}var la=function a(p){p=p==null?j:at.defaults(j.Object(),p,at.pick(j,Ef));var h=p.Array,C=p.Date,R=p.Error,N=p.Function,X=p.Math,k=p.Object,ai=p.RegExp,fa=p.String,In=p.TypeError,$e=h.prototype,aa=N.prototype,$t=k.prototype,ze=p["__core-js_shared__"],Ke=aa.toString,U=$t.hasOwnProperty,ca=0,Vu=function(){var n=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Ze=$t.toString,ha=Ke.call(k),pa=j._,da=ai("^"+Ke.call(U).replace(Kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=Pu?p.Buffer:s,ct=p.Symbol,Je=p.Uint8Array,ju=Ye?Ye.allocUnsafe:s,Xe=Xu(k.getPrototypeOf,k),no=k.create,to=$t.propertyIsEnumerable,Qe=$e.splice,eo=ct?ct.isConcatSpreadable:s,ce=ct?ct.iterator:s,It=ct?ct.toStringTag:s,Ve=function(){try{var n=Et(k,"defineProperty");return n({},"",{}),n}catch{}}(),ga=p.clearTimeout!==j.clearTimeout&&p.clearTimeout,_a=C&&C.now!==j.Date.now&&C.now,ma=p.setTimeout!==j.setTimeout&&p.setTimeout,je=X.ceil,nr=X.floor,ci=k.getOwnPropertySymbols,va=Ye?Ye.isBuffer:s,ro=p.isFinite,wa=$e.join,ya=Xu(k.keys,k),Q=X.max,rn=X.min,xa=C.now,Ca=p.parseInt,io=X.random,ba=$e.reverse,hi=Et(p,"DataView"),he=Et(p,"Map"),pi=Et(p,"Promise"),zt=Et(p,"Set"),pe=Et(p,"WeakMap"),de=Et(k,"create"),tr=pe&&new pe,Kt={},Aa=Ot(hi),Ia=Ot(he),Sa=Ot(pi),Ta=Ot(zt),Ra=Ot(pe),er=ct?ct.prototype:s,ge=er?er.valueOf:s,uo=er?er.toString:s;function u(n){if(K(n)&&!L(n)&&!(n instanceof W)){if(n instanceof Sn)return n;if(U.call(n,"__wrapped__"))return ss(n)}return new Sn(n)}var Zt=function(){function n(){}return function(t){if(!z(t))return{};if(no)return no(t);n.prototype=t;var e=new n;return n.prototype=s,e}}();function rr(){}function Sn(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=s}u.templateSettings={escape:kl,evaluate:ql,interpolate:du,variable:"",imports:{_:u}},u.prototype=rr.prototype,u.prototype.constructor=u,Sn.prototype=Zt(rr.prototype),Sn.prototype.constructor=Sn;function W(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kn,this.__views__=[]}function La(){var n=new W(this.__wrapped__);return n.__actions__=an(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=an(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=an(this.__views__),n}function Ea(){if(this.__filtered__){var n=new W(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Oa(){var n=this.__wrapped__.value(),t=this.__dir__,e=L(n),r=t<0,i=e?n.length:0,o=Gc(0,i,this.__views__),l=o.start,f=o.end,c=f-l,d=r?f:l-1,g=this.__iteratees__,_=g.length,w=0,b=rn(c,this.__takeCount__);if(!e||!r&&i==c&&b==c)return Eo(n,this.__actions__);var I=[];n:for(;c--&&w<b;){d+=t;for(var O=-1,S=n[d];++O<_;){var F=g[O],D=F.iteratee,vn=F.type,fn=D(S);if(vn==Al)S=fn;else if(!fn){if(vn==fu)continue n;break n}}I[w++]=S}return I}W.prototype=Zt(rr.prototype),W.prototype.constructor=W;function St(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ma(){this.__data__=de?de(null):{},this.size=0}function Fa(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function Wa(n){var t=this.__data__;if(de){var e=t[n];return e===P?s:e}return U.call(t,n)?t[n]:s}function Pa(n){var t=this.__data__;return de?t[n]!==s:U.call(t,n)}function Da(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=de&&t===s?P:t,this}St.prototype.clear=Ma,St.prototype.delete=Fa,St.prototype.get=Wa,St.prototype.has=Pa,St.prototype.set=Da;function Xn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ba(){this.__data__=[],this.size=0}function Na(n){var t=this.__data__,e=ir(t,n);if(e<0)return!1;var r=t.length-1;return e==r?t.pop():Qe.call(t,e,1),--this.size,!0}function Ha(n){var t=this.__data__,e=ir(t,n);return e<0?s:t[e][1]}function Ua(n){return ir(this.__data__,n)>-1}function ka(n,t){var e=this.__data__,r=ir(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}Xn.prototype.clear=Ba,Xn.prototype.delete=Na,Xn.prototype.get=Ha,Xn.prototype.has=Ua,Xn.prototype.set=ka;function Qn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function qa(){this.size=0,this.__data__={hash:new St,map:new(he||Xn),string:new St}}function Ga(n){var t=_r(this,n).delete(n);return this.size-=t?1:0,t}function $a(n){return _r(this,n).get(n)}function za(n){return _r(this,n).has(n)}function Ka(n,t){var e=_r(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this}Qn.prototype.clear=qa,Qn.prototype.delete=Ga,Qn.prototype.get=$a,Qn.prototype.has=za,Qn.prototype.set=Ka;function Tt(n){var t=-1,e=n==null?0:n.length;for(this.__data__=new Qn;++t<e;)this.add(n[t])}function Za(n){return this.__data__.set(n,P),this}function Ya(n){return this.__data__.has(n)}Tt.prototype.add=Tt.prototype.push=Za,Tt.prototype.has=Ya;function Pn(n){var t=this.__data__=new Xn(n);this.size=t.size}function Ja(){this.__data__=new Xn,this.size=0}function Xa(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}function Qa(n){return this.__data__.get(n)}function Va(n){return this.__data__.has(n)}function ja(n,t){var e=this.__data__;if(e instanceof Xn){var r=e.__data__;if(!he||r.length<T-1)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new Qn(r)}return e.set(n,t),this.size=e.size,this}Pn.prototype.clear=Ja,Pn.prototype.delete=Xa,Pn.prototype.get=Qa,Pn.prototype.has=Va,Pn.prototype.set=ja;function oo(n,t){var e=L(n),r=!e&&Mt(n),i=!e&&!r&&_t(n),o=!e&&!r&&!i&&Qt(n),l=e||r||i||o,f=l?si(n.length,fa):[],c=f.length;for(var d in n)(t||U.call(n,d))&&!(l&&(d=="length"||i&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||tt(d,c)))&&f.push(d);return f}function so(n){var t=n.length;return t?n[Ai(0,t-1)]:s}function nc(n,t){return mr(an(n),Rt(t,0,n.length))}function tc(n){return mr(an(n))}function di(n,t,e){(e!==s&&!Dn(n[t],e)||e===s&&!(t in n))&&Vn(n,t,e)}function _e(n,t,e){var r=n[t];(!(U.call(n,t)&&Dn(r,e))||e===s&&!(t in n))&&Vn(n,t,e)}function ir(n,t){for(var e=n.length;e--;)if(Dn(n[e][0],t))return e;return-1}function ec(n,t,e,r){return ht(n,function(i,o,l){t(r,i,e(i),l)}),r}function lo(n,t){return n&&Gn(t,nn(t),n)}function rc(n,t){return n&&Gn(t,hn(t),n)}function Vn(n,t,e){t=="__proto__"&&Ve?Ve(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}function gi(n,t){for(var e=-1,r=t.length,i=h(r),o=n==null;++e<r;)i[e]=o?s:Ji(n,t[e]);return i}function Rt(n,t,e){return n===n&&(e!==s&&(n=n<=e?n:e),t!==s&&(n=n>=t?n:t)),n}function Tn(n,t,e,r,i,o){var l,f=t&on,c=t&su,d=t&Wt;if(e&&(l=i?e(n,r,i,o):e(n)),l!==s)return l;if(!z(n))return n;var g=L(n);if(g){if(l=zc(n),!f)return an(n,l)}else{var _=un(n),w=_==De||_==au;if(_t(n))return Fo(n,f);if(_==Jn||_==Nt||w&&!i){if(l=c||w?{}:Vo(n),!f)return c?Wc(n,rc(l,n)):Fc(n,lo(l,n))}else{if(!q[_])return i?n:{};l=Kc(n,_,f)}}o||(o=new Pn);var b=o.get(n);if(b)return b;o.set(n,l),Ts(n)?n.forEach(function(S){l.add(Tn(S,t,e,S,n,o))}):Is(n)&&n.forEach(function(S,F){l.set(F,Tn(S,t,e,F,n,o))});var I=d?c?Pi:Wi:c?hn:nn,O=g?s:I(n);return An(O||n,function(S,F){O&&(F=S,S=n[F]),_e(l,F,Tn(S,t,e,F,n,o))}),l}function ic(n){var t=nn(n);return function(e){return fo(e,n,t)}}function fo(n,t,e){var r=e.length;if(n==null)return!r;for(n=k(n);r--;){var i=e[r],o=t[i],l=n[i];if(l===s&&!(i in n)||!o(l))return!1}return!0}function ao(n,t,e){if(typeof n!="function")throw new In(x);return be(function(){n.apply(s,e)},t)}function me(n,t,e,r){var i=-1,o=ke,l=!0,f=n.length,c=[],d=t.length;if(!f)return c;e&&(t=$(t,gn(e))),r?(o=ti,l=!1):t.length>=T&&(o=ae,l=!1,t=new Tt(t));n:for(;++i<f;){var g=n[i],_=e==null?g:e(g);if(g=r||g!==0?g:0,l&&_===_){for(var w=d;w--;)if(t[w]===_)continue n;c.push(g)}else o(t,_,r)||c.push(g)}return c}var ht=No(qn),co=No(mi,!0);function uc(n,t){var e=!0;return ht(n,function(r,i,o){return e=!!t(r,i,o),e}),e}function ur(n,t,e){for(var r=-1,i=n.length;++r<i;){var o=n[r],l=t(o);if(l!=null&&(f===s?l===l&&!mn(l):e(l,f)))var f=l,c=o}return c}function oc(n,t,e,r){var i=n.length;for(e=E(e),e<0&&(e=-e>i?0:i+e),r=r===s||r>i?i:E(r),r<0&&(r+=i),r=e>r?0:Ls(r);e<r;)n[e++]=t;return n}function ho(n,t){var e=[];return ht(n,function(r,i,o){t(r,i,o)&&e.push(r)}),e}function tn(n,t,e,r,i){var o=-1,l=n.length;for(e||(e=Yc),i||(i=[]);++o<l;){var f=n[o];t>0&&e(f)?t>1?tn(f,t-1,e,r,i):lt(i,f):r||(i[i.length]=f)}return i}var _i=Ho(),po=Ho(!0);function qn(n,t){return n&&_i(n,t,nn)}function mi(n,t){return n&&po(n,t,nn)}function or(n,t){return st(t,function(e){return et(n[e])})}function Lt(n,t){t=dt(t,n);for(var e=0,r=t.length;n!=null&&e<r;)n=n[$n(t[e++])];return e&&e==r?n:s}function go(n,t,e){var r=t(n);return L(n)?r:lt(r,e(n))}function sn(n){return n==null?n===s?Wl:Ml:It&&It in k(n)?qc(n):th(n)}function vi(n,t){return n>t}function sc(n,t){return n!=null&&U.call(n,t)}function lc(n,t){return n!=null&&t in k(n)}function fc(n,t,e){return n>=rn(t,e)&&n<Q(t,e)}function wi(n,t,e){for(var r=e?ti:ke,i=n[0].length,o=n.length,l=o,f=h(o),c=1/0,d=[];l--;){var g=n[l];l&&t&&(g=$(g,gn(t))),c=rn(g.length,c),f[l]=!e&&(t||i>=120&&g.length>=120)?new Tt(l&&g):s}g=n[0];var _=-1,w=f[0];n:for(;++_<i&&d.length<c;){var b=g[_],I=t?t(b):b;if(b=e||b!==0?b:0,!(w?ae(w,I):r(d,I,e))){for(l=o;--l;){var O=f[l];if(!(O?ae(O,I):r(n[l],I,e)))continue n}w&&w.push(I),d.push(b)}}return d}function ac(n,t,e,r){return qn(n,function(i,o,l){t(r,e(i),o,l)}),r}function ve(n,t,e){t=dt(t,n),n=es(n,t);var r=n==null?n:n[$n(Ln(t))];return r==null?s:dn(r,n,e)}function _o(n){return K(n)&&sn(n)==Nt}function cc(n){return K(n)&&sn(n)==fe}function hc(n){return K(n)&&sn(n)==ie}function we(n,t,e,r,i){return n===t?!0:n==null||t==null||!K(n)&&!K(t)?n!==n&&t!==t:pc(n,t,e,r,we,i)}function pc(n,t,e,r,i,o){var l=L(n),f=L(t),c=l?We:un(n),d=f?We:un(t);c=c==Nt?Jn:c,d=d==Nt?Jn:d;var g=c==Jn,_=d==Jn,w=c==d;if(w&&_t(n)){if(!_t(t))return!1;l=!0,g=!1}if(w&&!g)return o||(o=new Pn),l||Qt(n)?Jo(n,t,e,r,i,o):Uc(n,t,c,e,r,i,o);if(!(e&Pt)){var b=g&&U.call(n,"__wrapped__"),I=_&&U.call(t,"__wrapped__");if(b||I){var O=b?n.value():n,S=I?t.value():t;return o||(o=new Pn),i(O,S,e,r,o)}}return w?(o||(o=new Pn),kc(n,t,e,r,i,o)):!1}function dc(n){return K(n)&&un(n)==Mn}function yi(n,t,e,r){var i=e.length,o=i,l=!r;if(n==null)return!o;for(n=k(n);i--;){var f=e[i];if(l&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++i<o;){f=e[i];var c=f[0],d=n[c],g=f[1];if(l&&f[2]){if(d===s&&!(c in n))return!1}else{var _=new Pn;if(r)var w=r(d,g,c,n,t,_);if(!(w===s?we(g,d,Pt|Me,r,_):w))return!1}}return!0}function mo(n){if(!z(n)||Xc(n))return!1;var t=et(n)?da:rf;return t.test(Ot(n))}function gc(n){return K(n)&&sn(n)==oe}function _c(n){return K(n)&&un(n)==Fn}function mc(n){return K(n)&&br(n.length)&&!!G[sn(n)]}function vo(n){return typeof n=="function"?n:n==null?pn:typeof n=="object"?L(n)?xo(n[0],n[1]):yo(n):Us(n)}function xi(n){if(!Ce(n))return ya(n);var t=[];for(var e in k(n))U.call(n,e)&&e!="constructor"&&t.push(e);return t}function vc(n){if(!z(n))return nh(n);var t=Ce(n),e=[];for(var r in n)r=="constructor"&&(t||!U.call(n,r))||e.push(r);return e}function Ci(n,t){return n<t}function wo(n,t){var e=-1,r=cn(n)?h(n.length):[];return ht(n,function(i,o,l){r[++e]=t(i,o,l)}),r}function yo(n){var t=Bi(n);return t.length==1&&t[0][2]?ns(t[0][0],t[0][1]):function(e){return e===n||yi(e,n,t)}}function xo(n,t){return Hi(n)&&jo(t)?ns($n(n),t):function(e){var r=Ji(e,n);return r===s&&r===t?Xi(e,n):we(t,r,Pt|Me)}}function sr(n,t,e,r,i){n!==t&&_i(t,function(o,l){if(i||(i=new Pn),z(o))wc(n,t,l,e,sr,r,i);else{var f=r?r(ki(n,l),o,l+"",n,t,i):s;f===s&&(f=o),di(n,l,f)}},hn)}function wc(n,t,e,r,i,o,l){var f=ki(n,e),c=ki(t,e),d=l.get(c);if(d){di(n,e,d);return}var g=o?o(f,c,e+"",n,t,l):s,_=g===s;if(_){var w=L(c),b=!w&&_t(c),I=!w&&!b&&Qt(c);g=c,w||b||I?L(f)?g=f:Z(f)?g=an(f):b?(_=!1,g=Fo(c,!0)):I?(_=!1,g=Wo(c,!0)):g=[]:Ae(c)||Mt(c)?(g=f,Mt(f)?g=Es(f):(!z(f)||et(f))&&(g=Vo(c))):_=!1}_&&(l.set(c,g),i(g,c,r,o,l),l.delete(c)),di(n,e,g)}function Co(n,t){var e=n.length;if(e)return t+=t<0?e:0,tt(t,e)?n[t]:s}function bo(n,t,e){t.length?t=$(t,function(o){return L(o)?function(l){return Lt(l,o.length===1?o[0]:o)}:o}):t=[pn];var r=-1;t=$(t,gn(A()));var i=wo(n,function(o,l,f){var c=$(t,function(d){return d(o)});return{criteria:c,index:++r,value:o}});return Kf(i,function(o,l){return Mc(o,l,e)})}function yc(n,t){return Ao(n,t,function(e,r){return Xi(n,r)})}function Ao(n,t,e){for(var r=-1,i=t.length,o={};++r<i;){var l=t[r],f=Lt(n,l);e(f,l)&&ye(o,dt(l,n),f)}return o}function xc(n){return function(t){return Lt(t,n)}}function bi(n,t,e,r){var i=r?zf:kt,o=-1,l=t.length,f=n;for(n===t&&(t=an(t)),e&&(f=$(n,gn(e)));++o<l;)for(var c=0,d=t[o],g=e?e(d):d;(c=i(f,g,c,r))>-1;)f!==n&&Qe.call(f,c,1),Qe.call(n,c,1);return n}function Io(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==o){var o=i;tt(i)?Qe.call(n,i,1):Ti(n,i)}}return n}function Ai(n,t){return n+nr(io()*(t-n+1))}function Cc(n,t,e,r){for(var i=-1,o=Q(je((t-n)/(e||1)),0),l=h(o);o--;)l[r?o:++i]=n,n+=e;return l}function Ii(n,t){var e="";if(!n||t<1||t>ot)return e;do t%2&&(e+=n),t=nr(t/2),t&&(n+=n);while(t);return e}function M(n,t){return qi(ts(n,t,pn),n+"")}function bc(n){return so(Vt(n))}function Ac(n,t){var e=Vt(n);return mr(e,Rt(t,0,e.length))}function ye(n,t,e,r){if(!z(n))return n;t=dt(t,n);for(var i=-1,o=t.length,l=o-1,f=n;f!=null&&++i<o;){var c=$n(t[i]),d=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(i!=l){var g=f[c];d=r?r(g,c,f):s,d===s&&(d=z(g)?g:tt(t[i+1])?[]:{})}_e(f,c,d),f=f[c]}return n}var So=tr?function(n,t){return tr.set(n,t),n}:pn,Ic=Ve?function(n,t){return Ve(n,"toString",{configurable:!0,enumerable:!1,value:Vi(t),writable:!0})}:pn;function Sc(n){return mr(Vt(n))}function Rn(n,t,e){var r=-1,i=n.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=h(i);++r<i;)o[r]=n[r+t];return o}function Tc(n,t){var e;return ht(n,function(r,i,o){return e=t(r,i,o),!e}),!!e}function lr(n,t,e){var r=0,i=n==null?r:n.length;if(typeof t=="number"&&t===t&&i<=Rl){for(;r<i;){var o=r+i>>>1,l=n[o];l!==null&&!mn(l)&&(e?l<=t:l<t)?r=o+1:i=o}return i}return Si(n,t,pn,e)}function Si(n,t,e,r){var i=0,o=n==null?0:n.length;if(o===0)return 0;t=e(t);for(var l=t!==t,f=t===null,c=mn(t),d=t===s;i<o;){var g=nr((i+o)/2),_=e(n[g]),w=_!==s,b=_===null,I=_===_,O=mn(_);if(l)var S=r||I;else d?S=I&&(r||w):f?S=I&&w&&(r||!b):c?S=I&&w&&!b&&(r||!O):b||O?S=!1:S=r?_<=t:_<t;S?i=g+1:o=g}return rn(o,Tl)}function To(n,t){for(var e=-1,r=n.length,i=0,o=[];++e<r;){var l=n[e],f=t?t(l):l;if(!e||!Dn(f,c)){var c=f;o[i++]=l===0?0:l}}return o}function Ro(n){return typeof n=="number"?n:mn(n)?Fe:+n}function _n(n){if(typeof n=="string")return n;if(L(n))return $(n,_n)+"";if(mn(n))return uo?uo.call(n):"";var t=n+"";return t=="0"&&1/n==-bt?"-0":t}function pt(n,t,e){var r=-1,i=ke,o=n.length,l=!0,f=[],c=f;if(e)l=!1,i=ti;else if(o>=T){var d=t?null:Nc(n);if(d)return Ge(d);l=!1,i=ae,c=new Tt}else c=t?[]:f;n:for(;++r<o;){var g=n[r],_=t?t(g):g;if(g=e||g!==0?g:0,l&&_===_){for(var w=c.length;w--;)if(c[w]===_)continue n;t&&c.push(_),f.push(g)}else i(c,_,e)||(c!==f&&c.push(_),f.push(g))}return f}function Ti(n,t){return t=dt(t,n),n=es(n,t),n==null||delete n[$n(Ln(t))]}function Lo(n,t,e,r){return ye(n,t,e(Lt(n,t)),r)}function fr(n,t,e,r){for(var i=n.length,o=r?i:-1;(r?o--:++o<i)&&t(n[o],o,n););return e?Rn(n,r?0:o,r?o+1:i):Rn(n,r?o+1:0,r?i:o)}function Eo(n,t){var e=n;return e instanceof W&&(e=e.value()),ei(t,function(r,i){return i.func.apply(i.thisArg,lt([r],i.args))},e)}function Ri(n,t,e){var r=n.length;if(r<2)return r?pt(n[0]):[];for(var i=-1,o=h(r);++i<r;)for(var l=n[i],f=-1;++f<r;)f!=i&&(o[i]=me(o[i]||l,n[f],t,e));return pt(tn(o,1),t,e)}function Oo(n,t,e){for(var r=-1,i=n.length,o=t.length,l={};++r<i;){var f=r<o?t[r]:s;e(l,n[r],f)}return l}function Li(n){return Z(n)?n:[]}function Ei(n){return typeof n=="function"?n:pn}function dt(n,t){return L(n)?n:Hi(n,t)?[n]:os(H(n))}var Rc=M;function gt(n,t,e){var r=n.length;return e=e===s?r:e,!t&&e>=r?n:Rn(n,t,e)}var Mo=ga||function(n){return j.clearTimeout(n)};function Fo(n,t){if(t)return n.slice();var e=n.length,r=ju?ju(e):new n.constructor(e);return n.copy(r),r}function Oi(n){var t=new n.constructor(n.byteLength);return new Je(t).set(new Je(n)),t}function Lc(n,t){var e=t?Oi(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function Ec(n){var t=new n.constructor(n.source,gu.exec(n));return t.lastIndex=n.lastIndex,t}function Oc(n){return ge?k(ge.call(n)):{}}function Wo(n,t){var e=t?Oi(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function Po(n,t){if(n!==t){var e=n!==s,r=n===null,i=n===n,o=mn(n),l=t!==s,f=t===null,c=t===t,d=mn(t);if(!f&&!d&&!o&&n>t||o&&l&&c&&!f&&!d||r&&l&&c||!e&&c||!i)return 1;if(!r&&!o&&!d&&n<t||d&&e&&i&&!r&&!o||f&&e&&i||!l&&i||!c)return-1}return 0}function Mc(n,t,e){for(var r=-1,i=n.criteria,o=t.criteria,l=i.length,f=e.length;++r<l;){var c=Po(i[r],o[r]);if(c){if(r>=f)return c;var d=e[r];return c*(d=="desc"?-1:1)}}return n.index-t.index}function Do(n,t,e,r){for(var i=-1,o=n.length,l=e.length,f=-1,c=t.length,d=Q(o-l,0),g=h(c+d),_=!r;++f<c;)g[f]=t[f];for(;++i<l;)(_||i<o)&&(g[e[i]]=n[i]);for(;d--;)g[f++]=n[i++];return g}function Bo(n,t,e,r){for(var i=-1,o=n.length,l=-1,f=e.length,c=-1,d=t.length,g=Q(o-f,0),_=h(g+d),w=!r;++i<g;)_[i]=n[i];for(var b=i;++c<d;)_[b+c]=t[c];for(;++l<f;)(w||i<o)&&(_[b+e[l]]=n[i++]);return _}function an(n,t){var e=-1,r=n.length;for(t||(t=h(r));++e<r;)t[e]=n[e];return t}function Gn(n,t,e,r){var i=!e;e||(e={});for(var o=-1,l=t.length;++o<l;){var f=t[o],c=r?r(e[f],n[f],f,e,n):s;c===s&&(c=n[f]),i?Vn(e,f,c):_e(e,f,c)}return e}function Fc(n,t){return Gn(n,Ni(n),t)}function Wc(n,t){return Gn(n,Xo(n),t)}function ar(n,t){return function(e,r){var i=L(e)?Hf:ec,o=t?t():{};return i(e,n,A(r,2),o)}}function Yt(n){return M(function(t,e){var r=-1,i=e.length,o=i>1?e[i-1]:s,l=i>2?e[2]:s;for(o=n.length>3&&typeof o=="function"?(i--,o):s,l&&ln(e[0],e[1],l)&&(o=i<3?s:o,i=1),t=k(t);++r<i;){var f=e[r];f&&n(t,f,r,o)}return t})}function No(n,t){return function(e,r){if(e==null)return e;if(!cn(e))return n(e,r);for(var i=e.length,o=t?i:-1,l=k(e);(t?o--:++o<i)&&r(l[o],o,l)!==!1;);return e}}function Ho(n){return function(t,e,r){for(var i=-1,o=k(t),l=r(t),f=l.length;f--;){var c=l[n?f:++i];if(e(o[c],c,o)===!1)break}return t}}function Pc(n,t,e){var r=t&Cn,i=xe(n);function o(){var l=this&&this!==j&&this instanceof o?i:n;return l.apply(r?e:this,arguments)}return o}function Uo(n){return function(t){t=H(t);var e=qt(t)?Wn(t):s,r=e?e[0]:t.charAt(0),i=e?gt(e,1).join(""):t.slice(1);return r[n]()+i}}function Jt(n){return function(t){return ei(Ns(Bs(t).replace(If,"")),n,"")}}function xe(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=Zt(n.prototype),r=n.apply(e,t);return z(r)?r:e}}function Dc(n,t,e){var r=xe(n);function i(){for(var o=arguments.length,l=h(o),f=o,c=Xt(i);f--;)l[f]=arguments[f];var d=o<3&&l[0]!==c&&l[o-1]!==c?[]:ft(l,c);if(o-=d.length,o<e)return zo(n,t,cr,i.placeholder,s,l,d,s,s,e-o);var g=this&&this!==j&&this instanceof i?r:n;return dn(g,this,l)}return i}function ko(n){return function(t,e,r){var i=k(t);if(!cn(t)){var o=A(e,3);t=nn(t),e=function(f){return o(i[f],f,i)}}var l=n(t,e,r);return l>-1?i[o?t[l]:l]:s}}function qo(n){return nt(function(t){var e=t.length,r=e,i=Sn.prototype.thru;for(n&&t.reverse();r--;){var o=t[r];if(typeof o!="function")throw new In(x);if(i&&!l&&gr(o)=="wrapper")var l=new Sn([],!0)}for(r=l?r:e;++r<e;){o=t[r];var f=gr(o),c=f=="wrapper"?Di(o):s;c&&Ui(c[0])&&c[1]==(Yn|Hn|Un|ee)&&!c[4].length&&c[9]==1?l=l[gr(c[0])].apply(l,c[3]):l=o.length==1&&Ui(o)?l[f]():l.thru(o)}return function(){var d=arguments,g=d[0];if(l&&d.length==1&&L(g))return l.plant(g).value();for(var _=0,w=e?t[_].apply(this,d):g;++_<e;)w=t[_].call(this,w);return w}})}function cr(n,t,e,r,i,o,l,f,c,d){var g=t&Yn,_=t&Cn,w=t&Ct,b=t&(Hn|Dt),I=t&Dr,O=w?s:xe(n);function S(){for(var F=arguments.length,D=h(F),vn=F;vn--;)D[vn]=arguments[vn];if(b)var fn=Xt(S),wn=Yf(D,fn);if(r&&(D=Do(D,r,i,b)),o&&(D=Bo(D,o,l,b)),F-=wn,b&&F<d){var Y=ft(D,fn);return zo(n,t,cr,S.placeholder,e,D,Y,f,c,d-F)}var Bn=_?e:this,it=w?Bn[n]:n;return F=D.length,f?D=eh(D,f):I&&F>1&&D.reverse(),g&&c<F&&(D.length=c),this&&this!==j&&this instanceof S&&(it=O||xe(it)),it.apply(Bn,D)}return S}function Go(n,t){return function(e,r){return ac(e,n,t(r),{})}}function hr(n,t){return function(e,r){var i;if(e===s&&r===s)return t;if(e!==s&&(i=e),r!==s){if(i===s)return r;typeof e=="string"||typeof r=="string"?(e=_n(e),r=_n(r)):(e=Ro(e),r=Ro(r)),i=n(e,r)}return i}}function Mi(n){return nt(function(t){return t=$(t,gn(A())),M(function(e){var r=this;return n(t,function(i){return dn(i,r,e)})})})}function pr(n,t){t=t===s?" ":_n(t);var e=t.length;if(e<2)return e?Ii(t,n):t;var r=Ii(t,je(n/Gt(t)));return qt(t)?gt(Wn(r),0,n).join(""):r.slice(0,n)}function Bc(n,t,e,r){var i=t&Cn,o=xe(n);function l(){for(var f=-1,c=arguments.length,d=-1,g=r.length,_=h(g+c),w=this&&this!==j&&this instanceof l?o:n;++d<g;)_[d]=r[d];for(;c--;)_[d++]=arguments[++f];return dn(w,i?e:this,_)}return l}function $o(n){return function(t,e,r){return r&&typeof r!="number"&&ln(t,e,r)&&(e=r=s),t=rt(t),e===s?(e=t,t=0):e=rt(e),r=r===s?t<e?1:-1:rt(r),Cc(t,e,r,n)}}function dr(n){return function(t,e){return typeof t=="string"&&typeof e=="string"||(t=En(t),e=En(e)),n(t,e)}}function zo(n,t,e,r,i,o,l,f,c,d){var g=t&Hn,_=g?l:s,w=g?s:l,b=g?o:s,I=g?s:o;t|=g?Un:Bt,t&=~(g?Bt:Un),t&lu||(t&=~(Cn|Ct));var O=[n,t,i,b,_,I,w,f,c,d],S=e.apply(s,O);return Ui(n)&&rs(S,O),S.placeholder=r,is(S,n,t)}function Fi(n){var t=X[n];return function(e,r){if(e=En(e),r=r==null?0:rn(E(r),292),r&&ro(e)){var i=(H(e)+"e").split("e"),o=t(i[0]+"e"+(+i[1]+r));return i=(H(o)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(e)}}var Nc=zt&&1/Ge(new zt([,-0]))[1]==bt?function(n){return new zt(n)}:tu;function Ko(n){return function(t){var e=un(t);return e==Mn?fi(t):e==Fn?ta(t):Zf(t,n(t))}}function jn(n,t,e,r,i,o,l,f){var c=t&Ct;if(!c&&typeof n!="function")throw new In(x);var d=r?r.length:0;if(d||(t&=~(Un|Bt),r=i=s),l=l===s?l:Q(E(l),0),f=f===s?f:E(f),d-=i?i.length:0,t&Bt){var g=r,_=i;r=i=s}var w=c?s:Di(n),b=[n,t,e,r,i,g,_,o,l,f];if(w&&jc(b,w),n=b[0],t=b[1],e=b[2],r=b[3],i=b[4],f=b[9]=b[9]===s?c?0:n.length:Q(b[9]-d,0),!f&&t&(Hn|Dt)&&(t&=~(Hn|Dt)),!t||t==Cn)var I=Pc(n,t,e);else t==Hn||t==Dt?I=Dc(n,t,f):(t==Un||t==(Cn|Un))&&!i.length?I=Bc(n,t,e,r):I=cr.apply(s,b);var O=w?So:rs;return is(O(I,b),n,t)}function Zo(n,t,e,r){return n===s||Dn(n,$t[e])&&!U.call(r,e)?t:n}function Yo(n,t,e,r,i,o){return z(n)&&z(t)&&(o.set(t,n),sr(n,t,s,Yo,o),o.delete(t)),n}function Hc(n){return Ae(n)?s:n}function Jo(n,t,e,r,i,o){var l=e&Pt,f=n.length,c=t.length;if(f!=c&&!(l&&c>f))return!1;var d=o.get(n),g=o.get(t);if(d&&g)return d==t&&g==n;var _=-1,w=!0,b=e&Me?new Tt:s;for(o.set(n,t),o.set(t,n);++_<f;){var I=n[_],O=t[_];if(r)var S=l?r(O,I,_,t,n,o):r(I,O,_,n,t,o);if(S!==s){if(S)continue;w=!1;break}if(b){if(!ri(t,function(F,D){if(!ae(b,D)&&(I===F||i(I,F,e,r,o)))return b.push(D)})){w=!1;break}}else if(!(I===O||i(I,O,e,r,o))){w=!1;break}}return o.delete(n),o.delete(t),w}function Uc(n,t,e,r,i,o,l){switch(e){case Ht:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case fe:return!(n.byteLength!=t.byteLength||!o(new Je(n),new Je(t)));case re:case ie:case ue:return Dn(+n,+t);case Pe:return n.name==t.name&&n.message==t.message;case oe:case se:return n==t+"";case Mn:var f=fi;case Fn:var c=r&Pt;if(f||(f=Ge),n.size!=t.size&&!c)return!1;var d=l.get(n);if(d)return d==t;r|=Me,l.set(n,t);var g=Jo(f(n),f(t),r,i,o,l);return l.delete(n),g;case Be:if(ge)return ge.call(n)==ge.call(t)}return!1}function kc(n,t,e,r,i,o){var l=e&Pt,f=Wi(n),c=f.length,d=Wi(t),g=d.length;if(c!=g&&!l)return!1;for(var _=c;_--;){var w=f[_];if(!(l?w in t:U.call(t,w)))return!1}var b=o.get(n),I=o.get(t);if(b&&I)return b==t&&I==n;var O=!0;o.set(n,t),o.set(t,n);for(var S=l;++_<c;){w=f[_];var F=n[w],D=t[w];if(r)var vn=l?r(D,F,w,t,n,o):r(F,D,w,n,t,o);if(!(vn===s?F===D||i(F,D,e,r,o):vn)){O=!1;break}S||(S=w=="constructor")}if(O&&!S){var fn=n.constructor,wn=t.constructor;fn!=wn&&"constructor"in n&&"constructor"in t&&!(typeof fn=="function"&&fn instanceof fn&&typeof wn=="function"&&wn instanceof wn)&&(O=!1)}return o.delete(n),o.delete(t),O}function nt(n){return qi(ts(n,s,as),n+"")}function Wi(n){return go(n,nn,Ni)}function Pi(n){return go(n,hn,Xo)}var Di=tr?function(n){return tr.get(n)}:tu;function gr(n){for(var t=n.name+"",e=Kt[t],r=U.call(Kt,t)?e.length:0;r--;){var i=e[r],o=i.func;if(o==null||o==n)return i.name}return t}function Xt(n){var t=U.call(u,"placeholder")?u:n;return t.placeholder}function A(){var n=u.iteratee||ji;return n=n===ji?vo:n,arguments.length?n(arguments[0],arguments[1]):n}function _r(n,t){var e=n.__data__;return Jc(t)?e[typeof t=="string"?"string":"hash"]:e.map}function Bi(n){for(var t=nn(n),e=t.length;e--;){var r=t[e],i=n[r];t[e]=[r,i,jo(i)]}return t}function Et(n,t){var e=Vf(n,t);return mo(e)?e:s}function qc(n){var t=U.call(n,It),e=n[It];try{n[It]=s;var r=!0}catch{}var i=Ze.call(n);return r&&(t?n[It]=e:delete n[It]),i}var Ni=ci?function(n){return n==null?[]:(n=k(n),st(ci(n),function(t){return to.call(n,t)}))}:eu,Xo=ci?function(n){for(var t=[];n;)lt(t,Ni(n)),n=Xe(n);return t}:eu,un=sn;(hi&&un(new hi(new ArrayBuffer(1)))!=Ht||he&&un(new he)!=Mn||pi&&un(pi.resolve())!=cu||zt&&un(new zt)!=Fn||pe&&un(new pe)!=le)&&(un=function(n){var t=sn(n),e=t==Jn?n.constructor:s,r=e?Ot(e):"";if(r)switch(r){case Aa:return Ht;case Ia:return Mn;case Sa:return cu;case Ta:return Fn;case Ra:return le}return t});function Gc(n,t,e){for(var r=-1,i=e.length;++r<i;){var o=e[r],l=o.size;switch(o.type){case"drop":n+=l;break;case"dropRight":t-=l;break;case"take":t=rn(t,n+l);break;case"takeRight":n=Q(n,t-l);break}}return{start:n,end:t}}function $c(n){var t=n.match(Jl);return t?t[1].split(Xl):[]}function Qo(n,t,e){t=dt(t,n);for(var r=-1,i=t.length,o=!1;++r<i;){var l=$n(t[r]);if(!(o=n!=null&&e(n,l)))break;n=n[l]}return o||++r!=i?o:(i=n==null?0:n.length,!!i&&br(i)&&tt(l,i)&&(L(n)||Mt(n)))}function zc(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&U.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function Vo(n){return typeof n.constructor=="function"&&!Ce(n)?Zt(Xe(n)):{}}function Kc(n,t,e){var r=n.constructor;switch(t){case fe:return Oi(n);case re:case ie:return new r(+n);case Ht:return Lc(n,e);case Br:case Nr:case Hr:case Ur:case kr:case qr:case Gr:case $r:case zr:return Wo(n,e);case Mn:return new r;case ue:case se:return new r(n);case oe:return Ec(n);case Fn:return new r;case Be:return Oc(n)}}function Zc(n,t){var e=t.length;if(!e)return n;var r=e-1;return t[r]=(e>1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(Yl,`{
2
+ /* [wrapped with `+t+`] */
3
+ `)}function Yc(n){return L(n)||Mt(n)||!!(eo&&n&&n[eo])}function tt(n,t){var e=typeof n;return t=t??ot,!!t&&(e=="number"||e!="symbol"&&of.test(n))&&n>-1&&n%1==0&&n<t}function ln(n,t,e){if(!z(e))return!1;var r=typeof t;return(r=="number"?cn(e)&&tt(t,e.length):r=="string"&&t in e)?Dn(e[t],n):!1}function Hi(n,t){if(L(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||mn(n)?!0:$l.test(n)||!Gl.test(n)||t!=null&&n in k(t)}function Jc(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function Ui(n){var t=gr(n),e=u[t];if(typeof e!="function"||!(t in W.prototype))return!1;if(n===e)return!0;var r=Di(e);return!!r&&n===r[0]}function Xc(n){return!!Vu&&Vu in n}var Qc=ze?et:ru;function Ce(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||$t;return n===e}function jo(n){return n===n&&!z(n)}function ns(n,t){return function(e){return e==null?!1:e[n]===t&&(t!==s||n in k(e))}}function Vc(n){var t=xr(n,function(r){return e.size===B&&e.clear(),r}),e=t.cache;return t}function jc(n,t){var e=n[1],r=t[1],i=e|r,o=i<(Cn|Ct|Yn),l=r==Yn&&e==Hn||r==Yn&&e==ee&&n[7].length<=t[8]||r==(Yn|ee)&&t[7].length<=t[8]&&e==Hn;if(!(o||l))return n;r&Cn&&(n[2]=t[2],i|=e&Cn?0:lu);var f=t[3];if(f){var c=n[3];n[3]=c?Do(c,f,t[4]):f,n[4]=c?ft(n[3],en):t[4]}return f=t[5],f&&(c=n[5],n[5]=c?Bo(c,f,t[6]):f,n[6]=c?ft(n[5],en):t[6]),f=t[7],f&&(n[7]=f),r&Yn&&(n[8]=n[8]==null?t[8]:rn(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=i,n}function nh(n){var t=[];if(n!=null)for(var e in k(n))t.push(e);return t}function th(n){return Ze.call(n)}function ts(n,t,e){return t=Q(t===s?n.length-1:t,0),function(){for(var r=arguments,i=-1,o=Q(r.length-t,0),l=h(o);++i<o;)l[i]=r[t+i];i=-1;for(var f=h(t+1);++i<t;)f[i]=r[i];return f[t]=e(l),dn(n,this,f)}}function es(n,t){return t.length<2?n:Lt(n,Rn(t,0,-1))}function eh(n,t){for(var e=n.length,r=rn(t.length,e),i=an(n);r--;){var o=t[r];n[r]=tt(o,e)?i[o]:s}return n}function ki(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}var rs=us(So),be=ma||function(n,t){return j.setTimeout(n,t)},qi=us(Ic);function is(n,t,e){var r=t+"";return qi(n,Zc(r,rh($c(r),e)))}function us(n){var t=0,e=0;return function(){var r=xa(),i=bl-(r-e);if(e=r,i>0){if(++t>=Cl)return arguments[0]}else t=0;return n.apply(s,arguments)}}function mr(n,t){var e=-1,r=n.length,i=r-1;for(t=t===s?r:t;++e<t;){var o=Ai(e,i),l=n[o];n[o]=n[e],n[e]=l}return n.length=t,n}var os=Vc(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(zl,function(e,r,i,o){t.push(i?o.replace(jl,"$1"):r||e)}),t});function $n(n){if(typeof n=="string"||mn(n))return n;var t=n+"";return t=="0"&&1/n==-bt?"-0":t}function Ot(n){if(n!=null){try{return Ke.call(n)}catch{}try{return n+""}catch{}}return""}function rh(n,t){return An(Ll,function(e){var r="_."+e[0];t&e[1]&&!ke(n,r)&&n.push(r)}),n.sort()}function ss(n){if(n instanceof W)return n.clone();var t=new Sn(n.__wrapped__,n.__chain__);return t.__actions__=an(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function ih(n,t,e){(e?ln(n,t,e):t===s)?t=1:t=Q(E(t),0);var r=n==null?0:n.length;if(!r||t<1)return[];for(var i=0,o=0,l=h(je(r/t));i<r;)l[o++]=Rn(n,i,i+=t);return l}function uh(n){for(var t=-1,e=n==null?0:n.length,r=0,i=[];++t<e;){var o=n[t];o&&(i[r++]=o)}return i}function oh(){var n=arguments.length;if(!n)return[];for(var t=h(n-1),e=arguments[0],r=n;r--;)t[r-1]=arguments[r];return lt(L(e)?an(e):[e],tn(t,1))}var sh=M(function(n,t){return Z(n)?me(n,tn(t,1,Z,!0)):[]}),lh=M(function(n,t){var e=Ln(t);return Z(e)&&(e=s),Z(n)?me(n,tn(t,1,Z,!0),A(e,2)):[]}),fh=M(function(n,t){var e=Ln(t);return Z(e)&&(e=s),Z(n)?me(n,tn(t,1,Z,!0),s,e):[]});function ah(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===s?1:E(t),Rn(n,t<0?0:t,r)):[]}function ch(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===s?1:E(t),t=r-t,Rn(n,0,t<0?0:t)):[]}function hh(n,t){return n&&n.length?fr(n,A(t,3),!0,!0):[]}function ph(n,t){return n&&n.length?fr(n,A(t,3),!0):[]}function dh(n,t,e,r){var i=n==null?0:n.length;return i?(e&&typeof e!="number"&&ln(n,t,e)&&(e=0,r=i),oc(n,t,e,r)):[]}function ls(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:E(e);return i<0&&(i=Q(r+i,0)),qe(n,A(t,3),i)}function fs(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r-1;return e!==s&&(i=E(e),i=e<0?Q(r+i,0):rn(i,r-1)),qe(n,A(t,3),i,!0)}function as(n){var t=n==null?0:n.length;return t?tn(n,1):[]}function gh(n){var t=n==null?0:n.length;return t?tn(n,bt):[]}function _h(n,t){var e=n==null?0:n.length;return e?(t=t===s?1:E(t),tn(n,t)):[]}function mh(n){for(var t=-1,e=n==null?0:n.length,r={};++t<e;){var i=n[t];r[i[0]]=i[1]}return r}function cs(n){return n&&n.length?n[0]:s}function vh(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:E(e);return i<0&&(i=Q(r+i,0)),kt(n,t,i)}function wh(n){var t=n==null?0:n.length;return t?Rn(n,0,-1):[]}var yh=M(function(n){var t=$(n,Li);return t.length&&t[0]===n[0]?wi(t):[]}),xh=M(function(n){var t=Ln(n),e=$(n,Li);return t===Ln(e)?t=s:e.pop(),e.length&&e[0]===n[0]?wi(e,A(t,2)):[]}),Ch=M(function(n){var t=Ln(n),e=$(n,Li);return t=typeof t=="function"?t:s,t&&e.pop(),e.length&&e[0]===n[0]?wi(e,s,t):[]});function bh(n,t){return n==null?"":wa.call(n,t)}function Ln(n){var t=n==null?0:n.length;return t?n[t-1]:s}function Ah(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r;return e!==s&&(i=E(e),i=i<0?Q(r+i,0):rn(i,r-1)),t===t?ra(n,t,i):qe(n,$u,i,!0)}function Ih(n,t){return n&&n.length?Co(n,E(t)):s}var Sh=M(hs);function hs(n,t){return n&&n.length&&t&&t.length?bi(n,t):n}function Th(n,t,e){return n&&n.length&&t&&t.length?bi(n,t,A(e,2)):n}function Rh(n,t,e){return n&&n.length&&t&&t.length?bi(n,t,s,e):n}var Lh=nt(function(n,t){var e=n==null?0:n.length,r=gi(n,t);return Io(n,$(t,function(i){return tt(i,e)?+i:i}).sort(Po)),r});function Eh(n,t){var e=[];if(!(n&&n.length))return e;var r=-1,i=[],o=n.length;for(t=A(t,3);++r<o;){var l=n[r];t(l,r,n)&&(e.push(l),i.push(r))}return Io(n,i),e}function Gi(n){return n==null?n:ba.call(n)}function Oh(n,t,e){var r=n==null?0:n.length;return r?(e&&typeof e!="number"&&ln(n,t,e)?(t=0,e=r):(t=t==null?0:E(t),e=e===s?r:E(e)),Rn(n,t,e)):[]}function Mh(n,t){return lr(n,t)}function Fh(n,t,e){return Si(n,t,A(e,2))}function Wh(n,t){var e=n==null?0:n.length;if(e){var r=lr(n,t);if(r<e&&Dn(n[r],t))return r}return-1}function Ph(n,t){return lr(n,t,!0)}function Dh(n,t,e){return Si(n,t,A(e,2),!0)}function Bh(n,t){var e=n==null?0:n.length;if(e){var r=lr(n,t,!0)-1;if(Dn(n[r],t))return r}return-1}function Nh(n){return n&&n.length?To(n):[]}function Hh(n,t){return n&&n.length?To(n,A(t,2)):[]}function Uh(n){var t=n==null?0:n.length;return t?Rn(n,1,t):[]}function kh(n,t,e){return n&&n.length?(t=e||t===s?1:E(t),Rn(n,0,t<0?0:t)):[]}function qh(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===s?1:E(t),t=r-t,Rn(n,t<0?0:t,r)):[]}function Gh(n,t){return n&&n.length?fr(n,A(t,3),!1,!0):[]}function $h(n,t){return n&&n.length?fr(n,A(t,3)):[]}var zh=M(function(n){return pt(tn(n,1,Z,!0))}),Kh=M(function(n){var t=Ln(n);return Z(t)&&(t=s),pt(tn(n,1,Z,!0),A(t,2))}),Zh=M(function(n){var t=Ln(n);return t=typeof t=="function"?t:s,pt(tn(n,1,Z,!0),s,t)});function Yh(n){return n&&n.length?pt(n):[]}function Jh(n,t){return n&&n.length?pt(n,A(t,2)):[]}function Xh(n,t){return t=typeof t=="function"?t:s,n&&n.length?pt(n,s,t):[]}function $i(n){if(!(n&&n.length))return[];var t=0;return n=st(n,function(e){if(Z(e))return t=Q(e.length,t),!0}),si(t,function(e){return $(n,ii(e))})}function ps(n,t){if(!(n&&n.length))return[];var e=$i(n);return t==null?e:$(e,function(r){return dn(t,s,r)})}var Qh=M(function(n,t){return Z(n)?me(n,t):[]}),Vh=M(function(n){return Ri(st(n,Z))}),jh=M(function(n){var t=Ln(n);return Z(t)&&(t=s),Ri(st(n,Z),A(t,2))}),np=M(function(n){var t=Ln(n);return t=typeof t=="function"?t:s,Ri(st(n,Z),s,t)}),tp=M($i);function ep(n,t){return Oo(n||[],t||[],_e)}function rp(n,t){return Oo(n||[],t||[],ye)}var ip=M(function(n){var t=n.length,e=t>1?n[t-1]:s;return e=typeof e=="function"?(n.pop(),e):s,ps(n,e)});function ds(n){var t=u(n);return t.__chain__=!0,t}function up(n,t){return t(n),n}function vr(n,t){return t(n)}var op=nt(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(o){return gi(o,n)};return t>1||this.__actions__.length||!(r instanceof W)||!tt(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:vr,args:[i],thisArg:s}),new Sn(r,this.__chain__).thru(function(o){return t&&!o.length&&o.push(s),o}))});function sp(){return ds(this)}function lp(){return new Sn(this.value(),this.__chain__)}function fp(){this.__values__===s&&(this.__values__=Rs(this.value()));var n=this.__index__>=this.__values__.length,t=n?s:this.__values__[this.__index__++];return{done:n,value:t}}function ap(){return this}function cp(n){for(var t,e=this;e instanceof rr;){var r=ss(e);r.__index__=0,r.__values__=s,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function hp(){var n=this.__wrapped__;if(n instanceof W){var t=n;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:vr,args:[Gi],thisArg:s}),new Sn(t,this.__chain__)}return this.thru(Gi)}function pp(){return Eo(this.__wrapped__,this.__actions__)}var dp=ar(function(n,t,e){U.call(n,e)?++n[e]:Vn(n,e,1)});function gp(n,t,e){var r=L(n)?qu:uc;return e&&ln(n,t,e)&&(t=s),r(n,A(t,3))}function _p(n,t){var e=L(n)?st:ho;return e(n,A(t,3))}var mp=ko(ls),vp=ko(fs);function wp(n,t){return tn(wr(n,t),1)}function yp(n,t){return tn(wr(n,t),bt)}function xp(n,t,e){return e=e===s?1:E(e),tn(wr(n,t),e)}function gs(n,t){var e=L(n)?An:ht;return e(n,A(t,3))}function _s(n,t){var e=L(n)?Uf:co;return e(n,A(t,3))}var Cp=ar(function(n,t,e){U.call(n,e)?n[e].push(t):Vn(n,e,[t])});function bp(n,t,e,r){n=cn(n)?n:Vt(n),e=e&&!r?E(e):0;var i=n.length;return e<0&&(e=Q(i+e,0)),Ar(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&kt(n,t,e)>-1}var Ap=M(function(n,t,e){var r=-1,i=typeof t=="function",o=cn(n)?h(n.length):[];return ht(n,function(l){o[++r]=i?dn(t,l,e):ve(l,t,e)}),o}),Ip=ar(function(n,t,e){Vn(n,e,t)});function wr(n,t){var e=L(n)?$:wo;return e(n,A(t,3))}function Sp(n,t,e,r){return n==null?[]:(L(t)||(t=t==null?[]:[t]),e=r?s:e,L(e)||(e=e==null?[]:[e]),bo(n,t,e))}var Tp=ar(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function Rp(n,t,e){var r=L(n)?ei:Ku,i=arguments.length<3;return r(n,A(t,4),e,i,ht)}function Lp(n,t,e){var r=L(n)?kf:Ku,i=arguments.length<3;return r(n,A(t,4),e,i,co)}function Ep(n,t){var e=L(n)?st:ho;return e(n,Cr(A(t,3)))}function Op(n){var t=L(n)?so:bc;return t(n)}function Mp(n,t,e){(e?ln(n,t,e):t===s)?t=1:t=E(t);var r=L(n)?nc:Ac;return r(n,t)}function Fp(n){var t=L(n)?tc:Sc;return t(n)}function Wp(n){if(n==null)return 0;if(cn(n))return Ar(n)?Gt(n):n.length;var t=un(n);return t==Mn||t==Fn?n.size:xi(n).length}function Pp(n,t,e){var r=L(n)?ri:Tc;return e&&ln(n,t,e)&&(t=s),r(n,A(t,3))}var Dp=M(function(n,t){if(n==null)return[];var e=t.length;return e>1&&ln(n,t[0],t[1])?t=[]:e>2&&ln(t[0],t[1],t[2])&&(t=[t[0]]),bo(n,tn(t,1),[])}),yr=_a||function(){return j.Date.now()};function Bp(n,t){if(typeof t!="function")throw new In(x);return n=E(n),function(){if(--n<1)return t.apply(this,arguments)}}function ms(n,t,e){return t=e?s:t,t=n&&t==null?n.length:t,jn(n,Yn,s,s,s,s,t)}function vs(n,t){var e;if(typeof t!="function")throw new In(x);return n=E(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=s),e}}var zi=M(function(n,t,e){var r=Cn;if(e.length){var i=ft(e,Xt(zi));r|=Un}return jn(n,r,t,e,i)}),ws=M(function(n,t,e){var r=Cn|Ct;if(e.length){var i=ft(e,Xt(ws));r|=Un}return jn(t,r,n,e,i)});function ys(n,t,e){t=e?s:t;var r=jn(n,Hn,s,s,s,s,s,t);return r.placeholder=ys.placeholder,r}function xs(n,t,e){t=e?s:t;var r=jn(n,Dt,s,s,s,s,s,t);return r.placeholder=xs.placeholder,r}function Cs(n,t,e){var r,i,o,l,f,c,d=0,g=!1,_=!1,w=!0;if(typeof n!="function")throw new In(x);t=En(t)||0,z(e)&&(g=!!e.leading,_="maxWait"in e,o=_?Q(En(e.maxWait)||0,t):o,w="trailing"in e?!!e.trailing:w);function b(Y){var Bn=r,it=i;return r=i=s,d=Y,l=n.apply(it,Bn),l}function I(Y){return d=Y,f=be(F,t),g?b(Y):l}function O(Y){var Bn=Y-c,it=Y-d,ks=t-Bn;return _?rn(ks,o-it):ks}function S(Y){var Bn=Y-c,it=Y-d;return c===s||Bn>=t||Bn<0||_&&it>=o}function F(){var Y=yr();if(S(Y))return D(Y);f=be(F,O(Y))}function D(Y){return f=s,w&&r?b(Y):(r=i=s,l)}function vn(){f!==s&&Mo(f),d=0,r=c=i=f=s}function fn(){return f===s?l:D(yr())}function wn(){var Y=yr(),Bn=S(Y);if(r=arguments,i=this,c=Y,Bn){if(f===s)return I(c);if(_)return Mo(f),f=be(F,t),b(c)}return f===s&&(f=be(F,t)),l}return wn.cancel=vn,wn.flush=fn,wn}var Np=M(function(n,t){return ao(n,1,t)}),Hp=M(function(n,t,e){return ao(n,En(t)||0,e)});function Up(n){return jn(n,Dr)}function xr(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new In(x);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var l=n.apply(this,r);return e.cache=o.set(i,l)||o,l};return e.cache=new(xr.Cache||Qn),e}xr.Cache=Qn;function Cr(n){if(typeof n!="function")throw new In(x);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function kp(n){return vs(2,n)}var qp=Rc(function(n,t){t=t.length==1&&L(t[0])?$(t[0],gn(A())):$(tn(t,1),gn(A()));var e=t.length;return M(function(r){for(var i=-1,o=rn(r.length,e);++i<o;)r[i]=t[i].call(this,r[i]);return dn(n,this,r)})}),Ki=M(function(n,t){var e=ft(t,Xt(Ki));return jn(n,Un,s,t,e)}),bs=M(function(n,t){var e=ft(t,Xt(bs));return jn(n,Bt,s,t,e)}),Gp=nt(function(n,t){return jn(n,ee,s,s,s,t)});function $p(n,t){if(typeof n!="function")throw new In(x);return t=t===s?t:E(t),M(n,t)}function zp(n,t){if(typeof n!="function")throw new In(x);return t=t==null?0:Q(E(t),0),M(function(e){var r=e[t],i=gt(e,0,t);return r&&lt(i,r),dn(n,this,i)})}function Kp(n,t,e){var r=!0,i=!0;if(typeof n!="function")throw new In(x);return z(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Cs(n,t,{leading:r,maxWait:t,trailing:i})}function Zp(n){return ms(n,1)}function Yp(n,t){return Ki(Ei(t),n)}function Jp(){if(!arguments.length)return[];var n=arguments[0];return L(n)?n:[n]}function Xp(n){return Tn(n,Wt)}function Qp(n,t){return t=typeof t=="function"?t:s,Tn(n,Wt,t)}function Vp(n){return Tn(n,on|Wt)}function jp(n,t){return t=typeof t=="function"?t:s,Tn(n,on|Wt,t)}function nd(n,t){return t==null||fo(n,t,nn(t))}function Dn(n,t){return n===t||n!==n&&t!==t}var td=dr(vi),ed=dr(function(n,t){return n>=t}),Mt=_o(function(){return arguments}())?_o:function(n){return K(n)&&U.call(n,"callee")&&!to.call(n,"callee")},L=h.isArray,rd=Du?gn(Du):cc;function cn(n){return n!=null&&br(n.length)&&!et(n)}function Z(n){return K(n)&&cn(n)}function id(n){return n===!0||n===!1||K(n)&&sn(n)==re}var _t=va||ru,ud=Bu?gn(Bu):hc;function od(n){return K(n)&&n.nodeType===1&&!Ae(n)}function sd(n){if(n==null)return!0;if(cn(n)&&(L(n)||typeof n=="string"||typeof n.splice=="function"||_t(n)||Qt(n)||Mt(n)))return!n.length;var t=un(n);if(t==Mn||t==Fn)return!n.size;if(Ce(n))return!xi(n).length;for(var e in n)if(U.call(n,e))return!1;return!0}function ld(n,t){return we(n,t)}function fd(n,t,e){e=typeof e=="function"?e:s;var r=e?e(n,t):s;return r===s?we(n,t,s,e):!!r}function Zi(n){if(!K(n))return!1;var t=sn(n);return t==Pe||t==Ol||typeof n.message=="string"&&typeof n.name=="string"&&!Ae(n)}function ad(n){return typeof n=="number"&&ro(n)}function et(n){if(!z(n))return!1;var t=sn(n);return t==De||t==au||t==El||t==Fl}function As(n){return typeof n=="number"&&n==E(n)}function br(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ot}function z(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function K(n){return n!=null&&typeof n=="object"}var Is=Nu?gn(Nu):dc;function cd(n,t){return n===t||yi(n,t,Bi(t))}function hd(n,t,e){return e=typeof e=="function"?e:s,yi(n,t,Bi(t),e)}function pd(n){return Ss(n)&&n!=+n}function dd(n){if(Qc(n))throw new R(v);return mo(n)}function gd(n){return n===null}function _d(n){return n==null}function Ss(n){return typeof n=="number"||K(n)&&sn(n)==ue}function Ae(n){if(!K(n)||sn(n)!=Jn)return!1;var t=Xe(n);if(t===null)return!0;var e=U.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Ke.call(e)==ha}var Yi=Hu?gn(Hu):gc;function md(n){return As(n)&&n>=-ot&&n<=ot}var Ts=Uu?gn(Uu):_c;function Ar(n){return typeof n=="string"||!L(n)&&K(n)&&sn(n)==se}function mn(n){return typeof n=="symbol"||K(n)&&sn(n)==Be}var Qt=ku?gn(ku):mc;function vd(n){return n===s}function wd(n){return K(n)&&un(n)==le}function yd(n){return K(n)&&sn(n)==Pl}var xd=dr(Ci),Cd=dr(function(n,t){return n<=t});function Rs(n){if(!n)return[];if(cn(n))return Ar(n)?Wn(n):an(n);if(ce&&n[ce])return na(n[ce]());var t=un(n),e=t==Mn?fi:t==Fn?Ge:Vt;return e(n)}function rt(n){if(!n)return n===0?n:0;if(n=En(n),n===bt||n===-bt){var t=n<0?-1:1;return t*Sl}return n===n?n:0}function E(n){var t=rt(n),e=t%1;return t===t?e?t-e:t:0}function Ls(n){return n?Rt(E(n),0,kn):0}function En(n){if(typeof n=="number")return n;if(mn(n))return Fe;if(z(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=z(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=Zu(n);var e=ef.test(n);return e||uf.test(n)?Bf(n.slice(2),e?2:8):tf.test(n)?Fe:+n}function Es(n){return Gn(n,hn(n))}function bd(n){return n?Rt(E(n),-ot,ot):n===0?n:0}function H(n){return n==null?"":_n(n)}var Ad=Yt(function(n,t){if(Ce(t)||cn(t)){Gn(t,nn(t),n);return}for(var e in t)U.call(t,e)&&_e(n,e,t[e])}),Os=Yt(function(n,t){Gn(t,hn(t),n)}),Ir=Yt(function(n,t,e,r){Gn(t,hn(t),n,r)}),Id=Yt(function(n,t,e,r){Gn(t,nn(t),n,r)}),Sd=nt(gi);function Td(n,t){var e=Zt(n);return t==null?e:lo(e,t)}var Rd=M(function(n,t){n=k(n);var e=-1,r=t.length,i=r>2?t[2]:s;for(i&&ln(t[0],t[1],i)&&(r=1);++e<r;)for(var o=t[e],l=hn(o),f=-1,c=l.length;++f<c;){var d=l[f],g=n[d];(g===s||Dn(g,$t[d])&&!U.call(n,d))&&(n[d]=o[d])}return n}),Ld=M(function(n){return n.push(s,Yo),dn(Ms,s,n)});function Ed(n,t){return Gu(n,A(t,3),qn)}function Od(n,t){return Gu(n,A(t,3),mi)}function Md(n,t){return n==null?n:_i(n,A(t,3),hn)}function Fd(n,t){return n==null?n:po(n,A(t,3),hn)}function Wd(n,t){return n&&qn(n,A(t,3))}function Pd(n,t){return n&&mi(n,A(t,3))}function Dd(n){return n==null?[]:or(n,nn(n))}function Bd(n){return n==null?[]:or(n,hn(n))}function Ji(n,t,e){var r=n==null?s:Lt(n,t);return r===s?e:r}function Nd(n,t){return n!=null&&Qo(n,t,sc)}function Xi(n,t){return n!=null&&Qo(n,t,lc)}var Hd=Go(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Ze.call(t)),n[t]=e},Vi(pn)),Ud=Go(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Ze.call(t)),U.call(n,t)?n[t].push(e):n[t]=[e]},A),kd=M(ve);function nn(n){return cn(n)?oo(n):xi(n)}function hn(n){return cn(n)?oo(n,!0):vc(n)}function qd(n,t){var e={};return t=A(t,3),qn(n,function(r,i,o){Vn(e,t(r,i,o),r)}),e}function Gd(n,t){var e={};return t=A(t,3),qn(n,function(r,i,o){Vn(e,i,t(r,i,o))}),e}var $d=Yt(function(n,t,e){sr(n,t,e)}),Ms=Yt(function(n,t,e,r){sr(n,t,e,r)}),zd=nt(function(n,t){var e={};if(n==null)return e;var r=!1;t=$(t,function(o){return o=dt(o,n),r||(r=o.length>1),o}),Gn(n,Pi(n),e),r&&(e=Tn(e,on|su|Wt,Hc));for(var i=t.length;i--;)Ti(e,t[i]);return e});function Kd(n,t){return Fs(n,Cr(A(t)))}var Zd=nt(function(n,t){return n==null?{}:yc(n,t)});function Fs(n,t){if(n==null)return{};var e=$(Pi(n),function(r){return[r]});return t=A(t),Ao(n,e,function(r,i){return t(r,i[0])})}function Yd(n,t,e){t=dt(t,n);var r=-1,i=t.length;for(i||(i=1,n=s);++r<i;){var o=n==null?s:n[$n(t[r])];o===s&&(r=i,o=e),n=et(o)?o.call(n):o}return n}function Jd(n,t,e){return n==null?n:ye(n,t,e)}function Xd(n,t,e,r){return r=typeof r=="function"?r:s,n==null?n:ye(n,t,e,r)}var Ws=Ko(nn),Ps=Ko(hn);function Qd(n,t,e){var r=L(n),i=r||_t(n)||Qt(n);if(t=A(t,4),e==null){var o=n&&n.constructor;i?e=r?new o:[]:z(n)?e=et(o)?Zt(Xe(n)):{}:e={}}return(i?An:qn)(n,function(l,f,c){return t(e,l,f,c)}),e}function Vd(n,t){return n==null?!0:Ti(n,t)}function jd(n,t,e){return n==null?n:Lo(n,t,Ei(e))}function ng(n,t,e,r){return r=typeof r=="function"?r:s,n==null?n:Lo(n,t,Ei(e),r)}function Vt(n){return n==null?[]:li(n,nn(n))}function tg(n){return n==null?[]:li(n,hn(n))}function eg(n,t,e){return e===s&&(e=t,t=s),e!==s&&(e=En(e),e=e===e?e:0),t!==s&&(t=En(t),t=t===t?t:0),Rt(En(n),t,e)}function rg(n,t,e){return t=rt(t),e===s?(e=t,t=0):e=rt(e),n=En(n),fc(n,t,e)}function ig(n,t,e){if(e&&typeof e!="boolean"&&ln(n,t,e)&&(t=e=s),e===s&&(typeof t=="boolean"?(e=t,t=s):typeof n=="boolean"&&(e=n,n=s)),n===s&&t===s?(n=0,t=1):(n=rt(n),t===s?(t=n,n=0):t=rt(t)),n>t){var r=n;n=t,t=r}if(e||n%1||t%1){var i=io();return rn(n+i*(t-n+Df("1e-"+((i+"").length-1))),t)}return Ai(n,t)}var ug=Jt(function(n,t,e){return t=t.toLowerCase(),n+(e?Ds(t):t)});function Ds(n){return Qi(H(n).toLowerCase())}function Bs(n){return n=H(n),n&&n.replace(sf,Jf).replace(Sf,"")}function og(n,t,e){n=H(n),t=_n(t);var r=n.length;e=e===s?r:Rt(E(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function sg(n){return n=H(n),n&&Ul.test(n)?n.replace(pu,Xf):n}function lg(n){return n=H(n),n&&Kl.test(n)?n.replace(Kr,"\\$&"):n}var fg=Jt(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),ag=Jt(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),cg=Uo("toLowerCase");function hg(n,t,e){n=H(n),t=E(t);var r=t?Gt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return pr(nr(i),e)+n+pr(je(i),e)}function pg(n,t,e){n=H(n),t=E(t);var r=t?Gt(n):0;return t&&r<t?n+pr(t-r,e):n}function dg(n,t,e){n=H(n),t=E(t);var r=t?Gt(n):0;return t&&r<t?pr(t-r,e)+n:n}function gg(n,t,e){return e||t==null?t=0:t&&(t=+t),Ca(H(n).replace(Zr,""),t||0)}function _g(n,t,e){return(e?ln(n,t,e):t===s)?t=1:t=E(t),Ii(H(n),t)}function mg(){var n=arguments,t=H(n[0]);return n.length<3?t:t.replace(n[1],n[2])}var vg=Jt(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});function wg(n,t,e){return e&&typeof e!="number"&&ln(n,t,e)&&(t=e=s),e=e===s?kn:e>>>0,e?(n=H(n),n&&(typeof t=="string"||t!=null&&!Yi(t))&&(t=_n(t),!t&&qt(n))?gt(Wn(n),0,e):n.split(t,e)):[]}var yg=Jt(function(n,t,e){return n+(e?" ":"")+Qi(t)});function xg(n,t,e){return n=H(n),e=e==null?0:Rt(E(e),0,n.length),t=_n(t),n.slice(e,e+t.length)==t}function Cg(n,t,e){var r=u.templateSettings;e&&ln(n,t,e)&&(t=s),n=H(n),t=Ir({},t,r,Zo);var i=Ir({},t.imports,r.imports,Zo),o=nn(i),l=li(i,o),f,c,d=0,g=t.interpolate||Ne,_="__p += '",w=ai((t.escape||Ne).source+"|"+g.source+"|"+(g===du?nf:Ne).source+"|"+(t.evaluate||Ne).source+"|$","g"),b="//# sourceURL="+(U.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Of+"]")+`
4
+ `;n.replace(w,function(S,F,D,vn,fn,wn){return D||(D=vn),_+=n.slice(d,wn).replace(lf,Qf),F&&(f=!0,_+=`' +
5
+ __e(`+F+`) +
6
+ '`),fn&&(c=!0,_+=`';
7
+ `+fn+`;
8
+ __p += '`),D&&(_+=`' +
9
+ ((__t = (`+D+`)) == null ? '' : __t) +
10
+ '`),d=wn+S.length,S}),_+=`';
11
+ `;var I=U.call(t,"variable")&&t.variable;if(!I)_=`with (obj) {
12
+ `+_+`
13
+ }
14
+ `;else if(Vl.test(I))throw new R(m);_=(c?_.replace(Dl,""):_).replace(Bl,"$1").replace(Nl,"$1;"),_="function("+(I||"obj")+`) {
15
+ `+(I?"":`obj || (obj = {});
16
+ `)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
17
+ function print() { __p += __j.call(arguments, '') }
18
+ `:`;
19
+ `)+_+`return __p
20
+ }`;var O=Hs(function(){return N(o,b+"return "+_).apply(s,l)});if(O.source=_,Zi(O))throw O;return O}function bg(n){return H(n).toLowerCase()}function Ag(n){return H(n).toUpperCase()}function Ig(n,t,e){if(n=H(n),n&&(e||t===s))return Zu(n);if(!n||!(t=_n(t)))return n;var r=Wn(n),i=Wn(t),o=Yu(r,i),l=Ju(r,i)+1;return gt(r,o,l).join("")}function Sg(n,t,e){if(n=H(n),n&&(e||t===s))return n.slice(0,Qu(n)+1);if(!n||!(t=_n(t)))return n;var r=Wn(n),i=Ju(r,Wn(t))+1;return gt(r,0,i).join("")}function Tg(n,t,e){if(n=H(n),n&&(e||t===s))return n.replace(Zr,"");if(!n||!(t=_n(t)))return n;var r=Wn(n),i=Yu(r,Wn(t));return gt(r,i).join("")}function Rg(n,t){var e=yl,r=xl;if(z(t)){var i="separator"in t?t.separator:i;e="length"in t?E(t.length):e,r="omission"in t?_n(t.omission):r}n=H(n);var o=n.length;if(qt(n)){var l=Wn(n);o=l.length}if(e>=o)return n;var f=e-Gt(r);if(f<1)return r;var c=l?gt(l,0,f).join(""):n.slice(0,f);if(i===s)return c+r;if(l&&(f+=c.length-f),Yi(i)){if(n.slice(f).search(i)){var d,g=c;for(i.global||(i=ai(i.source,H(gu.exec(i))+"g")),i.lastIndex=0;d=i.exec(g);)var _=d.index;c=c.slice(0,_===s?f:_)}}else if(n.indexOf(_n(i),f)!=f){var w=c.lastIndexOf(i);w>-1&&(c=c.slice(0,w))}return c+r}function Lg(n){return n=H(n),n&&Hl.test(n)?n.replace(hu,ia):n}var Eg=Jt(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),Qi=Uo("toUpperCase");function Ns(n,t,e){return n=H(n),t=e?s:t,t===s?jf(n)?sa(n):$f(n):n.match(t)||[]}var Hs=M(function(n,t){try{return dn(n,s,t)}catch(e){return Zi(e)?e:new R(e)}}),Og=nt(function(n,t){return An(t,function(e){e=$n(e),Vn(n,e,zi(n[e],n))}),n});function Mg(n){var t=n==null?0:n.length,e=A();return n=t?$(n,function(r){if(typeof r[1]!="function")throw new In(x);return[e(r[0]),r[1]]}):[],M(function(r){for(var i=-1;++i<t;){var o=n[i];if(dn(o[0],this,r))return dn(o[1],this,r)}})}function Fg(n){return ic(Tn(n,on))}function Vi(n){return function(){return n}}function Wg(n,t){return n==null||n!==n?t:n}var Pg=qo(),Dg=qo(!0);function pn(n){return n}function ji(n){return vo(typeof n=="function"?n:Tn(n,on))}function Bg(n){return yo(Tn(n,on))}function Ng(n,t){return xo(n,Tn(t,on))}var Hg=M(function(n,t){return function(e){return ve(e,n,t)}}),Ug=M(function(n,t){return function(e){return ve(n,e,t)}});function nu(n,t,e){var r=nn(t),i=or(t,r);e==null&&!(z(t)&&(i.length||!r.length))&&(e=t,t=n,n=this,i=or(t,nn(t)));var o=!(z(e)&&"chain"in e)||!!e.chain,l=et(n);return An(i,function(f){var c=t[f];n[f]=c,l&&(n.prototype[f]=function(){var d=this.__chain__;if(o||d){var g=n(this.__wrapped__),_=g.__actions__=an(this.__actions__);return _.push({func:c,args:arguments,thisArg:n}),g.__chain__=d,g}return c.apply(n,lt([this.value()],arguments))})}),n}function kg(){return j._===this&&(j._=pa),this}function tu(){}function qg(n){return n=E(n),M(function(t){return Co(t,n)})}var Gg=Mi($),$g=Mi(qu),zg=Mi(ri);function Us(n){return Hi(n)?ii($n(n)):xc(n)}function Kg(n){return function(t){return n==null?s:Lt(n,t)}}var Zg=$o(),Yg=$o(!0);function eu(){return[]}function ru(){return!1}function Jg(){return{}}function Xg(){return""}function Qg(){return!0}function Vg(n,t){if(n=E(n),n<1||n>ot)return[];var e=kn,r=rn(n,kn);t=A(t),n-=kn;for(var i=si(r,t);++e<n;)t(e);return i}function jg(n){return L(n)?$(n,$n):mn(n)?[n]:an(os(H(n)))}function n_(n){var t=++ca;return H(n)+t}var t_=hr(function(n,t){return n+t},0),e_=Fi("ceil"),r_=hr(function(n,t){return n/t},1),i_=Fi("floor");function u_(n){return n&&n.length?ur(n,pn,vi):s}function o_(n,t){return n&&n.length?ur(n,A(t,2),vi):s}function s_(n){return zu(n,pn)}function l_(n,t){return zu(n,A(t,2))}function f_(n){return n&&n.length?ur(n,pn,Ci):s}function a_(n,t){return n&&n.length?ur(n,A(t,2),Ci):s}var c_=hr(function(n,t){return n*t},1),h_=Fi("round"),p_=hr(function(n,t){return n-t},0);function d_(n){return n&&n.length?oi(n,pn):0}function g_(n,t){return n&&n.length?oi(n,A(t,2)):0}return u.after=Bp,u.ary=ms,u.assign=Ad,u.assignIn=Os,u.assignInWith=Ir,u.assignWith=Id,u.at=Sd,u.before=vs,u.bind=zi,u.bindAll=Og,u.bindKey=ws,u.castArray=Jp,u.chain=ds,u.chunk=ih,u.compact=uh,u.concat=oh,u.cond=Mg,u.conforms=Fg,u.constant=Vi,u.countBy=dp,u.create=Td,u.curry=ys,u.curryRight=xs,u.debounce=Cs,u.defaults=Rd,u.defaultsDeep=Ld,u.defer=Np,u.delay=Hp,u.difference=sh,u.differenceBy=lh,u.differenceWith=fh,u.drop=ah,u.dropRight=ch,u.dropRightWhile=hh,u.dropWhile=ph,u.fill=dh,u.filter=_p,u.flatMap=wp,u.flatMapDeep=yp,u.flatMapDepth=xp,u.flatten=as,u.flattenDeep=gh,u.flattenDepth=_h,u.flip=Up,u.flow=Pg,u.flowRight=Dg,u.fromPairs=mh,u.functions=Dd,u.functionsIn=Bd,u.groupBy=Cp,u.initial=wh,u.intersection=yh,u.intersectionBy=xh,u.intersectionWith=Ch,u.invert=Hd,u.invertBy=Ud,u.invokeMap=Ap,u.iteratee=ji,u.keyBy=Ip,u.keys=nn,u.keysIn=hn,u.map=wr,u.mapKeys=qd,u.mapValues=Gd,u.matches=Bg,u.matchesProperty=Ng,u.memoize=xr,u.merge=$d,u.mergeWith=Ms,u.method=Hg,u.methodOf=Ug,u.mixin=nu,u.negate=Cr,u.nthArg=qg,u.omit=zd,u.omitBy=Kd,u.once=kp,u.orderBy=Sp,u.over=Gg,u.overArgs=qp,u.overEvery=$g,u.overSome=zg,u.partial=Ki,u.partialRight=bs,u.partition=Tp,u.pick=Zd,u.pickBy=Fs,u.property=Us,u.propertyOf=Kg,u.pull=Sh,u.pullAll=hs,u.pullAllBy=Th,u.pullAllWith=Rh,u.pullAt=Lh,u.range=Zg,u.rangeRight=Yg,u.rearg=Gp,u.reject=Ep,u.remove=Eh,u.rest=$p,u.reverse=Gi,u.sampleSize=Mp,u.set=Jd,u.setWith=Xd,u.shuffle=Fp,u.slice=Oh,u.sortBy=Dp,u.sortedUniq=Nh,u.sortedUniqBy=Hh,u.split=wg,u.spread=zp,u.tail=Uh,u.take=kh,u.takeRight=qh,u.takeRightWhile=Gh,u.takeWhile=$h,u.tap=up,u.throttle=Kp,u.thru=vr,u.toArray=Rs,u.toPairs=Ws,u.toPairsIn=Ps,u.toPath=jg,u.toPlainObject=Es,u.transform=Qd,u.unary=Zp,u.union=zh,u.unionBy=Kh,u.unionWith=Zh,u.uniq=Yh,u.uniqBy=Jh,u.uniqWith=Xh,u.unset=Vd,u.unzip=$i,u.unzipWith=ps,u.update=jd,u.updateWith=ng,u.values=Vt,u.valuesIn=tg,u.without=Qh,u.words=Ns,u.wrap=Yp,u.xor=Vh,u.xorBy=jh,u.xorWith=np,u.zip=tp,u.zipObject=ep,u.zipObjectDeep=rp,u.zipWith=ip,u.entries=Ws,u.entriesIn=Ps,u.extend=Os,u.extendWith=Ir,nu(u,u),u.add=t_,u.attempt=Hs,u.camelCase=ug,u.capitalize=Ds,u.ceil=e_,u.clamp=eg,u.clone=Xp,u.cloneDeep=Vp,u.cloneDeepWith=jp,u.cloneWith=Qp,u.conformsTo=nd,u.deburr=Bs,u.defaultTo=Wg,u.divide=r_,u.endsWith=og,u.eq=Dn,u.escape=sg,u.escapeRegExp=lg,u.every=gp,u.find=mp,u.findIndex=ls,u.findKey=Ed,u.findLast=vp,u.findLastIndex=fs,u.findLastKey=Od,u.floor=i_,u.forEach=gs,u.forEachRight=_s,u.forIn=Md,u.forInRight=Fd,u.forOwn=Wd,u.forOwnRight=Pd,u.get=Ji,u.gt=td,u.gte=ed,u.has=Nd,u.hasIn=Xi,u.head=cs,u.identity=pn,u.includes=bp,u.indexOf=vh,u.inRange=rg,u.invoke=kd,u.isArguments=Mt,u.isArray=L,u.isArrayBuffer=rd,u.isArrayLike=cn,u.isArrayLikeObject=Z,u.isBoolean=id,u.isBuffer=_t,u.isDate=ud,u.isElement=od,u.isEmpty=sd,u.isEqual=ld,u.isEqualWith=fd,u.isError=Zi,u.isFinite=ad,u.isFunction=et,u.isInteger=As,u.isLength=br,u.isMap=Is,u.isMatch=cd,u.isMatchWith=hd,u.isNaN=pd,u.isNative=dd,u.isNil=_d,u.isNull=gd,u.isNumber=Ss,u.isObject=z,u.isObjectLike=K,u.isPlainObject=Ae,u.isRegExp=Yi,u.isSafeInteger=md,u.isSet=Ts,u.isString=Ar,u.isSymbol=mn,u.isTypedArray=Qt,u.isUndefined=vd,u.isWeakMap=wd,u.isWeakSet=yd,u.join=bh,u.kebabCase=fg,u.last=Ln,u.lastIndexOf=Ah,u.lowerCase=ag,u.lowerFirst=cg,u.lt=xd,u.lte=Cd,u.max=u_,u.maxBy=o_,u.mean=s_,u.meanBy=l_,u.min=f_,u.minBy=a_,u.stubArray=eu,u.stubFalse=ru,u.stubObject=Jg,u.stubString=Xg,u.stubTrue=Qg,u.multiply=c_,u.nth=Ih,u.noConflict=kg,u.noop=tu,u.now=yr,u.pad=hg,u.padEnd=pg,u.padStart=dg,u.parseInt=gg,u.random=ig,u.reduce=Rp,u.reduceRight=Lp,u.repeat=_g,u.replace=mg,u.result=Yd,u.round=h_,u.runInContext=a,u.sample=Op,u.size=Wp,u.snakeCase=vg,u.some=Pp,u.sortedIndex=Mh,u.sortedIndexBy=Fh,u.sortedIndexOf=Wh,u.sortedLastIndex=Ph,u.sortedLastIndexBy=Dh,u.sortedLastIndexOf=Bh,u.startCase=yg,u.startsWith=xg,u.subtract=p_,u.sum=d_,u.sumBy=g_,u.template=Cg,u.times=Vg,u.toFinite=rt,u.toInteger=E,u.toLength=Ls,u.toLower=bg,u.toNumber=En,u.toSafeInteger=bd,u.toString=H,u.toUpper=Ag,u.trim=Ig,u.trimEnd=Sg,u.trimStart=Tg,u.truncate=Rg,u.unescape=Lg,u.uniqueId=n_,u.upperCase=Eg,u.upperFirst=Qi,u.each=gs,u.eachRight=_s,u.first=cs,nu(u,function(){var n={};return qn(u,function(t,e){U.call(u.prototype,e)||(n[e]=t)}),n}(),{chain:!1}),u.VERSION=y,An(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),An(["drop","take"],function(n,t){W.prototype[n]=function(e){e=e===s?1:Q(E(e),0);var r=this.__filtered__&&!t?new W(this):this.clone();return r.__filtered__?r.__takeCount__=rn(e,r.__takeCount__):r.__views__.push({size:rn(e,kn),type:n+(r.__dir__<0?"Right":"")}),r},W.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),An(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==fu||e==Il;W.prototype[n]=function(i){var o=this.clone();return o.__iteratees__.push({iteratee:A(i,3),type:e}),o.__filtered__=o.__filtered__||r,o}}),An(["head","last"],function(n,t){var e="take"+(t?"Right":"");W.prototype[n]=function(){return this[e](1).value()[0]}}),An(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");W.prototype[n]=function(){return this.__filtered__?new W(this):this[e](1)}}),W.prototype.compact=function(){return this.filter(pn)},W.prototype.find=function(n){return this.filter(n).head()},W.prototype.findLast=function(n){return this.reverse().find(n)},W.prototype.invokeMap=M(function(n,t){return typeof n=="function"?new W(this):this.map(function(e){return ve(e,n,t)})}),W.prototype.reject=function(n){return this.filter(Cr(A(n)))},W.prototype.slice=function(n,t){n=E(n);var e=this;return e.__filtered__&&(n>0||t<0)?new W(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==s&&(t=E(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},W.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},W.prototype.toArray=function(){return this.take(kn)},qn(W.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],o=r||/^find/.test(t);i&&(u.prototype[t]=function(){var l=this.__wrapped__,f=r?[1]:arguments,c=l instanceof W,d=f[0],g=c||L(l),_=function(F){var D=i.apply(u,lt([F],f));return r&&w?D[0]:D};g&&e&&typeof d=="function"&&d.length!=1&&(c=g=!1);var w=this.__chain__,b=!!this.__actions__.length,I=o&&!w,O=c&&!b;if(!o&&g){l=O?l:new W(this);var S=n.apply(l,f);return S.__actions__.push({func:vr,args:[_],thisArg:s}),new Sn(S,w)}return I&&O?n.apply(this,f):(S=this.thru(_),I?r?S.value()[0]:S.value():S)})}),An(["pop","push","shift","sort","splice","unshift"],function(n){var t=$e[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(L(o)?o:[],i)}return this[e](function(l){return t.apply(L(l)?l:[],i)})}}),qn(W.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";U.call(Kt,r)||(Kt[r]=[]),Kt[r].push({name:t,func:e})}}),Kt[cr(s,Ct).name]=[{name:"wrapper",func:s}],W.prototype.clone=La,W.prototype.reverse=Ea,W.prototype.value=Oa,u.prototype.at=op,u.prototype.chain=sp,u.prototype.commit=lp,u.prototype.next=fp,u.prototype.plant=cp,u.prototype.reverse=hp,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=pp,u.prototype.first=u.prototype.head,ce&&(u.prototype[ce]=ap),u},at=la();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(j._=at,define(function(){return at})):At?((At.exports=at)._=at,jr._=at):j._=at}).call(te)});var Nn=m_(dl(),1);function v_(s,y){if(s&1){let T=Js();yn(0,"button",6),Xs("click",function(){Zs(T);let x=xn();return Ys(x.removeItem())}),yn(1,"span",7),Ft(2,"\xD7"),On(),yn(3,"span"),Ft(4,"Close"),On()()}if(s&2){let T=xn();Zn(T.widgetStyles().__remove_item__),V(3),Zn(T.widgetStyles().__screen_reader__)}}function w_(s,y){if(s&1&&Kn(0,"p",8),s&2){let T=xn(2);Zn(T.widgetStyles().__help_block__),J("innerHTML",T.options==null?null:T.options.helpBlock,jt)}}function y_(s,y){if(s&1&&(yn(0,"div"),wt(1,w_,1,3,"p",3),On()),s&2){let T=xn();V(),J("ngIf",T.options==null?null:T.options.helpBlock)}}function x_(s,y){if(s&1&&Kn(0,"label",8),s&2){let T,v=xn();Zn((v.options==null?null:v.options.labelHtmlClass)||""),Se("sr-only",v.options==null?null:v.options.notitle),J("innerHTML",v.options==null?null:v.options.title,jt),iu("for","control"+((T=v.layoutNode())==null?null:T._id))}}function C_(s,y){if(s&1&&(yn(0,"p")(1,"strong"),Ft(2,"*"),On(),Ft(3," = required fields "),On()),s&2){let T=xn();V(),Zn(T.widgetStyles().__required_asterisk__)}}function b_(s,y){if(s&1&&Kn(0,"span",8),s&2){let T=xn();Zn(T.widgetStyles().__field_addon_left__),J("innerHTML",T.options==null?null:T.options.fieldAddonLeft,jt)}}function A_(s,y){if(s&1&&Kn(0,"span",8),s&2){let T=xn();Zn(T.widgetStyles().__field_addon_right__),J("innerHTML",T.options==null?null:T.options.fieldAddonRight,jt)}}function I_(s,y){if(s&1&&Kn(0,"span",9),s&2){let T=xn();Se("glyphicon-ok",(T.options==null?null:T.options.enableSuccessState)&&!(T.formControl!=null&&T.formControl.errors))("glyphicon-remove",(T.options==null?null:T.options.enableErrorState)&&(T.formControl==null?null:T.formControl.errors))}}function S_(s,y){if(s&1&&Kn(0,"p",8),s&2){let T=xn(2);Zn(T.widgetStyles().__help_block__),J("innerHTML",T.options==null?null:T.options.helpBlock,jt)}}function T_(s,y){if(s&1&&(yn(0,"div"),wt(1,S_,1,3,"p",3),On()),s&2){let T=xn();V(),J("ngIf",T.options==null?null:T.options.helpBlock)}}function R_(s,y){if(s&1&&(yn(0,"div"),Ft(1,"debug: "),yn(2,"pre"),Ft(3),On()()),s&2){let T=xn();V(3),Qs(T.debugOutput)}}var Oe=(()=>{let y=class y{constructor(){this.frameworkThemeSubject=new $s,this.frameworkTheme$=this.frameworkThemeSubject.asObservable()}requestThemeChange(v){this.frameworkThemeSubject.next(v),this.activeRequestedTheme=v}getActiveRequestedTheme(){return this.activeRequestedTheme}};y.\u0275fac=function(x){return new(x||y)},y.\u0275prov=Ie({token:y,factory:y.\u0275fac,providedIn:"root"});let s=y;return s})(),ou=(()=>{let y=class y{applyCssClasses(v,x,m){let P=this.widgetStyles()[v];(!P||Nn.default.isEmpty(P))&&(P=this.widgetStyles().default),Object.keys(P).forEach(B=>{let en=P[B];en.length&&(x[B]=ut(x[B],en)),m&&(x[B]=ut(x[B],m))})}flattenWidgetStyles(v){var x={};let m=["__themes__"];return Object.keys(v).forEach(P=>{let B=v[P];if(m.indexOf(P)>=0){x[P]=B;return}Nn.default.isArray(B)&&(x[P]=B.join(" ")),Nn.default.isObject(B)&&(x[P]=x[P]||{},Object.keys(B).forEach(en=>{let on=B[en];Nn.default.isArray(on)?x[P][en]=on.join(" "):x[P][en]=on})),Nn.default.isString(B)&&(x[P]=B)}),x}constructor(){this.changeDetector=zn(Rr),this.jsf=zn(ne),this.jsfFLService=zn(Re),this.cssFWService=zn(Oe),this.frameworkInitialized=!1,this.formControl=null,this.debugOutput="",this.debug="",this.parentArray=null,this.isOrderable=!1,this.layoutNode=yt(void 0),this.layoutIndex=yt(void 0),this.dataIndex=yt(void 0),this.widgetStyles=Vs(void 0),this.defaultStyling={array:{},default:{fieldHtmlClass:"cssfw-form-control"},__themes__:[{name:"notheme",text:"None"}],__remove_item__:"cssfw-remove-item",__array_item_nonref__:{htmlClass:"cssfw-array-item-nonref"},__active__:{activeClass:"cssfw-active"},__array__:{htmlClass:"cssfw-array"},__control_label__:{labelHtmlClass:"cssfw-control-label"},__form_group__:{htmlClass:"cssfw-form-group"},__field_addon_left__:"cssfw-addon-left",__field_addon_right__:"cssfw-addon-right",__help_block__:"cssfw-help-block",__required_asterisk__:"cssfw-required-astersisk",__screen_reader__:"cssfw-screen-reader"};let v=this.cssFWService,m=this.jsfFLService.activeFramework.config||{};this.widgetStyles.set(Object.assign(this.defaultStyling,m.widgetstyles));let P=this.widgetStyles().__themes__[0],B=v.activeRequestedTheme||P.name;this.theme=this.options?.theme||B,this.frameworkThemeSubs=v.frameworkTheme$.subscribe(en=>{this.theme=en})}ngOnDestroy(){this.frameworkThemeSubs.unsubscribe(),this.frameworkThemeSubs=null}get showRemoveButton(){let v=this.layoutNode();return!this.options.removable||this.options.readonly||v.type==="$ref"?!1:v.recursiveReference?!0:!v.arrayItem||!this.parentArray||this.parentArray.items.length-1<=this.parentArray.options.minItems?!1:v.arrayItemType==="list"?!0:this.layoutIndex()[this.layoutIndex().length-1]===this.parentArray.items.length-2}ngOnInit(){this.initializeFramework();let v=this.layoutNode();v.arrayItem&&v.type!=="$ref"&&(this.parentArray=this.jsf.getParentNode(this),this.parentArray&&(this.isOrderable=v.arrayItemType==="list"&&!this.options.readonly&&this.parentArray.options.orderable))}ngOnChanges(){this.frameworkInitialized||this.initializeFramework()}initializeFramework(){let v=this.layoutNode();if(v){if(this.options=(0,Nn.cloneDeep)(v.options),this.widgetLayoutNode=Gs(qs({},v),{options:(0,Nn.cloneDeep)(v.options)}),this.widgetOptions=this.widgetLayoutNode.options,this.formControl=this.jsf.getFormControl(this),this.options.isInputWidget=tl(v.type,["button","checkbox","checkboxes-inline","checkboxes","color","date","datetime-local","datetime","email","file","hidden","image","integer","month","number","password","radio","radiobuttons","radios-inline","radios","range","reset","search","select","submit","tel","text","textarea","time","url","week"]),this.options.title=this.setTitle(),this.options.htmlClass=ut(this.options.htmlClass,"schema-form-"+v.type),v.type==="array"?this.options.htmlClass=ut(this.options.htmlClass,this.widgetStyles().__array__.htmlClass):v.arrayItem&&v.type!=="$ref"?this.options.htmlClass=ut(this.options.htmlClass,this.widgetStyles().__array_item_nonref__.htmlClass):this.options.htmlClass=ut(this.options.htmlClass,this.widgetStyles().__form_group__.htmlClass),this.widgetOptions.htmlClass="",this.options.labelHtmlClass=ut(this.options.labelHtmlClass,this.widgetStyles().__control_label__.labelHtmlClass),this.widgetOptions.activeClass=ut(this.widgetOptions.activeClass,this.widgetStyles().__active__.activeClass),this.options.fieldAddonLeft=this.options.fieldAddonLeft||this.options.prepend,this.options.fieldAddonRight=this.options.fieldAddonRight||this.options.append,this.options.title&&v.type!=="tab"&&!this.options.notitle&&this.options.required&&!this.options.title.includes("*")){let x=this.widgetStyles().__required_asterisk__||"text-danger";this.options.title+=` <strong class="${x}">*</strong>`}if(v.type=="optionfieldset"&&(this.options.messageLocation="top"),this.applyCssClasses(v.type,this.widgetOptions,this.options.style),this.formControl&&(this.updateHelpBlock(this.formControl.status),this.formControl.statusChanges.subscribe(x=>this.updateHelpBlock(x)),this.options.debug)){let x=[];this.debugOutput=(0,Nn.map)(x,m=>JSON.stringify(m,null,2)).join(`
21
+ `)}this.frameworkInitialized=!0}}updateHelpBlock(v){this.options.helpBlock=v==="INVALID"&&this.options.enableErrorState&&this.formControl.errors&&(this.formControl.dirty||this.options.feedbackOnRender)?this.jsf.formatErrors(this.formControl.errors,this.options.validationMessages):this.options.description||this.options.help||null}setTitle(){switch(this.layoutNode().type){case"button":case"checkbox":case"section":case"help":case"msg":case"submit":case"message":case"tabarray":case"tabs":case"$ref":return null;case"advancedfieldset":return this.widgetOptions.expandable=!0,this.widgetOptions.title="Advanced options",null;case"authfieldset":return this.widgetOptions.expandable=!0,this.widgetOptions.title="Authentication settings",null;case"fieldset":return this.widgetOptions.title=this.options.title,null;case"array":return this.widgetOptions.title=this.options.title,null;default:return this.widgetOptions.title=null,this.jsf.setItemTitle(this)}}removeItem(){this.jsf.removeItem(this)}};y.\u0275fac=function(x){return new(x||y)},y.\u0275cmp=Tr({type:y,selectors:[["css-framework"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"],widgetStyles:[1,"widgetStyles"]},outputs:{widgetStyles:"widgetStylesChange"},standalone:!1,features:[Sr],decls:12,vars:24,consts:[["type","button",3,"class","click",4,"ngIf"],[4,"ngIf"],[3,"class","sr-only","innerHTML",4,"ngIf"],[3,"class","innerHTML",4,"ngIf"],[3,"layoutNode","dataIndex","layoutIndex"],["aria-hidden","true","class","form-control-feedback glyphicon",3,"glyphicon-ok","glyphicon-remove",4,"ngIf"],["type","button",3,"click"],["aria-hidden","true"],[3,"innerHTML"],["aria-hidden","true",1,"form-control-feedback","glyphicon"]],template:function(x,m){if(x&1&&(yn(0,"div"),wt(1,v_,5,4,"button",0)(2,y_,2,1,"div",1)(3,x_,1,6,"label",2)(4,C_,4,2,"p",1),yn(5,"div"),wt(6,b_,1,3,"span",3),Kn(7,"select-widget-widget",4),wt(8,A_,1,3,"span",3),On(),wt(9,I_,1,4,"span",5)(10,T_,2,1,"div",1),On(),wt(11,R_,4,1,"div",1)),x&2){let P,B,en,on;Zn((m.options==null?null:m.options.htmlClass)||""),Se("has-feedback",(m.options==null?null:m.options.feedback)&&(m.options==null?null:m.options.isInputWidget)&&((m.formControl==null?null:m.formControl.dirty)||(m.options==null?null:m.options.feedbackOnRender)))("has-error",(m.options==null?null:m.options.enableErrorState)&&(m.formControl==null?null:m.formControl.errors)&&((m.formControl==null?null:m.formControl.dirty)||(m.options==null?null:m.options.feedbackOnRender)))("has-success",(m.options==null?null:m.options.enableSuccessState)&&!(m.formControl!=null&&m.formControl.errors)&&((m.formControl==null?null:m.formControl.dirty)||(m.options==null?null:m.options.feedbackOnRender))),iu("data-bs-theme",m.theme)("data-theme",m.theme),V(),J("ngIf",m.showRemoveButton),V(),J("ngIf",(m.options==null?null:m.options.messageLocation)==="top"&&((P=m.layoutNode())==null?null:P.type)!=="array"),V(),J("ngIf",(m.options==null?null:m.options.title)&&((B=m.layoutNode())==null?null:B.type)!=="tab"&&((B=m.layoutNode())==null?null:B.type)!=="array"),V(),J("ngIf",((en=m.layoutNode())==null?null:en.type)==="submit"&&(m.jsf==null||m.jsf.formOptions==null?null:m.jsf.formOptions.fieldsRequired)),V(),Se("input-group",(m.options==null?null:m.options.fieldAddonLeft)||(m.options==null?null:m.options.fieldAddonRight)),V(),J("ngIf",m.options==null?null:m.options.fieldAddonLeft),V(),J("layoutNode",m.widgetLayoutNode)("dataIndex",m.dataIndex())("layoutIndex",m.layoutIndex()),V(),J("ngIf",m.options==null?null:m.options.fieldAddonRight),V(),J("ngIf",(m.options==null?null:m.options.feedback)&&(m.options==null?null:m.options.isInputWidget)&&!(m.options!=null&&m.options.fieldAddonRight)&&!m.layoutNode().arrayItem&&((m.formControl==null?null:m.formControl.dirty)||(m.options==null?null:m.options.feedbackOnRender))),V(),J("ngIf",(m.options==null?null:m.options.messageLocation)!=="top"&&((on=m.layoutNode())==null?null:on.type)!=="array"),V(),J("ngIf",m.debug&&m.debugOutput)}},dependencies:[el,js],styles:[`:host ::ng-deep .list-group-item .form-control-feedback{top:40px}:host ::ng-deep .checkbox,:host ::ng-deep .radio{margin-top:0;margin-bottom:0}:host ::ng-deep .checkbox-inline,:host ::ng-deep .checkbox-inline+.checkbox-inline,:host ::ng-deep .checkbox-inline+.radio-inline,:host ::ng-deep .radio-inline,:host ::ng-deep .radio-inline+.radio-inline,:host ::ng-deep .radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}:host ::ng-deep .checkbox-inline:last-child,:host ::ng-deep .radio-inline:last-child{margin-right:0}:host ::ng-deep .ng-invalid.ng-touched{border:1px solid #f44336}.checkbox-inline,.checkbox-inline+.checkbox-inline,.checkbox-inline+.radio-inline,.radio-inline,.radio-inline+.radio-inline,.radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}.checkbox-inline:last-child,.radio-inline:last-child{margin-right:0}.ng-invalid.ng-touched{border:1px solid #f44336}
22
+ `],encapsulation:2});let s=y;return s})(),L_=new zs("CSS_FRAMEWORK_CFG"),gl;(function(s){class y{}s.csscategories=y})(gl||(gl={}));var _l=(()=>{let y=class y{};y.\u0275fac=function(x){return new(x||y)},y.\u0275mod=vt({type:y}),y.\u0275inj=mt({providers:[ne,Re,Fr,Oe],imports:[Le,xt,Wr]});let s=y;return s})(),ml=(()=>{let y=class y extends Mr{constructor(v){super(),this.cssFWService=zn(Oe),this.name="css",this.framework=ou,this.name=v.name,this.text=v.text||this.name,this.stylesheets=v.stylesheets,this.scripts=v.scripts,this.config=v,this.widgets=v.widgets}getActiveTheme(){let v=this.cssFWService.getActiveRequestedTheme(),x=this.config?.widgetstyles?.__themes__,m=x&&x[0];if(v&&(m={name:v,text:v},x)){let P=x.filter(B=>B.name==v);m=P&&P[0]||m}return m}requestThemeChange(v){this.cssFWService.requestThemeChange(v)}registerTheme(v,x=!0){let P=(this.config?.widgetstyles?.__themes__||[]).filter(B=>v.name==B.name);if(P&&P[0]){if(x)return P[0].text=v.text,!0;if(!x)return!1}if(!P||P.length==0){let B=this.config;return B.widgetstyles=this.config.widgetstyles||{},B.widgetstyles.__themes__=B.widgetstyles.__themes__||[],B.widgetstyles.__themes__.push(v),!0}}unregisterTheme(v){let x=this.config?.widgetstyles?.__themes__,m=-1;return x&&(x.forEach((P,B)=>{v==P.name&&(m=B)}),m>=0)?(x.splice(m,1),!0):!1}getConfig(){return this.config}};y.\u0275fac=function(x){return new(x||y)(Ks(L_))},y.\u0275prov=Ie({token:y,factory:y.\u0275fac});let s=y;return s})();var O_=(()=>{let y=class y{constructor(){this.changeDetector=zn(Rr),this.jsf=zn(ne),this.frameworkInitialized=!1,this.formControl=null,this.debugOutput="",this.debug="",this.parentArray=null,this.isOrderable=!1,this.layoutNode=yt(void 0),this.layoutIndex=yt(void 0),this.dataIndex=yt(void 0)}ngOnInit(){}ngOnChanges(){}};y.\u0275fac=function(x){return new(x||y)},y.\u0275cmp=Tr({type:y,selectors:[["bootstrap-5-framework"]],inputs:{layoutNode:[1,"layoutNode"],layoutIndex:[1,"layoutIndex"],dataIndex:[1,"dataIndex"]},standalone:!1,features:[Sr],decls:2,vars:3,consts:[[3,"layoutNode","layoutIndex","dataIndex"]],template:function(x,m){x&1&&(yn(0,"div"),Kn(1,"css-framework",0),On()),x&2&&(V(),J("layoutNode",m.layoutNode())("layoutIndex",m.layoutIndex())("dataIndex",m.dataIndex()))},dependencies:[ou],styles:[`:host ::ng-deep .list-group-item .list-group-item-hb .form-control-feedback{top:40px}:host ::ng-deep .checkbox,:host ::ng-deep .radio{margin-top:0;margin-bottom:0}:host ::ng-deep .checkbox-inline,:host ::ng-deep .checkbox-inline+.checkbox-inline,:host ::ng-deep .checkbox-inline+.radio-inline,:host ::ng-deep .radio-inline,:host ::ng-deep .radio-inline+.radio-inline,:host ::ng-deep .radio-inline+.checkbox-inline{margin-left:0;margin-right:10px}:host ::ng-deep .checkbox-inline:last-child,:host ::ng-deep .radio-inline:last-child{margin-right:0}:host ::ng-deep .ng-invalid.ng-touched{border:1px solid #f44336}.input-group .form-control:first-child,.input-group-text:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-text:first-child{border-right:0}.input-group .form-control:last-child,.input-group-text:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text:last-child{border-left:0}.input-group .form-control:not(:first-child):not(:last-child),.input-group-text:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.btn-close>span:first-child{display:none}
23
+ `],encapsulation:2});let s=y;return s})(),M_={name:"bootstrap-5",text:"Bootstrap 5",scripts:["//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"],stylesheets:["//cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"],widgetstyles:{__themes__:[{name:"bootstrap5_default",text:"Bootstrap5 default"},{name:"dark",text:"Dark"},{name:"light",text:"Light"}],$ref:{fieldHtmlClass:"btn float-end btn-primary"},__array_item_nonref__:{htmlClass:"list-group-item list-group-item-hb"},__form_group__:{htmlClass:"form-group"},__control_label__:{labelHtmlClass:"control-label"},__active__:{activeClass:"active"},__required_asterisk__:"text-danger",__screen_reader__:"visually-hidden",__remove_item__:"btn-close float-end",__help_block__:"help-block grey-text small",__field_addon_left__:"input-group-text",__field_addon_right__:"input-group-text","alt-date":{},"alt-datetime":{},__array__:{htmlClass:"list-group list-group-hb"},array:{},authfieldset:{},advancedfieldset:{},button:{fieldHtmlClass:"btn btn-sm btn-primary"},checkbox:{fieldHtmlClass:"checkbox"},checkboxes:{fieldHtmlClass:"checkbox"},checkboxbuttons:{fieldHtmlClass:"visually-hidden",htmlClass:"btn-group",itemLabelHtmlClass:"btn"},"checkboxes-inline":{htmlClass:"checkbox",itemLabelHtmlClass:"checkbox-inline"},date:{},"datetime-local":{},fieldset:{},integer:{},number:{},optionfieldset:{},password:{},radiobuttons:{fieldHtmlClass:"visually-hidden",htmlClass:"btn-group",itemLabelHtmlClass:"btn"},radio:{fieldHtmlClass:"radio"},radios:{fieldHtmlClass:"radio"},"radios-inline":{htmlClass:"radio",itemLabelHtmlClass:"radio-inline"},range:{},section:{},selectfieldset:{},select:{},submit:{fieldHtmlClass:"btn btn-primary"},text:{},tabs:{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane"},tabarray:{labelHtmlClass:"nav nav-tabs",htmlClass:"tab-content",fieldHtmlClass:"tab-pane"},textarea:{},default:{fieldHtmlClass:"form-control"}}},F_=(()=>{let y=class y extends ml{constructor(){let v=zn(Oe);super(M_),this.framework=O_,this.cssFWService=v}};y.\u0275fac=function(x){return new(x||y)},y.\u0275prov=Ie({token:y,factory:y.\u0275fac});let s=y;return s})(),vl=(()=>{let y=class y{};y.\u0275fac=function(x){return new(x||y)},y.\u0275mod=vt({type:y}),y.\u0275inj=mt({providers:[ne,Re,Fr,{provide:Mr,useClass:F_,multi:!0}],imports:[Le,xt,Wr,_l,Le]});let s=y;return s})();var wl=(()=>{class s{static \u0275fac=function(v){return new(v||s)};static \u0275mod=vt({type:s});static \u0275inj=mt({providers:[il],imports:[xt,Te,Lr,Er,Or.forChild(),vl,Pr,rl]})}return s})();var q0=(()=>{class s{static \u0275fac=function(v){return new(v||s)};static \u0275mod=vt({type:s});static \u0275inj=mt({providers:[hl],imports:[xt,Lr,Er,Or.forChild(),Te,Pr,nl,Te,wl,al,ul,cl,fl,sl,ol,ll,pl]})}return s})();export{q0 as a};
@@ -0,0 +1 @@
1
+ import"./chunk-MTSNBCD6.js";import"./chunk-SHP2ASKV.js";import"./chunk-VHTQTL2S.js";import"./chunk-GMY5QOXR.js";import{g as i}from"./chunk-2G7GNBIF.js";import"./chunk-EULZTUQA.js";import"./chunk-RJAFS3B2.js";import"./chunk-WU2EPT6Y.js";import"./chunk-DQUBVCJE.js";import"./chunk-VUYAK52W.js";import{c as m}from"./chunk-QMB5XE4Y.js";import{ha as t,kd as n,mb as r}from"./chunk-R3VPSO5X.js";var u=[{path:"",loadComponent:()=>import("./chunk-UCO62FWN.js").then(o=>o.TerminalComponent)}],a=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i.forChild(u),i]})}return o})();var T=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n,a,m.forChild()]})}return o})();export{T as TerminalModule};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-MTSNBCD6.js";import"./chunk-SHP2ASKV.js";import"./chunk-VHTQTL2S.js";import"./chunk-GMY5QOXR.js";import"./chunk-EULZTUQA.js";import"./chunk-RJAFS3B2.js";import"./chunk-WU2EPT6Y.js";import"./chunk-DQUBVCJE.js";import"./chunk-VUYAK52W.js";import"./chunk-QMB5XE4Y.js";import"./chunk-R3VPSO5X.js";export{a as TerminalComponent};
@@ -0,0 +1,14 @@
1
+ import{m as Lu}from"./chunk-ALG7CIS3.js";import{d as Hu}from"./chunk-2G7GNBIF.js";import{b as Tu}from"./chunk-QMB5XE4Y.js";import{$a as k,Ac as G,Bc as U,Gb as vu,Ob as q,Pb as Q,Qb as hu,Xb as Cu,e as x0,jc as ru,kc as gu,la as mu,lb as Mu,lc as bu}from"./chunk-R3VPSO5X.js";var S0=x0((yu,wu)=>{(function(w,y){typeof yu=="object"&&typeof wu<"u"?wu.exports=y():typeof define=="function"&&define.amd?define(y):w.JSON5=y()})(yu,function(){"use strict";function w(u,D){return D={exports:{}},u(D,D.exports),D.exports}var y=w(function(u){var D=u.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=D)}),x=w(function(u){var D=u.exports={version:"2.6.5"};typeof __e=="number"&&(__e=D)}),W=x.version,S=function(u){return typeof u=="object"?u!==null:typeof u=="function"},X=function(u){if(!S(u))throw TypeError(u+" is not an object!");return u},xu=function(u){try{return!!u()}catch{return!0}},Au=!xu(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),ou=y.document,Ru=S(ou)&&S(ou.createElement),$u=function(u){return Ru?ou.createElement(u):{}},zu=!Au&&!xu(function(){return Object.defineProperty($u("div"),"a",{get:function(){return 7}}).a!=7}),Ju=function(u,D){if(!S(u))return u;var t,r;if(D&&typeof(t=u.toString)=="function"&&!S(r=t.call(u))||typeof(t=u.valueOf)=="function"&&!S(r=t.call(u))||!D&&typeof(t=u.toString)=="function"&&!S(r=t.call(u)))return r;throw TypeError("Can't convert object to primitive value")},ku=Object.defineProperty,qu=Au?Object.defineProperty:function(D,t,r){if(X(D),t=Ju(t,!0),X(r),zu)try{return ku(D,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(D[t]=r.value),D},Gu={f:qu},Uu=function(u,D){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:D}},Y=Au?function(u,D,t){return Gu.f(u,D,Uu(1,t))}:function(u,D,t){return u[D]=t,u},Zu={}.hasOwnProperty,Su=function(u,D){return Zu.call(u,D)},Ku=0,Qu=Math.random(),Wu=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++Ku+Qu).toString(36))},Xu=!1,Yu=w(function(u){var D="__core-js_shared__",t=y[D]||(y[D]={});(u.exports=function(r,n){return t[r]||(t[r]=n!==void 0?n:{})})("versions",[]).push({version:x.version,mode:Xu?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Eu=Yu("native-function-to-string",Function.toString),u0=w(function(u){var D=Wu("src"),t="toString",r=(""+Eu).split(t);x.inspectSource=function(n){return Eu.call(n)},(u.exports=function(n,C,o,g){var B=typeof o=="function";B&&(Su(o,"name")||Y(o,"name",C)),n[C]!==o&&(B&&(Su(o,D)||Y(o,D,n[C]?""+n[C]:r.join(String(C)))),n===y?n[C]=o:g?n[C]?n[C]=o:Y(n,C,o):(delete n[C],Y(n,C,o)))})(Function.prototype,t,function(){return typeof this=="function"&&this[D]||Eu.call(this)})}),D0=function(u){if(typeof u!="function")throw TypeError(u+" is not a function!");return u},_u=function(u,D,t){if(D0(u),D===void 0)return u;switch(t){case 1:return function(r){return u.call(D,r)};case 2:return function(r,n){return u.call(D,r,n)};case 3:return function(r,n,C){return u.call(D,r,n,C)}}return function(){return u.apply(D,arguments)}},cu="prototype",v=function(u,D,t){var r=u&v.F,n=u&v.G,C=u&v.S,o=u&v.P,g=u&v.B,B=n?y:C?y[D]||(y[D]={}):(y[D]||{})[cu],$=n?x:x[D]||(x[D]={}),Z=$[cu]||($[cu]={}),P,I,b,K;n&&(t=D);for(P in t)I=!r&&B&&B[P]!==void 0,b=(I?B:t)[P],K=g&&I?_u(b,y):o&&typeof b=="function"?_u(Function.call,b):b,B&&u0(B,P,b,u&v.U),$[P]!=b&&Y($,P,K),o&&Z[P]!=b&&(Z[P]=b)};y.core=x,v.F=1,v.G=2,v.S=4,v.P=8,v.B=16,v.W=32,v.U=64,v.R=128;var uu=v,e0=Math.ceil,r0=Math.floor,Pu=function(u){return isNaN(u=+u)?0:(u>0?r0:e0)(u)},t0=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u},n0=function(u){return function(D,t){var r=String(t0(D)),n=Pu(t),C=r.length,o,g;return n<0||n>=C?u?"":void 0:(o=r.charCodeAt(n),o<55296||o>56319||n+1===C||(g=r.charCodeAt(n+1))<56320||g>57343?u?r.charAt(n):o:u?r.slice(n,n+2):(o-55296<<10)+(g-56320)+65536)}},i0=n0(!1);uu(uu.P,"String",{codePointAt:function(D){return i0(this,D)}});var _0=x.String.codePointAt,a0=Math.max,F0=Math.min,C0=function(u,D){return u=Pu(u),u<0?a0(u+D,0):F0(u,D)},Nu=String.fromCharCode,Iu=String.fromCodePoint;uu(uu.S+uu.F*(!!Iu&&Iu.length!=1),"String",{fromCodePoint:function(D){for(var t=arguments,r=[],n=arguments.length,C=0,o;n>C;){if(o=+t[C++],C0(o,1114111)!==o)throw RangeError(o+" is not a valid code point");r.push(o<65536?Nu(o):Nu(((o-=65536)>>10)+55296,o%1024+56320))}return r.join("")}});var P0=x.String.fromCodePoint,A0=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,o0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,E0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,fu={Space_Separator:A0,ID_Start:o0,ID_Continue:E0},s={isSpaceSeparator:function(D){return typeof D=="string"&&fu.Space_Separator.test(D)},isIdStartChar:function(D){return typeof D=="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D==="$"||D==="_"||fu.ID_Start.test(D))},isIdContinueChar:function(D){return typeof D=="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D>="0"&&D<="9"||D==="$"||D==="_"||D==="\u200C"||D==="\u200D"||fu.ID_Continue.test(D))},isDigit:function(D){return typeof D=="string"&&/[0-9]/.test(D)},isHexDigit:function(D){return typeof D=="string"&&/[0-9A-Fa-f]/.test(D)}},su,h,j,tu,L,_,l,Bu,Du,c0=function(D,t){su=String(D),h="start",j=[],tu=0,L=1,_=0,l=void 0,Bu=void 0,Du=void 0;do l=f0(),l0[h]();while(l.type!=="eof");return typeof t=="function"?lu({"":Du},"",t):Du};function lu(u,D,t){var r=u[D];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(var n=0;n<r.length;n++){var C=String(n),o=lu(r,C,t);o===void 0?delete r[C]:Object.defineProperty(r,C,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(var g in r){var B=lu(r,g,t);B===void 0?delete r[g]:Object.defineProperty(r,g,{value:B,writable:!0,enumerable:!0,configurable:!0})}return t.call(u,D,r)}var F,i,eu,O,A;function f0(){for(F="default",i="",eu=!1,O=1;;){A=V();var u=ju[F]();if(u)return u}}function V(){if(su[tu])return String.fromCodePoint(su.codePointAt(tu))}function e(){var u=V();return u===`
2
+ `?(L++,_=0):u?_+=u.length:_++,u&&(tu+=u.length),u}var ju={default:function(){switch(A){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
3
+ `:case"\r":case"\u2028":case"\u2029":e();return;case"/":e(),F="comment";return;case void 0:return e(),c("eof")}if(s.isSpaceSeparator(A)){e();return}return ju[h]()},comment:function(){switch(A){case"*":e(),F="multiLineComment";return;case"/":e(),F="singleLineComment";return}throw f(e())},multiLineComment:function(){switch(A){case"*":e(),F="multiLineCommentAsterisk";return;case void 0:throw f(e())}e()},multiLineCommentAsterisk:function(){switch(A){case"*":e();return;case"/":e(),F="default";return;case void 0:throw f(e())}e(),F="multiLineComment"},singleLineComment:function(){switch(A){case`
4
+ `:case"\r":case"\u2028":case"\u2029":e(),F="default";return;case void 0:return e(),c("eof")}e()},value:function(){switch(A){case"{":case"[":return c("punctuator",e());case"n":return e(),H("ull"),c("null",null);case"t":return e(),H("rue"),c("boolean",!0);case"f":return e(),H("alse"),c("boolean",!1);case"-":case"+":e()==="-"&&(O=-1),F="sign";return;case".":i=e(),F="decimalPointLeading";return;case"0":i=e(),F="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i=e(),F="decimalInteger";return;case"I":return e(),H("nfinity"),c("numeric",1/0);case"N":return e(),H("aN"),c("numeric",NaN);case'"':case"'":eu=e()==='"',i="",F="string";return}throw f(e())},identifierNameStartEscape:function(){if(A!=="u")throw f(e());e();var D=du();switch(D){case"$":case"_":break;default:if(!s.isIdStartChar(D))throw Ou();break}i+=D,F="identifierName"},identifierName:function(){switch(A){case"$":case"_":case"\u200C":case"\u200D":i+=e();return;case"\\":e(),F="identifierNameEscape";return}if(s.isIdContinueChar(A)){i+=e();return}return c("identifier",i)},identifierNameEscape:function(){if(A!=="u")throw f(e());e();var D=du();switch(D){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!s.isIdContinueChar(D))throw Ou();break}i+=D,F="identifierName"},sign:function(){switch(A){case".":i=e(),F="decimalPointLeading";return;case"0":i=e(),F="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":i=e(),F="decimalInteger";return;case"I":return e(),H("nfinity"),c("numeric",O*(1/0));case"N":return e(),H("aN"),c("numeric",NaN)}throw f(e())},zero:function(){switch(A){case".":i+=e(),F="decimalPoint";return;case"e":case"E":i+=e(),F="decimalExponent";return;case"x":case"X":i+=e(),F="hexadecimal";return}return c("numeric",O*0)},decimalInteger:function(){switch(A){case".":i+=e(),F="decimalPoint";return;case"e":case"E":i+=e(),F="decimalExponent";return}if(s.isDigit(A)){i+=e();return}return c("numeric",O*Number(i))},decimalPointLeading:function(){if(s.isDigit(A)){i+=e(),F="decimalFraction";return}throw f(e())},decimalPoint:function(){switch(A){case"e":case"E":i+=e(),F="decimalExponent";return}if(s.isDigit(A)){i+=e(),F="decimalFraction";return}return c("numeric",O*Number(i))},decimalFraction:function(){switch(A){case"e":case"E":i+=e(),F="decimalExponent";return}if(s.isDigit(A)){i+=e();return}return c("numeric",O*Number(i))},decimalExponent:function(){switch(A){case"+":case"-":i+=e(),F="decimalExponentSign";return}if(s.isDigit(A)){i+=e(),F="decimalExponentInteger";return}throw f(e())},decimalExponentSign:function(){if(s.isDigit(A)){i+=e(),F="decimalExponentInteger";return}throw f(e())},decimalExponentInteger:function(){if(s.isDigit(A)){i+=e();return}return c("numeric",O*Number(i))},hexadecimal:function(){if(s.isHexDigit(A)){i+=e(),F="hexadecimalInteger";return}throw f(e())},hexadecimalInteger:function(){if(s.isHexDigit(A)){i+=e();return}return c("numeric",O*Number(i))},string:function(){switch(A){case"\\":e(),i+=s0();return;case'"':if(eu)return e(),c("string",i);i+=e();return;case"'":if(!eu)return e(),c("string",i);i+=e();return;case`
5
+ `:case"\r":throw f(e());case"\u2028":case"\u2029":d0(A);break;case void 0:throw f(e())}i+=e()},start:function(){switch(A){case"{":case"[":return c("punctuator",e())}F="value"},beforePropertyName:function(){switch(A){case"$":case"_":i=e(),F="identifierName";return;case"\\":e(),F="identifierNameStartEscape";return;case"}":return c("punctuator",e());case'"':case"'":eu=e()==='"',F="string";return}if(s.isIdStartChar(A)){i+=e(),F="identifierName";return}throw f(e())},afterPropertyName:function(){if(A===":")return c("punctuator",e());throw f(e())},beforePropertyValue:function(){F="value"},afterPropertyValue:function(){switch(A){case",":case"}":return c("punctuator",e())}throw f(e())},beforeArrayValue:function(){if(A==="]")return c("punctuator",e());F="value"},afterArrayValue:function(){switch(A){case",":case"]":return c("punctuator",e())}throw f(e())},end:function(){throw f(e())}};function c(u,D){return{type:u,value:D,line:L,column:_}}function H(u){for(var D=0,t=u;D<t.length;D+=1){var r=t[D],n=V();if(n!==r)throw f(e());e()}}function s0(){var u=V();switch(u){case"b":return e(),"\b";case"f":return e(),"\f";case"n":return e(),`
6
+ `;case"r":return e(),"\r";case"t":return e()," ";case"v":return e(),"\v";case"0":if(e(),s.isDigit(V()))throw f(e());return"\0";case"x":return e(),B0();case"u":return e(),du();case`
7
+ `:case"\u2028":case"\u2029":return e(),"";case"\r":return e(),V()===`
8
+ `&&e(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw f(e());case void 0:throw f(e())}return e()}function B0(){var u="",D=V();if(!s.isHexDigit(D)||(u+=e(),D=V(),!s.isHexDigit(D)))throw f(e());return u+=e(),String.fromCodePoint(parseInt(u,16))}function du(){for(var u="",D=4;D-- >0;){var t=V();if(!s.isHexDigit(t))throw f(e());u+=e()}return String.fromCodePoint(parseInt(u,16))}var l0={start:function(){if(l.type==="eof")throw R();pu()},beforePropertyName:function(){switch(l.type){case"identifier":case"string":Bu=l.value,h="afterPropertyName";return;case"punctuator":nu();return;case"eof":throw R()}},afterPropertyName:function(){if(l.type==="eof")throw R();h="beforePropertyValue"},beforePropertyValue:function(){if(l.type==="eof")throw R();pu()},beforeArrayValue:function(){if(l.type==="eof")throw R();if(l.type==="punctuator"&&l.value==="]"){nu();return}pu()},afterPropertyValue:function(){if(l.type==="eof")throw R();switch(l.value){case",":h="beforePropertyName";return;case"}":nu()}},afterArrayValue:function(){if(l.type==="eof")throw R();switch(l.value){case",":h="beforeArrayValue";return;case"]":nu()}},end:function(){}};function pu(){var u;switch(l.type){case"punctuator":switch(l.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=l.value;break}if(Du===void 0)Du=u;else{var D=j[j.length-1];Array.isArray(D)?D.push(u):Object.defineProperty(D,Bu,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")j.push(u),Array.isArray(u)?h="beforeArrayValue":h="beforePropertyName";else{var t=j[j.length-1];t==null?h="end":Array.isArray(t)?h="afterArrayValue":h="afterPropertyValue"}}function nu(){j.pop();var u=j[j.length-1];u==null?h="end":Array.isArray(u)?h="afterArrayValue":h="afterPropertyValue"}function f(u){return iu(u===void 0?"JSON5: invalid end of input at "+L+":"+_:"JSON5: invalid character '"+Vu(u)+"' at "+L+":"+_)}function R(){return iu("JSON5: invalid end of input at "+L+":"+_)}function Ou(){return _-=5,iu("JSON5: invalid identifier character at "+L+":"+_)}function d0(u){console.warn("JSON5: '"+Vu(u)+"' in strings is not valid ECMAScript; consider escaping")}function Vu(u){var D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){var t=u.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return u}function iu(u){var D=new SyntaxError(u);return D.lineNumber=L,D.columnNumber=_,D}var p0=function(D,t,r){var n=[],C="",o,g,B="",$;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(r=t.space,$=t.quote,t=t.replacer),typeof t=="function")g=t;else if(Array.isArray(t)){o=[];for(var Z=0,P=t;Z<P.length;Z+=1){var I=P[Z],b=void 0;typeof I=="string"?b=I:(typeof I=="number"||I instanceof String||I instanceof Number)&&(b=String(I)),b!==void 0&&o.indexOf(b)<0&&o.push(b)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),B=" ".substr(0,r)):typeof r=="string"&&(B=r.substr(0,10)),K("",{"":D});function K(E,p){var a=p[E];switch(a!=null&&(typeof a.toJSON5=="function"?a=a.toJSON5(E):typeof a.toJSON=="function"&&(a=a.toJSON(E))),g&&(a=g.call(p,E,a)),a instanceof Number?a=Number(a):a instanceof String?a=String(a):a instanceof Boolean&&(a=a.valueOf()),a){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof a=="string")return au(a,!1);if(typeof a=="number")return String(a);if(typeof a=="object")return Array.isArray(a)?y0(a):g0(a)}function au(E){for(var p={"'":.1,'"':.2},a={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},d="",N=0;N<E.length;N++){var m=E[N];switch(m){case"'":case'"':p[m]++,d+=m;continue;case"\0":if(s.isDigit(E[N+1])){d+="\\x00";continue}}if(a[m]){d+=a[m];continue}if(m<" "){var z=m.charCodeAt(0).toString(16);d+="\\x"+("00"+z).substring(z.length);continue}d+=m}var M=$||Object.keys(p).reduce(function(T,J){return p[T]<p[J]?T:J});return d=d.replace(new RegExp(M,"g"),a[M]),M+d+M}function g0(E){if(n.indexOf(E)>=0)throw TypeError("Converting circular structure to JSON5");n.push(E);var p=C;C=C+B;for(var a=o||Object.keys(E),d=[],N=0,m=a;N<m.length;N+=1){var z=m[N],M=K(z,E);if(M!==void 0){var T=b0(z)+":";B!==""&&(T+=" "),T+=M,d.push(T)}}var J;if(d.length===0)J="{}";else{var Fu;if(B==="")Fu=d.join(","),J="{"+Fu+"}";else{var w0=`,
9
+ `+C;Fu=d.join(w0),J=`{
10
+ `+C+Fu+`,
11
+ `+p+"}"}}return n.pop(),C=p,J}function b0(E){if(E.length===0)return au(E,!0);var p=String.fromCodePoint(E.codePointAt(0));if(!s.isIdStartChar(p))return au(E,!0);for(var a=p.length;a<E.length;a++)if(!s.isIdContinueChar(String.fromCodePoint(E.codePointAt(a))))return au(E,!0);return E}function y0(E){if(n.indexOf(E)>=0)throw TypeError("Converting circular structure to JSON5");n.push(E);var p=C;C=C+B;for(var a=[],d=0;d<E.length;d++){var N=K(String(d),E);a.push(N!==void 0?N:"null")}var m;if(a.length===0)m="[]";else if(B===""){var z=a.join(",");m="["+z+"]"}else{var M=`,
12
+ `+C,T=a.join(M);m=`[
13
+ `+C+T+`,
14
+ `+p+"]"}return n.pop(),C=p,m}},m0={parse:c0,stringify:p0},v0=m0,h0=v0;return h0})});var L0=(()=>{class w{$activeModal=mu(Lu);$router=mu(Hu);constructor(){}onRestartHomebridgeClick(){this.$router.navigate(["/restart"]),this.$activeModal.close()}static \u0275fac=function(W){return new(W||w)};static \u0275cmp=Mu({type:w,selectors:[["ng-component"]],decls:23,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-fw","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(W,S){W&1&&(q(0,"div",0)(1,"div",1)(2,"h5",2),ru(3),G(4,"translate"),Q(),q(5,"button",3),G(6,"translate"),Cu("click",function(){return S.$activeModal.dismiss("Dismiss")}),Q()(),q(7,"div",4),hu(8,"i",5),q(9,"p",6),ru(10),G(11,"translate"),Q()(),q(12,"div",7)(13,"div",8)(14,"button",9),G(15,"translate"),Cu("click",function(){return S.$activeModal.dismiss("Dismiss")}),ru(16),G(17,"translate"),Q()(),hu(18,"div",10),q(19,"div",11)(20,"button",12),Cu("click",function(){return S.onRestartHomebridgeClick()}),ru(21),G(22,"translate"),Q()()()()),W&2&&(k(3),gu(U(4,6,"platform.version.service_restart_required")),k(2),vu("aria-label",U(6,8,"form.button_close")),k(5),gu(U(11,10,"plugins.settings.restart_required")),k(4),vu("aria-label",U(15,12,"form.button_close")),k(2),bu(" ",U(17,14,"form.button_close")," "),k(5),bu(" ",U(22,16,"menu.tooltip_restart")," "))},dependencies:[Tu],encapsulation:2})}return w})();export{L0 as a,S0 as b};