@pathscale/ui 0.0.12 → 0.0.14

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 (341) hide show
  1. package/README.md +44 -39
  2. package/dist/components/accordion/index.html +7 -0
  3. package/dist/components/accordion/index.html.br +2 -0
  4. package/dist/components/accordion/index.js +7690 -1
  5. package/dist/components/accordion/index.js.br +0 -0
  6. package/dist/components/alert/index.html +7 -0
  7. package/dist/components/alert/index.html.br +0 -0
  8. package/dist/components/alert/index.js +7426 -0
  9. package/dist/components/alert/index.js.br +0 -0
  10. package/dist/components/autocomplete/index.html +7 -0
  11. package/dist/components/autocomplete/index.html.br +1 -0
  12. package/dist/components/autocomplete/index.js +5438 -1
  13. package/dist/components/autocomplete/index.js.br +0 -0
  14. package/dist/components/avatar/index.html +7 -0
  15. package/dist/components/avatar/index.html.br +0 -0
  16. package/dist/components/avatar/index.js +8795 -1
  17. package/dist/components/avatar/index.js.br +0 -0
  18. package/dist/components/badge/index.html +7 -0
  19. package/dist/components/badge/index.html.br +1 -0
  20. package/dist/components/badge/index.js +7435 -1
  21. package/dist/components/badge/index.js.br +0 -0
  22. package/dist/components/breadcrumbs/index.html +7 -0
  23. package/dist/components/breadcrumbs/index.html.br +0 -0
  24. package/dist/components/breadcrumbs/index.js +7434 -1
  25. package/dist/components/breadcrumbs/index.js.br +0 -0
  26. package/dist/components/button/index.html +7 -0
  27. package/dist/components/button/index.html.br +0 -0
  28. package/dist/components/button/index.js +8771 -1
  29. package/dist/components/button/index.js.br +0 -0
  30. package/dist/components/card/index.html +7 -0
  31. package/dist/components/card/index.html.br +2 -0
  32. package/dist/components/card/index.js +7536 -0
  33. package/dist/components/card/index.js.br +0 -0
  34. package/dist/components/chatbubble/index.html +7 -0
  35. package/dist/components/chatbubble/index.html.br +0 -0
  36. package/dist/components/chatbubble/index.js +8991 -0
  37. package/dist/components/chatbubble/index.js.br +0 -0
  38. package/dist/components/checkbox/index.html +7 -0
  39. package/dist/components/checkbox/index.html.br +0 -0
  40. package/dist/components/checkbox/index.js +7436 -1
  41. package/dist/components/checkbox/index.js.br +0 -0
  42. package/dist/components/collapse/index.html +7 -0
  43. package/dist/components/collapse/index.html.br +0 -0
  44. package/dist/components/collapse/index.js +7621 -1
  45. package/dist/components/collapse/index.js.br +0 -0
  46. package/dist/components/countdown/index.html +7 -0
  47. package/dist/components/countdown/index.html.br +0 -0
  48. package/dist/components/countdown/index.js +7378 -0
  49. package/dist/components/countdown/index.js.br +0 -0
  50. package/dist/components/diff/index.html +7 -0
  51. package/dist/components/diff/index.html.br +0 -0
  52. package/dist/components/diff/index.js +7408 -0
  53. package/dist/components/diff/index.js.br +0 -0
  54. package/dist/components/divider/index.html +7 -0
  55. package/dist/components/divider/index.html.br +0 -0
  56. package/dist/components/divider/index.js +9852 -0
  57. package/dist/components/divider/index.js.br +0 -0
  58. package/dist/components/dock/index.html +7 -0
  59. package/dist/components/dock/index.html.br +0 -0
  60. package/dist/components/dock/index.js +7503 -0
  61. package/dist/components/dock/index.js.br +0 -0
  62. package/dist/components/dropdown/index.html +7 -0
  63. package/dist/components/dropdown/index.html.br +0 -0
  64. package/dist/components/dropdown/index.js +9073 -1
  65. package/dist/components/dropdown/index.js.br +0 -0
  66. package/dist/components/field/index.html +7 -0
  67. package/dist/components/field/index.html.br +2 -0
  68. package/dist/components/field/index.js +5356 -1
  69. package/dist/components/field/index.js.br +0 -0
  70. package/dist/components/fileinput/index.html +7 -0
  71. package/dist/components/fileinput/index.html.br +2 -0
  72. package/dist/components/fileinput/index.js +7431 -1
  73. package/dist/components/fileinput/index.js.br +0 -0
  74. package/dist/components/indicator/index.html +7 -0
  75. package/dist/components/indicator/index.html.br +2 -0
  76. package/dist/components/indicator/index.js +9219 -0
  77. package/dist/components/indicator/index.js.br +0 -0
  78. package/dist/components/input/index.html +7 -0
  79. package/dist/components/input/index.html.br +2 -0
  80. package/dist/components/input/index.js +7425 -1
  81. package/dist/components/input/index.js.br +0 -0
  82. package/dist/components/join/index.html +7 -0
  83. package/dist/components/join/index.html.br +2 -0
  84. package/dist/components/join/index.js +7418 -1
  85. package/dist/components/join/index.js.br +0 -0
  86. package/dist/components/kbd/index.html +7 -0
  87. package/dist/components/kbd/index.html.br +2 -0
  88. package/dist/components/kbd/index.js +7399 -0
  89. package/dist/components/kbd/index.js.br +0 -0
  90. package/dist/components/link/index.html +7 -0
  91. package/dist/components/link/index.html.br +2 -0
  92. package/dist/components/link/index.js +7422 -0
  93. package/dist/components/link/index.js.br +0 -0
  94. package/dist/components/loading/index.html +7 -0
  95. package/dist/components/loading/index.html.br +0 -0
  96. package/dist/components/loading/index.js +7432 -0
  97. package/dist/components/loading/index.js.br +0 -0
  98. package/dist/components/mask/index.html +7 -0
  99. package/dist/components/mask/index.html.br +0 -0
  100. package/dist/components/mask/index.js +7440 -1
  101. package/dist/components/mask/index.js.br +0 -0
  102. package/dist/components/menu/index.html +7 -0
  103. package/dist/components/menu/index.html.br +2 -0
  104. package/dist/components/menu/index.js +7618 -1
  105. package/dist/components/menu/index.js.br +0 -0
  106. package/dist/components/modal/index.html +7 -0
  107. package/dist/components/modal/index.html.br +3 -0
  108. package/dist/components/modal/index.js +7599 -0
  109. package/dist/components/modal/index.js.br +0 -0
  110. package/dist/components/navbar/index.html +7 -0
  111. package/dist/components/navbar/index.html.br +2 -0
  112. package/dist/components/navbar/index.js +7475 -1
  113. package/dist/components/navbar/index.js.br +0 -0
  114. package/dist/components/pagination/index.html +7 -0
  115. package/dist/components/pagination/index.html.br +2 -0
  116. package/dist/components/pagination/index.js +7426 -1
  117. package/dist/components/pagination/index.js.br +0 -0
  118. package/dist/components/polymorphic/index.html +7 -0
  119. package/dist/components/polymorphic/index.html.br +0 -0
  120. package/dist/components/polymorphic/index.js +3031 -1
  121. package/dist/components/polymorphic/index.js.br +0 -0
  122. package/dist/components/progress/index.html +7 -0
  123. package/dist/components/progress/index.html.br +0 -0
  124. package/dist/components/progress/index.js +7413 -0
  125. package/dist/components/progress/index.js.br +0 -0
  126. package/dist/components/radialprogress/index.html +7 -0
  127. package/dist/components/radialprogress/index.html.br +0 -0
  128. package/dist/components/radialprogress/index.js +7430 -0
  129. package/dist/components/radialprogress/index.js.br +0 -0
  130. package/dist/components/radio/index.html +7 -0
  131. package/dist/components/radio/index.html.br +2 -0
  132. package/dist/components/radio/index.js +7423 -0
  133. package/dist/components/radio/index.js.br +0 -0
  134. package/dist/components/range/index.html +7 -0
  135. package/dist/components/range/index.html.br +0 -0
  136. package/dist/components/range/index.js +7462 -0
  137. package/dist/components/range/index.js.br +0 -0
  138. package/dist/components/rating/index.html +7 -0
  139. package/dist/components/rating/index.html.br +0 -0
  140. package/dist/components/rating/index.js +8858 -0
  141. package/dist/components/rating/index.js.br +0 -0
  142. package/dist/components/select/index.html +7 -0
  143. package/dist/components/select/index.html.br +0 -0
  144. package/dist/components/select/index.js +7427 -1
  145. package/dist/components/select/index.js.br +0 -0
  146. package/dist/components/skeleton/index.html +7 -0
  147. package/dist/components/skeleton/index.html.br +0 -0
  148. package/dist/components/skeleton/index.js +7381 -0
  149. package/dist/components/skeleton/index.js.br +0 -0
  150. package/dist/components/stack/index.html +7 -0
  151. package/dist/components/stack/index.html.br +0 -0
  152. package/dist/components/stack/index.js +8972 -0
  153. package/dist/components/stack/index.js.br +0 -0
  154. package/dist/components/stats/index.html +7 -0
  155. package/dist/components/stats/index.html.br +0 -0
  156. package/dist/components/stats/index.js +7508 -0
  157. package/dist/components/stats/index.js.br +0 -0
  158. package/dist/components/steps/index.html +7 -0
  159. package/dist/components/steps/index.html.br +0 -0
  160. package/dist/components/steps/index.js +8732 -1
  161. package/dist/components/steps/index.js.br +0 -0
  162. package/dist/components/swap/index.html +7 -0
  163. package/dist/components/swap/index.html.br +2 -0
  164. package/dist/components/swap/index.js +7467 -0
  165. package/dist/components/swap/index.js.br +0 -0
  166. package/dist/components/table/index.html +7 -0
  167. package/dist/components/table/index.html.br +2 -0
  168. package/dist/components/table/index.js +9493 -1
  169. package/dist/components/table/index.js.br +0 -0
  170. package/dist/components/tabs/index.html +7 -0
  171. package/dist/components/tabs/index.html.br +3 -0
  172. package/dist/components/tabs/index.js +5399 -1
  173. package/dist/components/tabs/index.js.br +0 -0
  174. package/dist/components/textarea/index.html +7 -0
  175. package/dist/components/textarea/index.html.br +0 -0
  176. package/dist/components/textarea/index.js +7425 -1
  177. package/dist/components/textarea/index.js.br +0 -0
  178. package/dist/components/timeline/index.html +7 -0
  179. package/dist/components/timeline/index.html.br +1 -0
  180. package/dist/components/timeline/index.js +7600 -1
  181. package/dist/components/timeline/index.js.br +0 -0
  182. package/dist/components/toast/index.html +7 -0
  183. package/dist/components/toast/index.html.br +0 -0
  184. package/dist/components/toast/index.js +8793 -1
  185. package/dist/components/toast/index.js.br +0 -0
  186. package/dist/components/toggle/index.html +7 -0
  187. package/dist/components/toggle/index.html.br +0 -0
  188. package/dist/components/toggle/index.js +7426 -1
  189. package/dist/components/toggle/index.js.br +0 -0
  190. package/dist/components/tooltip/index.html +7 -0
  191. package/dist/components/tooltip/index.html.br +0 -0
  192. package/dist/components/tooltip/index.js +7432 -1
  193. package/dist/components/tooltip/index.js.br +0 -0
  194. package/dist/index.css.css +176 -0
  195. package/dist/index.css.css.br +0 -0
  196. package/dist/index.css.html +7 -0
  197. package/dist/index.css.html.br +0 -0
  198. package/dist/index.css.js +126 -0
  199. package/dist/index.css.js.br +0 -0
  200. package/dist/index.html +7 -0
  201. package/dist/index.html.br +0 -0
  202. package/dist/index.js +16127 -28
  203. package/dist/index.js.br +0 -0
  204. package/package.json +38 -43
  205. package/dist/Autocomplete-gLkjMHrc.d.ts +0 -28
  206. package/dist/Avatar-Dkd_kPlV.d.ts +0 -40
  207. package/dist/CollapseTitle-BNxog3is.d.ts +0 -12
  208. package/dist/Field-DI2PA30N.d.ts +0 -49
  209. package/dist/Mask-CPb596Mg.d.ts +0 -16
  210. package/dist/Menu-DgO4SHmA.d.ts +0 -45
  211. package/dist/Progress-ChF4ior8.d.ts +0 -64
  212. package/dist/Steps-Dk-UPL6r.d.ts +0 -38
  213. package/dist/Table-CGa6Nop3.d.ts +0 -39
  214. package/dist/Tabs-WiUU0xsM.d.ts +0 -42
  215. package/dist/Timeline-Bd4SxHMT.d.ts +0 -14
  216. package/dist/chunk/2OJYONJ3.js +0 -40
  217. package/dist/chunk/2VQ2762Z.js +0 -80
  218. package/dist/chunk/2XPPNBYK.js +0 -164
  219. package/dist/chunk/3FBDYV4P.js +0 -143
  220. package/dist/chunk/3I23P4TJ.js +0 -33
  221. package/dist/chunk/55B7Q4NT.jsx +0 -258
  222. package/dist/chunk/5HG7XWVC.jsx +0 -2956
  223. package/dist/chunk/5IJ7WEIF.js +0 -43
  224. package/dist/chunk/5O6WC3OB.jsx +0 -67
  225. package/dist/chunk/6P5JIKPF.jsx +0 -51
  226. package/dist/chunk/BHLLVOVR.js +0 -46
  227. package/dist/chunk/C4YO33NN.jsx +0 -179
  228. package/dist/chunk/DJI5XKAV.js +0 -31
  229. package/dist/chunk/DN3P54J2.jsx +0 -43
  230. package/dist/chunk/DSTUGZW6.jsx +0 -81
  231. package/dist/chunk/DVFQAAZR.js +0 -43
  232. package/dist/chunk/EDDBK4J6.js +0 -42
  233. package/dist/chunk/FKSQPGOD.jsx +0 -170
  234. package/dist/chunk/FZRQDGPD.jsx +0 -54
  235. package/dist/chunk/G5UEZ2VC.js +0 -49
  236. package/dist/chunk/GL7JG772.js +0 -114
  237. package/dist/chunk/GMIXRYN3.js +0 -138
  238. package/dist/chunk/HEOKGP5U.js +0 -55
  239. package/dist/chunk/HKS7ET6T.js +0 -56
  240. package/dist/chunk/HUHXQCKK.js +0 -16
  241. package/dist/chunk/HWAGW5N4.jsx +0 -118
  242. package/dist/chunk/I36LHZUY.jsx +0 -31
  243. package/dist/chunk/IG323YKF.jsx +0 -50
  244. package/dist/chunk/JQ4HSRDP.js +0 -142
  245. package/dist/chunk/JSQBKK7L.jsx +0 -50
  246. package/dist/chunk/JWRGKHDO.js +0 -172
  247. package/dist/chunk/K3WO7SRD.js +0 -1
  248. package/dist/chunk/KQ3RAWCE.jsx +0 -57
  249. package/dist/chunk/KV6LTJHI.jsx +0 -175
  250. package/dist/chunk/KXJZKDJX.jsx +0 -0
  251. package/dist/chunk/L4A67X7S.js +0 -7
  252. package/dist/chunk/LGDDR242.jsx +0 -159
  253. package/dist/chunk/MAX47D6F.js +0 -99
  254. package/dist/chunk/MM2DZQL3.js +0 -46
  255. package/dist/chunk/MYERRMTM.js +0 -200
  256. package/dist/chunk/MZWBWFDD.js +0 -151
  257. package/dist/chunk/O7LDJCQS.jsx +0 -18
  258. package/dist/chunk/OJRG4ZAB.jsx +0 -143
  259. package/dist/chunk/P653OZ5D.js +0 -224
  260. package/dist/chunk/P7WPLZNA.jsx +0 -59
  261. package/dist/chunk/Q4442PU4.js +0 -42
  262. package/dist/chunk/QYEMOKUG.js +0 -125
  263. package/dist/chunk/R5G3PODL.jsx +0 -11
  264. package/dist/chunk/R6ZBT7CY.jsx +0 -55
  265. package/dist/chunk/RHEFVSMJ.jsx +0 -52
  266. package/dist/chunk/SPEY5RMB.js +0 -84
  267. package/dist/chunk/STFCLC5R.js +0 -2954
  268. package/dist/chunk/STKRVQR6.jsx +0 -130
  269. package/dist/chunk/SVJIYMYJ.jsx +0 -156
  270. package/dist/chunk/SYWB4UN3.jsx +0 -64
  271. package/dist/chunk/T2LDLYWV.jsx +0 -101
  272. package/dist/chunk/UNKDNDT3.js +0 -62
  273. package/dist/chunk/VN5BKHA2.jsx +0 -97
  274. package/dist/chunk/WOT36Q7O.js +0 -166
  275. package/dist/chunk/WUZETUQR.js +0 -92
  276. package/dist/chunk/XM3KF5LV.jsx +0 -179
  277. package/dist/chunk/XQCSYRVP.jsx +0 -168
  278. package/dist/chunk/YWIT2MRI.jsx +0 -43
  279. package/dist/chunk/ZYEP35R3.jsx +0 -60
  280. package/dist/classes-B_S9K-9I.d.ts +0 -13
  281. package/dist/components/Progress/index.d.ts +0 -7
  282. package/dist/components/Progress/index.js +0 -1
  283. package/dist/components/Progress/index.jsx +0 -7
  284. package/dist/components/accordion/index.d.ts +0 -20
  285. package/dist/components/accordion/index.jsx +0 -9
  286. package/dist/components/autocomplete/index.d.ts +0 -8
  287. package/dist/components/autocomplete/index.jsx +0 -7
  288. package/dist/components/avatar/index.d.ts +0 -8
  289. package/dist/components/avatar/index.jsx +0 -8
  290. package/dist/components/badge/index.d.ts +0 -17
  291. package/dist/components/badge/index.jsx +0 -8
  292. package/dist/components/breadcrumbs/index.d.ts +0 -9
  293. package/dist/components/breadcrumbs/index.jsx +0 -7
  294. package/dist/components/button/index.d.ts +0 -31
  295. package/dist/components/button/index.jsx +0 -8
  296. package/dist/components/checkbox/index.d.ts +0 -16
  297. package/dist/components/checkbox/index.jsx +0 -8
  298. package/dist/components/collapse/index.d.ts +0 -15
  299. package/dist/components/collapse/index.jsx +0 -14
  300. package/dist/components/dropdown/index.d.ts +0 -27
  301. package/dist/components/dropdown/index.jsx +0 -13
  302. package/dist/components/field/index.d.ts +0 -7
  303. package/dist/components/field/index.jsx +0 -7
  304. package/dist/components/fileinput/index.d.ts +0 -16
  305. package/dist/components/fileinput/index.jsx +0 -8
  306. package/dist/components/input/index.d.ts +0 -15
  307. package/dist/components/input/index.jsx +0 -8
  308. package/dist/components/join/index.d.ts +0 -11
  309. package/dist/components/join/index.jsx +0 -9
  310. package/dist/components/mask/index.d.ts +0 -7
  311. package/dist/components/mask/index.jsx +0 -8
  312. package/dist/components/menu/index.d.ts +0 -8
  313. package/dist/components/menu/index.jsx +0 -8
  314. package/dist/components/navbar/index.d.ts +0 -36
  315. package/dist/components/navbar/index.jsx +0 -11
  316. package/dist/components/pagination/index.d.ts +0 -8
  317. package/dist/components/pagination/index.jsx +0 -9
  318. package/dist/components/polymorphic/index.d.ts +0 -34
  319. package/dist/components/polymorphic/index.jsx +0 -8
  320. package/dist/components/select/index.d.ts +0 -15
  321. package/dist/components/select/index.jsx +0 -8
  322. package/dist/components/steps/index.d.ts +0 -7
  323. package/dist/components/steps/index.jsx +0 -8
  324. package/dist/components/table/index.d.ts +0 -8
  325. package/dist/components/table/index.jsx +0 -7
  326. package/dist/components/tabs/index.d.ts +0 -8
  327. package/dist/components/tabs/index.jsx +0 -7
  328. package/dist/components/textarea/index.d.ts +0 -15
  329. package/dist/components/textarea/index.jsx +0 -8
  330. package/dist/components/timeline/index.d.ts +0 -7
  331. package/dist/components/timeline/index.jsx +0 -7
  332. package/dist/components/toast/index.d.ts +0 -24
  333. package/dist/components/toast/index.jsx +0 -11
  334. package/dist/components/toggle/index.d.ts +0 -15
  335. package/dist/components/toggle/index.jsx +0 -8
  336. package/dist/components/tooltip/index.d.ts +0 -17
  337. package/dist/components/tooltip/index.jsx +0 -8
  338. package/dist/index.css +0 -73
  339. package/dist/index.d.ts +0 -32
  340. package/dist/index.jsx +0 -138
  341. package/dist/types-CUG9pToa.d.ts +0 -15
@@ -1 +1,3031 @@
1
- export { Polymorphic_default as Polymorphic, PolymorphicButton_default as PolymorphicButton } from '../../chunk/SPEY5RMB.js';
1
+ (function() {
2
+ var __webpack_modules__ = {
3
+ "8169": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4
+ "use strict";
5
+ __webpack_require__.r(__webpack_exports__);
6
+ __webpack_require__.d(__webpack_exports__, {
7
+ Polymorphic: function() { return _Polymorphic__WEBPACK_IMPORTED_MODULE_0__["default"]; },
8
+ PolymorphicButton: function() { return _PolymorphicButton__WEBPACK_IMPORTED_MODULE_1__["default"]; }
9
+ });
10
+ /* harmony import */var _Polymorphic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Polymorphic */"5384");
11
+ /* harmony import */var _PolymorphicButton__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PolymorphicButton */"4719");
12
+
13
+
14
+
15
+ }),
16
+ "2173": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+ "use strict";
18
+ __webpack_require__.r(__webpack_exports__);
19
+ __webpack_require__.d(__webpack_exports__, {
20
+ chain: function() { return chain; }
21
+ });
22
+ /**
23
+ * Creates a function that calls a series of callbacks in order with the same arguments.
24
+ *
25
+ * @param callbacks An iterable of callback functions to invoke.
26
+ * @returns A function that will execute all callbacks with the provided arguments.
27
+ */ function chain(callbacks) {
28
+ return function() {
29
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
30
+ for (const callback of callbacks)callback === null || callback === void 0 || callback(...args);
31
+ };
32
+ }
33
+ }),
34
+ "2448": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
35
+ "use strict";
36
+ __webpack_require__.r(__webpack_exports__);
37
+ __webpack_require__.d(__webpack_exports__, {
38
+ mergeRefs: function() { return _mergeRefs__WEBPACK_IMPORTED_MODULE_0__.mergeRefs; }
39
+ });
40
+ /* harmony import */var _mergeRefs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeRefs */"7679");
41
+
42
+ }),
43
+ "7679": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
+ "use strict";
45
+ __webpack_require__.r(__webpack_exports__);
46
+ __webpack_require__.d(__webpack_exports__, {
47
+ mergeRefs: function() { return mergeRefs; }
48
+ });
49
+ /* harmony import */var _src_lib_iterable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @src/lib/iterable */"2173");
50
+
51
+ /**
52
+ * Utility for chaining multiple `ref` assignments with `props.ref` forwarding.
53
+ *
54
+ * @param refs An array of refs to merge.
55
+ * @returns A function that assigns the element to all provided refs.
56
+ */ function mergeRefs() {
57
+ for(var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++)refs[_key] = arguments[_key];
58
+ return (0, _src_lib_iterable__WEBPACK_IMPORTED_MODULE_0__.chain)(refs);
59
+ }
60
+ }),
61
+ "8762": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
62
+ "use strict";
63
+ __webpack_require__.r(__webpack_exports__);
64
+ __webpack_require__.d(__webpack_exports__, {
65
+ createIsButton: function() { return createIsButton; }
66
+ });
67
+ /* harmony import */var solid_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js */"5666");
68
+ /* harmony import */var _createTagName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createTagName */"1303");
69
+
70
+
71
+ const BUTTON_INPUT_TYPES = [
72
+ "button",
73
+ "color",
74
+ "file",
75
+ "image",
76
+ "reset",
77
+ "submit"
78
+ ];
79
+ /**
80
+ * Checks if the given tag name or input type represent a button.
81
+ *
82
+ * @param tagName The name of the tag to check.
83
+ * @param type The type attribute of the input element.
84
+ * @returns `true` if the tag is a button or an input of a button type; otherwise, `false`.
85
+ */ function isButton(tagName, type) {
86
+ if (tagName === "button") return true;
87
+ if (tagName === "input" && type !== undefined) return BUTTON_INPUT_TYPES.indexOf(type) !== -1;
88
+ return false;
89
+ }
90
+ /**
91
+ * Creates a memoized signal that checks if the element is a button.
92
+ *
93
+ * @param props.element The element to check.
94
+ * @param props.type An optional button input type to consider.
95
+ * @returns A memoized signal indicating if the element is a button.
96
+ */ function createIsButton(props) {
97
+ const tagName = (0, _createTagName__WEBPACK_IMPORTED_MODULE_1__.createTagName)({
98
+ element: props.element,
99
+ fallback: "button"
100
+ });
101
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(()=>isButton(tagName(), props.type));
102
+ }
103
+ }),
104
+ "1303": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
105
+ "use strict";
106
+ __webpack_require__.r(__webpack_exports__);
107
+ __webpack_require__.d(__webpack_exports__, {
108
+ createTagName: function() { return createTagName; }
109
+ });
110
+ /* harmony import */var solid_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js */"5666");
111
+
112
+ /**
113
+ * Creates a memoized signal with the lowercase tag name of the element.
114
+ *
115
+ * @param props.element The element to get the tag name of.
116
+ * @param props.fallback The fallback tag name to use if the element is `null`.
117
+ * @returns A memoized signal with the lowercase tag name of the element.
118
+ */ function createTagName(props) {
119
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(()=>{
120
+ var _props_element;
121
+ return ((_props_element = props.element()) === null || _props_element === void 0 ? void 0 : _props_element.tagName.toLowerCase()) ?? props.fallback;
122
+ });
123
+ }
124
+ }),
125
+ "9966": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
126
+ "use strict";
127
+ __webpack_require__.r(__webpack_exports__);
128
+ __webpack_require__.d(__webpack_exports__, {
129
+ createIsButton: function() { return _createIsButton__WEBPACK_IMPORTED_MODULE_0__.createIsButton; }
130
+ });
131
+ /* harmony import */var _createIsButton__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createIsButton */"8762");
132
+ /* harmony import */var _createTagName__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createTagName */"1303");
133
+
134
+
135
+ }),
136
+ "5384": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
137
+ "use strict";
138
+ __webpack_require__.r(__webpack_exports__);
139
+ /* harmony import */var solid_js_web__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js/web */"7525");
140
+ /* harmony import */var solid_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! solid-js */"5666");
141
+
142
+
143
+
144
+
145
+ /**
146
+ * Renders as a div by default and can be overridden with the `as` property.
147
+ */ const Polymorphic = (props)=>{
148
+ const [localProps, otherProps] = (0, solid_js__WEBPACK_IMPORTED_MODULE_1__.splitProps)(props, [
149
+ "as"
150
+ ]);
151
+ // biome-ignore lint: types are valid
152
+ const cached = (0, solid_js__WEBPACK_IMPORTED_MODULE_1__.createMemo)(()=>localProps.as ?? "div");
153
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_1__.createMemo)(()=>{
154
+ const component = cached();
155
+ switch(typeof component){
156
+ case "function":
157
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_1__.untrack)(()=>component(otherProps));
158
+ case "string":
159
+ return (0, solid_js_web__WEBPACK_IMPORTED_MODULE_0__.createComponent)(solid_js_web__WEBPACK_IMPORTED_MODULE_0__.Dynamic, (0, solid_js_web__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
160
+ component: component
161
+ }, otherProps));
162
+ }
163
+ });
164
+ };
165
+ /* harmony default export */ __webpack_exports__["default"] = (Polymorphic);
166
+ }),
167
+ "4719": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
168
+ "use strict";
169
+ __webpack_require__.r(__webpack_exports__);
170
+ /* harmony import */var solid_js_web__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js/web */"7525");
171
+ /* harmony import */var _src_lib_refs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @src/lib/refs */"2448");
172
+ /* harmony import */var _src_lib_tag__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @src/lib/tag */"9966");
173
+ /* harmony import */var solid_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! solid-js */"5666");
174
+ /* harmony import */var _Polymorphic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Polymorphic */"5384");
175
+
176
+
177
+
178
+
179
+
180
+
181
+ /**
182
+ * An accessible button that sets `type` and `role` properly based on
183
+ * if it's a native button.
184
+ */ const PolymorphicButton = (props)=>{
185
+ const [ref, setRef] = (0, solid_js__WEBPACK_IMPORTED_MODULE_3__.createSignal)(null);
186
+ const [localProps, otherProps] = (0, solid_js__WEBPACK_IMPORTED_MODULE_3__.splitProps)(props, [
187
+ "ref"
188
+ ]);
189
+ const isButton = (0, _src_lib_tag__WEBPACK_IMPORTED_MODULE_2__.createIsButton)({
190
+ element: ref,
191
+ type: props.type
192
+ });
193
+ return (0, solid_js_web__WEBPACK_IMPORTED_MODULE_0__.createComponent)(_Polymorphic__WEBPACK_IMPORTED_MODULE_4__["default"], (0, solid_js_web__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
194
+ as: "button",
195
+ ref (r$) {
196
+ var _ref$ = (0, _src_lib_refs__WEBPACK_IMPORTED_MODULE_1__.mergeRefs)(setRef, localProps.ref);
197
+ typeof _ref$ === "function" && _ref$(r$);
198
+ },
199
+ get role () {
200
+ return !isButton() ? "button" : undefined;
201
+ }
202
+ }, otherProps));
203
+ };
204
+ /* harmony default export */ __webpack_exports__["default"] = (PolymorphicButton);
205
+ }),
206
+ "5666": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
207
+ "use strict";
208
+ __webpack_require__.r(__webpack_exports__);
209
+ __webpack_require__.d(__webpack_exports__, {
210
+ For: function() { return For; },
211
+ Show: function() { return Show; },
212
+ children: function() { return children; },
213
+ createComponent: function() { return createComponent; },
214
+ createEffect: function() { return createEffect; },
215
+ createMemo: function() { return createMemo; },
216
+ createRenderEffect: function() { return createRenderEffect; },
217
+ createSignal: function() { return createSignal; },
218
+ getOwner: function() { return getOwner; },
219
+ mergeProps: function() { return mergeProps; },
220
+ onCleanup: function() { return onCleanup; },
221
+ onMount: function() { return onMount; },
222
+ sharedConfig: function() { return sharedConfig; },
223
+ splitProps: function() { return splitProps; },
224
+ untrack: function() { return untrack; }
225
+ });
226
+ let taskIdCounter = 1, isCallbackScheduled = false, isPerformingWork = false, taskQueue = [], currentTask = null, shouldYieldToHost = null, yieldInterval = 5, deadline = 0, maxYieldInterval = 300, scheduleCallback = null, scheduledCallback = null;
227
+ const maxSigned31BitInt = 1073741823;
228
+ function setupScheduler() {
229
+ const channel = new MessageChannel(), port = channel.port2;
230
+ scheduleCallback = ()=>port.postMessage(null);
231
+ channel.port1.onmessage = ()=>{
232
+ if (scheduledCallback !== null) {
233
+ const currentTime = performance.now();
234
+ deadline = currentTime + yieldInterval;
235
+ const hasTimeRemaining = true;
236
+ try {
237
+ const hasMoreWork = scheduledCallback(hasTimeRemaining, currentTime);
238
+ if (!hasMoreWork) scheduledCallback = null;
239
+ else port.postMessage(null);
240
+ } catch (error) {
241
+ port.postMessage(null);
242
+ throw error;
243
+ }
244
+ }
245
+ };
246
+ if (navigator && navigator.scheduling && navigator.scheduling.isInputPending) {
247
+ const scheduling = navigator.scheduling;
248
+ shouldYieldToHost = ()=>{
249
+ const currentTime = performance.now();
250
+ if (currentTime >= deadline) {
251
+ if (scheduling.isInputPending()) return true;
252
+ return currentTime >= maxYieldInterval;
253
+ } else return false;
254
+ };
255
+ } else shouldYieldToHost = ()=>performance.now() >= deadline;
256
+ }
257
+ function enqueue(taskQueue, task) {
258
+ function findIndex() {
259
+ let m = 0;
260
+ let n = taskQueue.length - 1;
261
+ while(m <= n){
262
+ const k = n + m >> 1;
263
+ const cmp = task.expirationTime - taskQueue[k].expirationTime;
264
+ if (cmp > 0) m = k + 1;
265
+ else if (cmp < 0) n = k - 1;
266
+ else return k;
267
+ }
268
+ return m;
269
+ }
270
+ taskQueue.splice(findIndex(), 0, task);
271
+ }
272
+ function requestCallback(fn, options) {
273
+ if (!scheduleCallback) setupScheduler();
274
+ let startTime = performance.now(), timeout = maxSigned31BitInt;
275
+ if (options && options.timeout) timeout = options.timeout;
276
+ const newTask = {
277
+ id: taskIdCounter++,
278
+ fn,
279
+ startTime,
280
+ expirationTime: startTime + timeout
281
+ };
282
+ enqueue(taskQueue, newTask);
283
+ if (!isCallbackScheduled && !isPerformingWork) {
284
+ isCallbackScheduled = true;
285
+ scheduledCallback = flushWork;
286
+ scheduleCallback();
287
+ }
288
+ return newTask;
289
+ }
290
+ function cancelCallback(task) {
291
+ task.fn = null;
292
+ }
293
+ function flushWork(hasTimeRemaining, initialTime) {
294
+ isCallbackScheduled = false;
295
+ isPerformingWork = true;
296
+ try {
297
+ return workLoop(hasTimeRemaining, initialTime);
298
+ } finally{
299
+ currentTask = null;
300
+ isPerformingWork = false;
301
+ }
302
+ }
303
+ function workLoop(hasTimeRemaining, initialTime) {
304
+ let currentTime = initialTime;
305
+ currentTask = taskQueue[0] || null;
306
+ while(currentTask !== null){
307
+ if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) break;
308
+ const callback = currentTask.fn;
309
+ if (callback !== null) {
310
+ currentTask.fn = null;
311
+ const didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
312
+ callback(didUserCallbackTimeout);
313
+ currentTime = performance.now();
314
+ if (currentTask === taskQueue[0]) taskQueue.shift();
315
+ } else taskQueue.shift();
316
+ currentTask = taskQueue[0] || null;
317
+ }
318
+ return currentTask !== null;
319
+ }
320
+ const sharedConfig = {
321
+ context: undefined,
322
+ registry: undefined,
323
+ effects: undefined,
324
+ done: false,
325
+ getContextId () {
326
+ return getContextId(this.context.count);
327
+ },
328
+ getNextContextId () {
329
+ return getContextId(this.context.count++);
330
+ }
331
+ };
332
+ function getContextId(count) {
333
+ const num = String(count), len = num.length - 1;
334
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
335
+ }
336
+ function setHydrateContext(context) {
337
+ sharedConfig.context = context;
338
+ }
339
+ function nextHydrateContext() {
340
+ return {
341
+ ...sharedConfig.context,
342
+ id: sharedConfig.getNextContextId(),
343
+ count: 0
344
+ };
345
+ }
346
+ const IS_DEV = false;
347
+ const equalFn = (a, b)=>a === b;
348
+ const $PROXY = Symbol("solid-proxy");
349
+ const SUPPORTS_PROXY = typeof Proxy === "function";
350
+ const $TRACK = Symbol("solid-track");
351
+ const $DEVCOMP = Symbol("solid-dev-component");
352
+ const signalOptions = {
353
+ equals: equalFn
354
+ };
355
+ let ERROR = null;
356
+ let runEffects = runQueue;
357
+ const STALE = 1;
358
+ const PENDING = 2;
359
+ const UNOWNED = {
360
+ owned: null,
361
+ cleanups: null,
362
+ context: null,
363
+ owner: null
364
+ };
365
+ const NO_INIT = {};
366
+ var Owner = null;
367
+ let Transition = null;
368
+ let Scheduler = null;
369
+ let ExternalSourceConfig = null;
370
+ let Listener = null;
371
+ let Updates = null;
372
+ let Effects = null;
373
+ let ExecCount = 0;
374
+ function createRoot(fn, detachedOwner) {
375
+ const listener = Listener, owner = Owner, unowned = fn.length === 0, current = detachedOwner === undefined ? owner : detachedOwner, root = unowned ? UNOWNED : {
376
+ owned: null,
377
+ cleanups: null,
378
+ context: current ? current.context : null,
379
+ owner: current
380
+ }, updateFn = unowned ? fn : ()=>fn(()=>untrack(()=>cleanNode(root)));
381
+ Owner = root;
382
+ Listener = null;
383
+ try {
384
+ return runUpdates(updateFn, true);
385
+ } finally{
386
+ Listener = listener;
387
+ Owner = owner;
388
+ }
389
+ }
390
+ function createSignal(value, options) {
391
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
392
+ const s = {
393
+ value,
394
+ observers: null,
395
+ observerSlots: null,
396
+ comparator: options.equals || undefined
397
+ };
398
+ const setter = (value)=>{
399
+ if (typeof value === "function") {
400
+ if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);
401
+ else value = value(s.value);
402
+ }
403
+ return writeSignal(s, value);
404
+ };
405
+ return [
406
+ readSignal.bind(s),
407
+ setter
408
+ ];
409
+ }
410
+ function createComputed(fn, value, options) {
411
+ const c = createComputation(fn, value, true, STALE);
412
+ if (Scheduler && Transition && Transition.running) Updates.push(c);
413
+ else updateComputation(c);
414
+ }
415
+ function createRenderEffect(fn, value, options) {
416
+ const c = createComputation(fn, value, false, STALE);
417
+ if (Scheduler && Transition && Transition.running) Updates.push(c);
418
+ else updateComputation(c);
419
+ }
420
+ function createEffect(fn, value, options) {
421
+ runEffects = runUserEffects;
422
+ const c = createComputation(fn, value, false, STALE), s = SuspenseContext && useContext(SuspenseContext);
423
+ if (s) c.suspense = s;
424
+ if (!options || !options.render) c.user = true;
425
+ Effects ? Effects.push(c) : updateComputation(c);
426
+ }
427
+ function createReaction(onInvalidate, options) {
428
+ let fn;
429
+ const c = createComputation(()=>{
430
+ fn ? fn() : untrack(onInvalidate);
431
+ fn = undefined;
432
+ }, undefined, false, 0), s = SuspenseContext && useContext(SuspenseContext);
433
+ if (s) c.suspense = s;
434
+ c.user = true;
435
+ return (tracking)=>{
436
+ fn = tracking;
437
+ updateComputation(c);
438
+ };
439
+ }
440
+ function createMemo(fn, value, options) {
441
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
442
+ const c = createComputation(fn, value, true, 0);
443
+ c.observers = null;
444
+ c.observerSlots = null;
445
+ c.comparator = options.equals || undefined;
446
+ if (Scheduler && Transition && Transition.running) {
447
+ c.tState = STALE;
448
+ Updates.push(c);
449
+ } else updateComputation(c);
450
+ return readSignal.bind(c);
451
+ }
452
+ function isPromise(v) {
453
+ return v && typeof v === "object" && "then" in v;
454
+ }
455
+ function createResource(pSource, pFetcher, pOptions) {
456
+ let source;
457
+ let fetcher;
458
+ let options;
459
+ if (typeof pFetcher === "function") {
460
+ source = pSource;
461
+ fetcher = pFetcher;
462
+ options = pOptions || {};
463
+ } else {
464
+ source = true;
465
+ fetcher = pSource;
466
+ options = pFetcher || {};
467
+ }
468
+ let pr = null, initP = NO_INIT, id = null, loadedUnderTransition = false, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
469
+ const contexts = new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error, setError] = createSignal(undefined), [track, trigger] = createSignal(undefined, {
470
+ equals: false
471
+ }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
472
+ if (sharedConfig.context) {
473
+ id = sharedConfig.getNextContextId();
474
+ if (options.ssrLoadFrom === "initial") initP = options.initialValue;
475
+ else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
476
+ }
477
+ function loadEnd(p, v, error, key) {
478
+ if (pr === p) {
479
+ pr = null;
480
+ key !== undefined && (resolved = true);
481
+ if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(()=>options.onHydrated(key, {
482
+ value: v
483
+ }));
484
+ initP = NO_INIT;
485
+ if (Transition && p && loadedUnderTransition) {
486
+ Transition.promises.delete(p);
487
+ loadedUnderTransition = false;
488
+ runUpdates(()=>{
489
+ Transition.running = true;
490
+ completeLoad(v, error);
491
+ }, false);
492
+ } else completeLoad(v, error);
493
+ }
494
+ return v;
495
+ }
496
+ function completeLoad(v, err) {
497
+ runUpdates(()=>{
498
+ if (err === undefined) setValue(()=>v);
499
+ setState(err !== undefined ? "errored" : resolved ? "ready" : "unresolved");
500
+ setError(err);
501
+ for (const c of contexts.keys())c.decrement();
502
+ contexts.clear();
503
+ }, false);
504
+ }
505
+ function read() {
506
+ const c = SuspenseContext && useContext(SuspenseContext), v = value(), err = error();
507
+ if (err !== undefined && !pr) throw err;
508
+ if (Listener && !Listener.user && c) createComputed(()=>{
509
+ track();
510
+ if (pr) {
511
+ if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
512
+ else if (!contexts.has(c)) {
513
+ c.increment();
514
+ contexts.add(c);
515
+ }
516
+ }
517
+ });
518
+ return v;
519
+ }
520
+ function load(refetching = true) {
521
+ if (refetching !== false && scheduled) return;
522
+ scheduled = false;
523
+ const lookup = dynamic ? dynamic() : source;
524
+ loadedUnderTransition = Transition && Transition.running;
525
+ if (lookup == null || lookup === false) {
526
+ loadEnd(pr, untrack(value));
527
+ return;
528
+ }
529
+ if (Transition && pr) Transition.promises.delete(pr);
530
+ const p = initP !== NO_INIT ? initP : untrack(()=>fetcher(lookup, {
531
+ value: value(),
532
+ refetching
533
+ }));
534
+ if (!isPromise(p)) {
535
+ loadEnd(pr, p, undefined, lookup);
536
+ return p;
537
+ }
538
+ pr = p;
539
+ if ("value" in p) {
540
+ if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);
541
+ else loadEnd(pr, undefined, castError(p.value), lookup);
542
+ return p;
543
+ }
544
+ scheduled = true;
545
+ queueMicrotask(()=>scheduled = false);
546
+ runUpdates(()=>{
547
+ setState(resolved ? "refreshing" : "pending");
548
+ trigger();
549
+ }, false);
550
+ return p.then((v)=>loadEnd(p, v, undefined, lookup), (e)=>loadEnd(p, undefined, castError(e), lookup));
551
+ }
552
+ Object.defineProperties(read, {
553
+ state: {
554
+ get: ()=>state()
555
+ },
556
+ error: {
557
+ get: ()=>error()
558
+ },
559
+ loading: {
560
+ get () {
561
+ const s = state();
562
+ return s === "pending" || s === "refreshing";
563
+ }
564
+ },
565
+ latest: {
566
+ get () {
567
+ if (!resolved) return read();
568
+ const err = error();
569
+ if (err && !pr) throw err;
570
+ return value();
571
+ }
572
+ }
573
+ });
574
+ let owner = Owner;
575
+ if (dynamic) createComputed(()=>(owner = Owner, load(false)));
576
+ else load(false);
577
+ return [
578
+ read,
579
+ {
580
+ refetch: (info)=>runWithOwner(owner, ()=>load(info)),
581
+ mutate: setValue
582
+ }
583
+ ];
584
+ }
585
+ function createDeferred(source, options) {
586
+ let t, timeout = options ? options.timeoutMs : undefined;
587
+ const node = createComputation(()=>{
588
+ if (!t || !t.fn) t = requestCallback(()=>setDeferred(()=>node.value), timeout !== undefined ? {
589
+ timeout
590
+ } : undefined);
591
+ return source();
592
+ }, undefined, true);
593
+ const [deferred, setDeferred] = createSignal(Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, options);
594
+ updateComputation(node);
595
+ setDeferred(()=>Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
596
+ return deferred;
597
+ }
598
+ function createSelector(source, fn = equalFn, options) {
599
+ const subs = new Map();
600
+ const node = createComputation((p)=>{
601
+ const v = source();
602
+ for (const [key, val] of subs.entries())if (fn(key, v) !== fn(key, p)) for (const c of val.values()){
603
+ c.state = STALE;
604
+ if (c.pure) Updates.push(c);
605
+ else Effects.push(c);
606
+ }
607
+ return v;
608
+ }, undefined, true, STALE);
609
+ updateComputation(node);
610
+ return (key)=>{
611
+ const listener = Listener;
612
+ if (listener) {
613
+ let l;
614
+ if (l = subs.get(key)) l.add(listener);
615
+ else subs.set(key, l = new Set([
616
+ listener
617
+ ]));
618
+ onCleanup(()=>{
619
+ l.delete(listener);
620
+ !l.size && subs.delete(key);
621
+ });
622
+ }
623
+ return fn(key, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
624
+ };
625
+ }
626
+ function batch(fn) {
627
+ return runUpdates(fn, false);
628
+ }
629
+ function untrack(fn) {
630
+ if (!ExternalSourceConfig && Listener === null) return fn();
631
+ const listener = Listener;
632
+ Listener = null;
633
+ try {
634
+ if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
635
+ return fn();
636
+ } finally{
637
+ Listener = listener;
638
+ }
639
+ }
640
+ function on(deps, fn, options) {
641
+ const isArray = Array.isArray(deps);
642
+ let prevInput;
643
+ let defer = options && options.defer;
644
+ return (prevValue)=>{
645
+ let input;
646
+ if (isArray) {
647
+ input = Array(deps.length);
648
+ for(let i = 0; i < deps.length; i++)input[i] = deps[i]();
649
+ } else input = deps();
650
+ if (defer) {
651
+ defer = false;
652
+ return prevValue;
653
+ }
654
+ const result = untrack(()=>fn(input, prevInput, prevValue));
655
+ prevInput = input;
656
+ return result;
657
+ };
658
+ }
659
+ function onMount(fn) {
660
+ createEffect(()=>untrack(fn));
661
+ }
662
+ function onCleanup(fn) {
663
+ if (Owner === null) ;
664
+ else if (Owner.cleanups === null) Owner.cleanups = [
665
+ fn
666
+ ];
667
+ else Owner.cleanups.push(fn);
668
+ return fn;
669
+ }
670
+ function catchError(fn, handler) {
671
+ ERROR || (ERROR = Symbol("error"));
672
+ Owner = createComputation(undefined, undefined, true);
673
+ Owner.context = {
674
+ ...Owner.context,
675
+ [ERROR]: [
676
+ handler
677
+ ]
678
+ };
679
+ if (Transition && Transition.running) Transition.sources.add(Owner);
680
+ try {
681
+ return fn();
682
+ } catch (err) {
683
+ handleError(err);
684
+ } finally{
685
+ Owner = Owner.owner;
686
+ }
687
+ }
688
+ function getListener() {
689
+ return Listener;
690
+ }
691
+ function getOwner() {
692
+ return Owner;
693
+ }
694
+ function runWithOwner(o, fn) {
695
+ const prev = Owner;
696
+ const prevListener = Listener;
697
+ Owner = o;
698
+ Listener = null;
699
+ try {
700
+ return runUpdates(fn, true);
701
+ } catch (err) {
702
+ handleError(err);
703
+ } finally{
704
+ Owner = prev;
705
+ Listener = prevListener;
706
+ }
707
+ }
708
+ function enableScheduling(scheduler = requestCallback) {
709
+ Scheduler = scheduler;
710
+ }
711
+ function startTransition(fn) {
712
+ if (Transition && Transition.running) {
713
+ fn();
714
+ return Transition.done;
715
+ }
716
+ const l = Listener;
717
+ const o = Owner;
718
+ return Promise.resolve().then(()=>{
719
+ Listener = l;
720
+ Owner = o;
721
+ let t;
722
+ if (Scheduler || SuspenseContext) {
723
+ t = Transition || (Transition = {
724
+ sources: new Set(),
725
+ effects: [],
726
+ promises: new Set(),
727
+ disposed: new Set(),
728
+ queue: new Set(),
729
+ running: true
730
+ });
731
+ t.done || (t.done = new Promise((res)=>t.resolve = res));
732
+ t.running = true;
733
+ }
734
+ runUpdates(fn, false);
735
+ Listener = Owner = null;
736
+ return t ? t.done : undefined;
737
+ });
738
+ }
739
+ const [transPending, setTransPending] = /*@__PURE__*/ createSignal(false);
740
+ function useTransition() {
741
+ return [
742
+ transPending,
743
+ startTransition
744
+ ];
745
+ }
746
+ function resumeEffects(e) {
747
+ Effects.push.apply(Effects, e);
748
+ e.length = 0;
749
+ }
750
+ function createContext(defaultValue, options) {
751
+ const id = Symbol("context");
752
+ return {
753
+ id,
754
+ Provider: createProvider(id),
755
+ defaultValue
756
+ };
757
+ }
758
+ function useContext(context) {
759
+ let value;
760
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
761
+ }
762
+ function children(fn) {
763
+ const children = createMemo(fn);
764
+ const memo = createMemo(()=>resolveChildren(children()));
765
+ memo.toArray = ()=>{
766
+ const c = memo();
767
+ return Array.isArray(c) ? c : c != null ? [
768
+ c
769
+ ] : [];
770
+ };
771
+ return memo;
772
+ }
773
+ let SuspenseContext;
774
+ function getSuspenseContext() {
775
+ return SuspenseContext || (SuspenseContext = createContext());
776
+ }
777
+ function enableExternalSource(factory, untrack = (fn)=>fn()) {
778
+ if (ExternalSourceConfig) {
779
+ const { factory: oldFactory, untrack: oldUntrack } = ExternalSourceConfig;
780
+ ExternalSourceConfig = {
781
+ factory: (fn, trigger)=>{
782
+ const oldSource = oldFactory(fn, trigger);
783
+ const source = factory((x)=>oldSource.track(x), trigger);
784
+ return {
785
+ track: (x)=>source.track(x),
786
+ dispose () {
787
+ source.dispose();
788
+ oldSource.dispose();
789
+ }
790
+ };
791
+ },
792
+ untrack: (fn)=>oldUntrack(()=>untrack(fn))
793
+ };
794
+ } else ExternalSourceConfig = {
795
+ factory,
796
+ untrack
797
+ };
798
+ }
799
+ function readSignal() {
800
+ const runningTransition = Transition && Transition.running;
801
+ if (this.sources && (runningTransition ? this.tState : this.state)) {
802
+ if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
803
+ else {
804
+ const updates = Updates;
805
+ Updates = null;
806
+ runUpdates(()=>lookUpstream(this), false);
807
+ Updates = updates;
808
+ }
809
+ }
810
+ if (Listener) {
811
+ const sSlot = this.observers ? this.observers.length : 0;
812
+ if (!Listener.sources) {
813
+ Listener.sources = [
814
+ this
815
+ ];
816
+ Listener.sourceSlots = [
817
+ sSlot
818
+ ];
819
+ } else {
820
+ Listener.sources.push(this);
821
+ Listener.sourceSlots.push(sSlot);
822
+ }
823
+ if (!this.observers) {
824
+ this.observers = [
825
+ Listener
826
+ ];
827
+ this.observerSlots = [
828
+ Listener.sources.length - 1
829
+ ];
830
+ } else {
831
+ this.observers.push(Listener);
832
+ this.observerSlots.push(Listener.sources.length - 1);
833
+ }
834
+ }
835
+ if (runningTransition && Transition.sources.has(this)) return this.tValue;
836
+ return this.value;
837
+ }
838
+ function writeSignal(node, value, isComp) {
839
+ let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
840
+ if (!node.comparator || !node.comparator(current, value)) {
841
+ if (Transition) {
842
+ const TransitionRunning = Transition.running;
843
+ if (TransitionRunning || !isComp && Transition.sources.has(node)) {
844
+ Transition.sources.add(node);
845
+ node.tValue = value;
846
+ }
847
+ if (!TransitionRunning) node.value = value;
848
+ } else node.value = value;
849
+ if (node.observers && node.observers.length) runUpdates(()=>{
850
+ for(let i = 0; i < node.observers.length; i += 1){
851
+ const o = node.observers[i];
852
+ const TransitionRunning = Transition && Transition.running;
853
+ if (TransitionRunning && Transition.disposed.has(o)) continue;
854
+ if (TransitionRunning ? !o.tState : !o.state) {
855
+ if (o.pure) Updates.push(o);
856
+ else Effects.push(o);
857
+ if (o.observers) markDownstream(o);
858
+ }
859
+ if (!TransitionRunning) o.state = STALE;
860
+ else o.tState = STALE;
861
+ }
862
+ if (Updates.length > 10e5) {
863
+ Updates = [];
864
+ IS_DEV;
865
+ throw new Error();
866
+ }
867
+ }, false);
868
+ }
869
+ return value;
870
+ }
871
+ function updateComputation(node) {
872
+ if (!node.fn) return;
873
+ cleanNode(node);
874
+ const time = ExecCount;
875
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
876
+ if (Transition && !Transition.running && Transition.sources.has(node)) queueMicrotask(()=>{
877
+ runUpdates(()=>{
878
+ Transition && (Transition.running = true);
879
+ Listener = Owner = node;
880
+ runComputation(node, node.tValue, time);
881
+ Listener = Owner = null;
882
+ }, false);
883
+ });
884
+ }
885
+ function runComputation(node, value, time) {
886
+ let nextValue;
887
+ const owner = Owner, listener = Listener;
888
+ Listener = Owner = node;
889
+ try {
890
+ nextValue = node.fn(value);
891
+ } catch (err) {
892
+ if (node.pure) {
893
+ if (Transition && Transition.running) {
894
+ node.tState = STALE;
895
+ node.tOwned && node.tOwned.forEach(cleanNode);
896
+ node.tOwned = undefined;
897
+ } else {
898
+ node.state = STALE;
899
+ node.owned && node.owned.forEach(cleanNode);
900
+ node.owned = null;
901
+ }
902
+ }
903
+ node.updatedAt = time + 1;
904
+ return handleError(err);
905
+ } finally{
906
+ Listener = listener;
907
+ Owner = owner;
908
+ }
909
+ if (!node.updatedAt || node.updatedAt <= time) {
910
+ if (node.updatedAt != null && "observers" in node) writeSignal(node, nextValue, true);
911
+ else if (Transition && Transition.running && node.pure) {
912
+ Transition.sources.add(node);
913
+ node.tValue = nextValue;
914
+ } else node.value = nextValue;
915
+ node.updatedAt = time;
916
+ }
917
+ }
918
+ function createComputation(fn, init, pure, state = STALE, options) {
919
+ const c = {
920
+ fn,
921
+ state: state,
922
+ updatedAt: null,
923
+ owned: null,
924
+ sources: null,
925
+ sourceSlots: null,
926
+ cleanups: null,
927
+ value: init,
928
+ owner: Owner,
929
+ context: Owner ? Owner.context : null,
930
+ pure
931
+ };
932
+ if (Transition && Transition.running) {
933
+ c.state = 0;
934
+ c.tState = state;
935
+ }
936
+ if (Owner === null) ;
937
+ else if (Owner !== UNOWNED) {
938
+ if (Transition && Transition.running && Owner.pure) {
939
+ if (!Owner.tOwned) Owner.tOwned = [
940
+ c
941
+ ];
942
+ else Owner.tOwned.push(c);
943
+ } else if (!Owner.owned) Owner.owned = [
944
+ c
945
+ ];
946
+ else Owner.owned.push(c);
947
+ }
948
+ if (ExternalSourceConfig && c.fn) {
949
+ const [track, trigger] = createSignal(undefined, {
950
+ equals: false
951
+ });
952
+ const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
953
+ onCleanup(()=>ordinary.dispose());
954
+ const triggerInTransition = ()=>startTransition(trigger).then(()=>inTransition.dispose());
955
+ const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
956
+ c.fn = (x)=>{
957
+ track();
958
+ return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
959
+ };
960
+ }
961
+ return c;
962
+ }
963
+ function runTop(node) {
964
+ const runningTransition = Transition && Transition.running;
965
+ if ((runningTransition ? node.tState : node.state) === 0) return;
966
+ if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
967
+ if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
968
+ const ancestors = [
969
+ node
970
+ ];
971
+ while((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)){
972
+ if (runningTransition && Transition.disposed.has(node)) return;
973
+ if (runningTransition ? node.tState : node.state) ancestors.push(node);
974
+ }
975
+ for(let i = ancestors.length - 1; i >= 0; i--){
976
+ node = ancestors[i];
977
+ if (runningTransition) {
978
+ let top = node, prev = ancestors[i + 1];
979
+ while((top = top.owner) && top !== prev){
980
+ if (Transition.disposed.has(top)) return;
981
+ }
982
+ }
983
+ if ((runningTransition ? node.tState : node.state) === STALE) updateComputation(node);
984
+ else if ((runningTransition ? node.tState : node.state) === PENDING) {
985
+ const updates = Updates;
986
+ Updates = null;
987
+ runUpdates(()=>lookUpstream(node, ancestors[0]), false);
988
+ Updates = updates;
989
+ }
990
+ }
991
+ }
992
+ function runUpdates(fn, init) {
993
+ if (Updates) return fn();
994
+ let wait = false;
995
+ if (!init) Updates = [];
996
+ if (Effects) wait = true;
997
+ else Effects = [];
998
+ ExecCount++;
999
+ try {
1000
+ const res = fn();
1001
+ completeUpdates(wait);
1002
+ return res;
1003
+ } catch (err) {
1004
+ if (!wait) Effects = null;
1005
+ Updates = null;
1006
+ handleError(err);
1007
+ }
1008
+ }
1009
+ function completeUpdates(wait) {
1010
+ if (Updates) {
1011
+ if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
1012
+ else runQueue(Updates);
1013
+ Updates = null;
1014
+ }
1015
+ if (wait) return;
1016
+ let res;
1017
+ if (Transition) {
1018
+ if (!Transition.promises.size && !Transition.queue.size) {
1019
+ const sources = Transition.sources;
1020
+ const disposed = Transition.disposed;
1021
+ Effects.push.apply(Effects, Transition.effects);
1022
+ res = Transition.resolve;
1023
+ for (const e of Effects){
1024
+ "tState" in e && (e.state = e.tState);
1025
+ delete e.tState;
1026
+ }
1027
+ Transition = null;
1028
+ runUpdates(()=>{
1029
+ for (const d of disposed)cleanNode(d);
1030
+ for (const v of sources){
1031
+ v.value = v.tValue;
1032
+ if (v.owned) for(let i = 0, len = v.owned.length; i < len; i++)cleanNode(v.owned[i]);
1033
+ if (v.tOwned) v.owned = v.tOwned;
1034
+ delete v.tValue;
1035
+ delete v.tOwned;
1036
+ v.tState = 0;
1037
+ }
1038
+ setTransPending(false);
1039
+ }, false);
1040
+ } else if (Transition.running) {
1041
+ Transition.running = false;
1042
+ Transition.effects.push.apply(Transition.effects, Effects);
1043
+ Effects = null;
1044
+ setTransPending(true);
1045
+ return;
1046
+ }
1047
+ }
1048
+ const e = Effects;
1049
+ Effects = null;
1050
+ if (e.length) runUpdates(()=>runEffects(e), false);
1051
+ if (res) res();
1052
+ }
1053
+ function runQueue(queue) {
1054
+ for(let i = 0; i < queue.length; i++)runTop(queue[i]);
1055
+ }
1056
+ function scheduleQueue(queue) {
1057
+ for(let i = 0; i < queue.length; i++){
1058
+ const item = queue[i];
1059
+ const tasks = Transition.queue;
1060
+ if (!tasks.has(item)) {
1061
+ tasks.add(item);
1062
+ Scheduler(()=>{
1063
+ tasks.delete(item);
1064
+ runUpdates(()=>{
1065
+ Transition.running = true;
1066
+ runTop(item);
1067
+ }, false);
1068
+ Transition && (Transition.running = false);
1069
+ });
1070
+ }
1071
+ }
1072
+ }
1073
+ function runUserEffects(queue) {
1074
+ let i, userLength = 0;
1075
+ for(i = 0; i < queue.length; i++){
1076
+ const e = queue[i];
1077
+ if (!e.user) runTop(e);
1078
+ else queue[userLength++] = e;
1079
+ }
1080
+ if (sharedConfig.context) {
1081
+ if (sharedConfig.count) {
1082
+ sharedConfig.effects || (sharedConfig.effects = []);
1083
+ sharedConfig.effects.push(...queue.slice(0, userLength));
1084
+ return;
1085
+ }
1086
+ setHydrateContext();
1087
+ }
1088
+ if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
1089
+ queue = [
1090
+ ...sharedConfig.effects,
1091
+ ...queue
1092
+ ];
1093
+ userLength += sharedConfig.effects.length;
1094
+ delete sharedConfig.effects;
1095
+ }
1096
+ for(i = 0; i < userLength; i++)runTop(queue[i]);
1097
+ }
1098
+ function lookUpstream(node, ignore) {
1099
+ const runningTransition = Transition && Transition.running;
1100
+ if (runningTransition) node.tState = 0;
1101
+ else node.state = 0;
1102
+ for(let i = 0; i < node.sources.length; i += 1){
1103
+ const source = node.sources[i];
1104
+ if (source.sources) {
1105
+ const state = runningTransition ? source.tState : source.state;
1106
+ if (state === STALE) {
1107
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
1108
+ } else if (state === PENDING) lookUpstream(source, ignore);
1109
+ }
1110
+ }
1111
+ }
1112
+ function markDownstream(node) {
1113
+ const runningTransition = Transition && Transition.running;
1114
+ for(let i = 0; i < node.observers.length; i += 1){
1115
+ const o = node.observers[i];
1116
+ if (runningTransition ? !o.tState : !o.state) {
1117
+ if (runningTransition) o.tState = PENDING;
1118
+ else o.state = PENDING;
1119
+ if (o.pure) Updates.push(o);
1120
+ else Effects.push(o);
1121
+ o.observers && markDownstream(o);
1122
+ }
1123
+ }
1124
+ }
1125
+ function cleanNode(node) {
1126
+ let i;
1127
+ if (node.sources) while(node.sources.length){
1128
+ const source = node.sources.pop(), index = node.sourceSlots.pop(), obs = source.observers;
1129
+ if (obs && obs.length) {
1130
+ const n = obs.pop(), s = source.observerSlots.pop();
1131
+ if (index < obs.length) {
1132
+ n.sourceSlots[s] = index;
1133
+ obs[index] = n;
1134
+ source.observerSlots[index] = s;
1135
+ }
1136
+ }
1137
+ }
1138
+ if (node.tOwned) {
1139
+ for(i = node.tOwned.length - 1; i >= 0; i--)cleanNode(node.tOwned[i]);
1140
+ delete node.tOwned;
1141
+ }
1142
+ if (Transition && Transition.running && node.pure) reset(node, true);
1143
+ else if (node.owned) {
1144
+ for(i = node.owned.length - 1; i >= 0; i--)cleanNode(node.owned[i]);
1145
+ node.owned = null;
1146
+ }
1147
+ if (node.cleanups) {
1148
+ for(i = node.cleanups.length - 1; i >= 0; i--)node.cleanups[i]();
1149
+ node.cleanups = null;
1150
+ }
1151
+ if (Transition && Transition.running) node.tState = 0;
1152
+ else node.state = 0;
1153
+ }
1154
+ function reset(node, top) {
1155
+ if (!top) {
1156
+ node.tState = 0;
1157
+ Transition.disposed.add(node);
1158
+ }
1159
+ if (node.owned) for(let i = 0; i < node.owned.length; i++)reset(node.owned[i]);
1160
+ }
1161
+ function castError(err) {
1162
+ if (err instanceof Error) return err;
1163
+ return new Error(typeof err === "string" ? err : "Unknown error", {
1164
+ cause: err
1165
+ });
1166
+ }
1167
+ function runErrors(err, fns, owner) {
1168
+ try {
1169
+ for (const f of fns)f(err);
1170
+ } catch (e) {
1171
+ handleError(e, owner && owner.owner || null);
1172
+ }
1173
+ }
1174
+ function handleError(err, owner = Owner) {
1175
+ const fns = ERROR && owner && owner.context && owner.context[ERROR];
1176
+ const error = castError(err);
1177
+ if (!fns) throw error;
1178
+ if (Effects) Effects.push({
1179
+ fn () {
1180
+ runErrors(error, fns, owner);
1181
+ },
1182
+ state: STALE
1183
+ });
1184
+ else runErrors(error, fns, owner);
1185
+ }
1186
+ function resolveChildren(children) {
1187
+ if (typeof children === "function" && !children.length) return resolveChildren(children());
1188
+ if (Array.isArray(children)) {
1189
+ const results = [];
1190
+ for(let i = 0; i < children.length; i++){
1191
+ const result = resolveChildren(children[i]);
1192
+ Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
1193
+ }
1194
+ return results;
1195
+ }
1196
+ return children;
1197
+ }
1198
+ function createProvider(id, options) {
1199
+ return function provider(props) {
1200
+ let res;
1201
+ createRenderEffect(()=>res = untrack(()=>{
1202
+ Owner.context = {
1203
+ ...Owner.context,
1204
+ [id]: props.value
1205
+ };
1206
+ return children(()=>props.children);
1207
+ }), undefined);
1208
+ return res;
1209
+ };
1210
+ }
1211
+ function onError(fn) {
1212
+ ERROR || (ERROR = Symbol("error"));
1213
+ if (Owner === null) ;
1214
+ else if (Owner.context === null || !Owner.context[ERROR]) {
1215
+ Owner.context = {
1216
+ ...Owner.context,
1217
+ [ERROR]: [
1218
+ fn
1219
+ ]
1220
+ };
1221
+ mutateContext(Owner, ERROR, [
1222
+ fn
1223
+ ]);
1224
+ } else Owner.context[ERROR].push(fn);
1225
+ }
1226
+ function mutateContext(o, key, value) {
1227
+ if (o.owned) for(let i = 0; i < o.owned.length; i++){
1228
+ if (o.owned[i].context === o.context) mutateContext(o.owned[i], key, value);
1229
+ if (!o.owned[i].context) {
1230
+ o.owned[i].context = o.context;
1231
+ mutateContext(o.owned[i], key, value);
1232
+ } else if (!o.owned[i].context[key]) {
1233
+ o.owned[i].context[key] = value;
1234
+ mutateContext(o.owned[i], key, value);
1235
+ }
1236
+ }
1237
+ }
1238
+ function observable(input) {
1239
+ return {
1240
+ subscribe (observer) {
1241
+ if (!(observer instanceof Object) || observer == null) throw new TypeError("Expected the observer to be an object.");
1242
+ const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
1243
+ if (!handler) return {
1244
+ unsubscribe () {}
1245
+ };
1246
+ const dispose = createRoot((disposer)=>{
1247
+ createEffect(()=>{
1248
+ const v = input();
1249
+ untrack(()=>handler(v));
1250
+ });
1251
+ return disposer;
1252
+ });
1253
+ if (getOwner()) onCleanup(dispose);
1254
+ return {
1255
+ unsubscribe () {
1256
+ dispose();
1257
+ }
1258
+ };
1259
+ },
1260
+ [Symbol.observable || "@@observable"] () {
1261
+ return this;
1262
+ }
1263
+ };
1264
+ }
1265
+ function from(producer, initalValue) {
1266
+ const [s, set] = createSignal(initalValue, {
1267
+ equals: false
1268
+ });
1269
+ if ("subscribe" in producer) {
1270
+ const unsub = producer.subscribe((v)=>set(()=>v));
1271
+ onCleanup(()=>"unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
1272
+ } else {
1273
+ const clean = producer(set);
1274
+ onCleanup(clean);
1275
+ }
1276
+ return s;
1277
+ }
1278
+ const FALLBACK = Symbol("fallback");
1279
+ function dispose(d) {
1280
+ for(let i = 0; i < d.length; i++)d[i]();
1281
+ }
1282
+ function mapArray(list, mapFn, options = {}) {
1283
+ let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
1284
+ onCleanup(()=>dispose(disposers));
1285
+ return ()=>{
1286
+ let newItems = list() || [], newLen = newItems.length, i, j;
1287
+ newItems[$TRACK];
1288
+ return untrack(()=>{
1289
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
1290
+ if (newLen === 0) {
1291
+ if (len !== 0) {
1292
+ dispose(disposers);
1293
+ disposers = [];
1294
+ items = [];
1295
+ mapped = [];
1296
+ len = 0;
1297
+ indexes && (indexes = []);
1298
+ }
1299
+ if (options.fallback) {
1300
+ items = [
1301
+ FALLBACK
1302
+ ];
1303
+ mapped[0] = createRoot((disposer)=>{
1304
+ disposers[0] = disposer;
1305
+ return options.fallback();
1306
+ });
1307
+ len = 1;
1308
+ }
1309
+ } else if (len === 0) {
1310
+ mapped = new Array(newLen);
1311
+ for(j = 0; j < newLen; j++){
1312
+ items[j] = newItems[j];
1313
+ mapped[j] = createRoot(mapper);
1314
+ }
1315
+ len = newLen;
1316
+ } else {
1317
+ temp = new Array(newLen);
1318
+ tempdisposers = new Array(newLen);
1319
+ indexes && (tempIndexes = new Array(newLen));
1320
+ for(start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
1321
+ for(end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--){
1322
+ temp[newEnd] = mapped[end];
1323
+ tempdisposers[newEnd] = disposers[end];
1324
+ indexes && (tempIndexes[newEnd] = indexes[end]);
1325
+ }
1326
+ newIndices = new Map();
1327
+ newIndicesNext = new Array(newEnd + 1);
1328
+ for(j = newEnd; j >= start; j--){
1329
+ item = newItems[j];
1330
+ i = newIndices.get(item);
1331
+ newIndicesNext[j] = i === undefined ? -1 : i;
1332
+ newIndices.set(item, j);
1333
+ }
1334
+ for(i = start; i <= end; i++){
1335
+ item = items[i];
1336
+ j = newIndices.get(item);
1337
+ if (j !== undefined && j !== -1) {
1338
+ temp[j] = mapped[i];
1339
+ tempdisposers[j] = disposers[i];
1340
+ indexes && (tempIndexes[j] = indexes[i]);
1341
+ j = newIndicesNext[j];
1342
+ newIndices.set(item, j);
1343
+ } else disposers[i]();
1344
+ }
1345
+ for(j = start; j < newLen; j++)if (j in temp) {
1346
+ mapped[j] = temp[j];
1347
+ disposers[j] = tempdisposers[j];
1348
+ if (indexes) {
1349
+ indexes[j] = tempIndexes[j];
1350
+ indexes[j](j);
1351
+ }
1352
+ } else mapped[j] = createRoot(mapper);
1353
+ mapped = mapped.slice(0, len = newLen);
1354
+ items = newItems.slice(0);
1355
+ }
1356
+ return mapped;
1357
+ });
1358
+ function mapper(disposer) {
1359
+ disposers[j] = disposer;
1360
+ if (indexes) {
1361
+ const [s, set] = createSignal(j);
1362
+ indexes[j] = set;
1363
+ return mapFn(newItems[j], s);
1364
+ }
1365
+ return mapFn(newItems[j]);
1366
+ }
1367
+ };
1368
+ }
1369
+ function indexArray(list, mapFn, options = {}) {
1370
+ let items = [], mapped = [], disposers = [], signals = [], len = 0, i;
1371
+ onCleanup(()=>dispose(disposers));
1372
+ return ()=>{
1373
+ const newItems = list() || [], newLen = newItems.length;
1374
+ newItems[$TRACK];
1375
+ return untrack(()=>{
1376
+ if (newLen === 0) {
1377
+ if (len !== 0) {
1378
+ dispose(disposers);
1379
+ disposers = [];
1380
+ items = [];
1381
+ mapped = [];
1382
+ len = 0;
1383
+ signals = [];
1384
+ }
1385
+ if (options.fallback) {
1386
+ items = [
1387
+ FALLBACK
1388
+ ];
1389
+ mapped[0] = createRoot((disposer)=>{
1390
+ disposers[0] = disposer;
1391
+ return options.fallback();
1392
+ });
1393
+ len = 1;
1394
+ }
1395
+ return mapped;
1396
+ }
1397
+ if (items[0] === FALLBACK) {
1398
+ disposers[0]();
1399
+ disposers = [];
1400
+ items = [];
1401
+ mapped = [];
1402
+ len = 0;
1403
+ }
1404
+ for(i = 0; i < newLen; i++){
1405
+ if (i < items.length && items[i] !== newItems[i]) signals[i](()=>newItems[i]);
1406
+ else if (i >= items.length) mapped[i] = createRoot(mapper);
1407
+ }
1408
+ for(; i < items.length; i++)disposers[i]();
1409
+ len = signals.length = disposers.length = newLen;
1410
+ items = newItems.slice(0);
1411
+ return mapped = mapped.slice(0, len);
1412
+ });
1413
+ function mapper(disposer) {
1414
+ disposers[i] = disposer;
1415
+ const [s, set] = createSignal(newItems[i]);
1416
+ signals[i] = set;
1417
+ return mapFn(s, i);
1418
+ }
1419
+ };
1420
+ }
1421
+ let hydrationEnabled = false;
1422
+ function enableHydration() {
1423
+ hydrationEnabled = true;
1424
+ }
1425
+ function createComponent(Comp, props) {
1426
+ if (hydrationEnabled) {
1427
+ if (sharedConfig.context) {
1428
+ const c = sharedConfig.context;
1429
+ setHydrateContext(nextHydrateContext());
1430
+ const r = untrack(()=>Comp(props || {}));
1431
+ setHydrateContext(c);
1432
+ return r;
1433
+ }
1434
+ }
1435
+ return untrack(()=>Comp(props || {}));
1436
+ }
1437
+ function trueFn() {
1438
+ return true;
1439
+ }
1440
+ const propTraps = {
1441
+ get (_, property, receiver) {
1442
+ if (property === $PROXY) return receiver;
1443
+ return _.get(property);
1444
+ },
1445
+ has (_, property) {
1446
+ if (property === $PROXY) return true;
1447
+ return _.has(property);
1448
+ },
1449
+ set: trueFn,
1450
+ deleteProperty: trueFn,
1451
+ getOwnPropertyDescriptor (_, property) {
1452
+ return {
1453
+ configurable: true,
1454
+ enumerable: true,
1455
+ get () {
1456
+ return _.get(property);
1457
+ },
1458
+ set: trueFn,
1459
+ deleteProperty: trueFn
1460
+ };
1461
+ },
1462
+ ownKeys (_) {
1463
+ return _.keys();
1464
+ }
1465
+ };
1466
+ function resolveSource(s) {
1467
+ return !(s = typeof s === "function" ? s() : s) ? {} : s;
1468
+ }
1469
+ function resolveSources() {
1470
+ for(let i = 0, length = this.length; i < length; ++i){
1471
+ const v = this[i]();
1472
+ if (v !== undefined) return v;
1473
+ }
1474
+ }
1475
+ function mergeProps(...sources) {
1476
+ let proxy = false;
1477
+ for(let i = 0; i < sources.length; i++){
1478
+ const s = sources[i];
1479
+ proxy = proxy || !!s && $PROXY in s;
1480
+ sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
1481
+ }
1482
+ if (SUPPORTS_PROXY && proxy) return new Proxy({
1483
+ get (property) {
1484
+ for(let i = sources.length - 1; i >= 0; i--){
1485
+ const v = resolveSource(sources[i])[property];
1486
+ if (v !== undefined) return v;
1487
+ }
1488
+ },
1489
+ has (property) {
1490
+ for(let i = sources.length - 1; i >= 0; i--){
1491
+ if (property in resolveSource(sources[i])) return true;
1492
+ }
1493
+ return false;
1494
+ },
1495
+ keys () {
1496
+ const keys = [];
1497
+ for(let i = 0; i < sources.length; i++)keys.push(...Object.keys(resolveSource(sources[i])));
1498
+ return [
1499
+ ...new Set(keys)
1500
+ ];
1501
+ }
1502
+ }, propTraps);
1503
+ const sourcesMap = {};
1504
+ const defined = Object.create(null);
1505
+ for(let i = sources.length - 1; i >= 0; i--){
1506
+ const source = sources[i];
1507
+ if (!source) continue;
1508
+ const sourceKeys = Object.getOwnPropertyNames(source);
1509
+ for(let i = sourceKeys.length - 1; i >= 0; i--){
1510
+ const key = sourceKeys[i];
1511
+ if (key === "__proto__" || key === "constructor") continue;
1512
+ const desc = Object.getOwnPropertyDescriptor(source, key);
1513
+ if (!defined[key]) defined[key] = desc.get ? {
1514
+ enumerable: true,
1515
+ configurable: true,
1516
+ get: resolveSources.bind(sourcesMap[key] = [
1517
+ desc.get.bind(source)
1518
+ ])
1519
+ } : desc.value !== undefined ? desc : undefined;
1520
+ else {
1521
+ const sources = sourcesMap[key];
1522
+ if (sources) {
1523
+ if (desc.get) sources.push(desc.get.bind(source));
1524
+ else if (desc.value !== undefined) sources.push(()=>desc.value);
1525
+ }
1526
+ }
1527
+ }
1528
+ }
1529
+ const target = {};
1530
+ const definedKeys = Object.keys(defined);
1531
+ for(let i = definedKeys.length - 1; i >= 0; i--){
1532
+ const key = definedKeys[i], desc = defined[key];
1533
+ if (desc && desc.get) Object.defineProperty(target, key, desc);
1534
+ else target[key] = desc ? desc.value : undefined;
1535
+ }
1536
+ return target;
1537
+ }
1538
+ function splitProps(props, ...keys) {
1539
+ if (SUPPORTS_PROXY && $PROXY in props) {
1540
+ const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
1541
+ const res = keys.map((k)=>{
1542
+ return new Proxy({
1543
+ get (property) {
1544
+ return k.includes(property) ? props[property] : undefined;
1545
+ },
1546
+ has (property) {
1547
+ return k.includes(property) && property in props;
1548
+ },
1549
+ keys () {
1550
+ return k.filter((property)=>property in props);
1551
+ }
1552
+ }, propTraps);
1553
+ });
1554
+ res.push(new Proxy({
1555
+ get (property) {
1556
+ return blocked.has(property) ? undefined : props[property];
1557
+ },
1558
+ has (property) {
1559
+ return blocked.has(property) ? false : property in props;
1560
+ },
1561
+ keys () {
1562
+ return Object.keys(props).filter((k)=>!blocked.has(k));
1563
+ }
1564
+ }, propTraps));
1565
+ return res;
1566
+ }
1567
+ const otherObject = {};
1568
+ const objects = keys.map(()=>({}));
1569
+ for (const propName of Object.getOwnPropertyNames(props)){
1570
+ const desc = Object.getOwnPropertyDescriptor(props, propName);
1571
+ const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
1572
+ let blocked = false;
1573
+ let objectIndex = 0;
1574
+ for (const k of keys){
1575
+ if (k.includes(propName)) {
1576
+ blocked = true;
1577
+ isDefaultDesc ? objects[objectIndex][propName] = desc.value : Object.defineProperty(objects[objectIndex], propName, desc);
1578
+ }
1579
+ ++objectIndex;
1580
+ }
1581
+ if (!blocked) isDefaultDesc ? otherObject[propName] = desc.value : Object.defineProperty(otherObject, propName, desc);
1582
+ }
1583
+ return [
1584
+ ...objects,
1585
+ otherObject
1586
+ ];
1587
+ }
1588
+ function lazy(fn) {
1589
+ let comp;
1590
+ let p;
1591
+ const wrap = (props)=>{
1592
+ const ctx = sharedConfig.context;
1593
+ if (ctx) {
1594
+ const [s, set] = createSignal();
1595
+ sharedConfig.count || (sharedConfig.count = 0);
1596
+ sharedConfig.count++;
1597
+ (p || (p = fn())).then((mod)=>{
1598
+ !sharedConfig.done && setHydrateContext(ctx);
1599
+ sharedConfig.count--;
1600
+ set(()=>mod.default);
1601
+ setHydrateContext();
1602
+ });
1603
+ comp = s;
1604
+ } else if (!comp) {
1605
+ const [s] = createResource(()=>(p || (p = fn())).then((mod)=>mod.default));
1606
+ comp = s;
1607
+ }
1608
+ let Comp;
1609
+ return createMemo(()=>(Comp = comp()) ? untrack(()=>{
1610
+ IS_DEV;
1611
+ if (!ctx || sharedConfig.done) return Comp(props);
1612
+ const c = sharedConfig.context;
1613
+ setHydrateContext(ctx);
1614
+ const r = Comp(props);
1615
+ setHydrateContext(c);
1616
+ return r;
1617
+ }) : "");
1618
+ };
1619
+ wrap.preload = ()=>p || ((p = fn()).then((mod)=>comp = ()=>mod.default), p);
1620
+ return wrap;
1621
+ }
1622
+ let counter = 0;
1623
+ function createUniqueId() {
1624
+ const ctx = sharedConfig.context;
1625
+ return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
1626
+ }
1627
+ const narrowedError = (name)=>`Stale read from <${name}>.`;
1628
+ function For(props) {
1629
+ const fallback = "fallback" in props && {
1630
+ fallback: ()=>props.fallback
1631
+ };
1632
+ return createMemo(mapArray(()=>props.each, props.children, fallback || undefined));
1633
+ }
1634
+ function Index(props) {
1635
+ const fallback = "fallback" in props && {
1636
+ fallback: ()=>props.fallback
1637
+ };
1638
+ return createMemo(indexArray(()=>props.each, props.children, fallback || undefined));
1639
+ }
1640
+ function Show(props) {
1641
+ const keyed = props.keyed;
1642
+ const conditionValue = createMemo(()=>props.when, undefined, undefined);
1643
+ const condition = keyed ? conditionValue : createMemo(conditionValue, undefined, {
1644
+ equals: (a, b)=>!a === !b
1645
+ });
1646
+ return createMemo(()=>{
1647
+ const c = condition();
1648
+ if (c) {
1649
+ const child = props.children;
1650
+ const fn = typeof child === "function" && child.length > 0;
1651
+ return fn ? untrack(()=>child(keyed ? c : ()=>{
1652
+ if (!untrack(condition)) throw narrowedError("Show");
1653
+ return conditionValue();
1654
+ })) : child;
1655
+ }
1656
+ return props.fallback;
1657
+ }, undefined, undefined);
1658
+ }
1659
+ function Switch(props) {
1660
+ const chs = children(()=>props.children);
1661
+ const switchFunc = createMemo(()=>{
1662
+ const ch = chs();
1663
+ const mps = Array.isArray(ch) ? ch : [
1664
+ ch
1665
+ ];
1666
+ let func = ()=>undefined;
1667
+ for(let i = 0; i < mps.length; i++){
1668
+ const index = i;
1669
+ const mp = mps[i];
1670
+ const prevFunc = func;
1671
+ const conditionValue = createMemo(()=>prevFunc() ? undefined : mp.when, undefined, undefined);
1672
+ const condition = mp.keyed ? conditionValue : createMemo(conditionValue, undefined, {
1673
+ equals: (a, b)=>!a === !b
1674
+ });
1675
+ func = ()=>prevFunc() || (condition() ? [
1676
+ index,
1677
+ conditionValue,
1678
+ mp
1679
+ ] : undefined);
1680
+ }
1681
+ return func;
1682
+ });
1683
+ return createMemo(()=>{
1684
+ const sel = switchFunc()();
1685
+ if (!sel) return props.fallback;
1686
+ const [index, conditionValue, mp] = sel;
1687
+ const child = mp.children;
1688
+ const fn = typeof child === "function" && child.length > 0;
1689
+ return fn ? untrack(()=>child(mp.keyed ? conditionValue() : ()=>{
1690
+ if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
1691
+ return conditionValue();
1692
+ })) : child;
1693
+ }, undefined, undefined);
1694
+ }
1695
+ function Match(props) {
1696
+ return props;
1697
+ }
1698
+ let Errors;
1699
+ function resetErrorBoundaries() {
1700
+ Errors && [
1701
+ ...Errors
1702
+ ].forEach((fn)=>fn());
1703
+ }
1704
+ function ErrorBoundary(props) {
1705
+ let err;
1706
+ if (sharedConfig.context && sharedConfig.load) err = sharedConfig.load(sharedConfig.getContextId());
1707
+ const [errored, setErrored] = createSignal(err, undefined);
1708
+ Errors || (Errors = new Set());
1709
+ Errors.add(setErrored);
1710
+ onCleanup(()=>Errors.delete(setErrored));
1711
+ return createMemo(()=>{
1712
+ let e;
1713
+ if (e = errored()) {
1714
+ const f = props.fallback;
1715
+ return typeof f === "function" && f.length ? untrack(()=>f(e, ()=>setErrored())) : f;
1716
+ }
1717
+ return catchError(()=>props.children, setErrored);
1718
+ }, undefined, undefined);
1719
+ }
1720
+ const suspenseListEquals = (a, b)=>a.showContent === b.showContent && a.showFallback === b.showFallback;
1721
+ const SuspenseListContext = /* #__PURE__ */ createContext();
1722
+ function SuspenseList(props) {
1723
+ let [wrapper, setWrapper] = createSignal(()=>({
1724
+ inFallback: false
1725
+ })), show;
1726
+ const listContext = useContext(SuspenseListContext);
1727
+ const [registry, setRegistry] = createSignal([]);
1728
+ if (listContext) show = listContext.register(createMemo(()=>wrapper()().inFallback));
1729
+ const resolved = createMemo((prev)=>{
1730
+ const reveal = props.revealOrder, tail = props.tail, { showContent = true, showFallback = true } = show ? show() : {}, reg = registry(), reverse = reveal === "backwards";
1731
+ if (reveal === "together") {
1732
+ const all = reg.every((inFallback)=>!inFallback());
1733
+ const res = reg.map(()=>({
1734
+ showContent: all && showContent,
1735
+ showFallback
1736
+ }));
1737
+ res.inFallback = !all;
1738
+ return res;
1739
+ }
1740
+ let stop = false;
1741
+ let inFallback = prev.inFallback;
1742
+ const res = [];
1743
+ for(let i = 0, len = reg.length; i < len; i++){
1744
+ const n = reverse ? len - i - 1 : i, s = reg[n]();
1745
+ if (!stop && !s) res[n] = {
1746
+ showContent,
1747
+ showFallback
1748
+ };
1749
+ else {
1750
+ const next = !stop;
1751
+ if (next) inFallback = true;
1752
+ res[n] = {
1753
+ showContent: next,
1754
+ showFallback: !tail || next && tail === "collapsed" ? showFallback : false
1755
+ };
1756
+ stop = true;
1757
+ }
1758
+ }
1759
+ if (!stop) inFallback = false;
1760
+ res.inFallback = inFallback;
1761
+ return res;
1762
+ }, {
1763
+ inFallback: false
1764
+ });
1765
+ setWrapper(()=>resolved);
1766
+ return createComponent(SuspenseListContext.Provider, {
1767
+ value: {
1768
+ register: (inFallback)=>{
1769
+ let index;
1770
+ setRegistry((registry)=>{
1771
+ index = registry.length;
1772
+ return [
1773
+ ...registry,
1774
+ inFallback
1775
+ ];
1776
+ });
1777
+ return createMemo(()=>resolved()[index], undefined, {
1778
+ equals: suspenseListEquals
1779
+ });
1780
+ }
1781
+ },
1782
+ get children () {
1783
+ return props.children;
1784
+ }
1785
+ });
1786
+ }
1787
+ function Suspense(props) {
1788
+ let counter = 0, show, ctx, p, flicker, error;
1789
+ const [inFallback, setFallback] = createSignal(false), SuspenseContext = getSuspenseContext(), store = {
1790
+ increment: ()=>{
1791
+ if (++counter === 1) setFallback(true);
1792
+ },
1793
+ decrement: ()=>{
1794
+ if (--counter === 0) setFallback(false);
1795
+ },
1796
+ inFallback,
1797
+ effects: [],
1798
+ resolved: false
1799
+ }, owner = getOwner();
1800
+ if (sharedConfig.context && sharedConfig.load) {
1801
+ const key = sharedConfig.getContextId();
1802
+ let ref = sharedConfig.load(key);
1803
+ if (ref) {
1804
+ if (typeof ref !== "object" || ref.status !== "success") p = ref;
1805
+ else sharedConfig.gather(key);
1806
+ }
1807
+ if (p && p !== "$$f") {
1808
+ const [s, set] = createSignal(undefined, {
1809
+ equals: false
1810
+ });
1811
+ flicker = s;
1812
+ p.then(()=>{
1813
+ if (sharedConfig.done) return set();
1814
+ sharedConfig.gather(key);
1815
+ setHydrateContext(ctx);
1816
+ set();
1817
+ setHydrateContext();
1818
+ }, (err)=>{
1819
+ error = err;
1820
+ set();
1821
+ });
1822
+ }
1823
+ }
1824
+ const listContext = useContext(SuspenseListContext);
1825
+ if (listContext) show = listContext.register(store.inFallback);
1826
+ let dispose;
1827
+ onCleanup(()=>dispose && dispose());
1828
+ return createComponent(SuspenseContext.Provider, {
1829
+ value: store,
1830
+ get children () {
1831
+ return createMemo(()=>{
1832
+ if (error) throw error;
1833
+ ctx = sharedConfig.context;
1834
+ if (flicker) {
1835
+ flicker();
1836
+ return flicker = undefined;
1837
+ }
1838
+ if (ctx && p === "$$f") setHydrateContext();
1839
+ const rendered = createMemo(()=>props.children);
1840
+ return createMemo((prev)=>{
1841
+ const inFallback = store.inFallback(), { showContent = true, showFallback = true } = show ? show() : {};
1842
+ if ((!inFallback || p && p !== "$$f") && showContent) {
1843
+ store.resolved = true;
1844
+ dispose && dispose();
1845
+ dispose = ctx = p = undefined;
1846
+ resumeEffects(store.effects);
1847
+ return rendered();
1848
+ }
1849
+ if (!showFallback) return;
1850
+ if (dispose) return prev;
1851
+ return createRoot((disposer)=>{
1852
+ dispose = disposer;
1853
+ if (ctx) {
1854
+ setHydrateContext({
1855
+ id: ctx.id + "F",
1856
+ count: 0
1857
+ });
1858
+ ctx = undefined;
1859
+ }
1860
+ return props.fallback;
1861
+ }, owner);
1862
+ });
1863
+ });
1864
+ }
1865
+ });
1866
+ }
1867
+ const DEV = undefined;
1868
+
1869
+ }),
1870
+ "7525": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
1871
+ "use strict";
1872
+ __webpack_require__.r(__webpack_exports__);
1873
+ __webpack_require__.d(__webpack_exports__, {
1874
+ Dynamic: function() { return Dynamic; },
1875
+ addEventListener: function() { return addEventListener; },
1876
+ className: function() { return className; },
1877
+ createComponent: function() { return solid_js__WEBPACK_IMPORTED_MODULE_0__.createComponent; },
1878
+ delegateEvents: function() { return delegateEvents; },
1879
+ effect: function() { return solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect; },
1880
+ insert: function() { return insert; },
1881
+ memo: function() { return memo; },
1882
+ mergeProps: function() { return solid_js__WEBPACK_IMPORTED_MODULE_0__.mergeProps; },
1883
+ setAttribute: function() { return setAttribute; },
1884
+ spread: function() { return spread; },
1885
+ style: function() { return style; },
1886
+ template: function() { return template; },
1887
+ use: function() { return use; }
1888
+ });
1889
+ /* harmony import */var solid_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! solid-js */"5666");
1890
+
1891
+
1892
+ const booleans = [
1893
+ "allowfullscreen",
1894
+ "async",
1895
+ "autofocus",
1896
+ "autoplay",
1897
+ "checked",
1898
+ "controls",
1899
+ "default",
1900
+ "disabled",
1901
+ "formnovalidate",
1902
+ "hidden",
1903
+ "indeterminate",
1904
+ "inert",
1905
+ "ismap",
1906
+ "loop",
1907
+ "multiple",
1908
+ "muted",
1909
+ "nomodule",
1910
+ "novalidate",
1911
+ "open",
1912
+ "playsinline",
1913
+ "readonly",
1914
+ "required",
1915
+ "reversed",
1916
+ "seamless",
1917
+ "selected"
1918
+ ];
1919
+ const Properties = /*#__PURE__*/ new Set([
1920
+ "className",
1921
+ "value",
1922
+ "readOnly",
1923
+ "noValidate",
1924
+ "formNoValidate",
1925
+ "isMap",
1926
+ "noModule",
1927
+ "playsInline",
1928
+ ...booleans
1929
+ ]);
1930
+ const ChildProperties = /*#__PURE__*/ new Set([
1931
+ "innerHTML",
1932
+ "textContent",
1933
+ "innerText",
1934
+ "children"
1935
+ ]);
1936
+ const Aliases = /*#__PURE__*/ Object.assign(Object.create(null), {
1937
+ className: "class",
1938
+ htmlFor: "for"
1939
+ });
1940
+ const PropAliases = /*#__PURE__*/ Object.assign(Object.create(null), {
1941
+ class: "className",
1942
+ novalidate: {
1943
+ $: "noValidate",
1944
+ FORM: 1
1945
+ },
1946
+ formnovalidate: {
1947
+ $: "formNoValidate",
1948
+ BUTTON: 1,
1949
+ INPUT: 1
1950
+ },
1951
+ ismap: {
1952
+ $: "isMap",
1953
+ IMG: 1
1954
+ },
1955
+ nomodule: {
1956
+ $: "noModule",
1957
+ SCRIPT: 1
1958
+ },
1959
+ playsinline: {
1960
+ $: "playsInline",
1961
+ VIDEO: 1
1962
+ },
1963
+ readonly: {
1964
+ $: "readOnly",
1965
+ INPUT: 1,
1966
+ TEXTAREA: 1
1967
+ }
1968
+ });
1969
+ function getPropAlias(prop, tagName) {
1970
+ const a = PropAliases[prop];
1971
+ return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
1972
+ }
1973
+ const DelegatedEvents = /*#__PURE__*/ new Set([
1974
+ "beforeinput",
1975
+ "click",
1976
+ "dblclick",
1977
+ "contextmenu",
1978
+ "focusin",
1979
+ "focusout",
1980
+ "input",
1981
+ "keydown",
1982
+ "keyup",
1983
+ "mousedown",
1984
+ "mousemove",
1985
+ "mouseout",
1986
+ "mouseover",
1987
+ "mouseup",
1988
+ "pointerdown",
1989
+ "pointermove",
1990
+ "pointerout",
1991
+ "pointerover",
1992
+ "pointerup",
1993
+ "touchend",
1994
+ "touchmove",
1995
+ "touchstart"
1996
+ ]);
1997
+ const SVGElements = /*#__PURE__*/ new Set([
1998
+ "altGlyph",
1999
+ "altGlyphDef",
2000
+ "altGlyphItem",
2001
+ "animate",
2002
+ "animateColor",
2003
+ "animateMotion",
2004
+ "animateTransform",
2005
+ "circle",
2006
+ "clipPath",
2007
+ "color-profile",
2008
+ "cursor",
2009
+ "defs",
2010
+ "desc",
2011
+ "ellipse",
2012
+ "feBlend",
2013
+ "feColorMatrix",
2014
+ "feComponentTransfer",
2015
+ "feComposite",
2016
+ "feConvolveMatrix",
2017
+ "feDiffuseLighting",
2018
+ "feDisplacementMap",
2019
+ "feDistantLight",
2020
+ "feDropShadow",
2021
+ "feFlood",
2022
+ "feFuncA",
2023
+ "feFuncB",
2024
+ "feFuncG",
2025
+ "feFuncR",
2026
+ "feGaussianBlur",
2027
+ "feImage",
2028
+ "feMerge",
2029
+ "feMergeNode",
2030
+ "feMorphology",
2031
+ "feOffset",
2032
+ "fePointLight",
2033
+ "feSpecularLighting",
2034
+ "feSpotLight",
2035
+ "feTile",
2036
+ "feTurbulence",
2037
+ "filter",
2038
+ "font",
2039
+ "font-face",
2040
+ "font-face-format",
2041
+ "font-face-name",
2042
+ "font-face-src",
2043
+ "font-face-uri",
2044
+ "foreignObject",
2045
+ "g",
2046
+ "glyph",
2047
+ "glyphRef",
2048
+ "hkern",
2049
+ "image",
2050
+ "line",
2051
+ "linearGradient",
2052
+ "marker",
2053
+ "mask",
2054
+ "metadata",
2055
+ "missing-glyph",
2056
+ "mpath",
2057
+ "path",
2058
+ "pattern",
2059
+ "polygon",
2060
+ "polyline",
2061
+ "radialGradient",
2062
+ "rect",
2063
+ "set",
2064
+ "stop",
2065
+ "svg",
2066
+ "switch",
2067
+ "symbol",
2068
+ "text",
2069
+ "textPath",
2070
+ "tref",
2071
+ "tspan",
2072
+ "use",
2073
+ "view",
2074
+ "vkern"
2075
+ ]);
2076
+ const SVGNamespace = {
2077
+ xlink: "http://www.w3.org/1999/xlink",
2078
+ xml: "http://www.w3.org/XML/1998/namespace"
2079
+ };
2080
+ const DOMElements = /*#__PURE__*/ new Set([
2081
+ "html",
2082
+ "base",
2083
+ "head",
2084
+ "link",
2085
+ "meta",
2086
+ "style",
2087
+ "title",
2088
+ "body",
2089
+ "address",
2090
+ "article",
2091
+ "aside",
2092
+ "footer",
2093
+ "header",
2094
+ "main",
2095
+ "nav",
2096
+ "section",
2097
+ "body",
2098
+ "blockquote",
2099
+ "dd",
2100
+ "div",
2101
+ "dl",
2102
+ "dt",
2103
+ "figcaption",
2104
+ "figure",
2105
+ "hr",
2106
+ "li",
2107
+ "ol",
2108
+ "p",
2109
+ "pre",
2110
+ "ul",
2111
+ "a",
2112
+ "abbr",
2113
+ "b",
2114
+ "bdi",
2115
+ "bdo",
2116
+ "br",
2117
+ "cite",
2118
+ "code",
2119
+ "data",
2120
+ "dfn",
2121
+ "em",
2122
+ "i",
2123
+ "kbd",
2124
+ "mark",
2125
+ "q",
2126
+ "rp",
2127
+ "rt",
2128
+ "ruby",
2129
+ "s",
2130
+ "samp",
2131
+ "small",
2132
+ "span",
2133
+ "strong",
2134
+ "sub",
2135
+ "sup",
2136
+ "time",
2137
+ "u",
2138
+ "var",
2139
+ "wbr",
2140
+ "area",
2141
+ "audio",
2142
+ "img",
2143
+ "map",
2144
+ "track",
2145
+ "video",
2146
+ "embed",
2147
+ "iframe",
2148
+ "object",
2149
+ "param",
2150
+ "picture",
2151
+ "portal",
2152
+ "source",
2153
+ "svg",
2154
+ "math",
2155
+ "canvas",
2156
+ "noscript",
2157
+ "script",
2158
+ "del",
2159
+ "ins",
2160
+ "caption",
2161
+ "col",
2162
+ "colgroup",
2163
+ "table",
2164
+ "tbody",
2165
+ "td",
2166
+ "tfoot",
2167
+ "th",
2168
+ "thead",
2169
+ "tr",
2170
+ "button",
2171
+ "datalist",
2172
+ "fieldset",
2173
+ "form",
2174
+ "input",
2175
+ "label",
2176
+ "legend",
2177
+ "meter",
2178
+ "optgroup",
2179
+ "option",
2180
+ "output",
2181
+ "progress",
2182
+ "select",
2183
+ "textarea",
2184
+ "details",
2185
+ "dialog",
2186
+ "menu",
2187
+ "summary",
2188
+ "details",
2189
+ "slot",
2190
+ "template",
2191
+ "acronym",
2192
+ "applet",
2193
+ "basefont",
2194
+ "bgsound",
2195
+ "big",
2196
+ "blink",
2197
+ "center",
2198
+ "content",
2199
+ "dir",
2200
+ "font",
2201
+ "frame",
2202
+ "frameset",
2203
+ "hgroup",
2204
+ "image",
2205
+ "keygen",
2206
+ "marquee",
2207
+ "menuitem",
2208
+ "nobr",
2209
+ "noembed",
2210
+ "noframes",
2211
+ "plaintext",
2212
+ "rb",
2213
+ "rtc",
2214
+ "shadow",
2215
+ "spacer",
2216
+ "strike",
2217
+ "tt",
2218
+ "xmp",
2219
+ "a",
2220
+ "abbr",
2221
+ "acronym",
2222
+ "address",
2223
+ "applet",
2224
+ "area",
2225
+ "article",
2226
+ "aside",
2227
+ "audio",
2228
+ "b",
2229
+ "base",
2230
+ "basefont",
2231
+ "bdi",
2232
+ "bdo",
2233
+ "bgsound",
2234
+ "big",
2235
+ "blink",
2236
+ "blockquote",
2237
+ "body",
2238
+ "br",
2239
+ "button",
2240
+ "canvas",
2241
+ "caption",
2242
+ "center",
2243
+ "cite",
2244
+ "code",
2245
+ "col",
2246
+ "colgroup",
2247
+ "content",
2248
+ "data",
2249
+ "datalist",
2250
+ "dd",
2251
+ "del",
2252
+ "details",
2253
+ "dfn",
2254
+ "dialog",
2255
+ "dir",
2256
+ "div",
2257
+ "dl",
2258
+ "dt",
2259
+ "em",
2260
+ "embed",
2261
+ "fieldset",
2262
+ "figcaption",
2263
+ "figure",
2264
+ "font",
2265
+ "footer",
2266
+ "form",
2267
+ "frame",
2268
+ "frameset",
2269
+ "head",
2270
+ "header",
2271
+ "hgroup",
2272
+ "hr",
2273
+ "html",
2274
+ "i",
2275
+ "iframe",
2276
+ "image",
2277
+ "img",
2278
+ "input",
2279
+ "ins",
2280
+ "kbd",
2281
+ "keygen",
2282
+ "label",
2283
+ "legend",
2284
+ "li",
2285
+ "link",
2286
+ "main",
2287
+ "map",
2288
+ "mark",
2289
+ "marquee",
2290
+ "menu",
2291
+ "menuitem",
2292
+ "meta",
2293
+ "meter",
2294
+ "nav",
2295
+ "nobr",
2296
+ "noembed",
2297
+ "noframes",
2298
+ "noscript",
2299
+ "object",
2300
+ "ol",
2301
+ "optgroup",
2302
+ "option",
2303
+ "output",
2304
+ "p",
2305
+ "param",
2306
+ "picture",
2307
+ "plaintext",
2308
+ "portal",
2309
+ "pre",
2310
+ "progress",
2311
+ "q",
2312
+ "rb",
2313
+ "rp",
2314
+ "rt",
2315
+ "rtc",
2316
+ "ruby",
2317
+ "s",
2318
+ "samp",
2319
+ "script",
2320
+ "section",
2321
+ "select",
2322
+ "shadow",
2323
+ "slot",
2324
+ "small",
2325
+ "source",
2326
+ "spacer",
2327
+ "span",
2328
+ "strike",
2329
+ "strong",
2330
+ "style",
2331
+ "sub",
2332
+ "summary",
2333
+ "sup",
2334
+ "table",
2335
+ "tbody",
2336
+ "td",
2337
+ "template",
2338
+ "textarea",
2339
+ "tfoot",
2340
+ "th",
2341
+ "thead",
2342
+ "time",
2343
+ "title",
2344
+ "tr",
2345
+ "track",
2346
+ "tt",
2347
+ "u",
2348
+ "ul",
2349
+ "var",
2350
+ "video",
2351
+ "wbr",
2352
+ "xmp",
2353
+ "input",
2354
+ "h1",
2355
+ "h2",
2356
+ "h3",
2357
+ "h4",
2358
+ "h5",
2359
+ "h6"
2360
+ ]);
2361
+ const memo = (fn)=>(0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(()=>fn());
2362
+ function reconcileArrays(parentNode, a, b) {
2363
+ let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
2364
+ while(aStart < aEnd || bStart < bEnd){
2365
+ if (a[aStart] === b[bStart]) {
2366
+ aStart++;
2367
+ bStart++;
2368
+ continue;
2369
+ }
2370
+ while(a[aEnd - 1] === b[bEnd - 1]){
2371
+ aEnd--;
2372
+ bEnd--;
2373
+ }
2374
+ if (aEnd === aStart) {
2375
+ const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
2376
+ while(bStart < bEnd)parentNode.insertBefore(b[bStart++], node);
2377
+ } else if (bEnd === bStart) while(aStart < aEnd){
2378
+ if (!map || !map.has(a[aStart])) a[aStart].remove();
2379
+ aStart++;
2380
+ }
2381
+ else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
2382
+ const node = a[--aEnd].nextSibling;
2383
+ parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
2384
+ parentNode.insertBefore(b[--bEnd], node);
2385
+ a[aEnd] = b[bEnd];
2386
+ } else {
2387
+ if (!map) {
2388
+ map = new Map();
2389
+ let i = bStart;
2390
+ while(i < bEnd)map.set(b[i], i++);
2391
+ }
2392
+ const index = map.get(a[aStart]);
2393
+ if (index != null) {
2394
+ if (bStart < index && index < bEnd) {
2395
+ let i = aStart, sequence = 1, t;
2396
+ while(++i < aEnd && i < bEnd){
2397
+ if ((t = map.get(a[i])) == null || t !== index + sequence) break;
2398
+ sequence++;
2399
+ }
2400
+ if (sequence > index - bStart) {
2401
+ const node = a[aStart];
2402
+ while(bStart < index)parentNode.insertBefore(b[bStart++], node);
2403
+ } else parentNode.replaceChild(b[bStart++], a[aStart++]);
2404
+ } else aStart++;
2405
+ } else a[aStart++].remove();
2406
+ }
2407
+ }
2408
+ }
2409
+ const $$EVENTS = "_$DX_DELEGATE";
2410
+ function render(code, element, init, options = {}) {
2411
+ let disposer;
2412
+ /* "solid-js" unused */null((dispose)=>{
2413
+ disposer = dispose;
2414
+ element === document ? code() : insert(element, code(), element.firstChild ? null : undefined, init);
2415
+ }, options.owner);
2416
+ return ()=>{
2417
+ disposer();
2418
+ element.textContent = "";
2419
+ };
2420
+ }
2421
+ function template(html, isImportNode, isSVG, isMathML) {
2422
+ let node;
2423
+ const create = ()=>{
2424
+ const t = isMathML ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
2425
+ t.innerHTML = html;
2426
+ return isSVG ? t.content.firstChild.firstChild : isMathML ? t.firstChild : t.content.firstChild;
2427
+ };
2428
+ const fn = isImportNode ? ()=>(0, solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(()=>document.importNode(node || (node = create()), true)) : ()=>(node || (node = create())).cloneNode(true);
2429
+ fn.cloneNode = fn;
2430
+ return fn;
2431
+ }
2432
+ function delegateEvents(eventNames, document1 = window.document) {
2433
+ const e = document1[$$EVENTS] || (document1[$$EVENTS] = new Set());
2434
+ for(let i = 0, l = eventNames.length; i < l; i++){
2435
+ const name = eventNames[i];
2436
+ if (!e.has(name)) {
2437
+ e.add(name);
2438
+ document1.addEventListener(name, eventHandler);
2439
+ }
2440
+ }
2441
+ }
2442
+ function clearDelegatedEvents(document1 = window.document) {
2443
+ if (document1[$$EVENTS]) {
2444
+ for (let name of document1[$$EVENTS].keys())document1.removeEventListener(name, eventHandler);
2445
+ delete document1[$$EVENTS];
2446
+ }
2447
+ }
2448
+ function setProperty(node, name, value) {
2449
+ if (isHydrating(node)) return;
2450
+ node[name] = value;
2451
+ }
2452
+ function setAttribute(node, name, value) {
2453
+ if (isHydrating(node)) return;
2454
+ if (value == null) node.removeAttribute(name);
2455
+ else node.setAttribute(name, value);
2456
+ }
2457
+ function setAttributeNS(node, namespace, name, value) {
2458
+ if (isHydrating(node)) return;
2459
+ if (value == null) node.removeAttributeNS(namespace, name);
2460
+ else node.setAttributeNS(namespace, name, value);
2461
+ }
2462
+ function setBoolAttribute(node, name, value) {
2463
+ if (isHydrating(node)) return;
2464
+ value ? node.setAttribute(name, "") : node.removeAttribute(name);
2465
+ }
2466
+ function className(node, value) {
2467
+ if (isHydrating(node)) return;
2468
+ if (value == null) node.removeAttribute("class");
2469
+ else node.className = value;
2470
+ }
2471
+ function addEventListener(node, name, handler, delegate) {
2472
+ if (delegate) {
2473
+ if (Array.isArray(handler)) {
2474
+ node[`$$${name}`] = handler[0];
2475
+ node[`$$${name}Data`] = handler[1];
2476
+ } else node[`$$${name}`] = handler;
2477
+ } else if (Array.isArray(handler)) {
2478
+ const handlerFn = handler[0];
2479
+ node.addEventListener(name, handler[0] = (e)=>handlerFn.call(node, handler[1], e));
2480
+ } else node.addEventListener(name, handler, typeof handler !== "function" && handler);
2481
+ }
2482
+ function classList(node, value, prev = {}) {
2483
+ const classKeys = Object.keys(value || {}), prevKeys = Object.keys(prev);
2484
+ let i, len;
2485
+ for(i = 0, len = prevKeys.length; i < len; i++){
2486
+ const key = prevKeys[i];
2487
+ if (!key || key === "undefined" || value[key]) continue;
2488
+ toggleClassKey(node, key, false);
2489
+ delete prev[key];
2490
+ }
2491
+ for(i = 0, len = classKeys.length; i < len; i++){
2492
+ const key = classKeys[i], classValue = !!value[key];
2493
+ if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
2494
+ toggleClassKey(node, key, true);
2495
+ prev[key] = classValue;
2496
+ }
2497
+ return prev;
2498
+ }
2499
+ function style(node, value, prev) {
2500
+ if (!value) return prev ? setAttribute(node, "style") : value;
2501
+ const nodeStyle = node.style;
2502
+ if (typeof value === "string") return nodeStyle.cssText = value;
2503
+ typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
2504
+ prev || (prev = {});
2505
+ value || (value = {});
2506
+ let v, s;
2507
+ for(s in prev){
2508
+ value[s] == null && nodeStyle.removeProperty(s);
2509
+ delete prev[s];
2510
+ }
2511
+ for(s in value){
2512
+ v = value[s];
2513
+ if (v !== prev[s]) {
2514
+ nodeStyle.setProperty(s, v);
2515
+ prev[s] = v;
2516
+ }
2517
+ }
2518
+ return prev;
2519
+ }
2520
+ function spread(node, props = {}, isSVG, skipChildren) {
2521
+ const prevProps = {};
2522
+ if (!skipChildren) (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(()=>prevProps.children = insertExpression(node, props.children, prevProps.children));
2523
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(()=>typeof props.ref === "function" && use(props.ref, node));
2524
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(()=>assign(node, props, isSVG, true, prevProps, true));
2525
+ return prevProps;
2526
+ }
2527
+ function dynamicProperty(props, key) {
2528
+ const src = props[key];
2529
+ Object.defineProperty(props, key, {
2530
+ get () {
2531
+ return src();
2532
+ },
2533
+ enumerable: true
2534
+ });
2535
+ return props;
2536
+ }
2537
+ function use(fn, element, arg) {
2538
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(()=>fn(element, arg));
2539
+ }
2540
+ function insert(parent, accessor, marker, initial) {
2541
+ if (marker !== undefined && !initial) initial = [];
2542
+ if (typeof accessor !== "function") return insertExpression(parent, accessor, initial, marker);
2543
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)((current)=>insertExpression(parent, accessor(), current, marker), initial);
2544
+ }
2545
+ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
2546
+ props || (props = {});
2547
+ for(const prop in prevProps)if (!(prop in props)) {
2548
+ if (prop === "children") continue;
2549
+ prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
2550
+ }
2551
+ for(const prop in props){
2552
+ if (prop === "children") {
2553
+ if (!skipChildren) insertExpression(node, props.children);
2554
+ continue;
2555
+ }
2556
+ const value = props[prop];
2557
+ prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef, props);
2558
+ }
2559
+ }
2560
+ function hydrate$1(code, element, options = {}) {
2561
+ if (globalThis._$HY.done) return render(code, element, [
2562
+ ...element.childNodes
2563
+ ], options);
2564
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = globalThis._$HY.completed;
2565
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = globalThis._$HY.events;
2566
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.load = (id)=>globalThis._$HY.r[id];
2567
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.has = (id)=>id in globalThis._$HY.r;
2568
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.gather = (root)=>gatherHydratable(element, root);
2569
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry = new Map();
2570
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context = {
2571
+ id: options.renderId || "",
2572
+ count: 0
2573
+ };
2574
+ try {
2575
+ gatherHydratable(element, options.renderId);
2576
+ return render(code, element, [
2577
+ ...element.childNodes
2578
+ ], options);
2579
+ } finally{
2580
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context = null;
2581
+ }
2582
+ }
2583
+ function getNextElement(template) {
2584
+ let node, key, hydrating = isHydrating();
2585
+ if (!hydrating || !(node = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.get(key = getHydrationKey()))) return template();
2586
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed.add(node);
2587
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry["delete"](key);
2588
+ return node;
2589
+ }
2590
+ function getNextMatch(el, nodeName) {
2591
+ while(el && el.localName !== nodeName)el = el.nextSibling;
2592
+ return el;
2593
+ }
2594
+ function getNextMarker(start) {
2595
+ let end = start, count = 0, current = [];
2596
+ if (isHydrating(start)) while(end){
2597
+ if (end.nodeType === 8) {
2598
+ const v = end.nodeValue;
2599
+ if (v === "$") count++;
2600
+ else if (v === "/") {
2601
+ if (count === 0) return [
2602
+ end,
2603
+ current
2604
+ ];
2605
+ count--;
2606
+ }
2607
+ }
2608
+ current.push(end);
2609
+ end = end.nextSibling;
2610
+ }
2611
+ return [
2612
+ end,
2613
+ current
2614
+ ];
2615
+ }
2616
+ function runHydrationEvents() {
2617
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued) {
2618
+ queueMicrotask(()=>{
2619
+ const { completed, events } = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig;
2620
+ if (!events) return;
2621
+ events.queued = false;
2622
+ while(events.length){
2623
+ const [el, e] = events[0];
2624
+ if (!completed.has(el)) return;
2625
+ events.shift();
2626
+ eventHandler(e);
2627
+ }
2628
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done) {
2629
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = _$HY.events = null;
2630
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = _$HY.completed = null;
2631
+ }
2632
+ });
2633
+ solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued = true;
2634
+ }
2635
+ }
2636
+ function isHydrating(node) {
2637
+ return !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done && (!node || node.isConnected);
2638
+ }
2639
+ function toPropertyName(name) {
2640
+ return name.toLowerCase().replace(/-([a-z])/g, (_, w)=>w.toUpperCase());
2641
+ }
2642
+ function toggleClassKey(node, key, value) {
2643
+ const classNames = key.trim().split(/\s+/);
2644
+ for(let i = 0, nameLen = classNames.length; i < nameLen; i++)node.classList.toggle(classNames[i], value);
2645
+ }
2646
+ function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
2647
+ let isCE, isProp, isChildProp, propAlias, forceProp;
2648
+ if (prop === "style") return style(node, value, prev);
2649
+ if (prop === "classList") return classList(node, value, prev);
2650
+ if (value === prev) return prev;
2651
+ if (prop === "ref") {
2652
+ if (!skipRef) value(node);
2653
+ } else if (prop.slice(0, 3) === "on:") {
2654
+ const e = prop.slice(3);
2655
+ prev && node.removeEventListener(e, prev, typeof prev !== "function" && prev);
2656
+ value && node.addEventListener(e, value, typeof value !== "function" && value);
2657
+ } else if (prop.slice(0, 10) === "oncapture:") {
2658
+ const e = prop.slice(10);
2659
+ prev && node.removeEventListener(e, prev, true);
2660
+ value && node.addEventListener(e, value, true);
2661
+ } else if (prop.slice(0, 2) === "on") {
2662
+ const name = prop.slice(2).toLowerCase();
2663
+ const delegate = DelegatedEvents.has(name);
2664
+ if (!delegate && prev) {
2665
+ const h = Array.isArray(prev) ? prev[0] : prev;
2666
+ node.removeEventListener(name, h);
2667
+ }
2668
+ if (delegate || value) {
2669
+ addEventListener(node, name, value, delegate);
2670
+ delegate && delegateEvents([
2671
+ name
2672
+ ]);
2673
+ }
2674
+ } else if (prop.slice(0, 5) === "attr:") setAttribute(node, prop.slice(5), value);
2675
+ else if (prop.slice(0, 5) === "bool:") setBoolAttribute(node, prop.slice(5), value);
2676
+ else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-") || "is" in props)) {
2677
+ if (forceProp) {
2678
+ prop = prop.slice(5);
2679
+ isProp = true;
2680
+ } else if (isHydrating(node)) return value;
2681
+ if (prop === "class" || prop === "className") className(node, value);
2682
+ else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
2683
+ else node[propAlias || prop] = value;
2684
+ } else {
2685
+ const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
2686
+ if (ns) setAttributeNS(node, ns, prop, value);
2687
+ else setAttribute(node, Aliases[prop] || prop, value);
2688
+ }
2689
+ return value;
2690
+ }
2691
+ function eventHandler(e) {
2692
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry && solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events) {
2693
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.find(([el, ev])=>ev === e)) return;
2694
+ }
2695
+ let node = e.target;
2696
+ const key = `$$${e.type}`;
2697
+ const oriTarget = e.target;
2698
+ const oriCurrentTarget = e.currentTarget;
2699
+ const retarget = (value)=>Object.defineProperty(e, "target", {
2700
+ configurable: true,
2701
+ value
2702
+ });
2703
+ const handleNode = ()=>{
2704
+ const handler = node[key];
2705
+ if (handler && !node.disabled) {
2706
+ const data = node[`${key}Data`];
2707
+ data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
2708
+ if (e.cancelBubble) return;
2709
+ }
2710
+ node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
2711
+ return true;
2712
+ };
2713
+ const walkUpTree = ()=>{
2714
+ while(handleNode() && (node = node._$host || node.parentNode || node.host));
2715
+ };
2716
+ Object.defineProperty(e, "currentTarget", {
2717
+ configurable: true,
2718
+ get () {
2719
+ return node || document;
2720
+ }
2721
+ });
2722
+ if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done = _$HY.done = true;
2723
+ if (e.composedPath) {
2724
+ const path = e.composedPath();
2725
+ retarget(path[0]);
2726
+ for(let i = 0; i < path.length - 2; i++){
2727
+ node = path[i];
2728
+ if (!handleNode()) break;
2729
+ if (node._$host) {
2730
+ node = node._$host;
2731
+ walkUpTree();
2732
+ break;
2733
+ }
2734
+ if (node.parentNode === oriCurrentTarget) break;
2735
+ }
2736
+ } else walkUpTree();
2737
+ retarget(oriTarget);
2738
+ }
2739
+ function insertExpression(parent, value, current, marker, unwrapArray) {
2740
+ const hydrating = isHydrating(parent);
2741
+ if (hydrating) {
2742
+ !current && (current = [
2743
+ ...parent.childNodes
2744
+ ]);
2745
+ let cleaned = [];
2746
+ for(let i = 0; i < current.length; i++){
2747
+ const node = current[i];
2748
+ if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
2749
+ else cleaned.push(node);
2750
+ }
2751
+ current = cleaned;
2752
+ }
2753
+ while(typeof current === "function")current = current();
2754
+ if (value === current) return current;
2755
+ const t = typeof value, multi = marker !== undefined;
2756
+ parent = multi && current[0] && current[0].parentNode || parent;
2757
+ if (t === "string" || t === "number") {
2758
+ if (hydrating) return current;
2759
+ if (t === "number") {
2760
+ value = value.toString();
2761
+ if (value === current) return current;
2762
+ }
2763
+ if (multi) {
2764
+ let node = current[0];
2765
+ if (node && node.nodeType === 3) node.data !== value && (node.data = value);
2766
+ else node = document.createTextNode(value);
2767
+ current = cleanChildren(parent, current, marker, node);
2768
+ } else if (current !== "" && typeof current === "string") current = parent.firstChild.data = value;
2769
+ else current = parent.textContent = value;
2770
+ } else if (value == null || t === "boolean") {
2771
+ if (hydrating) return current;
2772
+ current = cleanChildren(parent, current, marker);
2773
+ } else if (t === "function") {
2774
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(()=>{
2775
+ let v = value();
2776
+ while(typeof v === "function")v = v();
2777
+ current = insertExpression(parent, v, current, marker);
2778
+ });
2779
+ return ()=>current;
2780
+ } else if (Array.isArray(value)) {
2781
+ const array = [];
2782
+ const currentArray = current && Array.isArray(current);
2783
+ if (normalizeIncomingArray(array, value, current, unwrapArray)) {
2784
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(()=>current = insertExpression(parent, array, current, marker, true));
2785
+ return ()=>current;
2786
+ }
2787
+ if (hydrating) {
2788
+ if (!array.length) return current;
2789
+ if (marker === undefined) return current = [
2790
+ ...parent.childNodes
2791
+ ];
2792
+ let node = array[0];
2793
+ if (node.parentNode !== parent) return current;
2794
+ const nodes = [
2795
+ node
2796
+ ];
2797
+ while((node = node.nextSibling) !== marker)nodes.push(node);
2798
+ return current = nodes;
2799
+ }
2800
+ if (array.length === 0) {
2801
+ current = cleanChildren(parent, current, marker);
2802
+ if (multi) return current;
2803
+ } else if (currentArray) {
2804
+ if (current.length === 0) appendNodes(parent, array, marker);
2805
+ else reconcileArrays(parent, current, array);
2806
+ } else {
2807
+ current && cleanChildren(parent);
2808
+ appendNodes(parent, array);
2809
+ }
2810
+ current = array;
2811
+ } else if (value.nodeType) {
2812
+ if (hydrating && value.parentNode) return current = multi ? [
2813
+ value
2814
+ ] : value;
2815
+ if (Array.isArray(current)) {
2816
+ if (multi) return current = cleanChildren(parent, current, marker, value);
2817
+ cleanChildren(parent, current, null, value);
2818
+ } else if (current == null || current === "" || !parent.firstChild) parent.appendChild(value);
2819
+ else parent.replaceChild(value, parent.firstChild);
2820
+ current = value;
2821
+ }
2822
+ return current;
2823
+ }
2824
+ function normalizeIncomingArray(normalized, array, current, unwrap) {
2825
+ let dynamic = false;
2826
+ for(let i = 0, len = array.length; i < len; i++){
2827
+ let item = array[i], prev = current && current[normalized.length], t;
2828
+ if (item == null || item === true || item === false) ;
2829
+ else if ((t = typeof item) === "object" && item.nodeType) normalized.push(item);
2830
+ else if (Array.isArray(item)) dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
2831
+ else if (t === "function") {
2832
+ if (unwrap) {
2833
+ while(typeof item === "function")item = item();
2834
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [
2835
+ item
2836
+ ], Array.isArray(prev) ? prev : [
2837
+ prev
2838
+ ]) || dynamic;
2839
+ } else {
2840
+ normalized.push(item);
2841
+ dynamic = true;
2842
+ }
2843
+ } else {
2844
+ const value = String(item);
2845
+ if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
2846
+ else normalized.push(document.createTextNode(value));
2847
+ }
2848
+ }
2849
+ return dynamic;
2850
+ }
2851
+ function appendNodes(parent, array, marker = null) {
2852
+ for(let i = 0, len = array.length; i < len; i++)parent.insertBefore(array[i], marker);
2853
+ }
2854
+ function cleanChildren(parent, current, marker, replacement) {
2855
+ if (marker === undefined) return parent.textContent = "";
2856
+ const node = replacement || document.createTextNode("");
2857
+ if (current.length) {
2858
+ let inserted = false;
2859
+ for(let i = current.length - 1; i >= 0; i--){
2860
+ const el = current[i];
2861
+ if (node !== el) {
2862
+ const isParent = el.parentNode === parent;
2863
+ if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
2864
+ else isParent && el.remove();
2865
+ } else inserted = true;
2866
+ }
2867
+ } else parent.insertBefore(node, marker);
2868
+ return [
2869
+ node
2870
+ ];
2871
+ }
2872
+ function gatherHydratable(element, root) {
2873
+ const templates = element.querySelectorAll(`*[data-hk]`);
2874
+ for(let i = 0; i < templates.length; i++){
2875
+ const node = templates[i];
2876
+ const key = node.getAttribute("data-hk");
2877
+ if ((!root || key.startsWith(root)) && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.has(key)) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.set(key, node);
2878
+ }
2879
+ }
2880
+ function getHydrationKey() {
2881
+ return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.getNextContextId();
2882
+ }
2883
+ function NoHydration(props) {
2884
+ return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context ? undefined : props.children;
2885
+ }
2886
+ function Hydration(props) {
2887
+ return props.children;
2888
+ }
2889
+ const voidFn = ()=>undefined;
2890
+ const RequestContext = Symbol();
2891
+ function innerHTML(parent, content) {
2892
+ !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && (parent.innerHTML = content);
2893
+ }
2894
+ function throwInBrowser(func) {
2895
+ const err = new Error(`${func.name} is not supported in the browser, returning undefined`);
2896
+ console.error(err);
2897
+ }
2898
+ function renderToString(fn, options) {
2899
+ throwInBrowser(renderToString);
2900
+ }
2901
+ function renderToStringAsync(fn, options) {
2902
+ throwInBrowser(renderToStringAsync);
2903
+ }
2904
+ function renderToStream(fn, options) {
2905
+ throwInBrowser(renderToStream);
2906
+ }
2907
+ function ssr(template, ...nodes) {}
2908
+ function ssrElement(name, props, children, needsId) {}
2909
+ function ssrClassList(value) {}
2910
+ function ssrStyle(value) {}
2911
+ function ssrAttribute(key, value) {}
2912
+ function ssrHydrationKey() {}
2913
+ function resolveSSRNode(node) {}
2914
+ function escape(html) {}
2915
+ function ssrSpread(props, isSVG, skipChildren) {}
2916
+ const isServer = false;
2917
+ const isDev = false;
2918
+ const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
2919
+ function createElement(tagName, isSVG = false) {
2920
+ return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
2921
+ }
2922
+ const hydrate = (...args)=>{
2923
+ /* "solid-js" unused */null();
2924
+ return hydrate$1(...args);
2925
+ };
2926
+ function Portal(props) {
2927
+ const { useShadow } = props, marker = document.createTextNode(""), mount = ()=>props.mount || document.body, owner = (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)();
2928
+ let content;
2929
+ let hydrating = !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context;
2930
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(()=>{
2931
+ if (hydrating) (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)().user = hydrating = false;
2932
+ content || (content = /* "solid-js" unused */null(owner, ()=>(0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(()=>props.children)));
2933
+ const el = mount();
2934
+ if (el instanceof HTMLHeadElement) {
2935
+ const [clean, setClean] = (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createSignal)(false);
2936
+ const cleanup = ()=>setClean(true);
2937
+ /* "solid-js" unused */null((dispose)=>insert(el, ()=>!clean() ? content() : dispose(), null));
2938
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(cleanup);
2939
+ } else {
2940
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
2941
+ mode: "open"
2942
+ }) : container;
2943
+ Object.defineProperty(container, "_$host", {
2944
+ get () {
2945
+ return marker.parentNode;
2946
+ },
2947
+ configurable: true
2948
+ });
2949
+ insert(renderRoot, content);
2950
+ el.appendChild(container);
2951
+ props.ref && props.ref(container);
2952
+ (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(()=>el.removeChild(container));
2953
+ }
2954
+ }, undefined, {
2955
+ render: !hydrating
2956
+ });
2957
+ return marker;
2958
+ }
2959
+ function createDynamic(component, props) {
2960
+ const cached = (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(component);
2961
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(()=>{
2962
+ const component = cached();
2963
+ switch(typeof component){
2964
+ case "function":
2965
+ return (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(()=>component(props));
2966
+ case "string":
2967
+ const isSvg = SVGElements.has(component);
2968
+ const el = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context ? getNextElement() : createElement(component, isSvg);
2969
+ spread(el, props, isSvg);
2970
+ return el;
2971
+ }
2972
+ });
2973
+ }
2974
+ function Dynamic(props) {
2975
+ const [, others] = (0, solid_js__WEBPACK_IMPORTED_MODULE_0__.splitProps)(props, [
2976
+ "component"
2977
+ ]);
2978
+ return createDynamic(()=>props.component, others);
2979
+ }
2980
+
2981
+ }),
2982
+
2983
+ }
2984
+ // The module cache
2985
+ var __webpack_module_cache__ = {};
2986
+ function __webpack_require__(moduleId) {
2987
+ // Check if module is in cache
2988
+ var cachedModule = __webpack_module_cache__[moduleId];
2989
+ if (cachedModule !== undefined) {
2990
+ return cachedModule.exports;
2991
+ }
2992
+ // Create a new module (and put it into the cache)
2993
+ var module = (__webpack_module_cache__[moduleId] = {
2994
+ exports: {}
2995
+ });
2996
+ // Execute the module function
2997
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
2998
+ // Return the exports of the module
2999
+ return module.exports;
3000
+
3001
+ }
3002
+ // webpack/runtime/define_property_getters
3003
+ !function() {
3004
+ __webpack_require__.d = function(exports, definition) {
3005
+ for(var key in definition) {
3006
+ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3007
+ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3008
+ }
3009
+ }
3010
+ };
3011
+ }();
3012
+ // webpack/runtime/has_own_property
3013
+ !function() {
3014
+ __webpack_require__.o = function (obj, prop) {
3015
+ return Object.prototype.hasOwnProperty.call(obj, prop);
3016
+ };
3017
+
3018
+ }();
3019
+ // webpack/runtime/make_namespace_object
3020
+ !function() {
3021
+ // define __esModule on exports
3022
+ __webpack_require__.r = function(exports) {
3023
+ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3024
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3025
+ }
3026
+ Object.defineProperty(exports, '__esModule', { value: true });
3027
+ };
3028
+
3029
+ }();
3030
+ var __webpack_exports__ = __webpack_require__("8169");
3031
+ })()