godown 3.9.0 → 3.10.1

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 (617) hide show
  1. package/README.md +2 -2
  2. package/alert.d.ts +1 -8
  3. package/alert.d.ts.map +1 -1
  4. package/alert.js +1 -1
  5. package/alert.js.map +1 -1
  6. package/avatar.d.ts +1 -8
  7. package/avatar.d.ts.map +1 -1
  8. package/avatar.js +1 -1
  9. package/avatar.js.map +1 -1
  10. package/badge.d.ts +1 -8
  11. package/badge.d.ts.map +1 -1
  12. package/badge.js +1 -1
  13. package/badge.js.map +1 -1
  14. package/breath.d.ts +1 -8
  15. package/breath.d.ts.map +1 -1
  16. package/breath.js +1 -1
  17. package/breath.js.map +1 -1
  18. package/build/godown+lit.iife.js +12 -12
  19. package/build/godown+lit.iife.js.map +1 -1
  20. package/build/godown+lit.js +12 -12
  21. package/build/godown+lit.js.map +1 -1
  22. package/build/godown+lit.umd.js +12 -12
  23. package/build/godown+lit.umd.js.map +1 -1
  24. package/build/godown.iife.js +11 -11
  25. package/build/godown.js +10 -10
  26. package/build/godown.js.map +1 -1
  27. package/build/godown.umd.js +11 -11
  28. package/build/godown.umd.js.map +1 -1
  29. package/button.d.ts +1 -8
  30. package/button.d.ts.map +1 -1
  31. package/button.js +1 -1
  32. package/button.js.map +1 -1
  33. package/card.d.ts +1 -8
  34. package/card.d.ts.map +1 -1
  35. package/card.js +1 -1
  36. package/card.js.map +1 -1
  37. package/carousel.d.ts +1 -8
  38. package/carousel.d.ts.map +1 -1
  39. package/carousel.js +1 -1
  40. package/carousel.js.map +1 -1
  41. package/custom-elements.json +1 -1
  42. package/details.d.ts +1 -8
  43. package/details.d.ts.map +1 -1
  44. package/details.js +1 -1
  45. package/details.js.map +1 -1
  46. package/dialog.d.ts +1 -8
  47. package/dialog.d.ts.map +1 -1
  48. package/dialog.js +1 -1
  49. package/dialog.js.map +1 -1
  50. package/divider.d.ts +1 -8
  51. package/divider.d.ts.map +1 -1
  52. package/divider.js +1 -1
  53. package/divider.js.map +1 -1
  54. package/dragbox.d.ts +1 -8
  55. package/dragbox.d.ts.map +1 -1
  56. package/dragbox.js +1 -1
  57. package/dragbox.js.map +1 -1
  58. package/flex.d.ts +1 -8
  59. package/flex.d.ts.map +1 -1
  60. package/flex.js +1 -1
  61. package/flex.js.map +1 -1
  62. package/form.d.ts +1 -8
  63. package/form.d.ts.map +1 -1
  64. package/form.js +1 -1
  65. package/form.js.map +1 -1
  66. package/grid.d.ts +1 -8
  67. package/grid.d.ts.map +1 -1
  68. package/grid.js +1 -1
  69. package/grid.js.map +1 -1
  70. package/heading.d.ts +1 -8
  71. package/heading.d.ts.map +1 -1
  72. package/heading.js +1 -1
  73. package/heading.js.map +1 -1
  74. package/index.js +1 -1
  75. package/input.d.ts +1 -8
  76. package/input.d.ts.map +1 -1
  77. package/input.js +1 -1
  78. package/input.js.map +1 -1
  79. package/internal/direction.d.ts.map +1 -0
  80. package/internal/direction.js.map +1 -0
  81. package/internal/global-style.d.ts.map +1 -0
  82. package/internal/global-style.js.map +1 -0
  83. package/internal/outline.d.ts.map +1 -0
  84. package/internal/outline.js.map +1 -0
  85. package/internal/super-anchor.d.ts.map +1 -0
  86. package/{core → internal}/super-anchor.js +1 -1
  87. package/internal/super-anchor.js.map +1 -0
  88. package/internal/super-input.d.ts.map +1 -0
  89. package/{core → internal}/super-input.js +1 -1
  90. package/internal/super-input.js.map +1 -0
  91. package/internal/super-openable.d.ts.map +1 -0
  92. package/internal/super-openable.js.map +1 -0
  93. package/layout.d.ts +1 -8
  94. package/layout.d.ts.map +1 -1
  95. package/layout.js +1 -1
  96. package/layout.js.map +1 -1
  97. package/link.d.ts +1 -8
  98. package/link.d.ts.map +1 -1
  99. package/link.js +1 -1
  100. package/link.js.map +1 -1
  101. package/package.json +3 -3
  102. package/progress.d.ts +1 -8
  103. package/progress.d.ts.map +1 -1
  104. package/progress.js +1 -1
  105. package/progress.js.map +1 -1
  106. package/range.d.ts +1 -8
  107. package/range.d.ts.map +1 -1
  108. package/range.js +1 -1
  109. package/range.js.map +1 -1
  110. package/rotate.d.ts +1 -8
  111. package/rotate.d.ts.map +1 -1
  112. package/rotate.js +1 -1
  113. package/rotate.js.map +1 -1
  114. package/router.d.ts +1 -8
  115. package/router.d.ts.map +1 -1
  116. package/router.js +1 -1
  117. package/router.js.map +1 -1
  118. package/select.d.ts +1 -8
  119. package/select.d.ts.map +1 -1
  120. package/select.js +1 -1
  121. package/select.js.map +1 -1
  122. package/skeleton.d.ts +1 -8
  123. package/skeleton.d.ts.map +1 -1
  124. package/skeleton.js +1 -1
  125. package/skeleton.js.map +1 -1
  126. package/split.d.ts +1 -8
  127. package/split.d.ts.map +1 -1
  128. package/split.js +1 -1
  129. package/split.js.map +1 -1
  130. package/src/alert.ts +1 -13
  131. package/src/avatar.ts +1 -13
  132. package/src/badge.ts +1 -13
  133. package/src/breath.ts +1 -13
  134. package/src/button.ts +1 -13
  135. package/src/card.ts +1 -13
  136. package/src/carousel.ts +1 -13
  137. package/src/details.ts +1 -13
  138. package/src/dialog.ts +1 -13
  139. package/src/divider.ts +1 -13
  140. package/src/dragbox.ts +1 -13
  141. package/src/flex.ts +1 -13
  142. package/src/form.ts +1 -13
  143. package/src/grid.ts +1 -13
  144. package/src/heading.ts +1 -13
  145. package/src/input.ts +1 -13
  146. package/src/layout.ts +1 -13
  147. package/src/link.ts +1 -13
  148. package/src/progress.ts +1 -13
  149. package/src/range.ts +1 -13
  150. package/src/rotate.ts +1 -13
  151. package/src/router.ts +1 -13
  152. package/src/select.ts +1 -13
  153. package/src/skeleton.ts +1 -13
  154. package/src/split.ts +1 -13
  155. package/src/switch.ts +1 -13
  156. package/src/tabs.ts +1 -13
  157. package/src/text.ts +1 -13
  158. package/src/time.ts +1 -13
  159. package/src/tooltip.ts +1 -13
  160. package/src/typewriter.ts +1 -13
  161. package/src/{components/alert.ts → web-components/alert/component.ts} +1 -1
  162. package/src/web-components/alert/definition.ts +11 -0
  163. package/src/{components/avatar.ts → web-components/avatar/component.ts} +1 -1
  164. package/src/web-components/avatar/definition.ts +11 -0
  165. package/src/{components/badge.ts → web-components/badge/component.ts} +2 -2
  166. package/src/web-components/badge/definition.ts +11 -0
  167. package/src/{components/breath.ts → web-components/breath/component.ts} +4 -2
  168. package/src/web-components/breath/definition.ts +11 -0
  169. package/src/{components/button.ts → web-components/button/component.ts} +1 -1
  170. package/src/web-components/button/definition.ts +11 -0
  171. package/src/{components/card.ts → web-components/card/component.ts} +2 -2
  172. package/src/web-components/card/definition.ts +11 -0
  173. package/src/{components/carousel.ts → web-components/carousel/component.ts} +1 -1
  174. package/src/web-components/carousel/definition.ts +11 -0
  175. package/src/{components/details.ts → web-components/details/component.ts} +2 -2
  176. package/src/web-components/details/definition.ts +11 -0
  177. package/src/{components/dialog.ts → web-components/dialog/component.ts} +5 -3
  178. package/src/web-components/dialog/definition.ts +11 -0
  179. package/src/{components/divider.ts → web-components/divider/component.ts} +1 -1
  180. package/src/web-components/divider/definition.ts +11 -0
  181. package/src/{components/dragbox.ts → web-components/dragbox/component.ts} +1 -1
  182. package/src/web-components/dragbox/definition.ts +11 -0
  183. package/src/{components/flex.ts → web-components/flex/component.ts} +1 -1
  184. package/src/web-components/flex/definition.ts +11 -0
  185. package/src/{components/form.ts → web-components/form/component.ts} +1 -1
  186. package/src/web-components/form/definition.ts +11 -0
  187. package/src/{components/grid.ts → web-components/grid/component.ts} +1 -1
  188. package/src/web-components/grid/definition.ts +11 -0
  189. package/src/{components/heading.ts → web-components/heading/component.ts} +1 -1
  190. package/src/web-components/heading/definition.ts +11 -0
  191. package/src/{components/input.ts → web-components/input/component.ts} +3 -3
  192. package/src/web-components/input/definition.ts +11 -0
  193. package/src/{components/layout.ts → web-components/layout/component.ts} +1 -1
  194. package/src/web-components/layout/definition.ts +11 -0
  195. package/src/{components/link.ts → web-components/link/component.ts} +2 -2
  196. package/src/web-components/link/definition.ts +11 -0
  197. package/src/{components/progress.ts → web-components/progress/component.ts} +1 -1
  198. package/src/web-components/progress/definition.ts +11 -0
  199. package/src/{components/range.ts → web-components/range/component.ts} +2 -2
  200. package/src/web-components/range/definition.ts +11 -0
  201. package/src/{components/rotate.ts → web-components/rotate/component.ts} +1 -1
  202. package/src/web-components/rotate/definition.ts +11 -0
  203. package/src/{components/router.ts → web-components/router/component.ts} +1 -1
  204. package/src/web-components/router/definition.ts +11 -0
  205. package/src/{components/select.ts → web-components/select/component.ts} +3 -3
  206. package/src/web-components/select/definition.ts +11 -0
  207. package/src/{components/skeleton.ts → web-components/skeleton/component.ts} +1 -1
  208. package/src/web-components/skeleton/definition.ts +11 -0
  209. package/src/{components/split.ts → web-components/split/component.ts} +3 -3
  210. package/src/web-components/split/definition.ts +11 -0
  211. package/src/{components/switch.ts → web-components/switch/component.ts} +2 -2
  212. package/src/web-components/switch/definition.ts +11 -0
  213. package/src/{components/tabs.ts → web-components/tabs/component.ts} +2 -2
  214. package/src/web-components/tabs/definition.ts +11 -0
  215. package/src/{components/text.ts → web-components/text/component.ts} +1 -1
  216. package/src/web-components/text/definition.ts +11 -0
  217. package/src/{components/time.ts → web-components/time/component.ts} +1 -1
  218. package/src/web-components/time/definition.ts +11 -0
  219. package/src/{components/tooltip.ts → web-components/tooltip/component.ts} +3 -3
  220. package/src/web-components/tooltip/definition.ts +11 -0
  221. package/src/{components/typewriter.ts → web-components/typewriter/component.ts} +1 -1
  222. package/src/web-components/typewriter/definition.ts +11 -0
  223. package/switch.d.ts +1 -8
  224. package/switch.d.ts.map +1 -1
  225. package/switch.js +1 -1
  226. package/switch.js.map +1 -1
  227. package/tabs.d.ts +1 -8
  228. package/tabs.d.ts.map +1 -1
  229. package/tabs.js +1 -1
  230. package/tabs.js.map +1 -1
  231. package/text.d.ts +1 -8
  232. package/text.d.ts.map +1 -1
  233. package/text.js +1 -1
  234. package/text.js.map +1 -1
  235. package/time.d.ts +1 -8
  236. package/time.d.ts.map +1 -1
  237. package/time.js +1 -1
  238. package/time.js.map +1 -1
  239. package/tooltip.d.ts +1 -8
  240. package/tooltip.d.ts.map +1 -1
  241. package/tooltip.js +1 -1
  242. package/tooltip.js.map +1 -1
  243. package/typewriter.d.ts +1 -8
  244. package/typewriter.d.ts.map +1 -1
  245. package/typewriter.js +1 -1
  246. package/typewriter.js.map +1 -1
  247. package/vscode.html-custom-data.json +1 -1
  248. package/{components/alert.d.ts → web-components/alert/component.d.ts} +2 -2
  249. package/web-components/alert/component.d.ts.map +1 -0
  250. package/web-components/alert/component.js +2 -0
  251. package/web-components/alert/component.js.map +1 -0
  252. package/web-components/alert/definition.d.ts +8 -0
  253. package/web-components/alert/definition.d.ts.map +1 -0
  254. package/web-components/alert/definition.js +2 -0
  255. package/web-components/alert/definition.js.map +1 -0
  256. package/{components/avatar.d.ts → web-components/avatar/component.d.ts} +2 -2
  257. package/web-components/avatar/component.d.ts.map +1 -0
  258. package/web-components/avatar/component.js +2 -0
  259. package/web-components/avatar/component.js.map +1 -0
  260. package/web-components/avatar/definition.d.ts +8 -0
  261. package/web-components/avatar/definition.d.ts.map +1 -0
  262. package/web-components/avatar/definition.js +2 -0
  263. package/web-components/avatar/definition.js.map +1 -0
  264. package/{components/badge.d.ts → web-components/badge/component.d.ts} +3 -3
  265. package/web-components/badge/component.d.ts.map +1 -0
  266. package/web-components/badge/component.js +2 -0
  267. package/web-components/badge/component.js.map +1 -0
  268. package/web-components/badge/definition.d.ts +8 -0
  269. package/web-components/badge/definition.d.ts.map +1 -0
  270. package/web-components/badge/definition.js +2 -0
  271. package/web-components/badge/definition.js.map +1 -0
  272. package/{components/breath.d.ts → web-components/breath/component.d.ts} +2 -2
  273. package/web-components/breath/component.d.ts.map +1 -0
  274. package/web-components/breath/component.js +2 -0
  275. package/web-components/breath/component.js.map +1 -0
  276. package/web-components/breath/definition.d.ts +8 -0
  277. package/web-components/breath/definition.d.ts.map +1 -0
  278. package/web-components/breath/definition.js +2 -0
  279. package/web-components/breath/definition.js.map +1 -0
  280. package/{components/button.d.ts → web-components/button/component.d.ts} +2 -2
  281. package/web-components/button/component.d.ts.map +1 -0
  282. package/web-components/button/component.js +2 -0
  283. package/web-components/button/component.js.map +1 -0
  284. package/web-components/button/definition.d.ts +8 -0
  285. package/web-components/button/definition.d.ts.map +1 -0
  286. package/web-components/button/definition.js +2 -0
  287. package/web-components/button/definition.js.map +1 -0
  288. package/{components/card.d.ts → web-components/card/component.d.ts} +2 -2
  289. package/web-components/card/component.d.ts.map +1 -0
  290. package/web-components/card/component.js +2 -0
  291. package/web-components/card/component.js.map +1 -0
  292. package/web-components/card/definition.d.ts +8 -0
  293. package/web-components/card/definition.d.ts.map +1 -0
  294. package/web-components/card/definition.js +2 -0
  295. package/web-components/card/definition.js.map +1 -0
  296. package/{components/carousel.d.ts → web-components/carousel/component.d.ts} +2 -2
  297. package/web-components/carousel/component.d.ts.map +1 -0
  298. package/web-components/carousel/component.js +2 -0
  299. package/web-components/carousel/component.js.map +1 -0
  300. package/web-components/carousel/definition.d.ts +8 -0
  301. package/web-components/carousel/definition.d.ts.map +1 -0
  302. package/web-components/carousel/definition.js +2 -0
  303. package/web-components/carousel/definition.js.map +1 -0
  304. package/{components/details.d.ts → web-components/details/component.d.ts} +2 -2
  305. package/web-components/details/component.d.ts.map +1 -0
  306. package/web-components/details/component.js +2 -0
  307. package/web-components/details/component.js.map +1 -0
  308. package/web-components/details/definition.d.ts +8 -0
  309. package/web-components/details/definition.d.ts.map +1 -0
  310. package/web-components/details/definition.js +2 -0
  311. package/web-components/details/definition.js.map +1 -0
  312. package/{components/dialog.d.ts → web-components/dialog/component.d.ts} +2 -2
  313. package/web-components/dialog/component.d.ts.map +1 -0
  314. package/web-components/dialog/component.js +2 -0
  315. package/web-components/dialog/component.js.map +1 -0
  316. package/web-components/dialog/definition.d.ts +8 -0
  317. package/web-components/dialog/definition.d.ts.map +1 -0
  318. package/web-components/dialog/definition.js +2 -0
  319. package/web-components/dialog/definition.js.map +1 -0
  320. package/{components/divider.d.ts → web-components/divider/component.d.ts} +2 -2
  321. package/web-components/divider/component.d.ts.map +1 -0
  322. package/web-components/divider/component.js +2 -0
  323. package/web-components/divider/component.js.map +1 -0
  324. package/web-components/divider/definition.d.ts +8 -0
  325. package/web-components/divider/definition.d.ts.map +1 -0
  326. package/web-components/divider/definition.js +2 -0
  327. package/web-components/divider/definition.js.map +1 -0
  328. package/{components/dragbox.d.ts → web-components/dragbox/component.d.ts} +2 -2
  329. package/web-components/dragbox/component.d.ts.map +1 -0
  330. package/web-components/dragbox/component.js +2 -0
  331. package/web-components/dragbox/component.js.map +1 -0
  332. package/web-components/dragbox/definition.d.ts +8 -0
  333. package/web-components/dragbox/definition.d.ts.map +1 -0
  334. package/web-components/dragbox/definition.js +2 -0
  335. package/web-components/dragbox/definition.js.map +1 -0
  336. package/{components/flex.d.ts → web-components/flex/component.d.ts} +2 -2
  337. package/web-components/flex/component.d.ts.map +1 -0
  338. package/web-components/flex/component.js +2 -0
  339. package/web-components/flex/component.js.map +1 -0
  340. package/web-components/flex/definition.d.ts +8 -0
  341. package/web-components/flex/definition.d.ts.map +1 -0
  342. package/web-components/flex/definition.js +2 -0
  343. package/web-components/flex/definition.js.map +1 -0
  344. package/{components/form.d.ts → web-components/form/component.d.ts} +2 -2
  345. package/web-components/form/component.d.ts.map +1 -0
  346. package/web-components/form/component.js +2 -0
  347. package/web-components/form/component.js.map +1 -0
  348. package/web-components/form/definition.d.ts +8 -0
  349. package/web-components/form/definition.d.ts.map +1 -0
  350. package/web-components/form/definition.js +2 -0
  351. package/web-components/form/definition.js.map +1 -0
  352. package/{components/grid.d.ts → web-components/grid/component.d.ts} +2 -2
  353. package/web-components/grid/component.d.ts.map +1 -0
  354. package/web-components/grid/component.js +2 -0
  355. package/web-components/grid/component.js.map +1 -0
  356. package/web-components/grid/definition.d.ts +8 -0
  357. package/web-components/grid/definition.d.ts.map +1 -0
  358. package/web-components/grid/definition.js +2 -0
  359. package/web-components/grid/definition.js.map +1 -0
  360. package/{components/heading.d.ts → web-components/heading/component.d.ts} +2 -2
  361. package/web-components/heading/component.d.ts.map +1 -0
  362. package/web-components/heading/component.js +2 -0
  363. package/web-components/heading/component.js.map +1 -0
  364. package/web-components/heading/definition.d.ts +8 -0
  365. package/web-components/heading/definition.d.ts.map +1 -0
  366. package/web-components/heading/definition.js +2 -0
  367. package/web-components/heading/definition.js.map +1 -0
  368. package/{components/input.d.ts → web-components/input/component.d.ts} +2 -2
  369. package/web-components/input/component.d.ts.map +1 -0
  370. package/web-components/input/component.js +2 -0
  371. package/web-components/input/component.js.map +1 -0
  372. package/web-components/input/definition.d.ts +8 -0
  373. package/web-components/input/definition.d.ts.map +1 -0
  374. package/web-components/input/definition.js +2 -0
  375. package/web-components/input/definition.js.map +1 -0
  376. package/{components/layout.d.ts → web-components/layout/component.d.ts} +2 -2
  377. package/web-components/layout/component.d.ts.map +1 -0
  378. package/web-components/layout/component.js +2 -0
  379. package/web-components/layout/component.js.map +1 -0
  380. package/web-components/layout/definition.d.ts +8 -0
  381. package/web-components/layout/definition.d.ts.map +1 -0
  382. package/web-components/layout/definition.js +2 -0
  383. package/web-components/layout/definition.js.map +1 -0
  384. package/{components/link.d.ts → web-components/link/component.d.ts} +2 -2
  385. package/web-components/link/component.d.ts.map +1 -0
  386. package/web-components/link/component.js +2 -0
  387. package/web-components/link/component.js.map +1 -0
  388. package/web-components/link/definition.d.ts +8 -0
  389. package/web-components/link/definition.d.ts.map +1 -0
  390. package/web-components/link/definition.js +2 -0
  391. package/web-components/link/definition.js.map +1 -0
  392. package/{components/progress.d.ts → web-components/progress/component.d.ts} +2 -2
  393. package/web-components/progress/component.d.ts.map +1 -0
  394. package/web-components/progress/component.js +2 -0
  395. package/web-components/progress/component.js.map +1 -0
  396. package/web-components/progress/definition.d.ts +8 -0
  397. package/web-components/progress/definition.d.ts.map +1 -0
  398. package/web-components/progress/definition.js +2 -0
  399. package/web-components/progress/definition.js.map +1 -0
  400. package/{components/range.d.ts → web-components/range/component.d.ts} +2 -2
  401. package/web-components/range/component.d.ts.map +1 -0
  402. package/web-components/range/component.js +2 -0
  403. package/web-components/range/component.js.map +1 -0
  404. package/web-components/range/definition.d.ts +8 -0
  405. package/web-components/range/definition.d.ts.map +1 -0
  406. package/web-components/range/definition.js +2 -0
  407. package/web-components/range/definition.js.map +1 -0
  408. package/{components/rotate.d.ts → web-components/rotate/component.d.ts} +2 -2
  409. package/web-components/rotate/component.d.ts.map +1 -0
  410. package/web-components/rotate/component.js +2 -0
  411. package/web-components/rotate/component.js.map +1 -0
  412. package/web-components/rotate/definition.d.ts +8 -0
  413. package/web-components/rotate/definition.d.ts.map +1 -0
  414. package/web-components/rotate/definition.js +2 -0
  415. package/web-components/rotate/definition.js.map +1 -0
  416. package/{components/router.d.ts → web-components/router/component.d.ts} +2 -2
  417. package/web-components/router/component.d.ts.map +1 -0
  418. package/web-components/router/component.js +2 -0
  419. package/web-components/router/component.js.map +1 -0
  420. package/web-components/router/definition.d.ts +8 -0
  421. package/web-components/router/definition.d.ts.map +1 -0
  422. package/web-components/router/definition.js +2 -0
  423. package/web-components/router/definition.js.map +1 -0
  424. package/{components/select.d.ts → web-components/select/component.d.ts} +3 -3
  425. package/web-components/select/component.d.ts.map +1 -0
  426. package/web-components/select/component.js +2 -0
  427. package/web-components/select/component.js.map +1 -0
  428. package/web-components/select/definition.d.ts +8 -0
  429. package/web-components/select/definition.d.ts.map +1 -0
  430. package/web-components/select/definition.js +2 -0
  431. package/web-components/select/definition.js.map +1 -0
  432. package/{components/skeleton.d.ts → web-components/skeleton/component.d.ts} +2 -2
  433. package/web-components/skeleton/component.d.ts.map +1 -0
  434. package/web-components/skeleton/component.js +2 -0
  435. package/web-components/skeleton/component.js.map +1 -0
  436. package/web-components/skeleton/definition.d.ts +8 -0
  437. package/web-components/skeleton/definition.d.ts.map +1 -0
  438. package/web-components/skeleton/definition.js +2 -0
  439. package/web-components/skeleton/definition.js.map +1 -0
  440. package/{components/split.d.ts → web-components/split/component.d.ts} +2 -2
  441. package/web-components/split/component.d.ts.map +1 -0
  442. package/web-components/split/component.js +2 -0
  443. package/web-components/split/component.js.map +1 -0
  444. package/web-components/split/definition.d.ts +8 -0
  445. package/web-components/split/definition.d.ts.map +1 -0
  446. package/web-components/split/definition.js +2 -0
  447. package/web-components/split/definition.js.map +1 -0
  448. package/{components/switch.d.ts → web-components/switch/component.d.ts} +2 -2
  449. package/web-components/switch/component.d.ts.map +1 -0
  450. package/web-components/switch/component.js +2 -0
  451. package/web-components/switch/component.js.map +1 -0
  452. package/web-components/switch/definition.d.ts +8 -0
  453. package/web-components/switch/definition.d.ts.map +1 -0
  454. package/web-components/switch/definition.js +2 -0
  455. package/web-components/switch/definition.js.map +1 -0
  456. package/{components/tabs.d.ts → web-components/tabs/component.d.ts} +3 -3
  457. package/web-components/tabs/component.d.ts.map +1 -0
  458. package/web-components/tabs/component.js +2 -0
  459. package/web-components/tabs/component.js.map +1 -0
  460. package/web-components/tabs/definition.d.ts +8 -0
  461. package/web-components/tabs/definition.d.ts.map +1 -0
  462. package/web-components/tabs/definition.js +2 -0
  463. package/web-components/tabs/definition.js.map +1 -0
  464. package/{components/text.d.ts → web-components/text/component.d.ts} +2 -2
  465. package/web-components/text/component.d.ts.map +1 -0
  466. package/web-components/text/component.js +2 -0
  467. package/web-components/text/component.js.map +1 -0
  468. package/web-components/text/definition.d.ts +8 -0
  469. package/web-components/text/definition.d.ts.map +1 -0
  470. package/web-components/text/definition.js +2 -0
  471. package/web-components/text/definition.js.map +1 -0
  472. package/{components/time.d.ts → web-components/time/component.d.ts} +2 -2
  473. package/web-components/time/component.d.ts.map +1 -0
  474. package/web-components/time/component.js +2 -0
  475. package/web-components/time/component.js.map +1 -0
  476. package/web-components/time/definition.d.ts +8 -0
  477. package/web-components/time/definition.d.ts.map +1 -0
  478. package/web-components/time/definition.js +2 -0
  479. package/web-components/time/definition.js.map +1 -0
  480. package/{components/tooltip.d.ts → web-components/tooltip/component.d.ts} +3 -3
  481. package/web-components/tooltip/component.d.ts.map +1 -0
  482. package/web-components/tooltip/component.js +2 -0
  483. package/web-components/tooltip/component.js.map +1 -0
  484. package/web-components/tooltip/definition.d.ts +8 -0
  485. package/web-components/tooltip/definition.d.ts.map +1 -0
  486. package/web-components/tooltip/definition.js +2 -0
  487. package/web-components/tooltip/definition.js.map +1 -0
  488. package/{components/typewriter.d.ts → web-components/typewriter/component.d.ts} +2 -2
  489. package/web-components/typewriter/component.d.ts.map +1 -0
  490. package/web-components/typewriter/component.js +2 -0
  491. package/web-components/typewriter/component.js.map +1 -0
  492. package/web-components/typewriter/definition.d.ts +8 -0
  493. package/web-components/typewriter/definition.d.ts.map +1 -0
  494. package/web-components/typewriter/definition.js +2 -0
  495. package/web-components/typewriter/definition.js.map +1 -0
  496. package/web-types.json +1 -1
  497. package/components/alert.d.ts.map +0 -1
  498. package/components/alert.js +0 -2
  499. package/components/alert.js.map +0 -1
  500. package/components/avatar.d.ts.map +0 -1
  501. package/components/avatar.js +0 -2
  502. package/components/avatar.js.map +0 -1
  503. package/components/badge.d.ts.map +0 -1
  504. package/components/badge.js +0 -2
  505. package/components/badge.js.map +0 -1
  506. package/components/breath.d.ts.map +0 -1
  507. package/components/breath.js +0 -2
  508. package/components/breath.js.map +0 -1
  509. package/components/button.d.ts.map +0 -1
  510. package/components/button.js +0 -2
  511. package/components/button.js.map +0 -1
  512. package/components/card.d.ts.map +0 -1
  513. package/components/card.js +0 -2
  514. package/components/card.js.map +0 -1
  515. package/components/carousel.d.ts.map +0 -1
  516. package/components/carousel.js +0 -2
  517. package/components/carousel.js.map +0 -1
  518. package/components/details.d.ts.map +0 -1
  519. package/components/details.js +0 -2
  520. package/components/details.js.map +0 -1
  521. package/components/dialog.d.ts.map +0 -1
  522. package/components/dialog.js +0 -2
  523. package/components/dialog.js.map +0 -1
  524. package/components/divider.d.ts.map +0 -1
  525. package/components/divider.js +0 -2
  526. package/components/divider.js.map +0 -1
  527. package/components/dragbox.d.ts.map +0 -1
  528. package/components/dragbox.js +0 -2
  529. package/components/dragbox.js.map +0 -1
  530. package/components/flex.d.ts.map +0 -1
  531. package/components/flex.js +0 -2
  532. package/components/flex.js.map +0 -1
  533. package/components/form.d.ts.map +0 -1
  534. package/components/form.js +0 -2
  535. package/components/form.js.map +0 -1
  536. package/components/grid.d.ts.map +0 -1
  537. package/components/grid.js +0 -2
  538. package/components/grid.js.map +0 -1
  539. package/components/heading.d.ts.map +0 -1
  540. package/components/heading.js +0 -2
  541. package/components/heading.js.map +0 -1
  542. package/components/input.d.ts.map +0 -1
  543. package/components/input.js +0 -2
  544. package/components/input.js.map +0 -1
  545. package/components/layout.d.ts.map +0 -1
  546. package/components/layout.js +0 -2
  547. package/components/layout.js.map +0 -1
  548. package/components/link.d.ts.map +0 -1
  549. package/components/link.js +0 -2
  550. package/components/link.js.map +0 -1
  551. package/components/progress.d.ts.map +0 -1
  552. package/components/progress.js +0 -2
  553. package/components/progress.js.map +0 -1
  554. package/components/range.d.ts.map +0 -1
  555. package/components/range.js +0 -2
  556. package/components/range.js.map +0 -1
  557. package/components/rotate.d.ts.map +0 -1
  558. package/components/rotate.js +0 -2
  559. package/components/rotate.js.map +0 -1
  560. package/components/router.d.ts.map +0 -1
  561. package/components/router.js +0 -2
  562. package/components/router.js.map +0 -1
  563. package/components/select.d.ts.map +0 -1
  564. package/components/select.js +0 -2
  565. package/components/select.js.map +0 -1
  566. package/components/skeleton.d.ts.map +0 -1
  567. package/components/skeleton.js +0 -2
  568. package/components/skeleton.js.map +0 -1
  569. package/components/split.d.ts.map +0 -1
  570. package/components/split.js +0 -2
  571. package/components/split.js.map +0 -1
  572. package/components/switch.d.ts.map +0 -1
  573. package/components/switch.js +0 -2
  574. package/components/switch.js.map +0 -1
  575. package/components/tabs.d.ts.map +0 -1
  576. package/components/tabs.js +0 -2
  577. package/components/tabs.js.map +0 -1
  578. package/components/text.d.ts.map +0 -1
  579. package/components/text.js +0 -2
  580. package/components/text.js.map +0 -1
  581. package/components/time.d.ts.map +0 -1
  582. package/components/time.js +0 -2
  583. package/components/time.js.map +0 -1
  584. package/components/tooltip.d.ts.map +0 -1
  585. package/components/tooltip.js +0 -2
  586. package/components/tooltip.js.map +0 -1
  587. package/components/typewriter.d.ts.map +0 -1
  588. package/components/typewriter.js +0 -2
  589. package/components/typewriter.js.map +0 -1
  590. package/core/direction.d.ts.map +0 -1
  591. package/core/direction.js.map +0 -1
  592. package/core/global-style.d.ts.map +0 -1
  593. package/core/global-style.js.map +0 -1
  594. package/core/outline.d.ts.map +0 -1
  595. package/core/outline.js.map +0 -1
  596. package/core/super-anchor.d.ts.map +0 -1
  597. package/core/super-anchor.js.map +0 -1
  598. package/core/super-input.d.ts.map +0 -1
  599. package/core/super-input.js.map +0 -1
  600. package/core/super-openable.d.ts.map +0 -1
  601. package/core/super-openable.js.map +0 -1
  602. /package/{core → internal}/direction.d.ts +0 -0
  603. /package/{core → internal}/direction.js +0 -0
  604. /package/{core → internal}/global-style.d.ts +0 -0
  605. /package/{core → internal}/global-style.js +0 -0
  606. /package/{core → internal}/outline.d.ts +0 -0
  607. /package/{core → internal}/outline.js +0 -0
  608. /package/{core → internal}/super-anchor.d.ts +0 -0
  609. /package/{core → internal}/super-input.d.ts +0 -0
  610. /package/{core → internal}/super-openable.d.ts +0 -0
  611. /package/{core → internal}/super-openable.js +0 -0
  612. /package/src/{core → internal}/direction.ts +0 -0
  613. /package/src/{core → internal}/global-style.ts +0 -0
  614. /package/src/{core → internal}/outline.ts +0 -0
  615. /package/src/{core → internal}/super-anchor.ts +0 -0
  616. /package/src/{core → internal}/super-input.ts +0 -0
  617. /package/src/{core → internal}/super-openable.ts +0 -0
@@ -1,59 +1,59 @@
1
1
  var Godown=function(t){"use strict";
2
2
  /**
3
3
  * @license MIT
4
- * @version 3.9.0
5
- */function e(t,e,o,s){var a,l=arguments.length,h=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(h=(l<3?a(h):l>3?a(e,o,h):a(e,o))||h);return l>3&&h&&Object.defineProperty(e,o,h),h}"function"==typeof SuppressedError&&SuppressedError;const o=t=>null==t,s=t=>"string"==typeof t,a=t=>null!==t&&"object"==typeof t,{isArray:l}=Array,h=(t,...e)=>{const o={};for(const s in t)e.includes(s)||(o[s]=t[s]);return o},c=(t,e,o)=>(t?t+(e?o+e:""):e)||"",d=(t,e,o)=>t.startsWith(e)&&t.endsWith(o),p=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");function*u(t){for(const[e,o]of l(t)?t:Object.entries(t))yield[e,o]}const v=t=>{let e="";for(const[o,s]of u(t))if(s){const t=a(s)&&!("_$cssResult$"in s)?f(s):s;t&&(e+=o?`${o}{${t}}`:t)}return e},f=t=>{let e="";for(const[s,a]of u(t))s&&!o(a)&&(e+=`${s}:${a};`);return e};class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle(this.host);this.styleID=e?t.push((t=>{if(!(t instanceof CSSStyleSheet)){const e=new CSSStyleSheet;return e.replaceSync(String(t)),e}return t})(e))-1:void 0}}const m=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},g=(t,e)=>o=>{t||=p(o.name),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:s=customElements})=>a=>{a.elementTagName=t,e&&m(e)(a),o&&!s.get(t)&&s.define(t,a)})({tagName:o.godownConfig.tag(t),...e})(o)}
4
+ * @version 3.10.1
5
+ */function e(t,e,o,s){var a,l=arguments.length,h=l<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(h=(l<3?a(h):l>3?a(e,o,h):a(e,o))||h);return l>3&&h&&Object.defineProperty(e,o,h),h}"function"==typeof SuppressedError&&SuppressedError;const o=t=>null==t,s=t=>"string"==typeof t,a=t=>null!==t&&"object"==typeof t,{isArray:l}=Array,h=(t,...e)=>{const o={};for(const s in t)e.includes(s)||(o[s]=t[s]);return o},c=(t,e,o)=>(t?t+(e?o+e:""):e)||"",d=(t,e,o)=>t.startsWith(e)&&t.endsWith(o),p=t=>(t=>{var e;return(null===(e=t.match(/[A-Z][^A-Z_-\s]*|[^A-Z_-\s]+/g))||void 0===e?void 0:e.map((t=>t.toLowerCase())))||[]})(t).join("-");function*u(t){for(const[e,o]of l(t)?t:Object.entries(t))yield[e,o]}const v=t=>a(t)&&"_$cssResult$"in t,f=t=>{let e="";for(const[o,s]of u(t))if(s){const t=a(s)&&!v(s)?m(s):s;t&&(e+=o?`${o}{${t}}`:t)}return e},m=t=>{let e="";for(const[s,a]of u(t))s&&!o(a)&&(e+=`${s}:${a};`);return e};class StyleController{constructor(t,e){(this.host=t).addController(this),this.computeStyle=e}hostUpdated(){const t=this.host.shadowRoot?.adoptedStyleSheets;if(!t)return;void 0!==this.styleID&&t.splice(this.styleID,1);const e=this.computeStyle();this.styleID=e?t.push((t=>{if(s(t)){const e=new CSSStyleSheet;return e.replaceSync(t),e}return v(t)?t.styleSheet:t})(e))-1:void 0}}const g=(...t)=>e=>{const o=[];for(let t=Object.getPrototypeOf(e);t.styles;t=Object.getPrototypeOf(t))o.push(t.styles);e.styles=[...o,...t]},y=(t,e)=>o=>{t||=p(o.name),o.protoName=t;(({tagName:t,styles:e,autoDefine:o=!1,registry:s=customElements})=>a=>{a.elementTagName=t,e&&g(e)(a),o&&!s.get(t)&&s.define(t,a)})({tagName:o.godownConfig.tag(t),...e})(o)}
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2019 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */,y=globalThis,$=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_=Symbol(),w=new WeakMap;let x=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==_)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&w.set(e,t))}return t}toString(){return this.cssText}};const C=t=>new x("string"==typeof t?t:t+"",void 0,_),S=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[s+1]),t[0]);return new x(o,t,_)},A=$?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return C(e)})(t):t
10
+ */,$=globalThis,_=$.ShadowRoot&&(void 0===$.ShadyCSS||$.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,w=Symbol(),x=new WeakMap;let C=class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==w)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(_&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&x.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new C("string"==typeof t?t:t+"",void 0,w),A=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[s+1]),t[0]);return new C(o,t,w)},E=_?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return S(e)})(t):t
11
11
  /**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */,{is:E,defineProperty:T,getOwnPropertyDescriptor:P,getOwnPropertyNames:O,getOwnPropertySymbols:B,getPrototypeOf:D}=Object,U=globalThis,V=U.trustedTypes,j=V?V.emptyScript:"",G=U.reactiveElementPolyfillSupport,F=(t,e)=>t,q={toAttribute(t,e){switch(e){case Boolean:t=t?j:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},W=(t,e)=>!E(t,e),Y={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:W};Symbol.metadata??=Symbol("metadata"),U.litPropertyMetadata??=new WeakMap;let Z=class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Y){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&T(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:a}=P(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){const l=s?.call(this);a.call(this,e),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Y}static _$Ei(){if(this.hasOwnProperty(F("elementProperties")))return;const t=D(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(F("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(F("properties"))){const t=this.properties,e=[...O(t),...B(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(A(t))}else void 0!==t&&e.push(A(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if($)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=y.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const a=(void 0!==o.converter?.toAttribute?o.converter:q).toAttribute(e,o.type);this._$Em=t,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:q;this._$Em=s,this[s]=a.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??W)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};Z.elementStyles=[],Z.shadowRootOptions={mode:"open"},Z[F("elementProperties")]=new Map,Z[F("finalized")]=new Map,G?.({ReactiveElement:Z}),(U.reactiveElementVersions??=[]).push("2.0.4");
15
+ */,{is:T,defineProperty:P,getOwnPropertyDescriptor:O,getOwnPropertyNames:B,getOwnPropertySymbols:D,getPrototypeOf:U}=Object,V=globalThis,j=V.trustedTypes,G=j?j.emptyScript:"",F=V.reactiveElementPolyfillSupport,q=(t,e)=>t,W={toAttribute(t,e){switch(e){case Boolean:t=t?G:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Y=(t,e)=>!T(t,e),Z={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:Y};Symbol.metadata??=Symbol("metadata"),V.litPropertyMetadata??=new WeakMap;let X=class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Z){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);void 0!==s&&P(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){const{get:s,set:a}=O(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return s?.call(this)},set(e){const l=s?.call(this);a.call(this,e),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Z}static _$Ei(){if(this.hasOwnProperty(q("elementProperties")))return;const t=U(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(q("properties"))){const t=this.properties,e=[...B(t),...D(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(E(t))}else void 0!==t&&e.push(E(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(_)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),s=$.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(void 0!==s&&!0===o.reflect){const a=(void 0!==o.converter?.toAttribute?o.converter:W).toAttribute(e,o.type);this._$Em=t,null==a?this.removeAttribute(s):this.setAttribute(s,a),this._$Em=null}}_$AK(t,e){const o=this.constructor,s=o._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=o.getPropertyOptions(s),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:W;this._$Em=s,this[s]=a.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Y)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}};X.elementStyles=[],X.shadowRootOptions={mode:"open"},X[q("elementProperties")]=new Map,X[q("finalized")]=new Map,F?.({ReactiveElement:X}),(V.reactiveElementVersions??=[]).push("2.0.4");
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2017 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
20
  */
21
- const X={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:W},K=(t=X,e,o)=>{const{kind:s,metadata:a}=o;let l=globalThis.litPropertyMetadata.get(a);if(void 0===l&&globalThis.litPropertyMetadata.set(a,l=new Map),l.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const a=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,a,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){const{name:s}=o;return function(o){const a=this[s];e.call(this,o),this.requestUpdate(s,a,t)}}throw Error("Unsupported decorator location: "+s)};function Q(t){return(e,o)=>"object"==typeof o?K(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
21
+ const K={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:Y},Q=(t=K,e,o)=>{const{kind:s,metadata:a}=o;let l=globalThis.litPropertyMetadata.get(a);if(void 0===l&&globalThis.litPropertyMetadata.set(a,l=new Map),l.set(o.name,t),"accessor"===s){const{name:s}=o;return{set(o){const a=e.get.call(this);e.set.call(this,o),this.requestUpdate(s,a,t)},init(e){return void 0!==e&&this.P(s,void 0,t),e}}}if("setter"===s){const{name:s}=o;return function(o){const a=this[s];e.call(this,o),this.requestUpdate(s,a,t)}}throw Error("Unsupported decorator location: "+s)};function J(t){return(e,o)=>"object"==typeof o?Q(t,e,o):((t,e,o)=>{const s=e.hasOwnProperty(o);return e.constructor.createProperty(o,s?{...t,wrapped:!0}:t),s?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
22
22
  /**
23
23
  * @license
24
24
  * Copyright 2017 Google LLC
25
25
  * SPDX-License-Identifier: BSD-3-Clause
26
- */}function J(t){return Q({...t,state:!0,attribute:!1})}
26
+ */}function tt(t){return J({...t,state:!0,attribute:!1})}
27
27
  /**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const tt=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
31
+ */const et=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */;function et(t,e){return(o,s,a)=>{const l=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?o:a??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return tt(o,s,{get(){let o=t.call(this);return void 0===o&&(o=l(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return tt(o,s,{get(){return l(this)}})}}
36
+ */;function it(t,e){return(o,s,a)=>{const l=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?o:a??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return et(o,s,{get(){let o=t.call(this);return void 0===o&&(o=l(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return et(o,s,{get(){return l(this)}})}}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */let it;function ot(t){return(e,o)=>tt(e,o,{get(){return(this.renderRoot??(it??=document.createDocumentFragment())).querySelectorAll(t)}})}const rt=(t,e=!0)=>et(`[part~="${t}"]`,e)
41
+ */let ot;function rt(t){return(e,o)=>et(e,o,{get(){return(this.renderRoot??(ot??=document.createDocumentFragment())).querySelectorAll(t)}})}const st=(t,e=!0)=>it(`[part~="${t}"]`,e)
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */,st=globalThis,nt=st.trustedTypes,at=nt?nt.createPolicy("lit-html",{createHTML:t=>t}):void 0,lt="$lit$",ht=`lit$${Math.random().toFixed(9).slice(2)}$`,ct="?"+ht,dt=`<${ct}>`,pt=document,ut=()=>pt.createComment(""),vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ft=Array.isArray,mt="[ \t\n\f\r]",gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,$t=/>/g,bt=RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,wt=/"/g,xt=/^(?:script|style|textarea|title)$/i,kt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Ct=kt(1),St=kt(2),At=Symbol.for("lit-noChange"),Rt=Symbol.for("lit-nothing"),Et=new WeakMap,Tt=pt.createTreeWalker(pt,129);function Mt(t,e){if(!ft(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==at?at.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let a=0,l=0;const h=t.length-1,c=this.parts,[d,p]=((t,e)=>{const o=t.length-1,s=[];let a,l=2===e?"<svg>":3===e?"<math>":"",h=gt;for(let e=0;e<o;e++){const o=t[e];let c,d,p=-1,u=0;for(;u<o.length&&(h.lastIndex=u,d=h.exec(o),null!==d);)u=h.lastIndex,h===gt?"!--"===d[1]?h=yt:void 0!==d[1]?h=$t:void 0!==d[2]?(xt.test(d[2])&&(a=RegExp("</"+d[2],"g")),h=bt):void 0!==d[3]&&(h=bt):h===bt?">"===d[0]?(h=a??gt,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?bt:'"'===d[3]?wt:_t):h===wt||h===_t?h=bt:h===yt||h===$t?h=gt:(h=bt,a=void 0);const v=h===bt&&t[e+1].startsWith("/>")?" ":"";l+=h===gt?o+dt:p>=0?(s.push(c),o.slice(0,p)+lt+o.slice(p)+ht+v):o+ht+(-2===p?e:v)}return[Mt(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),Tt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=Tt.nextNode())&&c.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(lt)){const e=p[l++],o=s.getAttribute(t).split(ht),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:Nt}),s.removeAttribute(t)}else t.startsWith(ht)&&(c.push({type:6,index:a}),s.removeAttribute(t));if(xt.test(s.tagName)){const t=s.textContent.split(ht),e=t.length-1;if(e>0){s.textContent=nt?nt.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],ut()),Tt.nextNode(),c.push({type:2,index:++a});s.append(t[e],ut())}}}else if(8===s.nodeType)if(s.data===ct)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=s.data.indexOf(ht,t+1));)c.push({type:7,index:a}),t+=ht.length-1}a++}}static createElement(t,e){const o=pt.createElement("template");return o.innerHTML=t,o}}function Pt(t,e,o=t,s){if(e===At)return e;let a=void 0!==s?o._$Co?.[s]:o._$Cl;const l=vt(e)?void 0:e._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,o,s)),void 0!==s?(o._$Co??=[])[s]=a:o._$Cl=a),void 0!==a&&(e=Pt(t,a._$AS(t,e.values),a,s)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,s=(t?.creationScope??pt).importNode(e,!0);Tt.currentNode=s;let a=Tt.nextNode(),l=0,h=0,c=o[0];for(;void 0!==c;){if(l===c.index){let e;2===c.type?e=new R(a,a.nextSibling,this,t):1===c.type?e=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(e=new z(a,this,t)),this._$AV.push(e),c=o[++h]}l!==c?.index&&(a=Tt.nextNode(),l++)}return Tt.currentNode=pt,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=Rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Pt(this,t,e),vt(t)?t===Rt||null==t||""===t?(this._$AH!==Rt&&this._$AR(),this._$AH=Rt):t!==this._$AH&&t!==At&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>ft(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Rt&&vt(this._$AH)?this._$AA.nextSibling.data=t:this.T(pt.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(Mt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Et.get(t.strings);return void 0===e&&Et.set(t.strings,e=new N(t)),e}k(t){ft(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const a of t)s===e.length?e.push(o=new R(this.O(ut()),this.O(ut()),this,this.options)):o=e[s],o._$AI(a),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let Nt=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,a){this.type=1,this._$AH=Rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=a,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Rt}_$AI(t,e=this,o,s){const a=this.strings;let l=!1;if(void 0===a)t=Pt(this,t,e,0),l=!vt(t)||t!==this._$AH&&t!==At,l&&(this._$AH=t);else{const s=t;let h,c;for(t=a[0],h=0;h<a.length-1;h++)c=Pt(this,s[o+h],e,h),c===At&&(c=this._$AH[h]),l||=!vt(c)||c!==this._$AH[h],c===Rt?t=Rt:t!==Rt&&(t+=(c??"")+a[h+1]),this._$AH[h]=c}l&&!s&&this.j(t)}j(t){t===Rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends Nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Rt?void 0:t}}class I extends Nt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Rt)}}class L extends Nt{constructor(t,e,o,s,a){super(t,e,o,s,a),this.type=5}_$AI(t,e=this){if((t=Pt(this,t,e,0)??Rt)===At)return;const o=this._$AH,s=t===Rt&&o!==Rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==Rt&&(o===Rt||s);s&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Pt(this,t)}}const It=st.litHtmlPolyfillSupport;It?.(N,R),(st.litHtmlVersions??=[]).push("3.2.1");
46
+ */,nt=globalThis,at=nt.trustedTypes,lt=at?at.createPolicy("lit-html",{createHTML:t=>t}):void 0,ht="$lit$",ct=`lit$${Math.random().toFixed(9).slice(2)}$`,dt="?"+ct,pt=`<${dt}>`,ut=document,vt=()=>ut.createComment(""),ft=t=>null===t||"object"!=typeof t&&"function"!=typeof t,mt=Array.isArray,gt="[ \t\n\f\r]",yt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,$t=/-->/g,bt=/>/g,_t=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),wt=/'/g,xt=/"/g,kt=/^(?:script|style|textarea|title)$/i,Ct=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),St=Ct(1),At=Ct(2),Rt=Symbol.for("lit-noChange"),Et=Symbol.for("lit-nothing"),Tt=new WeakMap,Mt=ut.createTreeWalker(ut,129);function Pt(t,e){if(!mt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==lt?lt.createHTML(e):e}class N{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let a=0,l=0;const h=t.length-1,c=this.parts,[d,p]=((t,e)=>{const o=t.length-1,s=[];let a,l=2===e?"<svg>":3===e?"<math>":"",h=yt;for(let e=0;e<o;e++){const o=t[e];let c,d,p=-1,u=0;for(;u<o.length&&(h.lastIndex=u,d=h.exec(o),null!==d);)u=h.lastIndex,h===yt?"!--"===d[1]?h=$t:void 0!==d[1]?h=bt:void 0!==d[2]?(kt.test(d[2])&&(a=RegExp("</"+d[2],"g")),h=_t):void 0!==d[3]&&(h=_t):h===_t?">"===d[0]?(h=a??yt,p=-1):void 0===d[1]?p=-2:(p=h.lastIndex-d[2].length,c=d[1],h=void 0===d[3]?_t:'"'===d[3]?xt:wt):h===xt||h===wt?h=_t:h===$t||h===bt?h=yt:(h=_t,a=void 0);const v=h===_t&&t[e+1].startsWith("/>")?" ":"";l+=h===yt?o+pt:p>=0?(s.push(c),o.slice(0,p)+ht+o.slice(p)+ct+v):o+ct+(-2===p?e:v)}return[Pt(t,l+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]})(t,e);if(this.el=N.createElement(d,o),Mt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=Mt.nextNode())&&c.length<h;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(ht)){const e=p[l++],o=s.getAttribute(t).split(ct),h=/([.?@])?(.*)/.exec(e);c.push({type:1,index:a,name:h[2],strings:o,ctor:"."===h[1]?H:"?"===h[1]?I:"@"===h[1]?L:It}),s.removeAttribute(t)}else t.startsWith(ct)&&(c.push({type:6,index:a}),s.removeAttribute(t));if(kt.test(s.tagName)){const t=s.textContent.split(ct),e=t.length-1;if(e>0){s.textContent=at?at.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],vt()),Mt.nextNode(),c.push({type:2,index:++a});s.append(t[e],vt())}}}else if(8===s.nodeType)if(s.data===dt)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=s.data.indexOf(ct,t+1));)c.push({type:7,index:a}),t+=ct.length-1}a++}}static createElement(t,e){const o=ut.createElement("template");return o.innerHTML=t,o}}function Nt(t,e,o=t,s){if(e===Rt)return e;let a=void 0!==s?o._$Co?.[s]:o._$Cl;const l=ft(e)?void 0:e._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),void 0===l?a=void 0:(a=new l(t),a._$AT(t,o,s)),void 0!==s?(o._$Co??=[])[s]=a:o._$Cl=a),void 0!==a&&(e=Nt(t,a._$AS(t,e.values),a,s)),e}class M{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,s=(t?.creationScope??ut).importNode(e,!0);Mt.currentNode=s;let a=Mt.nextNode(),l=0,h=0,c=o[0];for(;void 0!==c;){if(l===c.index){let e;2===c.type?e=new R(a,a.nextSibling,this,t):1===c.type?e=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(e=new z(a,this,t)),this._$AV.push(e),c=o[++h]}l!==c?.index&&(a=Mt.nextNode(),l++)}return Mt.currentNode=ut,s}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,s){this.type=2,this._$AH=Et,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Nt(this,t,e),ft(t)?t===Et||null==t||""===t?(this._$AH!==Et&&this._$AR(),this._$AH=Et):t!==this._$AH&&t!==Rt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>mt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Et&&ft(this._$AH)?this._$AA.nextSibling.data=t:this.T(ut.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(Pt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new M(s,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Tt.get(t.strings);return void 0===e&&Tt.set(t.strings,e=new N(t)),e}k(t){mt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const a of t)s===e.length?e.push(o=new R(this.O(vt()),this.O(vt()),this,this.options)):o=e[s],o._$AI(a),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let It=class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,a){this.type=1,this._$AH=Et,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=a,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Et}_$AI(t,e=this,o,s){const a=this.strings;let l=!1;if(void 0===a)t=Nt(this,t,e,0),l=!ft(t)||t!==this._$AH&&t!==Rt,l&&(this._$AH=t);else{const s=t;let h,c;for(t=a[0],h=0;h<a.length-1;h++)c=Nt(this,s[o+h],e,h),c===Rt&&(c=this._$AH[h]),l||=!ft(c)||c!==this._$AH[h],c===Et?t=Et:t!==Et&&(t+=(c??"")+a[h+1]),this._$AH[h]=c}l&&!s&&this.j(t)}j(t){t===Et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class H extends It{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Et?void 0:t}}class I extends It{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Et)}}class L extends It{constructor(t,e,o,s,a){super(t,e,o,s,a),this.type=5}_$AI(t,e=this){if((t=Nt(this,t,e,0)??Et)===Rt)return;const o=this._$AH,s=t===Et&&o!==Et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==Et&&(o===Et||s);s&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class z{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Nt(this,t)}}const Ot=nt.litHtmlPolyfillSupport;Ot?.(N,R),(nt.litHtmlVersions??=[]).push("3.2.1");
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
51
  */
52
- let Ot=class r extends Z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const s=o?.renderBefore??e;let a=s._$litPart$;if(void 0===a){const t=o?.renderBefore??null;s._$litPart$=a=new R(e.insertBefore(ut(),t),t,void 0,o??{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return At}};Ot._$litElement$=!0,Ot.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ot});const zt=globalThis.litElementPolyfillSupport;zt?.({LitElement:Ot}),(globalThis.litElementVersions??=[]).push("4.1.1");
52
+ let zt=class r extends X{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const s=o?.renderBefore??e;let a=s._$litPart$;if(void 0===a){const t=o?.renderBefore??null;s._$litPart$=a=new R(e.insertBefore(vt(),t),t,void 0,o??{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Rt}};zt._$litElement$=!0,zt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:zt});const Bt=globalThis.litElementPolyfillSupport;Bt?.({LitElement:zt}),(globalThis.litElementVersions??=[]).push("4.1.1");
53
53
  /**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
57
  */
58
- const Bt=6;let Dt=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};function Ut(t,e){(t=>o(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):s(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const Ht=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Dt{render(t,e){}update(t,[e,o=Ut]){if(e&&t.type===Bt)for(const s in e)o.call(t.element,s,e[s]);return At}}),Lt=((t,e)=>o=>t({...e,...o}))(Ht,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),Vt=t=>Ct`<slot name="${t||Rt}"></slot>`,jt=(t,e)=>{if(!t)return Rt;const o=s(t)?t:v(t);return o?Ct`<style media="${Rt}">${o}</style>`:Rt},Gt=t=>(e,...o)=>{const a=St(e,o),l=s(t)?t:t.join(" "),h=t=>Ct`<svg viewBox="${l}" ${Lt(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*Ft(t,e,o){for(let o=0;o<t;o++)yield e(o)}const qt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(l(e))return c(t,qt(...e)," ");if(a(e)){for(const o in e)e[o]&&(t=c(t,o," "));return t}return c(t,e," ")}),"");function Wt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Wt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Wt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Yt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Yt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Yt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[a,l]=((t,e,o)=>{let s,a;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),a=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),a=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),a=()=>s.observe(o)}return[s,a]})(e,o,s);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const s=e[o];let a=this.findStrict(s);a||(a=new RouteTree,a.part=s,a.matchType=RouteTree.dynamic(s).matchType,this.children.push(a),this.sorted=!1),a.insert(t,e,o+1)}search(t,e=0){if(s(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],a=this.filterWide(o);for(const o of a){const s=o.search(t,e+1);if(null!==s)return s}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),a={};for(let t=0;t<s.length;t++){const e=s[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.MatchTypes.single)a[l]=o[t];else if(h===RouteTree.MatchTypes.multi){a[l]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(d(t,"{","}")||d(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Zt=(t,{attribute:e})=>{if(!1!==e&&"symbol"!=typeof t)return!0===e||void 0===e?String(t).toLowerCase():e},Xt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends Ot{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=Zt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Xt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Yt.call(this,t)}deepQuerySelectorAll(t){return Wt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return p(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},e([Q({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([Q({reflect:!0})],GodownElement.prototype,"stylex",null);var Kt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,Qt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,Jt=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,te=Gt("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,ee=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,ie=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,oe=Gt("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`,re=Gt("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const se=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),ne={darkgray:[se(121,121,121),se(109,109,109),se(97,97,97),se(85,85,85),se(73,73,73),se(61,61,61),se(48,48,48),se(36,36,36),se(24,24,24),se(12,12,12)],lightgray:[se(243,243,243),se(231,231,231),se(219,219,219),se(206,206,206),se(194,194,194),se(182,182,182),se(170,170,170),se(158,158,158),se(146,146,146),se(133,133,133)],teal:[se(213,249,248),se(170,243,241),se(128,237,234),se(85,231,226),se(43,225,219),se(0,219,212),se(0,175,170),se(0,131,127),se(0,88,85),se(0,44,42)],blue:[se(213,240,255),se(170,224,255),se(128,209,255),se(85,193,255),se(43,178,255),se(0,162,255),se(0,130,204),se(0,97,153),se(0,65,102),se(0,32,51)],green:[se(221,243,221),se(186,231,186),se(152,219,152),se(117,206,117),se(82,194,82),se(48,182,48),se(38,146,38),se(29,109,29),se(19,73,19),se(10,36,10)],red:[se(251,221,221),se(247,186,187),se(243,152,154),se(239,118,120),se(235,83,86),se(231,49,52),se(185,39,42),se(139,29,31),se(92,20,21),se(46,10,10)],purple:[se(242,228,253),se(229,201,250),se(217,174,248),se(204,146,245),se(191,119,243),se(178,92,240),se(142,74,192),se(107,55,144),se(71,37,96),se(36,18,48)],orange:[se(255,235,213),se(255,216,170),se(255,196,128),se(255,176,85),se(255,157,43),se(255,137,0),se(204,110,0),se(153,82,0),se(102,55,0),se(51,27,0)],yellow:[se(251,252,216),se(247,248,177),se(243,245,138),se(239,242,98),se(235,238,59),se(231,235,20),se(185,188,16),se(139,141,12),se(92,94,8),se(46,47,4)],pink:[se(254,222,233),se(253,189,211),se(252,156,190),se(251,123,168),se(250,90,146),se(249,57,124),se(199,46,99),se(149,34,74),se(100,23,50),se(50,11,25)]};class GlobalStyle extends GodownElement{}const ae=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function le(t,e=1){return function(t){return C(`--${t}`)}(ae+"-".repeat(e)+t)}const he={clipBackground:le("clip-background",2),active:le("active",2),passive:le("passive",2),_colors:{},input:le("input",2),white:le("color-white",2),black:le("color-black",2),color:le("color",2),radius:le("radius",2),outlineWidth:le("outline-width",2),outlineColor:le("outline-color",2)};var ce,de;GlobalStyle.styles=[C(`:host{${he.black}:rgb(0 0 0);${he.white}:rgb(255 255 255);`+(ce=(t,e,o)=>{he._colors[t]||=[],he._colors[t].push(C(he.color+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${he.color+s}:rgb(${o});`},de=ne,Object.entries(de).flatMap((([t,e])=>e.map(((e,o)=>ce(t,o,e)))))).join("")+f([[he.active,`var(${he._colors.blue[5]})`],[he.passive,`var(${he._colors.darkgray[5]})`],[he.clipBackground,`linear-gradient(to bottom, var(${he._colors.lightgray[0]}), var(${he._colors.darkgray[0]}))`],[he.outlineColor,`var(${he._colors.darkgray[4]})`],[he.outlineWidth,".075em"]])+"}"),S`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,S`:host{${he.radius}:0.2em;border-radius:var(${he.radius})}`];const pe="alert",ue=le(pe),ve=t=>[he._colors[t][5],he._colors[t][9]],fe={green:ve("green"),blue:ve("blue"),orange:ve("orange"),red:ve("red"),yellow:ve("yellow"),purple:ve("purple"),teal:ve("teal"),pink:ve("pink"),gray:[he._colors.lightgray[5],he._colors.darkgray[5]],white:[he._colors.lightgray[2],he._colors.darkgray[7]],black:[he._colors.darkgray[8],he._colors.lightgray[5]]},me={tip:{color:"teal",icon:te},success:{color:"green",icon:Kt},info:{color:"blue",icon:Jt},warning:{color:"orange",icon:Qt},danger:{color:"red",icon:oe},error:{color:"red",icon:oe},help:{color:"purple",icon:ee},deprecated:{color:"gray",icon:ie}};let ge=class Alert extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=me[this.call]?.color||this.color;if(t in fe){const[e,o]=fe[t];return v({":host":[[`${ue}--color`,`var(${e})`],[`${ue}--background`,`var(${o})`]]})}return null})),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=this.call?me[this.call].icon():Vt("icon");return Ct`<div part="root" ${Ht(this.observedRecord)}><div part="icon" class="start">${t}</div><div part="content"><strong part="title">${this.title||Vt("title")}</strong> ${this.content||Vt()}</div>${this.hideClose||"blockquote"===this.variant?"":Ct`<div part="icon close" class="end" tabindex="0" @click="${this.close}">${re()}</div>`}</div>`}close(){this.remove(),this.dispatchCustomEvent("close",void 0,{bubbles:!0})}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([Q()],ge.prototype,"call",void 0),e([Q()],ge.prototype,"color",void 0),e([Q({type:Number})],ge.prototype,"autoclose",void 0),e([Q()],ge.prototype,"title",void 0),e([Q()],ge.prototype,"content",void 0),e([Q({type:Boolean})],ge.prototype,"hideClose",void 0),e([Q()],ge.prototype,"variant",void 0),ge=e([g(pe),m(S`:host{${ue}--border-width:.075em;${ue}--blockquote-width:.2em;${ue}--blockquote-background:transparent;${ue}--gap:.5em}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;background:var(${ue}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${ue}--border-width);color:var(${ue}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${ue}--gap)}[variant=blockquote]{background:var(${ue}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${ue}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${ue}--gap)}.end svg{margin-inline-start:var(${ue}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],ge);var ye=ge;ye.define();let $e=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return Ct`<div part="root" ${Ht(h(this.observedRecord,"src"))}>${this._renderAvatar()}</div>`}_renderAvatar(){return this.src?Ct`<img part="image" src="${this.src}" alt="${this.name}" @error="${this._handleError}">`:this.name?Ct`<span part="name">${this.formatName()}</span>`:Vt()}formatName(){return this.name}_handleError(){this.src=void 0}};e([Q()],$e.prototype,"src",void 0),e([Q()],$e.prototype,"name",void 0),e([Q({type:Boolean})],$e.prototype,"round",void 0),$e=e([g("avatar"),m(S`:host{background:var(${he.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],$e);var be=$e;be.define();const _e="badge",we=le(_e);let xe=class Badge extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${Vt()} ${this.value||this.dot?Ct`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""}</div>`}};e([Q()],xe.prototype,"position",void 0),e([Q({type:Number})],xe.prototype,"value",void 0),e([Q({type:Boolean})],xe.prototype,"dot",void 0),e([Q({type:Number})],xe.prototype,"max",void 0),xe=e([g(_e),m(S`:host{${we}--background:var(${he.active});${we}--offset:0%;${we}--offset-x:var(${we}--offset);${we}--offset-y:var(${we}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${we}--background);border-radius:calc(infinity*1px);font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=badge]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=badge]{top:calc(var(${we}--offset-y))}[position$=right] [part=badge]{left:calc(100% - var(${we}--offset-x))}[position^=bottom] [part=badge]{top:calc(100% - var(${we}--offset-y))}[position$=left] [part=badge]{left:calc(var(${we}--offset-x))}`)],xe);var ke=xe;ke.define();const Ce="breath",Se=le(Ce);let Ae=class Breath extends GlobalStyle{render(){const t=this.getTexts();return Ct`<div part="root" ${Ht(this.observedRecord)}>${[t.map(this._renderText),jt(this._computeStyle(t.length))]}</div>`}_renderText(t){return Ct`<span class="rel"><span class="nocolor">${t}</span> <span class="colorful">${t}</span></span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(/\s+/).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${Se}--${e},var(${Se}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([Q()],Ae.prototype,"content",void 0),e([Q({type:Number})],Ae.prototype,"duration",void 0),Ae=e([g(Ce),m(S`:host{${Se}--deg:60deg;${Se}--1-1:var(${he._colors.red[5]});${Se}--1-2:var(${he._colors.yellow[5]});${Se}--2-1:var(${he._colors.green[5]});${Se}--2-2:var(${he._colors.purple[5]});${Se}--3-1:var(${he._colors.blue[5]});${Se}--3-2:var(${he._colors.pink[5]});${Se}--1:linear-gradient(var(${Se}--deg),var(${Se}--1-1),var(${Se}--1-2));${Se}--2:linear-gradient(var(${Se}--deg),var(${Se}--2-1),var(${Se}--2-2));${Se}--3:linear-gradient(var(${Se}--deg),var(${Se}--3-1),var(${Se}--3-2))}`,S`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,S`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${he.clipBackground});position:absolute;top:0}`)],Ae);var Re=Ae;Re.define();const Ee="button",Te=le(Ee),Me=he.white,Pe=he.black,Ne={black:[Me,he._colors.darkgray[7],he._colors.darkgray[5]],gray:[Me,he._colors.darkgray[1],he._colors.lightgray[8]],white:[Pe,he._colors.lightgray[3],he._colors.lightgray[0]],blue:[Me,he._colors.blue[6],he._colors.blue[4]],green:[Me,he._colors.green[6],he._colors.green[4]],red:[Me,he._colors.red[6],he._colors.red[4]],orange:[Me,he._colors.orange[6],he._colors.orange[4]],pink:[Me,he._colors.pink[6],he._colors.pink[4]],purple:[Me,he._colors.purple[6],he._colors.purple[4]],yellow:[Pe,he._colors.yellow[6],he._colors.yellow[4]],teal:[Me,he._colors.teal[6],he._colors.teal[4]]};let Ie=class Button extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=this.nextColor();if(t in Ne){const[e,o,s]=Ne[t];return v({":host":[[`${Te}--color`,`var(${e})`],[`${Te}--background`,`var(${o})`],[`${Te}--gradients`,`var(${s})`]]})}return null})),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${this.content||Vt()} <span part="modal-root"></span></div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:s}=this.getBoundingClientRect(),{x:a,y:l}=this._root.getBoundingClientRect(),h=2*Math.sqrt(s**2+o**2)+"px";e.style.height=h,e.style.width=h,e.style.left=t.x-a+"px",e.style.top=t.y-l+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};e([Q({type:Boolean,reflect:!0})],Ie.prototype,"plain",void 0),e([Q({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0),e([Q({type:Boolean,reflect:!0})],Ie.prototype,"ghost",void 0),e([Q({type:Boolean,reflect:!0})],Ie.prototype,"active",void 0),e([Q({type:Boolean,reflect:!0})],Ie.prototype,"round",void 0),e([Q({reflect:!0})],Ie.prototype,"color",void 0),e([Q()],Ie.prototype,"content",void 0),e([rt("modal-root")],Ie.prototype,"_modalRoot",void 0),e([rt("root")],Ie.prototype,"_root",void 0),Ie=e([g(Ee),m(S`:host(:not([disabled]):active){transform:scale(var(${Te}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Te}--modal-background:var(${Te}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Te}--ghost-width) var(${Te}--ghost-color);color:var(${Te}--ghost-color)}:host([plain]){${Te}--gradients:unset;${Te}--focus-scale:unset}`,S`:host{${Te}--padding-x:.8em;${Te}--padding-y:calc(var(${Te}--padding-x)/4);${Te}--padding:var(${Te}--padding-y) var(${Te}--padding-x);${Te}--modal-animation-duration:1s;${Te}--ghost-width:.08em;${Te}--focus-scale:.97;${Te}--deg:45deg;${Te}--ghost-color:var(${Te}--background);background:linear-gradient(var(${Te}--deg),var(${Te}--background),var(${Te}--gradients,var(${Te}--background)));color:var(${Te}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${Te}--padding);text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{border-radius:inherit;position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}i{animation-duration:var(${Te}--modal-animation-duration);background:var(${Te}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${Te}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],Ie);var Oe=Ie;Oe.define();const ze="card",Be=le(ze);let De=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${[this.header?Vt("header"):"",Vt(),this.footer?Vt("footer"):""]}</div>`}};e([Q({type:Boolean})],De.prototype,"footer",void 0),e([Q({type:Boolean})],De.prototype,"header",void 0),De=e([g(ze),m(S`:host{${Be}--border-width:.075em;${Be}--border-color:var(${he.passive});${Be}--padding:.75em;display:block;flex-shrink:0}slot{display:block;padding:var(${Be}--padding)}[part=root]{border-color:var(${Be}--border-color);border-radius:inherit;border-style:solid;border-width:var(${Be}--border-width)}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],De);var Ue=De;Ue.define();var He=Gt("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,Le=Gt("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function Ve(t){return t.getBoundingClientRect().width}let je=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}><i part="prev" @click="${this.prev}">${He()}</i><div part="move-root">${Vt()}</div><i part="next" @click="${this.next}">${Le()}</i></div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Ve(this.children[e]);return t+=(Ve(this)-Ve(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([Q({type:Number})],je.prototype,"index",void 0),e([Q({type:Number})],je.prototype,"autoChange",void 0),e([rt("move-root")],je.prototype,"_moveRoot",void 0),je=e([g("carousel"),m(S`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],je);var Ge=je;Ge.define();var Fe=Gt("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}e([Q({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const qe="details",We=le(qe);let Ye=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return Ct`<dl part="root" ${Ht(this.observedRecord)}><dt part="title" @click="${()=>this.toggle()}"><span part="summary">${this.summary||Vt("summary")}</span> <span part="icon">${Fe()}</span></dt><dd part="details" @click="${this.fill?()=>this.toggle():null}"><div style="min-height: 0;">${Vt()}</div></dd></dl>`}};e([Q({type:Boolean})],Ye.prototype,"float",void 0),e([Q({type:Boolean})],Ye.prototype,"fill",void 0),e([Q()],Ye.prototype,"summary",void 0),Ye=e([g(qe),m(S`:host{${We}--icon-deg-open:0deg;${We}--icon-deg-close:90deg;display:block;padding:.2em;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${We}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${We}--icon-deg-open))}`)],Ye);var Ze=Ye;Ze.define();const Xe="dialog",Ke=le(Xe);let Qe=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return Ct`<dialog part="root" ${Ht(this.observedRecord)}>${Vt()}</dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(/[\s,]/);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};e([Q({type:Boolean,reflect:!0})],Qe.prototype,"modal",null),e([Q()],Qe.prototype,"key",void 0),e([et("dialog")],Qe.prototype,"_dialog",void 0),Qe=e([g(Xe),m(S`:host{${Ke}--background-modal:#000;${Ke}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${Ke}--background-modal);opacity:var(${Ke}--opacity-modal)}`)],Qe);var Je=Qe;Je.define();let ti=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}></div>`}};e([Q({type:Boolean,reflect:!0})],ti.prototype,"vertical",void 0),ti=e([g("divider"),m(S`:host{background:currentColor;color:var(${he.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],ti);var ei=ti;ei.define();let ii=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} @mousedown="${this._handleDragStart}">${Vt()}</div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:s,__t:a,style:l}=this,{height:h,width:c}=this._offsetParent.getBoundingClientRect(),{width:d,height:p}=this.getBoundingClientRect(),u=t.x-(e-s),v=t.y-(o-a);l.left=u<0?"0":u<c-d?`${u}px`:c-d+"px",l.top=v<0?"0":v<h-p?`${v}px`:h-p+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:s,offsetHeight:a,offsetLeft:l,offsetTop:h}=this,{height:c,width:d}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",l>d-s&&(o.left=d-s+"px"),h>c-a&&(o.top=c-a+"px")}};e([Q()],ii.prototype,"x",void 0),e([Q()],ii.prototype,"y",void 0),ii=e([g("dragbox"),m(S`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],ii);var oi=ii;oi.define();let ri=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${[Vt(),jt(v({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]}</div>`}};e([Q({attribute:"flex-flow"})],ri.prototype,"flexFlow",void 0),e([Q()],ri.prototype,"gap",void 0),e([Q()],ri.prototype,"content",void 0),e([Q()],ri.prototype,"items",void 0),e([Q({type:Boolean})],ri.prototype,"vertical",void 0),ri=e([g("flex"),m(S`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],ri);var si,ni=ri;ni.define();let ai=si=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return si.buildValue(this._slot.assignedElements())}render(){return Vt()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,s]=o.namevalue();t&&(e[t]=s)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};e([Q()],ai.prototype,"name",void 0),ai=si=e([g("form"),m(S`:host{display:block}`)],ai);var li=ai;li.define();const hi=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let ci=class Grid extends GlobalStyle{render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${[Vt(),jt(v({":host":{gap:this.gap,"grid-template-columns":hi(this.columns),"grid-template-rows":hi(this.rows),"place-content":this.content,"place-items":this.items}}))]}</div>`}};e([Q()],ci.prototype,"gap",void 0),e([Q()],ci.prototype,"columns",void 0),e([Q()],ci.prototype,"rows",void 0),e([Q()],ci.prototype,"content",void 0),e([Q()],ci.prototype,"items",void 0),ci=e([g("grid"),m(S`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],ci);var di=ci;di.define();let pi=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return Ct`<a part="root" href="${this.id?"#"+this.id:Rt}" ${Ht(this.observedRecord)}>${this.wrapHeading(Vt(),this.id?Ct`<i part="anchor">${this.anchor}</i>`:"")}</a>`}wrapHeading(...t){switch(this.as){case"h2":return Ct`<h2>${t}</h2>`;case"h3":return Ct`<h3>${t}</h3>`;case"h4":return Ct`<h4>${t}</h4>`;case"h5":return Ct`<h5>${t}</h5>`;case"h6":return Ct`<h6>${t}</h6>`;default:return Ct`<h1>${t}</h1>`}}};e([Q()],pi.prototype,"as",void 0),e([Q()],pi.prototype,"anchor",void 0),e([Q()],pi.prototype,"side",void 0),pi=e([g("heading"),m(S`:host{display:block;text-align:start}[part=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],pi);var ui=pi;ui.define();var vi=Gt("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const fi=S`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${he.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${he.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${he.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${he.input}-space)}`,mi=S`:host{${he.input}-width:10em;${he.input}-height:1.6em;${he.input}-space:0.2em;${he.input}-control:currentColor;${he.input}-icon-color:var(${he._colors.darkgray[4]})}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${he.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let gi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return h(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return Ct`<label for="${this.makeId}" part="prefix">${Vt("prefix")}</label>`}_renderSuffix(){return Ct`<label for="${this.makeId}" part="suffix">${Vt("suffix")}</label>`}};e([Q()],gi.prototype,"autocomplete",void 0),e([Q({attribute:"outline-type"})],gi.prototype,"outlineType",void 0),e([Q({type:Boolean,reflect:!0})],gi.prototype,"disabled",void 0),e([Q({reflect:!0})],gi.prototype,"type",void 0),e([Q({reflect:!0})],gi.prototype,"placeholder",void 0),e([Q({reflect:!0})],gi.prototype,"name",void 0),e([Q()],gi.prototype,"value",void 0),e([Q()],gi.prototype,"default",void 0),e([rt("input")],gi.prototype,"_input",void 0),gi=e([m(fi,mi)],gi);class OutlineBuilder{constructor({selector:t=":host",width:e=he.outlineWidth,color:o=he.outlineColor,outlineType:s}={}){const a=((t,e)=>{const o=`outline-color:var(${e});border-color:var(${e});`,s=`${o}outline-width:var(${t});outline-style:solid;`;return{outline:s,"outline-inset":`${s}outline-offset:calc(-1 * var(${t}));`,"box-shadow":`box-shadow:0 0 0 var(${t}) var(${e});`,"box-shadow-inset":`box-shadow:inset 0 0 0 var(${t}) var(${e});`,border:`${o}border-width:var(${t});border-style:solid;`}})(e,o);if(s&&s in a){const e=a[s];this.css=`${t}{${e}}`}else this.css=""}get styleSheet(){return C(this.css).styleSheet}}let yi=class Input extends gi{constructor(){super(...arguments),this.type="text",this.variant="default",this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css+("outline"===this.variant?`:host{${he.outlineColor}: var(${he.active})}`:"")))}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} class="input-field">${[this._renderPrefix(),Ct`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||Rt}" autocomplete="${this.autocomplete||Rt}" placeholder="${this.placeholder||Rt}" id="${this.makeId}" @input="${this._handleInput}" @change="${this._handleChange}">`,this._renderSuffix()]}</div>`}_renderSuffix(){const t="password";return Ct`<label for="${this.makeId}" part="suffix">${this.type===t?Ct`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}">${vi()}</i>`:Vt("suffix")}</label>`}};e([Q()],yi.prototype,"variant",void 0),e([rt("input")],yi.prototype,"_input",void 0),yi=e([g("input"),m(S`:host{display:block;height:var(${he.input}-height);width:var(${he.input}-width)}:host(:focus-within){${he.outlineColor}:var(${he.active})}`)],yi);var $i=yi;$i.define();let bi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}><header part="header">${Vt("header")}</header><main part="main">${Vt()}</main><footer part="footer">${Vt("footer")}</footer></div>`}};e([Q({type:Boolean})],bi.prototype,"sticky",void 0),bi=e([g("layout"),m(S`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],bi);var _i=bi;_i.define();let wi=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return Ct`<a part="root" ${Ht(this.observedRecord)} href="${this.href||Rt}" target="${this.target}" @click="${this._handleClick}">${Vt()}</a>`}};var xi;e([Q()],wi.prototype,"href",void 0),e([Q()],wi.prototype,"target",void 0),wi=e([m(S`:host{color:currentColor;cursor:default;display:inline-block;text-decoration:none}:host([href]){cursor:pointer}[part=root]{color:inherit;display:inline-block;text-decoration:inherit}`)],wi);let ki=xi=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=Vt(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),xi.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),xi.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(h(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?Vt(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};ki.routerInstances=new Set,e([J()],ki.prototype,"component",void 0),e([J()],ki.prototype,"path",void 0),e([Q()],ki.prototype,"pathname",void 0),e([J()],ki.prototype,"default",void 0),e([Q()],ki.prototype,"type",void 0),e([Q({type:Boolean})],ki.prototype,"cache",void 0),e([J()],ki.prototype,"routes",null),ki=xi=e([g("router"),m(S`:host{display:contents}`)],ki);var Ci=ki;const Si="auto";let Ai=class Link extends wi{constructor(){super(...arguments),this.type=Si,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Si:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}_handleClick(t){const{state:e,type:o,href:s,pathname:a,suppress:l}=this;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:a,state:e}),s.startsWith("#")||"normal"===o)return;this.handleState();const h=[...Ci.routerInstances];l||o===Si&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),Ci.routerInstances.forEach((t=>{t.handlePopstate()})))}};e([Q()],Ai.prototype,"type",void 0),e([Q({type:Boolean})],Ai.prototype,"suppress",void 0),e([Q({type:Boolean})],Ai.prototype,"replace",void 0),Ai=e([g("link")],Ai);var Ri=Ai;Ri.define();let Ei=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=100*o.restrict(this.value/o.diff),t="static"}return Ct`<div part="root" ${Ht(this.observedRecord)} class="${t}"><i part="value" style="width:${e}%;"></i></div>`}};e([Q({type:Number})],Ei.prototype,"max",void 0),e([Q({type:Number})],Ei.prototype,"min",void 0),e([Q({type:Number})],Ei.prototype,"value",void 0),Ei=e([g("progress"),m(S`:host{background:var(${he.passive});border-radius:.25em;color:var(${he.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Ei);var Ti=Ei;Ti.define();const Mi="range",Pi=le(Mi);let Ni=class Range extends gi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return Ct`<div part="root" ${Ht(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${f([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"><div part="track"></div>${Ft(this.rangeValue.length,(t=>this._renderHandle(t)))}</div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,a=!o||o&&t===s.length-1&&1===s.length;return Ct`<i tabindex="0" part="handle" class="${qt({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${f({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:s}=this;o.length<2&&(t=0);const a=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(a-s)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(a+s))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/a:(t-s)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};e([Q({type:Number})],Ni.prototype,"min",void 0),e([Q({type:Number})],Ni.prototype,"max",void 0),e([Q({type:Number})],Ni.prototype,"step",void 0),e([Q({type:Boolean,reflect:!0})],Ni.prototype,"vertical",void 0),e([Q({type:Array})],Ni.prototype,"value",void 0),e([Q({type:Array})],Ni.prototype,"default",void 0),e([rt("root")],Ni.prototype,"_root",void 0),e([ot("[part=handle]")],Ni.prototype,"_handles",void 0),e([J()],Ni.prototype,"lastFocus",void 0),Ni=e([g(Mi),m(S`:host{${Pi}--handle-active:var(${he.active});${Pi}--track-width:.5em;${Pi}--length:var(${he.input}-width);background:var(${he.passive});display:block;width:var(${Pi}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Pi}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Pi}--handle-scale:1.05;background:var(${Pi}--handle-active)}[part=root]{position:relative;--from:0%;--to:50%;height:var(${Pi}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${he.active});height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=handle],[part=track]{display:flex;position:absolute}[part=handle]{align-items:center;background:var(${he.active});border:.1em solid;border-color:var(${he.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Pi}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,S`[vertical]{height:inherit;width:var(${Pi}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,S`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],Ni);var Ii=Ni;Ii.define();const Oi="rotate",zi=le(Oi);let Bi=class Rotate extends GlobalStyle{render(){return Ct`<div part="root"><div part="slot" @mousemove="${this._handleRotate}">${Vt()}</div><i @mouseleave="${this.reset}"></i></div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:s,height:a}=this._root.getBoundingClientRect(),{clientX:l,clientY:h}=t;return{rotateX:-(h-o-a/2)/a/2,rotateY:(l-e-s/2)/s/2}}};e([rt("root")],Bi.prototype,"_root",void 0),Bi=e([g(Oi),m(S`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${zi}--padding:.75em;${zi}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${zi}--offset)*-1);padding:var(${zi}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Bi);var Di=Bi;Di.define(),Ci.define();const Ui=C("[direction-inset-align]");S`[direction^=top] ${Ui}{top:0}[direction^=bottom] ${Ui}{bottom:0}[direction$=right] ${Ui}{right:0}[direction$=left] ${Ui}{left:0}`;const Hi=C("[direction-outset-place]"),Li=S`[direction^=top] ${Hi}{bottom:100%}[direction^=bottom] ${Hi}{top:100%}[direction$=right] ${Hi}{left:100%}[direction$=left] ${Hi}{right:100%}`;function Vi(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function ji(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}let Gi=class Select extends $i{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} class="input-field">${[this._renderPrefix(),Ct`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||Rt}" autocomplete="${this.autocomplete||Rt}" placeholder="${this.placeholder||Rt}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}">`,Ct`<label for="${this.makeId}" part="suffix"><i part="icon">${Fe()}</i></label>`,Ct`<label for="${this.makeId}" part="content" direction-outset-place>${Vt()}</label>`]}</div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||ji(this.lastChecked,0),ji(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{ji(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>ji(t,0))),this.defaultChecked.forEach((t=>ji(t,1)))}select(t,e){e||=t,e=e.trim();let o=0;if(this.multiple){const s=this.__store.findIndex((e=>e.value===t));s>-1?this.__store.splice(s,1):(this.__store.push({value:t,text:e}),o=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchCustomEvent("select",this.value),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Vi(this.optionValue(e),t)||Vi(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,s=e.indexOf(",",t)||e.length;return e.slice(o,s)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};e([Q()],Gi.prototype,"text",void 0),e([rt("content")],Gi.prototype,"_content",void 0),e([Q()],Gi.prototype,"direction",void 0),e([Q({type:Boolean})],Gi.prototype,"multiple",void 0),e([Q({type:Boolean})],Gi.prototype,"visible",void 0),e([J()],Gi.prototype,"autoDirection",void 0),Gi=e([g("select"),m(Li,S`.outline,:host(:focus-within){${he.input}-outline-color:var(${he.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],Gi);var Fi=Gi;Fi.define();var qi=Gt("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const Wi="skeleton",Yi=le(Wi);let Zi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?Ct`<div part="root" ${Ht(this.observedRecord)}>${"image"===this.type?qi():""} ${Vt("loading")}</div>`:Vt()}};e([Q()],Zi.prototype,"type",void 0),e([Q()],Zi.prototype,"animation",void 0),e([J()],Zi.prototype,"loading",void 0),Zi=e([g(Wi),m(S`:host{${Yi}--from:var(${he._colors.darkgray[9]});${Yi}--to:var(${he._colors.darkgray[7]});${Yi}--deg:95deg;${Yi}--duration:1.5s;${Yi}--icon-size:5em;${Yi}--icon-margin:.25em;background:var(${Yi}--from);color:var(${he._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Yi}--duration) ease-in-out 0s infinite none running;min-height:inherit;text-align:center}svg{--size:var(${Yi}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Yi}--deg),var(${Yi}--from) 36%,var(${Yi}--to) 50%,var(${Yi}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],Zi);var Xi=Zi;Xi.define();const Ki="split",Qi=le(Ki);let Ji=class Split extends gi{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({selector:"[part=input-box]",outlineType:this.outlineType}).css))}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${Ft(this.len,(t=>Ct`<span part="input-box" outline-type="${this.outlineType}" class="${qt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}">${this.currentValue[t]}</span>`))} <input part="input" id="${this.makeId}" @blur="${this.blur}" @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"></div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};e([Q({type:Number})],Ji.prototype,"len",void 0),e([Q({type:Number})],Ji.prototype,"index",void 0),e([J()],Ji.prototype,"current",void 0),e([J()],Ji.prototype,"currentValue",void 0),Ji=e([g(Ki),m(S`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${Qi}--size:1.45em;${Qi}--gap:.25em}[part=root]{display:flex;gap:var(${Qi}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${Qi}--size);justify-content:center;width:var(${Qi}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${he.outlineColor}:var(${he.active})}`)],Ji);var to=Ji;to.define();const eo="switch",io=le(eo);let oo=class Switch extends gi{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return Ct`<div part="root" ${Ht(this.observedRecord)} class="round"><input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"> <span part="handle"></span></div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};e([Q({type:Boolean})],oo.prototype,"default",void 0),e([Q({type:Boolean,attribute:"checked",reflect:!0})],oo.prototype,"value",void 0),oo=e([g(eo),m(S`:host,:host([contents]) [part=root]{display:inline-block}:host{${io}-width:3em;${io}-height:calc(var(${io}-width)/2);${io}-handle-size:1.25em;${io}-handle-space:calc(var(${io}-width)/4 - var(${io}-handle-size)/2);${io}-transition:.2s ease-in-out;background:var(${he.passive});border-radius:calc(var(${io}-height)/2);height:var(${io}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${io}-width)}:host([checked]){background:var(${he.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${io}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${io}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],oo);var ro=oo;ro.define();const so="text",no=le(so);let ao=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return Ct`<span part="root" ${Ht(this.observedRecord)} class="${qt(this.underline)}">${Vt()}</span>`}};e([Q()],ao.prototype,"underline",void 0),e([Q({type:Boolean})],ao.prototype,"clip",void 0),ao=e([g(so),m(S`:host{${no}--color:currentColor;${no}--color-hover:currentColor;${no}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${no}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${no}--color-hover,var(${no}--color))}[part=root]:active{color:var(${no}--color-active,var(${no}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${he.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],ao);var lo=ao;lo.define();const ho="tabs",co=le(ho),po="hover";let uo=class Tabs extends GlobalStyle{constructor(){super(...arguments),this.outlineType="border",this.useSlot=!1,this.index=0,this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css))}render(){return Ct`<ul part="root" ${Ht(this.observedRecord)} @mouseleave="${this._handleMouseLeave}">${this.tabs?.map(((t,e)=>t||this.useSlot?Ct`<li part="${qt("item",{selected:this.index===e})}" @mouseenter="${()=>{this.move(this._lastIndex,e),this._lastIndex=e}}" @click="${()=>this.select(e)}">${this.useSlot?Vt(t):t}<div part="indicator"></div></li>`:""))}</ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(po),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:o,_indicators:s}=this,a=o[e];if(!a)return;a.part.add(po);const l=o[t];if(!l)return;l.part.remove(po);const h=s[e],c=s[t];if(!h||!c)return;const d=c.getBoundingClientRect(),p=a.getBoundingClientRect(),u=d.x-p.x,v=d.y-p.y,f=d.width,{style:m}=h;m.transform=`translate3d(${u}px,${v}px,0)`,m.width=f+"px",m.transition=c.style.transition="none",h.getBoundingClientRect(),m.width=m.transform=m.transition=c.style.transition=""}select(t){const{index:e,tabs:o,_lastIndex:s,useSlot:a}=this;o&&e!==t&&t in o&&(this.dispatchCustomEvent("select",t),this.move(s,t),this._lastIndex=t,e in o&&(o[e]||a)&&(this.index=t))}};e([Q({attribute:"outline-type"})],uo.prototype,"outlineType",void 0),e([Q({type:Boolean})],uo.prototype,"useSlot",void 0),e([Q({type:Array})],uo.prototype,"tabs",void 0),e([Q({type:Number})],uo.prototype,"index",void 0),e([ot("[part~=item]")],uo.prototype,"_items",void 0),e([ot("[part=indicator]")],uo.prototype,"_indicators",void 0),uo=e([g(ho),m(S`:host{${co}--indicator-background:var(${he._colors.darkgray[7]});${co}--space:0.25em;border-radius:var(${he.radius});cursor:default;display:flex;transition:.2s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${co}--space);overflow-x:clip;padding:var(${co}--space);position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .4em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${co}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${co}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],uo);var vo=uo;function fo(t,e=2){return t.toString().padStart(e,"0").split("")}vo.define();let mo=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return Ct`<span part="root" ${Ht(this.observedRecord)}>${function(t,e=new Date,o="%"){var s;if(!t)return t;if(isNaN(e.getTime()))return;const a=`${o}${o}`,l=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(l.push(e),a)));const h=e.getTimezoneOffset()/-60,c={Z:[h>=0?"+"+h.toString():h.toString()],Y:e.getFullYear().toString().split(""),M:fo(e.getMonth()+1),D:fo(e.getDate()),h:fo(e.getHours()),m:fo(e.getMinutes()),s:fo(e.getSeconds()),S:fo(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=c[e])||void 0===s?void 0:s.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)}</span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};e([Q()],mo.prototype,"escape",void 0),e([Q()],mo.prototype,"format",void 0),e([Q({type:Object})],mo.prototype,"time",void 0),e([Q({type:Number})],mo.prototype,"timeout",void 0),e([Q({type:Number})],mo.prototype,"gap",void 0),mo=e([g("time"),m(S`:host{text-align:center}`)],mo);var go,yo=mo;yo.define();const $o="tooltip",bo=le($o);let _o=go=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=go.aligns[this.align]||"inherit",e="focus"===this.type;return Ct`<div part="root" ${Ht(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}">${Vt()}<div part="tip" direction-outset-place>${this.tip?Ct`<span class="passive">${this.tip}</span>`:Vt("tip")}</div></div>`}};_o.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},e([Q()],_o.prototype,"tip",void 0),e([Q()],_o.prototype,"direction",void 0),e([Q()],_o.prototype,"align",void 0),e([Q({type:Boolean})],_o.prototype,"propagation",void 0),e([Q()],_o.prototype,"type",void 0),_o=go=e([g($o),m(Li,S`:host{${bo}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${bo}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],_o);var wo=_o;wo.define();const xo="typewriter",ko=le(xo);let Co=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return Ct`<div part="root" ${Ht(this.observedRecord)}>${Vt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i></div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};e([Q()],Co.prototype,"content",void 0),e([Q({type:Boolean})],Co.prototype,"ended",void 0),e([Q({type:Number})],Co.prototype,"max",void 0),e([Q({type:Number})],Co.prototype,"min",void 0),e([Q({type:Number})],Co.prototype,"delay",void 0),e([Q({type:Number})],Co.prototype,"index",void 0),e([J()],Co.prototype,"contentInternal",void 0),e([et("i")],Co.prototype,"_i",void 0),Co=e([g(xo),m(S`:host{${ko}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${ko}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],Co);var So=Co;return So.define(),t.Alert=ye,t.Avatar=be,t.Badge=ke,t.Breath=Re,t.Button=Oe,t.Card=Ue,t.Carousel=Ge,t.Details=Ze,t.Dialog=Je,t.Divider=ei,t.Dragbox=oi,t.Flex=ni,t.Form=li,t.Grid=di,t.Heading=ui,t.Input=$i,t.Layout=_i,t.Link=Ri,t.Progress=Ti,t.Range=Ii,t.Rotate=Di,t.Router=Ci,t.Select=Fi,t.Skeleton=Xi,t.Split=to,t.Switch=ro,t.Tabs=vo,t.Text=lo,t.Time=yo,t.Tooltip=wo,t.Typewriter=So,t}({});
58
+ const Dt=6;let Ut=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};function Ht(t,e){(t=>o(t)||!1===t)(e)?this.removeAttribute(t):!0===e?this.setAttribute(t,""):s(e)||(t=>"number"==typeof t)(e)&&!Number.isNaN(e)?this.setAttribute(t,String(e)):this[t]=e}const Lt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class AttrDirective extends Ut{render(t,e){}update(t,[e,o=Ht]){if(e&&t.type===Dt)for(const s in e)o.call(t.element,s,e[s]);return Rt}}),Vt=((t,e)=>o=>t({...e,...o}))(Lt,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),jt=t=>St`<slot name="${t||Et}"></slot>`,Gt=(t,e)=>{if(!t)return Et;const o=s(t)?t:f(t);return o?St`<style media="${Et}">${o}</style>`:Et},Ft=t=>(e,...o)=>{const a=At(e,o),l=s(t)?t:t.join(" "),h=t=>St`<svg viewBox="${l}" ${Vt(t)}>${a}</svg>`;return h.body=a,h.viewBox=l,h};function*qt(t,e,o){for(let o=0;o<t;o++)yield e(o)}const Wt=(...t)=>t.reduce(((t,e)=>{if(!e)return t;if(l(e))return c(t,Wt(...e)," ");if(a(e)){for(const o in e)e[o]&&(t=c(t,o," "));return t}return c(t,e," ")}),"");function Yt(t,e=this){if(!e||!t)return[];const o=new Set;e instanceof Element&&e.shadowRoot&&Yt(t,e.shadowRoot).forEach((t=>o.add(t))),e.querySelectorAll(t).forEach((t=>o.add(t)));for(const s of e.children)Yt(t,s).forEach((t=>o.add(t)));return Array.from(o)}function Zt(t,e=this){if(!e||!t)return null;let o;if(e instanceof Element&&e.shadowRoot&&(o=Zt(t,e.shadowRoot),o))return o;if(o=e.querySelector(t),o)return o;for(const s of e.children)if(o=Zt(t,s),o)return o;return null}class Events{constructor(){this.inner=new Map}add(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e)||new Map,l=a.get(t)||new Set;return l.add(o),a.set(t,l),this.inner.set(e,a),t.addEventListener(e,o,s),o}remove(t,e,o,s){if(!t||!o)return;const a=this.inner.get(e);if(a){const s=a.get(t);s&&(s.delete(o),s.size||(a.delete(t),a.size||this.inner.delete(e)))}t.removeEventListener(e,o,s)}removeAll(){this.inner.forEach(((t,e)=>{t.forEach(((t,o)=>{t.forEach((t=>{o.removeEventListener(e,t)}))})),t.clear()})),this.inner.clear()}}class Observers{constructor(){this.inner=new Map}add(t,e,o,s){const[a,l]=((t,e,o)=>{let s,a;switch(t){case MutationObserver:case ResizeObserver:s=new t(e),a=t=>s.observe(t,o);break;case IntersectionObserver:s=new t(e,o),a=t=>s.observe(t);break;case PerformanceObserver:s=new t(e),a=()=>s.observe(o)}return[s,a]})(e,o,s);if(a)return this.inner.set(a,(this.inner.get(a)||new Set).add(t)),l(t),a}remove(t,e){t.disconnect();const o=this.inner.get(t);"unobserve"in t?(e?(t.unobserve(e),o?.delete(e)):(o?.forEach((e=>{t.unobserve(e)})),o?.clear()),o&&!o.size&&this.inner.delete(t)):o&&this.inner.delete(t)}removeAll(){this.inner.forEach(((t,e)=>{this.remove(e)}))}}class Ranger{constructor(t,e,o){this.max=Math.max(t,e),this.min=Math.min(t,e),this.diff=this.max-this.min,this.step=o}random(){return this.normalize(Math.random()*this.diff+this.min)}present(t){return this.normalize(t*this.diff)}normalize(t){return t=this.restrict(t),this.step?this.min+Math.round((t-this.min)/this.step)*this.step:t}restrict(t){return this.max<=t?this.max:this.min>=t?this.min:t}}class RouteTree{constructor(){this.matchType=RouteTree.MatchTypes.strict,this.children=[]}insert(t,e,o=0){if(e||(e=RouteTree.split(t)),e.length===o)return void(this.pattern=t);const s=e[o];let a=this.findStrict(s);a||(a=new RouteTree,a.part=s,a.matchType=RouteTree.dynamic(s).matchType,this.children.push(a),this.sorted=!1),a.insert(t,e,o+1)}search(t,e=0){if(s(t)&&(t=RouteTree.split(t)),this.sorted||this.sort(),t.length===e||RouteTree.dynamic(this.part).matchType===RouteTree.MatchTypes.multi)return this.pattern?this:null;const o=t[e],a=this.filterWide(o);for(const o of a){const s=o.search(t,e+1);if(null!==s)return s}return null}findStrict(t){return this.children.find((e=>e.part===t))||null}filterWide(t){return this.children.filter((e=>e.part===t||e.matchType))}sort(){const{children:t}=this;if(t.length){t.sort(((t,e)=>t.matchType-e.matchType));for(const e of t)e.sort()}this.sorted=!0}static parseParams(t,e){const o=RouteTree.split(t),s=RouteTree.split(e),a={};for(let t=0;t<s.length;t++){const e=s[t],{key:l,matchType:h}=RouteTree.dynamic(e);if(h===RouteTree.MatchTypes.single)a[l]=o[t];else if(h===RouteTree.MatchTypes.multi){a[l]=o.slice(t).join("/");break}}return a}static dynamic(t){if(t){if(d(t,"{","}")||d(t,"[","]")){t=t.slice(1,-1);const e=RouteTree.dynamic(t);return e.matchType||=RouteTree.MatchTypes.single,e}if(t.startsWith(":"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.single};if(t.startsWith("*"))return{key:t.slice(1),matchType:RouteTree.MatchTypes.multi};if(t.startsWith("..."))return{key:t.slice(3),matchType:RouteTree.MatchTypes.multi}}return{key:t,matchType:RouteTree.MatchTypes.strict}}static split(t){return t.split("/").filter((t=>t))}}RouteTree.MatchTypes={strict:0,single:1,multi:2};class Timeouts{constructor(){this.inner=new Set}add(t){if(void 0!==t)return t=+t,this.inner.has(t)&&clearTimeout(t),this.inner.add(t),t}remove(t){void 0!==t&&(t=+t,clearTimeout(t),this.inner.delete(t))}removeAll(){this.inner.forEach(clearTimeout),this.inner.clear()}}const Xt=(t,{attribute:e})=>!0===e||void 0===e?String(t).toLowerCase():!1!==e&&"symbol"!=typeof t?e:void 0,Kt=/^[\s\S]*{[\s\S]*}$/;class GodownElement extends zt{static define(t=this.elementTagName,e){this.isDefined()||this.godownConfig.define(t,this,e)}static isDefined(){return!!this.getDefined()}static getDefined(){return this.godownConfig.get(this.elementTagName)}static finalize(){super.finalize(),this.elementAttributes=new Map;for(const[t,e]of this.elementProperties.entries()){const o=Xt(t,e);o&&this.elementAttributes.set(o,t)}}get observedRecord(){const t={};for(const[e,o]of this.constructor.elementAttributes.entries())t[e]=this[o];return t}get _slot(){return this.shadowRoot?this.shadowRoot.querySelector("slot:not([name])"):null}get _slotAll(){return this.shadowRoot?[...this.shadowRoot.querySelectorAll("slot")]:[]}get _slottedAll(){return[...this.querySelectorAll("[slot]")]}get _slottedNames(){return this._slottedAll.map((t=>t.getAttribute("slot"))).filter((t=>t))}getBoundingClientRect(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){let t;return this.contents&&(t=this.contentsRoot||this.shadowRoot?.firstElementChild)&&t!==this?t.getClientRects():super.getClientRects()}get stylex(){return this.__stylex.css}set stylex(t){t=t.trim(),Kt.test(t)||(t=`:host{${t}}`),this.shadowRoot?(this.__stylex.index&&this.shadowRoot.adoptedStyleSheets.splice(this.__stylex.index,1),this.__stylex.css=t,this.__stylex.index=this.adoptStyles(t)):this.__stylex.lazy=t}constructor(t){super(),this.events=new Events,this.observers=new Observers,this.timeouts=new Timeouts,this.__stylex={},this.assign={...GodownElement.godownConfig?.assign||{},...t}}connectedCallback(){super.connectedCallback(),this.assign&&(Object.assign(this,this.assign),this.assign=null);const{lazy:t}=this.__stylex;t&&(this.adoptStyles(t),this.__stylex.lazy="")}disconnectedCallback(){this.events.removeAll(),this.observers.removeAll(),this.timeouts.removeAll()}mount(t){this.firstUpdated(t)}unmount(){this.disconnectedCallback()}remount(t){this.unmount(),this.connectedCallback(),this.mount(t)}deepQuerySelector(t){return Zt.call(this,t)}deepQuerySelectorAll(t){return Yt.call(this,t)}adoptStyles(...t){if(!this.shadowRoot||!t.length)return;const e=this.shadowRoot.adoptedStyleSheets,o=new CSSStyleSheet;return t.forEach((t=>o.insertRule(t.toString()))),e.push(o),e.length-1}dispatchCustomEvent(t,e,o){this.dispatchEvent(new CustomEvent(t,{detail:e,composed:!0,...o}))}}GodownElement.godownConfig=new class GodownConfig{constructor(t){this.assign=null,this.prefix="godown",this.suffix="",this.components=new Map,this.registry=customElements,t&&Object.assign(this,t)}tag(t){return p(this.prefix+"-"+t+"-"+this.suffix)}define(t,e,o){this.registry.define(t,e,o),this.components.set(t,e)}get(t){return this.registry.get(t)}getName(t){const{getName:e}=this.registry;return e?e(t):[...this.components.entries()].find((([,e])=>e===t))?.[0]||null}whenDefined(t){return this.registry.whenDefined(t)}upgrade(t){this.registry.upgrade(t)}},e([J({type:Boolean,reflect:!0})],GodownElement.prototype,"contents",void 0),e([J({reflect:!0})],GodownElement.prototype,"stylex",null);var Qt=Ft("0 0 56 56")`<path fill="currentColor" d="M28 4c13.255 0 24 10.745 24 24S41.255 52 28 52S4 41.255 4 28S14.745 4 28 4m0 4C16.954 8 8 16.954 8 28s8.954 20 20 20s20-8.954 20-20S39.046 8 28 8m10.788 11.93c.67.67.67 1.756 0 2.425l-13.36 13.36a1.715 1.715 0 0 1-2.424 0l-5.645-5.646a1.714 1.714 0 0 1 2.425-2.424l3.22 3.22c.67.67 1.755.67 2.425 0l10.934-10.934c.67-.67 1.755-.67 2.425 0"/>`,Jt=Ft("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.023-15.68c1.124 0 1.757-.633 1.78-1.851l.352-12.375c.024-1.196-.914-2.086-2.156-2.086c-1.266 0-2.156.867-2.133 2.062l.305 12.399c.023 1.195.68 1.851 1.852 1.851m0 7.617c1.335 0 2.53-1.078 2.53-2.437c0-1.383-1.171-2.438-2.53-2.438c-1.383 0-2.532 1.078-2.532 2.438c0 1.336 1.172 2.437 2.532 2.437"/>`,te=Ft("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.211-28.266c1.71 0 3.047-1.36 3.047-3.047c0-1.71-1.336-3.07-3.047-3.07s-3.047 1.36-3.047 3.07a3.026 3.026 0 0 0 3.047 3.047m-3.914 21.235h9.562c.961 0 1.711-.68 1.711-1.641c0-.914-.75-1.64-1.71-1.64H30.53V25.68c0-1.266-.656-2.11-1.828-2.11h-4.43c-.937 0-1.687.727-1.687 1.64c0 .962.75 1.642 1.687 1.642h2.532v10.757h-2.93c-.938 0-1.688.727-1.688 1.641c0 .96.75 1.64 1.688 1.64"/>`,ee=Ft("0 0 56 56")`<path fill="currentColor" d="M19.504 43.152h16.969c.797 0 1.289-.492 1.289-1.289v-3.75c0-5.672 8.25-9.328 8.25-19.453C46.012 7.996 38.793.871 27.988.871s-18 7.125-18 17.79c0 10.124 8.227 13.78 8.227 19.452v3.75c0 .797.515 1.29 1.289 1.29m2.203-4.992c0-6.89-8.18-10.57-8.18-19.476c0-8.579 5.79-14.274 14.461-14.274c8.672 0 14.485 5.695 14.485 14.274c0 8.906-8.203 12.586-8.203 19.476v1.453H21.707Zm-1.336 11.32h15.235c1.195 0 2.156-.984 2.156-2.203s-.961-2.203-2.157-2.203H20.371c-1.195 0-2.156.985-2.156 2.203c0 1.22.96 2.203 2.156 2.203m7.617 5.649c3.235 0 5.508-1.477 5.742-3.75H22.246c.211 2.273 2.484 3.75 5.742 3.75"/>`,ie=Ft("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-.492-15.07c1.172 0 1.898-.727 1.898-1.664v-.282c0-1.312.75-2.133 2.39-3.21c2.274-1.5 3.891-2.884 3.891-5.673c0-3.914-3.468-6-7.453-6c-4.031 0-6.68 1.899-7.312 4.055c-.117.399-.211.774-.211 1.172c0 1.031.844 1.617 1.617 1.617c1.336 0 1.547-.726 2.297-1.594c.773-1.289 1.898-2.062 3.469-2.062c2.133 0 3.515 1.195 3.515 3c0 1.594-.984 2.367-3.023 3.773c-1.688 1.172-2.953 2.414-2.953 4.711V31c0 1.242.68 1.852 1.875 1.852m-.047 7.007c1.36 0 2.531-1.078 2.531-2.437c0-1.383-1.148-2.438-2.531-2.438s-2.531 1.078-2.531 2.438c0 1.336 1.171 2.437 2.53 2.437"/>`,oe=Ft("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.156-9.727c.656 0 1.148-.28 1.664-.797l15.75-15.984c.492-.492.797-1.078.797-1.617c0-1.078-.891-1.945-1.97-1.945c-.562 0-1.1.28-1.616.796L18.742 34.61c-.539.516-.797 1.102-.797 1.641c0 1.055.774 1.945 1.899 1.945"/>`,re=Ft("0 0 56 56")`<path fill="currentColor" d="M28 51.906c13.055 0 23.906-10.828 23.906-23.906c0-13.055-10.875-23.906-23.93-23.906C14.899 4.094 4.095 14.945 4.095 28c0 13.078 10.828 23.906 23.906 23.906m0-3.984C16.937 47.922 8.1 39.062 8.1 28c0-11.04 8.813-19.922 19.876-19.922c11.039 0 19.921 8.883 19.945 19.922c.023 11.063-8.883 19.922-19.922 19.922m-8.016-9.984c.516 0 .985-.211 1.336-.586l6.657-6.68l6.656 6.68c.351.351.82.586 1.36.586c1.03 0 1.874-.868 1.874-1.899c0-.539-.21-.984-.562-1.336l-6.657-6.656l6.68-6.703c.375-.399.563-.797.563-1.313a1.865 1.865 0 0 0-1.875-1.875c-.493 0-.915.164-1.313.563l-6.727 6.703l-6.703-6.68c-.351-.375-.773-.539-1.289-.539c-1.054 0-1.875.797-1.875 1.852c0 .515.188.96.563 1.312l6.656 6.68l-6.656 6.68c-.375.328-.563.796-.563 1.312c0 1.031.82 1.898 1.875 1.898"/>`,se=Ft("0 0 56 56")`<path fill="currentColor" d="M10.023 43.023c-.796.797-.82 2.157 0 2.954c.82.796 2.157.796 2.977 0l15-15l15 15c.797.796 2.156.82 2.977 0c.796-.82.796-2.157 0-2.954L30.953 28l15.024-15c.796-.797.82-2.156 0-2.953c-.844-.82-2.18-.82-2.977 0l-15 15l-15-15c-.82-.82-2.18-.844-2.977 0c-.796.82-.796 2.156 0 2.953l15 15Z"/>`;const ne=(t,e,o)=>({r:t,g:e,b:o,toString(){return`${this.r} ${this.g} ${this.b}`}}),ae={darkgray:[ne(121,121,121),ne(109,109,109),ne(97,97,97),ne(85,85,85),ne(73,73,73),ne(61,61,61),ne(48,48,48),ne(36,36,36),ne(24,24,24),ne(12,12,12)],lightgray:[ne(243,243,243),ne(231,231,231),ne(219,219,219),ne(206,206,206),ne(194,194,194),ne(182,182,182),ne(170,170,170),ne(158,158,158),ne(146,146,146),ne(133,133,133)],teal:[ne(213,249,248),ne(170,243,241),ne(128,237,234),ne(85,231,226),ne(43,225,219),ne(0,219,212),ne(0,175,170),ne(0,131,127),ne(0,88,85),ne(0,44,42)],blue:[ne(213,240,255),ne(170,224,255),ne(128,209,255),ne(85,193,255),ne(43,178,255),ne(0,162,255),ne(0,130,204),ne(0,97,153),ne(0,65,102),ne(0,32,51)],green:[ne(221,243,221),ne(186,231,186),ne(152,219,152),ne(117,206,117),ne(82,194,82),ne(48,182,48),ne(38,146,38),ne(29,109,29),ne(19,73,19),ne(10,36,10)],red:[ne(251,221,221),ne(247,186,187),ne(243,152,154),ne(239,118,120),ne(235,83,86),ne(231,49,52),ne(185,39,42),ne(139,29,31),ne(92,20,21),ne(46,10,10)],purple:[ne(242,228,253),ne(229,201,250),ne(217,174,248),ne(204,146,245),ne(191,119,243),ne(178,92,240),ne(142,74,192),ne(107,55,144),ne(71,37,96),ne(36,18,48)],orange:[ne(255,235,213),ne(255,216,170),ne(255,196,128),ne(255,176,85),ne(255,157,43),ne(255,137,0),ne(204,110,0),ne(153,82,0),ne(102,55,0),ne(51,27,0)],yellow:[ne(251,252,216),ne(247,248,177),ne(243,245,138),ne(239,242,98),ne(235,238,59),ne(231,235,20),ne(185,188,16),ne(139,141,12),ne(92,94,8),ne(46,47,4)],pink:[ne(254,222,233),ne(253,189,211),ne(252,156,190),ne(251,123,168),ne(250,90,146),ne(249,57,124),ne(199,46,99),ne(149,34,74),ne(100,23,50),ne(50,11,25)]};class GlobalStyle extends GodownElement{}const le=((t,e)=>((t,e)=>((t,e)=>{if(!t||!e)return t;let o=0;for(;o<t.length&&e(t.slice(o,o+1));)o+=1;return t.slice(o)})(((t,e)=>{if(!t||!e)return t;let o=t.length;for(;o>0&&e(t.slice(o-1,o));)o-=1;return t.slice(0,o)})(t,e),e))(t,(t=>t===e)))(GlobalStyle.godownConfig.prefix,"-");function he(t,e=1){return function(t){return S(`--${t}`)}(le+"-".repeat(e)+t)}const ce={clipBackground:he("clip-background",2),active:he("active",2),passive:he("passive",2),_colors:{},input:he("input",2),white:he("color-white",2),black:he("color-black",2),color:he("color",2),radius:he("radius",2),outlineWidth:he("outline-width",2),outlineColor:he("outline-color",2)};var de,pe;GlobalStyle.styles=[S(`:host{${ce.black}:rgb(0 0 0);${ce.white}:rgb(255 255 255);`+(de=(t,e,o)=>{ce._colors[t]||=[],ce._colors[t].push(S(ce.color+"-"+t+"-"+e));const s=`-${t}-${e}`;return`${ce.color+s}:rgb(${o});`},pe=ae,Object.entries(pe).flatMap((([t,e])=>e.map(((e,o)=>de(t,o,e)))))).join("")+m([[ce.active,`var(${ce._colors.blue[5]})`],[ce.passive,`var(${ce._colors.darkgray[5]})`],[ce.clipBackground,`linear-gradient(to bottom, var(${ce._colors.lightgray[0]}), var(${ce._colors.darkgray[0]}))`],[ce.outlineColor,`var(${ce._colors.darkgray[4]})`],[ce.outlineWidth,".075em"]])+"}"),A`button,dialog,input{border:0;outline:0}*{box-sizing:border-box;font-size:100%;font-style:normal;margin:0;padding:0}:host{border-style:none;box-sizing:border-box;outline-style:none}a{text-decoration:none}span{white-space:nowrap}svg{-webkit-user-select:none;user-select:none}:host([contents]){display:contents}[part=root]{height:100%;width:100%}:host([contents]) [part=root]{height:inherit;width:inherit}:where(:host([contents]) [part=root]){all:inherit;display:revert}`,A`:host{${ce.radius}:0.2em;border-radius:var(${ce.radius})}`];const ue="alert",ve=he(ue),fe=t=>[ce._colors[t][5],ce._colors[t][9]],me={green:fe("green"),blue:fe("blue"),orange:fe("orange"),red:fe("red"),yellow:fe("yellow"),purple:fe("purple"),teal:fe("teal"),pink:fe("pink"),gray:[ce._colors.lightgray[5],ce._colors.darkgray[5]],white:[ce._colors.lightgray[2],ce._colors.darkgray[7]],black:[ce._colors.darkgray[8],ce._colors.lightgray[5]]},ge={tip:{color:"teal",icon:ee},success:{color:"green",icon:Qt},info:{color:"blue",icon:te},warning:{color:"orange",icon:Jt},danger:{color:"red",icon:re},error:{color:"red",icon:re},help:{color:"purple",icon:ie},deprecated:{color:"gray",icon:oe}};let ye=class Alert extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=ge[this.call]?.color||this.color;if(t in me){const[e,o]=me[t];return f({":host":[[`${ve}--color`,`var(${e})`],[`${ve}--background`,`var(${o})`]]})}return null})),this.color="blue",this.autoclose=0,this.hideClose=!1,this.variant="dark"}render(){const t=this.call?ge[this.call].icon():jt("icon");return St`<div part="root" ${Lt(this.observedRecord)}> <div part="icon" class="start"> ${t} </div> <div part="content"> <strong part="title">${this.title||jt("title")}</strong> ${this.content||jt()} </div> ${this.hideClose||"blockquote"===this.variant?"":St`<div part="icon close" class="end" tabindex="0" @click="${this.close}"> ${se()} </div>`} </div>`}close(){this.remove(),this.dispatchCustomEvent("close",void 0,{bubbles:!0})}firstUpdated(){this.autoclose&&this.timeouts.add(setTimeout((()=>this.close()),this.autoclose))}static alert(t,e){const o=new this;return Object.assign(o,e),t.appendChild(o),o}};e([J()],ye.prototype,"call",void 0),e([J()],ye.prototype,"color",void 0),e([J({type:Number})],ye.prototype,"autoclose",void 0),e([J()],ye.prototype,"title",void 0),e([J()],ye.prototype,"content",void 0),e([J({type:Boolean})],ye.prototype,"hideClose",void 0),e([J()],ye.prototype,"variant",void 0),ye=e([y(ue),g(A`:host{${ve}--border-width:.075em;${ve}--blockquote-width:.2em;${ve}--blockquote-background:transparent;${ve}--gap:.5em}:host,:where(:host([contents]) [part=root]){display:block}[part=root]{align-items:center;background:var(${ve}--background);border-color:currentColor;border-radius:inherit;border-style:solid;border-width:var(${ve}--border-width);color:var(${ve}--color,currentColor);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr;padding:var(${ve}--gap)}[variant=blockquote]{background:var(${ve}--blockquote-background);border-radius:0;border-width:0;border-left-width:var(${ve}--blockquote-width)}[part~=icon]{align-items:center;display:grid;height:2em}.start svg{margin-inline-end:var(${ve}--gap)}.end svg{margin-inline-start:var(${ve}--gap)}svg{height:1.25em;width:1.25em}[part=content]{grid-row:span 2/span 2}`)],ye);var $e=ye;$e.define();let be=class Avatar extends GlobalStyle{constructor(){super(...arguments),this.name="",this.round=!1}render(){return St`<div part="root" ${Lt(h(this.observedRecord,"src"))}> ${this._renderAvatar()} </div>`}_renderAvatar(){return this.src?St`<img part="image" src="${this.src}" alt="${this.name}" @error=${this._handleError}/>`:this.name?St`<span part="name">${this.formatName()}</span>`:jt()}formatName(){return this.name}_handleError(){this.src=void 0}};e([J()],be.prototype,"src",void 0),e([J()],be.prototype,"name",void 0),e([J({type:Boolean})],be.prototype,"round",void 0),be=e([y("avatar"),g(A`:host{background:var(${ce.passive});height:2em;overflow:hidden;vertical-align:bottom;width:2em}:host,[part=root]{display:inline-flex}:host([contents]) [part=root]{display:inline-flex;height:inherit;width:inherit}:host([round]){border-radius:50%}[part=image]{height:100%;object-fit:cover;width:100%}[part=root]{align-items:center;border-radius:inherit;justify-content:center;position:relative}`)],be);var _e=be;_e.define();const we="badge",xe=he(we);let ke=class Badge extends GlobalStyle{constructor(){super(...arguments),this.position="top-right",this.value=0,this.dot=!1,this.max=99}formatValue(t){return t>this.max?this.max+"+":t+""}render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${jt()} ${this.value||this.dot?St`<div part="badge">${this.dot?"":this.formatValue(this.value)}</div>`:""} </div>`}};e([J()],ke.prototype,"position",void 0),e([J({type:Number})],ke.prototype,"value",void 0),e([J({type:Boolean})],ke.prototype,"dot",void 0),e([J({type:Number})],ke.prototype,"max",void 0),ke=e([y(we),g(A`:host{${xe}--background:var(${ce.active});${xe}--offset:0%;${xe}--offset-x:var(${xe}--offset);${xe}--offset-y:var(${xe}--offset)}:host,:host([contents]) [part=root]{display:inline-block}[part=root]{position:relative}[part=badge]{background:var(${xe}--background);border-radius:calc(infinity*1px);font-size:75%;padding:0 .5em;position:absolute;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none}[part=badge]:empty{border-radius:50%;font-size:100%;height:.5em;padding:0;width:.5em}[position^=top] [part=badge]{top:calc(var(${xe}--offset-y))}[position$=right] [part=badge]{left:calc(100% - var(${xe}--offset-x))}[position^=bottom] [part=badge]{top:calc(100% - var(${xe}--offset-y))}[position$=left] [part=badge]{left:calc(var(${xe}--offset-x))}`)],ke);var Ce=ke;Ce.define();const Se="breath",Ae=he(Se),Re=/[\s,]+/;let Ee=class Breath extends GlobalStyle{render(){const t=this.getTexts();return St`<div part="root" ${Lt(this.observedRecord)}> ${[t.map(this._renderText),Gt(this._computeStyle(t.length))]} </div>`}_renderText(t){return St`<span class="rel"> <span class="nocolor">${t}</span> <span class="colorful">${t}</span> </span>`}getTexts(){return Array.isArray(this.content)?this.content:(this.content||this.textContent).split(Re).filter((t=>t))}_computeStyle(t){const e=50/t,o=this.duration||1e3*(2*t+2);let s="";for(let e=1;e<=t;e++)s+=`.rel:nth-child(${e}) .colorful{animation-delay:${-o/t*(t-e+1)}ms;background:var(${Ae}--${e},var(${Ae}--${(e-1)%3+1}));}`;return`.colorful{animation-duration:${o}ms;}@keyframes colorfulN{0%,${3*e}%{opacity:0;}${e}%,${2*e}%{opacity:1;}}${s}`}};e([J()],Ee.prototype,"content",void 0),e([J({type:Number})],Ee.prototype,"duration",void 0),Ee=e([y(Se),g(A`:host{${Ae}--deg:60deg;${Ae}--1-1:var(${ce._colors.red[5]});${Ae}--1-2:var(${ce._colors.yellow[5]});${Ae}--2-1:var(${ce._colors.green[5]});${Ae}--2-2:var(${ce._colors.purple[5]});${Ae}--3-1:var(${ce._colors.blue[5]});${Ae}--3-2:var(${ce._colors.pink[5]});${Ae}--1:linear-gradient(var(${Ae}--deg),var(${Ae}--1-1),var(${Ae}--1-2));${Ae}--2:linear-gradient(var(${Ae}--deg),var(${Ae}--2-1),var(${Ae}--2-2));${Ae}--3:linear-gradient(var(${Ae}--deg),var(${Ae}--3-1),var(${Ae}--3-2))}`,A`:host{align-items:center;direction:ltr;font-size:2em;margin:auto;width:-moz-fit-content;width:fit-content}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}::selection{background:none}.rel{font-size:inherit;font-weight:800;letter-spacing:-.05em;position:relative}`,A`.colorful,.nocolor{animation-iteration-count:infinite;-webkit-background-clip:text!important;background-clip:text!important;box-sizing:border-box;color:transparent;display:inline-block;padding:0 .05em}.colorful{animation-name:colorfulN;opacity:0}.nocolor{background:var(${ce.clipBackground});position:absolute;top:0}`)],Ee);var Te=Ee;Te.define();const Me="button",Pe=he(Me),Ne=ce.white,Ie=ce.black,Oe={black:[Ne,ce._colors.darkgray[7],ce._colors.darkgray[5]],gray:[Ne,ce._colors.darkgray[1],ce._colors.lightgray[8]],white:[Ie,ce._colors.lightgray[3],ce._colors.lightgray[0]],blue:[Ne,ce._colors.blue[6],ce._colors.blue[4]],green:[Ne,ce._colors.green[6],ce._colors.green[4]],red:[Ne,ce._colors.red[6],ce._colors.red[4]],orange:[Ne,ce._colors.orange[6],ce._colors.orange[4]],pink:[Ne,ce._colors.pink[6],ce._colors.pink[4]],purple:[Ne,ce._colors.purple[6],ce._colors.purple[4]],yellow:[Ie,ce._colors.yellow[6],ce._colors.yellow[4]],teal:[Ne,ce._colors.teal[6],ce._colors.teal[4]]};let ze=class Button extends GlobalStyle{constructor(){super(...arguments),this.__colorSC=new StyleController(this,(()=>{const t=this.nextColor();if(t in Oe){const[e,o,s]=Oe[t];return f({":host":[[`${Pe}--color`,`var(${e})`],[`${Pe}--background`,`var(${o})`],[`${Pe}--gradients`,`var(${s})`]]})}return null})),this.plain=!1,this.disabled=!1,this.ghost=!1,this.active=!1,this.round=!1,this.color="black"}render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${this.content||jt()} <span part="modal-root"></span> </div>`}focus(){this.disabled||(this.active=!0,super.focus())}blur(){this.active=!1,super.blur()}connectedCallback(){super.connectedCallback(),this.events.add(this,"click",this._handelClick,!0)}_handelClick(t){if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.plain||this._handleModal(t)}_handleModal(t){const e=document.createElement("i"),{width:o,height:s}=this.getBoundingClientRect(),{x:a,y:l}=this._root.getBoundingClientRect(),h=2*Math.sqrt(s**2+o**2)+"px";e.style.height=h,e.style.width=h,e.style.left=t.x-a+"px",e.style.top=t.y-l+"px",e.style.animationName="kf",this._modalRoot.appendChild(e),e.addEventListener("animationend",(()=>e.remove()),{once:!0})}nextColor(){return this.color}};e([J({type:Boolean,reflect:!0})],ze.prototype,"plain",void 0),e([J({type:Boolean,reflect:!0})],ze.prototype,"disabled",void 0),e([J({type:Boolean,reflect:!0})],ze.prototype,"ghost",void 0),e([J({type:Boolean,reflect:!0})],ze.prototype,"active",void 0),e([J({type:Boolean,reflect:!0})],ze.prototype,"round",void 0),e([J({reflect:!0})],ze.prototype,"color",void 0),e([J()],ze.prototype,"content",void 0),e([st("modal-root")],ze.prototype,"_modalRoot",void 0),e([st("root")],ze.prototype,"_root",void 0),ze=e([y(Me),g(A`:host(:not([disabled]):active){transform:scale(var(${Pe}--focus-scale))}:host([round]){border-radius:calc(infinity*1px)}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host([ghost]){${Pe}--modal-background:var(${Pe}--ghost-color);background:transparent;box-shadow:inset 0 0 0 var(${Pe}--ghost-width) var(${Pe}--ghost-color);color:var(${Pe}--ghost-color)}:host([plain]){${Pe}--gradients:unset;${Pe}--focus-scale:unset}`,A`:host{${Pe}--padding-x:.8em;${Pe}--padding-y:calc(var(${Pe}--padding-x)/4);${Pe}--padding:var(${Pe}--padding-y) var(${Pe}--padding-x);${Pe}--modal-animation-duration:1s;${Pe}--ghost-width:.08em;${Pe}--focus-scale:.97;${Pe}--deg:45deg;${Pe}--ghost-color:var(${Pe}--background);background:linear-gradient(var(${Pe}--deg),var(${Pe}--background),var(${Pe}--gradients,var(${Pe}--background)));color:var(${Pe}--color,inherit);cursor:pointer;display:block;overflow:hidden;padding:var(${Pe}--padding);text-align:center;width:-moz-fit-content;width:fit-content}[part=root]:not([contents]){height:100%;width:100%}[part=root]{border-radius:inherit;position:relative;transition:none;transition-duration:inherit;-webkit-user-select:none;user-select:none}i{animation-duration:var(${Pe}--modal-animation-duration);background:var(${Pe}--modal-background,currentColor);border-radius:50%;height:100%;inset:0;opacity:0;pointer-events:none;position:absolute;transform-origin:0 0;visibility:visible;width:100%}@keyframes kf{0%{opacity:var(${Pe}--modal-opacity,.1);transform:scale(0) translate(-50%,-50%)}80%{transform:scale(1) translate(-50%,-50%)}to{opacity:0}}`)],ze);var Be=ze;Be.define();const De="card",Ue=he(De);let He=class Card extends GlobalStyle{constructor(){super(...arguments),this.footer=!1,this.header=!1}render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${[this.header?jt("header"):"",jt(),this.footer?jt("footer"):""]} </div>`}};e([J({type:Boolean})],He.prototype,"footer",void 0),e([J({type:Boolean})],He.prototype,"header",void 0),He=e([y(De),g(A`:host{${Ue}--border-width:.075em;${Ue}--border-color:var(${ce.passive});${Ue}--padding:.75em;display:block;flex-shrink:0}slot{display:block;padding:var(${Ue}--padding)}[part=root]{border-color:var(${Ue}--border-color);border-radius:inherit;border-style:solid;border-width:var(${Ue}--border-width)}[name=footer]{padding-top:0}[name=header]{padding-bottom:0}`)],He);var Le=He;Le.define();var Ve=Ft("0 0 56 56")`<path fill="currentColor" d="M35.805 47.723c.398.398.914.633 1.523.633c1.219 0 2.133-.915 2.133-2.133c0-.586-.234-1.125-.61-1.524L21.79 28.012l17.063-16.688c.375-.398.609-.96.609-1.523c0-1.219-.914-2.157-2.133-2.157c-.61 0-1.125.235-1.523.633L17.242 26.441c-.445.375-.703.961-.703 1.57c0 .587.258 1.126.703 1.571Z"/>`,je=Ft("0 0 56 56")`<path fill="currentColor" d="M18.695 48.367c.586 0 1.102-.234 1.524-.633L38.78 29.57c.446-.445.68-.984.68-1.57c0-.61-.234-1.172-.68-1.57L20.22 8.289a2.07 2.07 0 0 0-1.524-.656a2.12 2.12 0 0 0-2.156 2.156c0 .563.258 1.125.633 1.524L34.21 28L17.17 44.688c-.374.398-.632.937-.632 1.523c0 1.219.938 2.156 2.156 2.156"/>`;function Ge(t){return t.getBoundingClientRect().width}let Fe=class Carousel extends GlobalStyle{constructor(){super(...arguments),this.index=0,this.autoChange=0}render(){return St`<div part="root" ${Lt(this.observedRecord)}> <i part="prev" @click="${this.prev}"> ${Ve()} </i> <div part="move-root">${jt()}</div> <i part="next" @click="${this.next}"> ${je()} </i> </div>`}connectedCallback(){super.connectedCallback(),this.children.length&&(this.__cloneFirst?.remove(),this.__cloneLast?.remove(),this.__cloneLast=this.firstElementChild.cloneNode(!0),this.__cloneFirst=this.lastElementChild.cloneNode(!0),this.appendChild(this.__cloneLast),this.insertBefore(this.__cloneFirst,this.firstElementChild)),this.observers.add(this,ResizeObserver,(()=>{this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,!0)}))}async firstUpdated(){await this.updateComplete,this.show(this.index,!0)}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"index"===t&&this.isConnected&&this.show(this.index)}show(t,e){t=this.normalizeIndex(t),this.index=t,this._offset=this._computeOffset(),this._doTranslateX(`${this._offset}px`,e),this.dispatchCustomEvent("change",t),this.timeouts.remove(this.intervalID),this.autoChange>0&&(this.intervalID=this.timeouts.add(setInterval((()=>{this.next()}),this.autoChange)))}next(){this.index===this.childElementCount-3?(this._doTranslateX("0",!0),this.show(0)):this.show(this.index+1)}prev(){0===this.index?(this._doTranslateX(`-${this.childElementCount-1}00%`,!0),this.show(this.children.length-3)):this.show(this.index-1)}_doTranslateX(t,e){this._moveRoot.style.transform=`translateX(${t})`,this._moveRoot.style.transition=e?"none":""}_computeOffset(){let t=0;for(let e=0;e<=this.index;e++)t-=Ge(this.children[e]);return t+=(Ge(this)-Ge(this.children[this.index+1]))/2,t}normalizeIndex(t){return t<0?0:t>this.children.length-3?this.children.length-3:t}};e([J({type:Number})],Fe.prototype,"index",void 0),e([J({type:Number})],Fe.prototype,"autoChange",void 0),e([st("move-root")],Fe.prototype,"_moveRoot",void 0),Fe=e([y("carousel"),g(A`:host{display:block;transition:.3s}[part=root]{direction:ltr;overflow:hidden}[part=move-root],[part=root]{display:flex;height:100%;position:relative;transition:inherit;width:100%}[part=next],[part=prev]{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;-webkit-user-select:none;user-select:none;width:1.5em;z-index:1}[part=prev]{left:0}[part=next]{right:0}slot::slotted(*){flex-shrink:0!important}`)],Fe);var qe=Fe;qe.define();var We=Ft("0 0 56 56")`<path fill="currentColor" d="M28 39.46a2.1 2.1 0 0 0 1.57-.679l18.164-18.586a2.1 2.1 0 0 0 .633-1.5a2.12 2.12 0 0 0-2.156-2.156a2.27 2.27 0 0 0-1.523.61L28 34.21L11.313 17.148a2.23 2.23 0 0 0-1.524-.609a2.12 2.12 0 0 0-2.156 2.156c0 .586.234 1.102.633 1.524L26.43 38.78c.445.446.96.68 1.57.68"/>`;class SuperOpenable extends GlobalStyle{constructor(){super(...arguments),this.open=!1}toggle(t=!this.open){this.open=t}close(){this.open=!1}show(){this.open=!0}updated(t){void 0!==t.get("open")&&this.dispatchCustomEvent("change",this.open)}}e([J({type:Boolean,reflect:!0})],SuperOpenable.prototype,"open",void 0);const Ye="details",Ze=he(Ye);let Xe=class Details extends SuperOpenable{constructor(){super(...arguments),this.float=!1,this.fill=!1,this.summary=""}render(){return St`<dl part="root" ${Lt(this.observedRecord)}> <dt part="title" @click="${()=>this.toggle()}"> <span part="summary">${this.summary||jt("summary")}</span> <span part="icon">${We()}</span> </dt> <dd part="details" @click=${this.fill?()=>this.toggle():null}> <div style="min-height: 0;">${jt()}</div> </dd> </dl>`}};e([J({type:Boolean})],Xe.prototype,"float",void 0),e([J({type:Boolean})],Xe.prototype,"fill",void 0),e([J()],Xe.prototype,"summary",void 0),Xe=e([y(Ye),g(A`:host{${Ze}--icon-deg-open:0deg;${Ze}--icon-deg-close:90deg;display:block;padding:.2em;transition:.3s}[part=root]{position:relative}[part=title]{align-items:center;direction:ltr;grid-template-columns:auto auto;height:100%;justify-content:space-between}[part=details],[part=title]{display:grid;overflow:hidden;transition:inherit}[part=details]{grid-template-rows:0fr}:host([open]) [part=details]{grid-template-rows:1fr}[float] [part=details]{position:absolute;top:100%;width:100%}[part]{transition:inherit;transition-property:transform,grid-template-rows}[part=icon]{-webkit-backface-visibility:hidden;backface-visibility:hidden;display:flex;transform:rotate(var(${Ze}--icon-deg-close))}:host([open]) [part=icon]{transform:rotate(var(${Ze}--icon-deg-open))}`)],Xe);var Ke=Xe;Ke.define();const Qe="dialog",Je=he(Qe),ti=/[\s,]+/;let ei=class Dialog extends SuperOpenable{constructor(){super(...arguments),this.key="Escape",this.__modalInvoke=!1}set modal(t){this.contents=t}get modal(){return this.contents}render(){return St`<dialog part="root" ${Lt(this.observedRecord)}> ${jt()} </dialog>`}showModal(){this.modal=!0,this.__modalInvoke=!0,this.show()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"open"===t&&(this.open?this.modal?this._dialog.showModal():this._dialog.show():this._dialog.close())}updated(t){t.has("open")&&(this.open?(this.__submitEvent=this.events.add(this,"submit",this._handelSubmit),this.key&&(this.__keydownEvent=this.events.add(document,"keydown",this._handleKeydown.bind(this)))):(this.events.remove(this,"submit",this.__submitEvent),this.events.remove(document,"keydown",this.__keydownEvent)))}_handleKeydown(t){const e=this.key.split(ti);(e.includes(t.key)||e.includes(t.code))&&(t.preventDefault(),this.close())}_handelSubmit(t){"dialog"===t.target.method&&(t.preventDefault(),this.close())}close(){this.__modalInvoke&&(this.modal=!1,this.__modalInvoke=!1),this.open=!1}};e([J({type:Boolean,reflect:!0})],ei.prototype,"modal",null),e([J()],ei.prototype,"key",void 0),e([it("dialog")],ei.prototype,"_dialog",void 0),ei=e([y(Qe),g(A`:host{${Je}--background-modal:#000;${Je}--opacity-modal:0.2;background:none;display:block;left:50%;margin:auto;position:fixed;top:50%;transform:translate(-50%,-50%);width:-moz-fit-content;width:fit-content}:host(:not([open])){visibility:hidden}:host([contents]) dialog{position:fixed}dialog{background:inherit;position:relative}::backdrop{background:var(${Je}--background-modal);opacity:var(${Je}--opacity-modal)}`)],ei);var ii=ei;ii.define();let oi=class Divider extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return St`<div part="root" ${Lt(this.observedRecord)}></div>`}};e([J({type:Boolean,reflect:!0})],oi.prototype,"vertical",void 0),oi=e([y("divider"),g(A`:host{background:currentColor;color:var(${ce.passive});display:block;height:.05em;width:100%}:host([vertical]){height:100%;width:.05em}:host([contents]) [part=root]{background:currentColor;display:block;height:.05em;margin:auto;width:100%}[part=root]{display:contents}`)],oi);var ri=oi;ri.define();let si=class Dragbox extends GlobalStyle{constructor(){super(...arguments),this.__drag=!1}get _offsetParent(){return this.offsetParent??document.body}render(){return St`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this._handleDragStart}"> ${jt()} </div>`}firstUpdated(){this.reset()}_handleDragStart(t){this.__x=t.x,this.__y=t.y;const e=this._offsetParent.getBoundingClientRect(),o=this.getBoundingClientRect();this.__t=o.top-e.top,this.__l=o.left-e.left,this.__drag=!0,this.__handleMouseMove=this.events.add(document,"mousemove",this._handleDrag.bind(this)),this.__handleMouseLeave=this.events.add(document,"mouseleave",this._handleDragEnd.bind(this)),this.__handleMouseUp=this.events.add(document,"mouseup",this._handleDragEnd.bind(this))}_handleDragEnd(){this.__drag=!1,this.events.remove(document,"mousemove",this.__handleMouseMove),this.events.remove(document,"mouseleave",this.__handleMouseLeave),this.events.remove(document,"mouseup",this.__handleMouseUp)}_handleDrag(t){if(!this.__drag)return;const{__x:e,__y:o,__l:s,__t:a,style:l}=this,{height:h,width:c}=this._offsetParent.getBoundingClientRect(),{width:d,height:p}=this.getBoundingClientRect(),u=t.x-(e-s),v=t.y-(o-a);l.left=u<0?"0":u<c-d?`${u}px`:c-d+"px",l.top=v<0?"0":v<h-p?`${v}px`:h-p+"px"}reset(){const{x:t,y:e,style:o,offsetWidth:s,offsetHeight:a,offsetLeft:l,offsetTop:h}=this,{height:c,width:d}=this._offsetParent.getBoundingClientRect();o.left=t||"0",o.top=e||"0",l>d-s&&(o.left=d-s+"px"),h>c-a&&(o.top=c-a+"px")}};e([J()],si.prototype,"x",void 0),e([J()],si.prototype,"y",void 0),si=e([y("dragbox"),g(A`:host{display:block;position:absolute}:host(:active){-webkit-user-select:none;user-select:none}`)],si);var ni=si;ni.define();let ai=class Flex extends GlobalStyle{constructor(){super(...arguments),this.vertical=!1}render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${[jt(),Gt(f({":host":{gap:this.gap,"flex-flow":this.flexFlow,"flex-direction":this.vertical&&"column","align-items":this.items,"justify-content":this.content}}))]} </div>`}};e([J({attribute:"flex-flow"})],ai.prototype,"flexFlow",void 0),e([J()],ai.prototype,"gap",void 0),e([J()],ai.prototype,"content",void 0),e([J()],ai.prototype,"items",void 0),e([J({type:Boolean})],ai.prototype,"vertical",void 0),ai=e([y("flex"),g(A`:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}`)],ai);var li,hi=ai;hi.define();let ci=li=class Form extends GlobalStyle{constructor(){super(...arguments),this.name="",this.nameValue=this.namevalue}get value(){return li.buildValue(this._slot.assignedElements())}render(){return jt()}reset(){this.deepQuerySelectorAll("*").forEach((t=>{t.tagName!==this.tagName&&t.reset&&t.reset()}))}namevalue(){return[this.name,this.value]}static buildValue(t){const e={};for(const o of t)if("FORM"===o.tagName)Object.assign(e,Object.fromEntries(new FormData(o).entries()));else if(o.namevalue){const[t,s]=o.namevalue();t&&(e[t]=s)}else if(o.name&&void 0!==o.value)e[o.name]=o.value;else if(o.shadowRoot)for(const t of o.shadowRoot.querySelectorAll("slot"))Object.assign(e,this.buildValue(t.assignedElements()));return e}};e([J()],ci.prototype,"name",void 0),ci=li=e([y("form"),g(A`:host{display:block}`)],ci);var di=ci;di.define();const pi=t=>{return e=t,Number.isNaN(+e)?t:`repeat(${t},1fr)`;var e};let ui=class Grid extends GlobalStyle{render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${[jt(),Gt(f({":host":{gap:this.gap,"grid-template-columns":pi(this.columns),"grid-template-rows":pi(this.rows),"place-content":this.content,"place-items":this.items}}))]} </div>`}};e([J()],ui.prototype,"gap",void 0),e([J()],ui.prototype,"columns",void 0),e([J()],ui.prototype,"rows",void 0),e([J()],ui.prototype,"content",void 0),e([J()],ui.prototype,"items",void 0),ui=e([y("grid"),g(A`:host,:host([contents]) [part=root]{display:grid}[part=root]{display:contents}`)],ui);var vi=ui;vi.define();let fi=class Heading extends GlobalStyle{constructor(){super(...arguments),this.as="h1",this.anchor="#",this.side="left"}render(){return St`<a part="root" href="${this.id?"#"+this.id:Et}" ${Lt(this.observedRecord)}> ${this.wrapHeading(jt(),this.id?St`<i part="anchor">${this.anchor}</i>`:"")} </a>`}wrapHeading(...t){switch(this.as){case"h2":return St`<h2>${t}</h2>`;case"h3":return St`<h3>${t}</h3>`;case"h4":return St`<h4>${t}</h4>`;case"h5":return St`<h5>${t}</h5>`;case"h6":return St`<h6>${t}</h6>`;default:return St`<h1>${t}</h1>`}}};e([J()],fi.prototype,"as",void 0),e([J()],fi.prototype,"anchor",void 0),e([J()],fi.prototype,"side",void 0),fi=e([y("heading"),g(A`:host{display:block;text-align:start}[part=anchor]{min-width:1.25em;position:absolute;right:100%;text-align:center}[side=left] [part=anchor]{right:100%}[side=right] [part=anchor]{left:100%}a{color:inherit}h1,h2,h3,h4,h5,h6{direction:ltr;font-size:revert;position:relative;width:-moz-fit-content;width:fit-content}`)],fi);var mi=fi;mi.define();var gi=Ft("0 0 56 56")`<path fill="currentColor" d="M43.95 47.323c.304.305.732.468 1.119.468c.814 0 1.567-.733 1.567-1.568c0-.407-.163-.814-.468-1.12L12.112 11.069a1.57 1.57 0 0 0-1.12-.448c-.814 0-1.567.733-1.567 1.547c0 .428.143.835.448 1.12Zm1.913-5.761C52.255 37.43 56 32.056 56 29.674c0-4.132-11.297-17.303-27.99-17.303c-3.46 0-6.697.59-9.669 1.567l5.313 5.293a11 11 0 0 1 4.356-.896c6.31 0 11.38 4.988 11.38 11.339c0 1.547-.326 3.033-.958 4.336ZM28.01 46.977c3.766 0 7.267-.672 10.402-1.771l-5.394-5.395a10.8 10.8 0 0 1-5.008 1.201c-6.35 0-11.379-5.15-11.4-11.338c0-1.832.428-3.562 1.202-5.09l-7.084-7.124C4.01 21.592 0 27.231 0 29.674c0 4.112 11.501 17.303 28.01 17.303m6.473-17.73a6.446 6.446 0 0 0-6.473-6.454c-.264 0-.53.02-.773.041l7.206 7.206c.02-.244.04-.529.04-.794m-12.966-.041c0 3.582 2.951 6.473 6.514 6.473c.285 0 .55-.02.834-.04l-7.308-7.309c-.02.285-.04.59-.04.876"/>`;const yi=A`.input-field{align-items:center;border-radius:inherit;display:flex;height:inherit;position:relative}.input-field [part=input]{background:none;color:inherit;height:100%;padding:var(${ce.input}-space);width:100%}.input-field [part=icon]{align-items:center;color:var(${ce.input}-icon-color);display:flex;justify-content:center}.input-field [part=prefix],.input-field [part=suffix]{display:flex;height:100%}.input-field [part=suffix] [part=icon]{padding-inline-end:var(${ce.input}-space)}.input-field [part=prefix] [part=icon]{padding-inline-start:var(${ce.input}-space)}`,$i=A`:host{${ce.input}-width:10em;${ce.input}-height:1.6em;${ce.input}-space:0.2em;${ce.input}-control:currentColor;${ce.input}-icon-color:var(${ce._colors.darkgray[4]})}:host([disabled]){cursor:not-allowed;filter:brightness(.85)}:host(:focus-within){${ce.input}-icon-color:currentColor}input:disabled{cursor:inherit}input::-ms-clear,input::-ms-reveal{display:none}`;let bi=class SuperInput extends GlobalStyle{constructor(){super(...arguments),this.autofocus=!1,this.outlineType="border",this.disabled=!1,this.compositing=!1,this.makeId=Math.random().toString(36).slice(1),this.nameValue=this.namevalue}get observedRecord(){return h(super.observedRecord,"default","value")}set defaultValue(t){this.default=t}get defaultValue(){return this.default}namevalue(){return[this.name,this.value]}reset(){this.value=this.default,this._input.value=this.default}_handleInput(t){t.stopPropagation(),this.compositing||(this.value=t.target.value?.trim(),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}_handleChange(t){this.dispatchCustomEvent("change",this.value)}connectedCallback(){super.connectedCallback(),this._connectedInit()}_connectedInit(){this.default??=this.value||"",this.value??=this.default}_compositionInit(){this._input&&(this.events.add(this._input,"compositionstart",(()=>this.compositing=!0)),this.events.add(this._input,"compositionend",(t=>{this.compositing=!1,this._handleInput(t)})))}_changeInputType(t){this._input&&(this._input.type=t)}focus(t){this._input?.focus(t)}firstUpdated(){this._compositionInit()}_renderPrefix(){return St`<label for=${this.makeId} part="prefix"> ${jt("prefix")} </label>`}_renderSuffix(){return St`<label for=${this.makeId} part="suffix"> ${jt("suffix")} </label>`}};e([J()],bi.prototype,"autocomplete",void 0),e([J({attribute:"outline-type"})],bi.prototype,"outlineType",void 0),e([J({type:Boolean,reflect:!0})],bi.prototype,"disabled",void 0),e([J({reflect:!0})],bi.prototype,"type",void 0),e([J({reflect:!0})],bi.prototype,"placeholder",void 0),e([J({reflect:!0})],bi.prototype,"name",void 0),e([J()],bi.prototype,"value",void 0),e([J()],bi.prototype,"default",void 0),e([st("input")],bi.prototype,"_input",void 0),bi=e([g(yi,$i)],bi);class OutlineBuilder{constructor({selector:t=":host",width:e=ce.outlineWidth,color:o=ce.outlineColor,outlineType:s}={}){const a=((t,e)=>{const o=`outline-color:var(${e});border-color:var(${e});`,s=`${o}outline-width:var(${t});outline-style:solid;`;return{outline:s,"outline-inset":`${s}outline-offset:calc(-1 * var(${t}));`,"box-shadow":`box-shadow:0 0 0 var(${t}) var(${e});`,"box-shadow-inset":`box-shadow:inset 0 0 0 var(${t}) var(${e});`,border:`${o}border-width:var(${t});border-style:solid;`}})(e,o);if(s&&s in a){const e=a[s];this.css=`${t}{${e}}`}else this.css=""}get styleSheet(){return S(this.css).styleSheet}}let _i=class Input extends bi{constructor(){super(...arguments),this.type="text",this.variant="default",this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css+("outline"===this.variant?`:host{${ce.outlineColor}: var(${ce.active})}`:"")))}render(){return St`<div part="root" ${Lt(this.observedRecord)} class="input-field"> ${[this._renderPrefix(),St`<input part="input" type="${this.type}" .value="${this.value}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||Et}" autocomplete="${this.autocomplete||Et}" placeholder="${this.placeholder||Et}" id="${this.makeId}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,this._renderSuffix()]} </div>`}_renderSuffix(){const t="password";return St`<label for=${this.makeId} part="suffix"> ${this.type===t?St`<i part="icon" @mousedown="${()=>this._changeInputType("text")}" @mouseup="${()=>this._changeInputType(t)}" @mouseleave="${()=>this._changeInputType(t)}"> ${gi()} </i>`:jt("suffix")} </label>`}};e([J()],_i.prototype,"variant",void 0),e([st("input")],_i.prototype,"_input",void 0),_i=e([y("input"),g(A`:host{display:block;height:var(${ce.input}-height);width:var(${ce.input}-width)}:host(:focus-within){${ce.outlineColor}:var(${ce.active})}`)],_i);var wi=_i;wi.define();let xi=class Layout extends GlobalStyle{constructor(){super(...arguments),this.sticky=!1}render(){return St`<div part="root" ${Lt(this.observedRecord)}> <header part="header">${jt("header")}</header> <main part="main">${jt()}</main> <footer part="footer">${jt("footer")}</footer> </div>`}};e([J({type:Boolean})],xi.prototype,"sticky",void 0),xi=e([y("layout"),g(A`:host{flex-direction:column;grid-template-rows:auto 1fr auto;min-height:100%;width:100%}:host,:host([contents]) [part=root]{display:flex}[part=root]{display:contents}[part=main]{flex:1;width:100%}[part=footer],[part=header]{flex-shrink:0;width:100%}[sticky] header{position:sticky;top:0}`)],xi);var ki=xi;ki.define();let Ci=class SuperAnchor extends GlobalStyle{constructor(){super(...arguments),this.target="_self"}get pathname(){return new URL(this.href,location.href).pathname}render(){return St`<a part="root" ${Lt(this.observedRecord)} href="${this.href||Et}" target="${this.target}" @click=${this._handleClick}> ${jt()} </a>`}};var Si;e([J()],Ci.prototype,"href",void 0),e([J()],Ci.prototype,"target",void 0),Ci=e([g(A`:host{color:currentColor;cursor:default;display:inline-block;text-decoration:none}:host([href]){cursor:pointer}[part=root]{color:inherit;display:inline-block;text-decoration:inherit}`)],Ci);let Ai=Si=class Router extends GlobalStyle{constructor(){super(...arguments),this.__fieldRouteTree=new RouteTree,this.__slottedRouteTree=new RouteTree,this.__cacheRecord=new Map,this.component=null,this.pathname=location.pathname,this.default=jt(),this.type="united",this.cache=!1,this.handlePopstate=this.events.add(window,"popstate",(()=>{this.pathname=location.pathname}))}get params(){return this.path?RouteTree.parseParams(this.pathname,this.path):{}}set routes(t){this.__routes=t,this.collectFieldRoutes(t)}get routes(){return this.__routes}clear(){this.__cacheRecord.clear()}render(){let t;if(this.cache&&(t=this.__cacheRecord.get(this.pathname))&&(this.component=t.component,this.path=t.path,this.pathname=t.pathname),!t)switch(this.type){case"field":this.component=this.fieldComponent();break;case"slotted":this.component=this.slottedComponent();break;default:this.component=this.fieldComponent()??this.slottedComponent()}return this.component??this.default}connectedCallback(){super.connectedCallback(),Si.routerInstances.add(this),"field"!==this.type&&(this.observers.add(this,MutationObserver,this.collectSlottedRoutes,{attributes:!0,attributeFilter:["slot"],subtree:!0}),this.collectSlottedRoutes())}disconnectedCallback(){super.disconnectedCallback(),Si.routerInstances.delete(this)}useRouter(){return{pathname:this.pathname,params:this.params,path:this.path,component:this.component}}updated(t){if(t.has("pathname")||t.has("path")){const t=this.useRouter();!this.__cacheRecord.has(this.pathname)&&this.path&&this.__cacheRecord.set(this.pathname,t),this.dispatchCustomEvent("change",t)}}fieldComponent(t){if(t||=this.__fieldRouteTree.search(this.pathname)?.pattern,this.path=t,!t)return null;const e=this.routes.find((e=>e.path===t));return e?"render"in e?e.render?.(h(this.useRouter(),"component"))||null:e.component:null}slottedComponent(t){const e=this._slottedNames;return t||=this.__slottedRouteTree.search(this.pathname)?.pattern,this.path=t,t?(this.path=e.find((e=>e===t)),this.path?jt(this.path):null):null}collectSlottedRoutes(){this.__slottedRouteTree=new RouteTree,this.clear(),this._slottedNames.forEach((t=>{this.__slottedRouteTree.insert(t)}))}collectFieldRoutes(t){this.__fieldRouteTree=new RouteTree,this.clear(),t.forEach((({path:t})=>{this.__fieldRouteTree.insert(t)}))}static updateAll(){this.routerInstances.forEach((t=>{t.handlePopstate()}))}search(t){return this.__fieldRouteTree.search(t)||this.__slottedRouteTree.search(t)}};Ai.routerInstances=new Set,e([tt()],Ai.prototype,"component",void 0),e([tt()],Ai.prototype,"path",void 0),e([J()],Ai.prototype,"pathname",void 0),e([tt()],Ai.prototype,"default",void 0),e([J()],Ai.prototype,"type",void 0),e([J({type:Boolean})],Ai.prototype,"cache",void 0),e([tt()],Ai.prototype,"routes",null),Ai=Si=e([y("router"),g(A`:host{display:contents}`)],Ai);var Ri=Ai;const Ei="auto";let Ti=class Link extends Ci{constructor(){super(...arguments),this.type=Ei,this.suppress=!1,this.replace=!1,this.state={},this.handleState=()=>{switch(this.type){case Ei:case"push":if(!this.replace){history.pushState(this.state,"",this.href);break}case"replace":history.replaceState(this.state,"",this.href)}}}_handleClick(t){const{state:e,type:o,href:s,pathname:a,suppress:l}=this;if(this.dispatchCustomEvent("navigate",{...this.observedRecord,pathname:a,state:e}),s.startsWith("#")||"normal"===o)return;this.handleState();const h=[...Ri.routerInstances];l||o===Ei&&!h.some((t=>t.search(location.pathname)))||(t.preventDefault(),Ri.routerInstances.forEach((t=>{t.handlePopstate()})))}};e([J()],Ti.prototype,"type",void 0),e([J({type:Boolean})],Ti.prototype,"suppress",void 0),e([J({type:Boolean})],Ti.prototype,"replace",void 0),Ti=e([y("link")],Ti);var Mi=Ti;Mi.define();let Pi=class Progress extends GlobalStyle{constructor(){super(...arguments),this.max=1,this.min=0}render(){let t,e=20;if(!o(this.value)){const o=new Ranger(this.min,this.max);e=100*o.restrict(this.value/o.diff),t="static"}return St`<div part="root" ${Lt(this.observedRecord)} class="${t}"> <i part="value" style="width:${e}%;"></i> </div>`}};e([J({type:Number})],Pi.prototype,"max",void 0),e([J({type:Number})],Pi.prototype,"min",void 0),e([J({type:Number})],Pi.prototype,"value",void 0),Pi=e([y("progress"),g(A`:host{background:var(${ce.passive});border-radius:.25em;color:var(${ce.active});height:.5em;width:100%}:host,[part=root]{display:block}[part=root]{border-radius:inherit;overflow:hidden;position:relative;z-index:1}[part=value]{animation:progress 1.8s ease-in-out infinite alternate;background:currentColor;border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:all .3s;z-index:2}@keyframes progress{0%{left:0}to{left:80%}}.static [part=value]{animation:none}`)],Pi);var Ni=Pi;Ni.define();const Ii="range",Oi=he(Ii);let zi=class Range extends bi{constructor(){super(...arguments),this.min=0,this.max=100,this.vertical=!1,this.__focusStack=[]}get range(){return Array.isArray(this.value)}get rangeValue(){return this.range?this.value:[this.value]}padValue(t,e=0){const{rangeValue:o}=this,s=t-o.length;return s>0?new Array(s).fill(e).concat(o):o}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"max"!==t&&"min"!==t&&"step"!==t||(this._ranger=new Ranger(this.min,this.max,this.step))}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){const t=this.padValue(2),e=Math.min(...t),o=Math.max(...t),s=this._ranger.diff;return St`<div part="root" ${Lt(this.observedRecord)} @mousedown="${this.disabled?null:this._handleMousedownRoot}" style="${m([["--from",(e-this.min)/s*100+"%"],["--to",(o-this.min)/s*100+"%"],...t.map(((t,e)=>[`--handle-${e}`,(t-this.min)/s*100+"%"]))])}"> <div part="track"></div> ${qt(this.rangeValue.length,(t=>this._renderHandle(t)))} </div>`}_renderHandle(t){const{disabled:e,range:o,rangeValue:s}=this,a=!o||o&&t===s.length-1&&1===s.length;return St`<i tabindex="0" part="handle" class="${Wt({"last-focus":this.lastFocus===t})}" @mousedown="${e?null:this.createMouseDown(t)}" @focus="${e?null:()=>this.focusHandle(t)}" @blur="${e?null:this.blurHandle}" style="${m({"z-index":this.__focusStack.indexOf(t)+1,"--handle":`var(--${a?"to":`handle-${t}`})`})}"></i>`}focusHandle(t){this.lastFocus=t;const e=this.__focusStack.indexOf(t);-1!==e&&this.__focusStack.splice(e,1),this.__focusStack.push(t);const o=this._handles.item(t);o?.focus(),this.__keydownEvent||(this.__keydownEvent=this.events.add(document,"keydown",this.createKeydownEvent(t)))}blurHandle(){this.lastFocus=void 0,this.__keydownEvent=this.events.remove(document,"keydown",this.__keydownEvent)}createKeydownEvent(t){return e=>{const{rangeValue:o,step:s}=this;o.length<2&&(t=0);const a=o[t];"ArrowLeft"===e.key||"ArrowDown"===e.key?(e.preventDefault(),this.createSetValue(t)(a-s)):"ArrowRight"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.createSetValue(t)(a+s))}}createMouseDown(t){return e=>{this.focusHandle(t),this.createMousedownListener(this.createSetValue(t))(e)}}createSetValue(t){return e=>{const o=this._ranger.normalize(e);let s=o;this.range&&(s=[...this.value],s[t]=o),this.value=s,this.dispatchCustomEvent("change",this.value)}}_computeValue({clientX:t,clientY:e}){const{top:o,left:s,height:a,width:l}=this._root.getBoundingClientRect();return this._ranger.present(this.vertical?(e-o)/a:(t-s)/l)}_handleMousedownRoot(t){const e=this._computeValue(t),o=this.range?this.rangeValue.reduce(((t,o,s)=>Math.abs(e-o)<Math.abs(e-this.rangeValue[t])?s:t),0):0,s=this.createSetValue(o);s(e),this.createMousedownListener(s)(t),this.focusHandle(o)}createMousedownListener(t){return e=>{e.preventDefault(),e.stopPropagation();const o=this.createMousemoveListener(t);this.events.add(document,"mousemove",o);const s=()=>{this.events.remove(document,"mousemove",o),this.events.remove(document,"mouseup",s)};this.events.add(document,"mouseup",s)}}createMousemoveListener(t){return e=>{const o=this._computeValue(e);o===this._ranger.restrict(o)&&t?.call(this,o)}}_connectedInit(){this._ranger=new Ranger(this.min,this.max,this.step);const t=this._ranger.diff;this.step||=t/100,o(this.value)&&(o(this.default)?this.value=Math.round(t/2/this.step)*this.step:this.value=this.default),this.default??=this.value}reset(){this.value=this.default}sort(){return this.value=this.toSorted()}toSorted(){return this.range?[...this.value].sort(((t,e)=>t-e)):this.value}};e([J({type:Number})],zi.prototype,"min",void 0),e([J({type:Number})],zi.prototype,"max",void 0),e([J({type:Number})],zi.prototype,"step",void 0),e([J({type:Boolean,reflect:!0})],zi.prototype,"vertical",void 0),e([J({type:Array})],zi.prototype,"value",void 0),e([J({type:Array})],zi.prototype,"default",void 0),e([st("root")],zi.prototype,"_root",void 0),e([rt("[part=handle]")],zi.prototype,"_handles",void 0),e([tt()],zi.prototype,"lastFocus",void 0),zi=e([y(Ii),g(A`:host{${Oi}--handle-active:var(${ce.active});${Oi}--track-width:.5em;${Oi}--length:var(${ce.input}-width);background:var(${ce.passive});display:block;width:var(${Oi}--length)}:host([contents]) [part=root]{width:inherit}:host([vertical]){height:var(${Oi}--length);width:-moz-fit-content;width:fit-content}:host(:not([disabled])) .last-focus{${Oi}--handle-scale:1.05;background:var(${Oi}--handle-active)}[part=root]{position:relative;--from:0%;--to:50%;height:var(${Oi}--track-width)}[part=root],[part=track]{border-radius:inherit;min-height:inherit}[part=track]{background:var(${ce.active});height:100%;justify-content:space-between;left:min(var(--from),var(--to));pointer-events:none;width:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)))}[part=handle],[part=track]{display:flex;position:absolute}[part=handle]{align-items:center;background:var(${ce.active});border:.1em solid;border-color:var(${ce.input}-control);border-radius:50%;height:1em;justify-content:center;transform:scale(var(${Oi}--handle-scale,1)) translate(-50%,-25%);transform-origin:0 25%;-webkit-user-select:none;user-select:none;width:1em}`,A`[vertical]{height:inherit;width:var(${Oi}--track-width)}[vertical] i{transform:translate(-25%,-50%)}[vertical] [part=track]{height:max(calc(var(--to) - var(--from)),calc(var(--from) - var(--to)));left:0;top:min(var(--from),var(--to));width:100%}`,A`[part=handle]{left:var(--handle);top:0}[vertical] [part=handle]{left:0;top:var(--handle)}`)],zi);var Bi=zi;Bi.define();const Di="rotate",Ui=he(Di);let Hi=class Rotate extends GlobalStyle{render(){return St`<div part="root"> <div part="slot" @mousemove="${this._handleRotate}"> ${jt()} </div> <i @mouseleave="${this.reset}"></i> </div>`}reset(){this._root.style.removeProperty("transform"),this._root.style.removeProperty("transition")}_handleRotate(t){const{rotateX:e,rotateY:o}=this._computeOffset(t);this._root.style.setProperty("transform",`rotateX(${e}rad) rotateY(${o}rad)`),this._root.style.setProperty("transition","0s")}_computeOffset(t){const{left:e,top:o,width:s,height:a}=this._root.getBoundingClientRect(),{clientX:l,clientY:h}=t;return{rotateX:-(h-o-a/2)/a/2,rotateY:(l-e-s/2)/s/2}}};e([st("root")],Hi.prototype,"_root",void 0),Hi=e([y(Di),g(A`:host{display:block;transition:all .5s ease-in-out;width:-moz-fit-content;width:fit-content;${Ui}--padding:.75em;${Ui}--offset:.5em}div{position:relative;transition:inherit;transition-property:transform}i{box-sizing:content-box;height:100%;margin:calc(var(${Ui}--offset)*-1);padding:var(${Ui}--offset);position:absolute;top:0;width:100%}[part=slot]{z-index:2}`)],Hi);var Li=Hi;Li.define(),Ri.define();const Vi=S("[direction-inset-align]");A`[direction^=top] ${Vi}{top:0}[direction^=bottom] ${Vi}{bottom:0}[direction$=right] ${Vi}{right:0}[direction$=left] ${Vi}{left:0}`;const ji=S("[direction-outset-place]"),Gi=A`[direction^=top] ${ji}{bottom:100%}[direction^=bottom] ${ji}{top:100%}[direction$=right] ${ji}{left:100%}[direction$=left] ${ji}{right:100%}`;function Fi(t,e){return t&&e&&t.toLowerCase().includes(e.toLowerCase())}function qi(t,e){if(t){const o="checked";e?t.setAttribute(o,""):t.removeAttribute(o)}}let Wi=class Select extends wi{constructor(){super(...arguments),this.multiple=!1,this.visible=!1,this.autoDirection="bottom",this.__store=[]}get observedRecord(){return{...super.observedRecord,direction:this.direction||this.autoDirection}}render(){return St`<div part="root" ${Lt(this.observedRecord)} class="input-field"> ${[this._renderPrefix(),St`<input part="input" type="${this.type}" .value="${this.text}" ?autofocus="${this.autofocus}" ?disabled="${this.disabled}" autocapitalize="${this.autocapitalize||Et}" autocomplete="${this.autocomplete||Et}" placeholder="${this.placeholder||Et}" id="${this.makeId}" @focus="${this._handleFocus}" @input="${this._handleInput}" @change="${this._handleChange}"/>`,St`<label for="${this.makeId}" part="suffix"> <i part="icon">${We()}</i> </label>`,St`<label for="${this.makeId}" part="content" direction-outset-place> ${jt()} </label>`]} </div>`}_handleFocus(){if(!this.direction){const{top:t,bottom:e}=this.getBoundingClientRect();window.innerHeight-e<this._content.clientHeight&&t>this._content.clientHeight?this.autoDirection="top":this.autoDirection="bottom"}this.visible=!0}firstUpdated(){this.events.add(this._content,"click",(t=>{t.preventDefault(),t.stopPropagation();const{target:e}=t,o=this.optionValue(e);if(o){const t=this.select(o,e.textContent);this.multiple||qi(this.lastChecked,0),qi(e,t),this.lastChecked=e}this._input.focus()})),this.events.add(document,"click",(t=>{t.stopPropagation();const e=t.composedPath()[0];e&&!this.shadowRoot.contains(e)&&this.blur()}))}_connectedInit(){if(!this.value){const t=[...this.querySelectorAll("[checked]")];(this.multiple?t:t.length?[this.lastChecked=t[0]]:[]).forEach((t=>{qi(t,this.select(this.optionValue(t),t.textContent))})),this.default=this.value,this.defaultText=this.text,this.defaultChecked=t}this.text||(this.text="")}reset(){this.value=this.default,this.text=this.defaultText,this.querySelectorAll("[checked]").forEach((t=>qi(t,0))),this.defaultChecked.forEach((t=>qi(t,1)))}select(t,e){e||=t,e=e.trim();let o=0;if(this.multiple){const s=this.__store.findIndex((e=>e.value===t));s>-1?this.__store.splice(s,1):(this.__store.push({value:t,text:e}),o=1),this.value=this.__store.map((t=>t.value)),this.text=this.__store.map((t=>t.text)).join(", ")}else this.value===t?(this.value="",this.text=""):(this.value=t,this.text=e,o=1);return this.dispatchCustomEvent("select",this.value),this.filter(),o}filter(t){t=t?.trim(),[...this.children].forEach((e=>{this.filterCallback(e,!t||Fi(this.optionValue(e),t)||Fi(e.textContent,t),t)}))}filterCallback(t,e,o){t.style.display=e?"":"none"}_handleInput(t){if(t.stopPropagation(),this.compositing)return;const e=this._input.value;this.filter(this.multiple?function(t,e){const o=e.slice(0,t).lastIndexOf(",")+1||0,s=e.indexOf(",",t)||e.length;return e.slice(o,s)}(this._input.selectionStart,e):e),this.dispatchCustomEvent("input",this.value,{bubbles:!0})}focus(t){this._input.focus(t),this.visible=!0}blur(){this._input.blur(),this.visible=!1,super.blur()}optionValue(t){return t.value||t.getAttribute("value")||""}};e([J()],Wi.prototype,"text",void 0),e([st("content")],Wi.prototype,"_content",void 0),e([J()],Wi.prototype,"direction",void 0),e([J({type:Boolean})],Wi.prototype,"multiple",void 0),e([J({type:Boolean})],Wi.prototype,"visible",void 0),e([tt()],Wi.prototype,"autoDirection",void 0),Wi=e([y("select"),g(Gi,A`.outline,:host(:focus-within){${ce.input}-outline-color:var(${ce.active})}[part=input]{text-overflow:ellipsis}[part=content]{position:absolute;visibility:hidden;width:100%}[visible] [part=content]{visibility:visible}`)],Wi);var Yi=Wi;Yi.define();var Zi=Ft("0 0 56 56")`<path fill="currentColor" d="M7.715 49.574h40.57c4.899 0 7.36-2.437 7.36-7.265V13.69c0-4.828-2.461-7.265-7.36-7.265H7.715C2.84 6.426.355 8.84.355 13.69v28.62c0 4.851 2.485 7.265 7.36 7.265m31.57-21.633c-1.055-.937-2.25-1.43-3.515-1.43c-1.313 0-2.462.446-3.54 1.407l-10.593 9.469l-4.336-3.938c-.985-.867-2.04-1.336-3.164-1.336c-1.032 0-2.04.446-3 1.313L4.129 39.73V13.88c0-2.438 1.312-3.68 3.656-3.68h40.43c2.32 0 3.656 1.242 3.656 3.68v25.875Zm-21.469.258c3.024 0 5.508-2.484 5.508-5.531c0-3.023-2.484-5.531-5.508-5.531c-3.046 0-5.53 2.508-5.53 5.531a5.54 5.54 0 0 0 5.53 5.531"/>`;const Xi="skeleton",Ki=he(Xi);let Qi=class Skeleton extends GlobalStyle{constructor(){super(...arguments),this.animation="position",this.loading=!0}render(){return this.loading?St`<div part="root" ${Lt(this.observedRecord)}> ${"image"===this.type?Zi():""} ${jt("loading")} </div>`:jt()}};e([J()],Qi.prototype,"type",void 0),e([J()],Qi.prototype,"animation",void 0),e([tt()],Qi.prototype,"loading",void 0),Qi=e([y(Xi),g(A`:host{${Ki}--from:var(${ce._colors.darkgray[9]});${Ki}--to:var(${ce._colors.darkgray[7]});${Ki}--deg:95deg;${Ki}--duration:1.5s;${Ki}--icon-size:5em;${Ki}--icon-margin:.25em;background:var(${Ki}--from);color:var(${ce._colors.darkgray[5]});display:block;flex-shrink:0;min-height:1.5em;overflow:hidden;width:100%}[part=root]{animation:var(${Ki}--duration) ease-in-out 0s infinite none running;min-height:inherit;text-align:center}svg{--size:var(${Ki}--icon-size);font-size:var(--size);margin:calc(var(--size)*.05)}[animation=position]{animation-name:po;background-color:transparent;background-image:linear-gradient(var(${Ki}--deg),var(${Ki}--from) 36%,var(${Ki}--to) 50%,var(${Ki}--from) 64%);background-size:200% 100%}@keyframes po{0%{background-position:150%}to{background-position:-50%}}[animation=opacity]{animation-direction:alternate;animation-name:op}@keyframes op{50%{opacity:.25}to{opacity:1}}`)],Qi);var Ji=Qi;Ji.define();const to="split",eo=he(to);let io=class Split extends bi{constructor(){super(...arguments),this.len=6,this.index=-1,this.current=-1,this.currentValue=[],this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({selector:"[part=input-box]",outlineType:this.outlineType}).css))}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${qt(this.len,(t=>St`<span part="input-box" outline-type="${this.outlineType}" class="${Wt({focus:this.current===t})}" @click="${this.disabled?null:()=>this.focusAt(t)}"> ${this.currentValue[t]} </span>`))} <input part="input" id="${this.makeId}" @blur=${this.blur} @input="${this._handleInput}" @change="${this._handleChange}" .value="${this.value.padStart(this.len," ")}"/> </div>`}connectedCallback(){super.connectedCallback(),this.reset()}_handleInput(t){t.stopPropagation(),this.compositing||(this.fillInput(t.data),this.value=this.currentValue.join(""),this.dispatchCustomEvent("input",this.value,{bubbles:!0}))}fillInput(t){if(null===t){if(null!==this.currentValue[this.current])this.currentValue[this.current]=null;else{this.currentValue[this.current-1]=null;const t=this.currentValue.findLastIndex((t=>null!==t));this.current=this.current-1<0?t<0?0:t:this.current-1}return}const e=t.length>1;if(this.currentValue[this.current]=t[0],this.current+1>=this.len?(this.current=this.currentValue.indexOf(null),-1===this.current&&this.blur()):this.current+=1,e){const e=t.slice(1);e&&this.fillInput(e)}}focus(){this.focusAt(this.current),super.focus()}focusAt(t){this.current=t,this._input.focus()}blur(){this._input.blur(),this.current=-1,super.blur()}reset(){this.current=-1,this.value=this.default,this.currentValue=this.value.split("").concat(Array(this.len-this.value.length).fill(null)),this.index>-1&&(this.current=this.index)}};e([J({type:Number})],io.prototype,"len",void 0),e([J({type:Number})],io.prototype,"index",void 0),e([tt()],io.prototype,"current",void 0),e([tt()],io.prototype,"currentValue",void 0),io=e([y(to),g(A`:host{border-radius:.1em;display:block;width:-moz-fit-content;width:fit-content;${eo}--size:1.45em;${eo}--gap:.25em}[part=root]{display:flex;gap:var(${eo}--gap);justify-content:space-between;position:relative}[part=input-box],[part=root]{border-radius:inherit;vertical-align:top}[part=input-box]{align-items:center;display:inline-flex;height:var(${eo}--size);justify-content:center;width:var(${eo}--size)}[part=input]{background:none;height:100%;opacity:0;position:absolute;width:100%;z-index:-1}.focus,[part=input-box]:active{${ce.outlineColor}:var(${ce.active})}`)],io);var oo=io;oo.define();const ro="switch",so=he(ro);let no=class Switch extends bi{constructor(){super(...arguments),this.default=!1,this.value=!1}set checked(t){this.value=t}get checked(){return this.value}get observedRecord(){return h(super.observedRecord,"outline-type")}render(){return St`<div part="root" ${Lt(this.observedRecord)} class="round"> <input part="input" type="checkbox" ?disabled="${this.disabled}" ?checked="${this.value}" id="${this.makeId}" @change="${this._handleChange}"/> <span part="handle"></span> </div>`}reset(){this.value=this.default,this._input.checked=this.value}_connectedInit(){this.default?this.value=!0:this.value&&(this.value=!0,this.default=!0)}_handleChange(){const{checked:t}=this._input;this.value=t,this.dispatchCustomEvent("change",this.value)}};e([J({type:Boolean})],no.prototype,"default",void 0),e([J({type:Boolean,attribute:"checked",reflect:!0})],no.prototype,"value",void 0),no=e([y(ro),g(A`:host,:host([contents]) [part=root]{display:inline-block}:host{${so}-width:3em;${so}-height:calc(var(${so}-width)/2);${so}-handle-size:1.25em;${so}-handle-space:calc(var(${so}-width)/4 - var(${so}-handle-size)/2);${so}-transition:.2s ease-in-out;background:var(${ce.passive});border-radius:calc(var(${so}-height)/2);height:var(${so}-height);transition:.2s ease-in-out;transition-property:background,left;vertical-align:bottom;width:var(${so}-width)}:host([checked]){background:var(${ce.active})}[part=root]{position:relative}[part=handle],[part=root]{align-items:center;display:flex;transition:inherit}[part=handle]{background:currentColor;border-radius:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:50%;--size:var(${so}-handle-size);height:var(--size);transform:translateY(-50%) translateX(var(${so}-handle-space));width:var(--size)}:host([checked]) [part=handle]{left:50%}[part=input]{height:100%;opacity:0;width:100%}`)],no);var ao=no;ao.define();const lo="text",ho=he(lo);let co=class Text extends GlobalStyle{constructor(){super(...arguments),this.underline="none",this.clip=!1}render(){return St`<span part="root" ${Lt(this.observedRecord)} class="${Wt(this.underline)}"> ${jt()} </span>`}};e([J()],co.prototype,"underline",void 0),e([J({type:Boolean})],co.prototype,"clip",void 0),co=e([y(lo),g(A`:host{${ho}--color:currentColor;${ho}--color-hover:currentColor;${ho}--color-active:currentColor;display:inline-block;overflow-wrap:break-word;text-overflow:ellipsis}[part=root]{color:var(${ho}--color);display:inline-block;overflow:hidden;overflow-wrap:inherit;text-overflow:inherit;vertical-align:bottom;white-space:nowrap}[part=root]:hover{color:var(${ho}--color-hover,var(${ho}--color))}[part=root]:active{color:var(${ho}--color-active,var(${ho}--color))}.active:active,.always,.hover:hover{text-decoration:underline}.none{text-decoration:none}[clip]{background:var(${ce.clipBackground});color:transparent;display:inline-block;-webkit-text-fill-color:transparent;background-clip:text;-webkit-background-clip:text}`)],co);var po=co;po.define();const uo="tabs",vo=he(uo),fo="hover";let mo=class Tabs extends GlobalStyle{constructor(){super(...arguments),this.outlineType="border",this.useSlot=!1,this.index=0,this.__outlineSC=new StyleController(this,(()=>new OutlineBuilder({outlineType:this.outlineType}).css))}render(){return St`<ul part="root" ${Lt(this.observedRecord)} @mouseleave="${this._handleMouseLeave}"> ${this.tabs?.map(((t,e)=>t||this.useSlot?St`<li part="${Wt("item",{selected:this.index===e})}" @mouseenter=${()=>{this.move(this._lastIndex,e),this._lastIndex=e}} @click=${()=>this.select(e)}> ${this.useSlot?jt(t):t} <div part="indicator"></div> </li>`:""))} </ul>`}connectedCallback(){super.connectedCallback(),this._lastIndex=this.index}_handleMouseLeave(){const t=this._items[this._lastIndex];t&&t.part.remove(fo),this._lastIndex=this.index}move(t,e){if(t===e)return;const{_items:o,_indicators:s}=this,a=o[e];if(!a)return;a.part.add(fo);const l=o[t];if(!l)return;l.part.remove(fo);const h=s[e],c=s[t];if(!h||!c)return;const d=c.getBoundingClientRect(),p=a.getBoundingClientRect(),u=d.x-p.x,v=d.y-p.y,f=d.width,{style:m}=h;m.transform=`translate3d(${u}px,${v}px,0)`,m.width=f+"px",m.transition=c.style.transition="none",h.getBoundingClientRect(),m.width=m.transform=m.transition=c.style.transition=""}select(t){const{index:e,tabs:o,_lastIndex:s,useSlot:a}=this;o&&e!==t&&t in o&&(this.dispatchCustomEvent("select",t),this.move(s,t),this._lastIndex=t,e in o&&(o[e]||a)&&(this.index=t))}};e([J({attribute:"outline-type"})],mo.prototype,"outlineType",void 0),e([J({type:Boolean})],mo.prototype,"useSlot",void 0),e([J({type:Array})],mo.prototype,"tabs",void 0),e([J({type:Number})],mo.prototype,"index",void 0),e([rt("[part~=item]")],mo.prototype,"_items",void 0),e([rt("[part=indicator]")],mo.prototype,"_indicators",void 0),mo=e([y(uo),g(A`:host{${vo}--indicator-background:var(${ce._colors.darkgray[7]});${vo}--space:0.25em;border-radius:var(${ce.radius});cursor:default;display:flex;transition:.2s ease-in-out;width:-moz-fit-content;width:fit-content}[part=root]{border-radius:inherit;display:flex;flex-direction:inherit;gap:var(${vo}--space);overflow-x:clip;padding:var(${vo}--space);position:relative;transition:inherit;transition-property:width,transform,opacity;z-index:1}[useslot] [part~=item]{padding:0}[part~=item]{display:block;padding:0 .4em;position:relative;white-space:nowrap}[part=indicator],[part~=item]{border-radius:inherit;transition:inherit;transition-property:inherit;width:100%}[part=indicator]{background:var(${vo}--indicator-background);height:100%;inset:0;opacity:0;position:absolute;z-index:-1}[part~=selected]{background:var(${vo}--indicator-background)}[part~=hover] [part=indicator],[part~=selected] [part=indicator]{opacity:1}`)],mo);var go=mo;function yo(t,e=2){return t.toString().padStart(e,"0").split("")}go.define();let $o=class Time extends GlobalStyle{constructor(){super(...arguments),this.escape="%",this.format="YYYY-MM-DD hh:mm:ss",this.time=new Date}render(){return St`<span part="root" ${Lt(this.observedRecord)}> ${function(t,e=new Date,o="%"){var s;if(!t)return t;if(isNaN(e.getTime()))return;const a=`${o}${o}`,l=[];t=t.replace(new RegExp(`${o}([ZYMDhmsS${o}])`,"g"),((t,e)=>(l.push(e),a)));const h=e.getTimezoneOffset()/-60,c={Z:[h>=0?"+"+h.toString():h.toString()],Y:e.getFullYear().toString().split(""),M:yo(e.getMonth()+1),D:yo(e.getDate()),h:yo(e.getHours()),m:yo(e.getMinutes()),s:yo(e.getSeconds()),S:yo(e.getMilliseconds(),3)},d=[];for(const e of t.split("").reverse()){const t=null===(s=c[e])||void 0===s?void 0:s.pop();t?d.push(t):d.push(e)}return d.reverse().join("").replace(new RegExp(a,"g"),(()=>l.shift()))}(this.format,this.time,this.escape)} </span>`}updated(t){t.has("timeout")&&this.timeout&&(this.timeouts.remove(this.timeoutId),this.timeoutId=this.timeouts.add(setInterval((()=>{this.dispatchCustomEvent("time",this.time),this.time=new Date(this.time.getTime()+(this.gap||this.timeout))}),Math.abs(this.timeout))))}};e([J()],$o.prototype,"escape",void 0),e([J()],$o.prototype,"format",void 0),e([J({type:Object})],$o.prototype,"time",void 0),e([J({type:Number})],$o.prototype,"timeout",void 0),e([J({type:Number})],$o.prototype,"gap",void 0),$o=e([y("time"),g(A`:host{text-align:center}`)],$o);var bo,_o=$o;_o.define();const wo="tooltip",xo=he(wo);let ko=bo=class Tooltip extends SuperOpenable{constructor(){super(...arguments),this.direction="top",this.align="center",this.propagation=!1,this.type="hover"}render(){const t=bo.aligns[this.align]||"inherit",e="focus"===this.type;return St`<div part="root" ${Lt(this.observedRecord)} tabindex="${e?0:-1}" @focus="${e?()=>this.open=!0:null}" @blur="${e?()=>this.open=!1:null}" @mouseenter="${e?null:()=>this.open=!0}" @mouseleave="${e?null:()=>this.open=!1}" style="justify-content:${t};align-items:${t}"> ${jt()} <div part="tip" direction-outset-place> ${this.tip?St`<span class="passive">${this.tip}</span>`:jt("tip")} </div> </div>`}};ko.aligns={start:"flex-start",end:"flex-end",center:"center","flex-start":"flex-start","flex-end":"flex-end"},e([J()],ko.prototype,"tip",void 0),e([J()],ko.prototype,"direction",void 0),e([J()],ko.prototype,"align",void 0),e([J({type:Boolean})],ko.prototype,"propagation",void 0),e([J()],ko.prototype,"type",void 0),ko=bo=e([y(wo),g(Gi,A`:host{${xo}--tip-background:inherit;width:-moz-fit-content;width:fit-content}:host,[part=root]{display:inline-flex}[part=root]{border-radius:inherit;position:relative;transition:inherit}[part=tip]{height:-moz-fit-content;height:fit-content;position:absolute;transition:inherit;-webkit-user-select:none;user-select:none;visibility:hidden;width:-moz-fit-content;width:fit-content}:host([open]) [part=tip]{visibility:visible}.passive{background:var(${xo}--tip-background)}[propagation] [part=tip]{pointer-events:none}`)],ko);var Co=ko;Co.define();const So="typewriter",Ao=he(So);let Ro=class Typewriter extends GlobalStyle{constructor(){super(...arguments),this.content="",this.ended=!1,this.max=100,this.min=50,this.delay=0,this.index=0,this.contentInternal=""}get len(){return this.content.length}render(){return St`<div part="root" ${Lt(this.observedRecord)}> ${jt()} ${this.contentInternal} <i part="cursor" ?hidden="${this.ended}"></i> </div>`}connectedCallback(){super.connectedCallback(),this._ranger=new Ranger(this.min,this.max)}firstUpdated(){this.content||=this._slot?.assignedNodes()[0]?.textContent.trim()||"",!this.ended&&this.len&&this.write()}updated(t){t.has("index")&&this.dispatchCustomEvent(this.index===this.len?"done":"write",this.contentInternal)}write(t=this.index){this.contentInternal=this.content.slice(0,t+1);const e=this.delay||this._ranger.random();this.timeoutID=this.timeouts.add(setTimeout((()=>{const e=t+1;e<=this.len&&(this.index=e,this.write())}),e))}stop(){clearTimeout(this.timeoutID)}end(){this.ended=!0}};e([J()],Ro.prototype,"content",void 0),e([J({type:Boolean})],Ro.prototype,"ended",void 0),e([J({type:Number})],Ro.prototype,"max",void 0),e([J({type:Number})],Ro.prototype,"min",void 0),e([J({type:Number})],Ro.prototype,"delay",void 0),e([J({type:Number})],Ro.prototype,"index",void 0),e([tt()],Ro.prototype,"contentInternal",void 0),e([it("i")],Ro.prototype,"_i",void 0),Ro=e([y(So),g(A`:host{${Ao}--cursor-width:.05em}:host,:host([contents]) [part=root]{display:inline-block}i{animation:s 1.5s steps(1) infinite;border-right:var(${Ao}--cursor-width) solid;margin-left:.02em}@keyframes s{0%{border-color:currentColor}50%{border-color:transparent}}slot{display:none}`)],Ro);var Eo=Ro;return Eo.define(),t.Alert=$e,t.Avatar=_e,t.Badge=Ce,t.Breath=Te,t.Button=Be,t.Card=Le,t.Carousel=qe,t.Details=Ke,t.Dialog=ii,t.Divider=ri,t.Dragbox=ni,t.Flex=hi,t.Form=di,t.Grid=vi,t.Heading=mi,t.Input=wi,t.Layout=ki,t.Link=Mi,t.Progress=Ni,t.Range=Bi,t.Rotate=Li,t.Router=Ri,t.Select=Yi,t.Skeleton=Ji,t.Split=oo,t.Switch=ao,t.Tabs=go,t.Text=po,t.Time=_o,t.Tooltip=Co,t.Typewriter=Eo,t}({});
59
59
  //# sourceMappingURL=godown+lit.iife.js.map