smoothly 1.2.1-alpha.55 → 1.2.1-alpha.56

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 (439) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{smoothly-app_109.cjs.entry.js → smoothly-app_110.cjs.entry.js} +144 -123
  3. package/dist/cjs/smoothly-app_110.cjs.entry.js.map +1 -0
  4. package/dist/cjs/smoothly-input-checkbox-demo.cjs.entry.js +1 -1
  5. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  6. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -0
  9. package/dist/collection/components/form/demo/all/index.js +2 -2
  10. package/dist/collection/components/form/demo/card/index.js +1 -1
  11. package/dist/collection/components/form/demo/controlled/index.js +1 -1
  12. package/dist/collection/components/form/demo/date/index.js +1 -1
  13. package/dist/collection/components/form/demo/date-range/index.js +1 -1
  14. package/dist/collection/components/form/demo/index.js +1 -1
  15. package/dist/collection/components/form/demo/index.js.map +1 -1
  16. package/dist/collection/components/form/demo/login/index.js +1 -1
  17. package/dist/collection/components/form/demo/pet/index.js +2 -2
  18. package/dist/collection/components/form/demo/prices/index.js +1 -1
  19. package/dist/collection/components/form/demo/schedule/index.js +22 -0
  20. package/dist/collection/components/form/demo/schedule/index.js.map +1 -0
  21. package/dist/collection/components/form/demo/transparent/index.js +1 -1
  22. package/dist/collection/components/form/demo/typed/index.js +1 -1
  23. package/dist/collection/components/form/index.js +2 -2
  24. package/dist/collection/components/form/index.js.map +1 -1
  25. package/dist/collection/components/icon/demo/index.js +1 -1
  26. package/dist/collection/components/icon/index.js +1 -1
  27. package/dist/collection/components/input/checkbox/demo/index.js +1 -1
  28. package/dist/collection/components/input/checkbox/index.js +1 -1
  29. package/dist/collection/components/input/clear/index.js +1 -1
  30. package/dist/collection/components/input/color/demo/index.js +1 -1
  31. package/dist/collection/components/input/color/index.js +2 -2
  32. package/dist/collection/components/input/date/index.js +3 -3
  33. package/dist/collection/components/input/date/range/index.js +2 -2
  34. package/dist/collection/components/input/demo/index.js +5 -5
  35. package/dist/collection/components/input/demo/price/index.js +1 -1
  36. package/dist/collection/components/input/demo/standard/index.js +1 -1
  37. package/dist/collection/components/input/edit/index.js +1 -1
  38. package/dist/collection/components/input/file/index.js +1 -1
  39. package/dist/collection/components/input/index.js +2 -2
  40. package/dist/collection/components/input/month/index.js +2 -2
  41. package/dist/collection/components/input/radio/index.js +1 -1
  42. package/dist/collection/components/input/radio/item/index.js +1 -1
  43. package/dist/collection/components/input/range/demo/index.js +1 -1
  44. package/dist/collection/components/input/range/index.js +4 -4
  45. package/dist/collection/components/input/reset/index.js +1 -1
  46. package/dist/collection/components/input/select/index.js +3 -3
  47. package/dist/collection/components/input/submit/index.js +3 -2
  48. package/dist/collection/components/input/submit/index.js.map +1 -1
  49. package/dist/collection/components/item/index.js +1 -1
  50. package/dist/collection/components/label/index.js +2 -2
  51. package/dist/collection/components/lazy/index.js +1 -1
  52. package/dist/collection/components/load-more/index.js +1 -1
  53. package/dist/collection/components/modal/index.js +1 -1
  54. package/dist/collection/components/next/demo/colspan/index.js +1 -1
  55. package/dist/collection/components/next/demo/fillerRow/filleRowDemo.js +1 -1
  56. package/dist/collection/components/next/demo/filtered/index.js +5 -5
  57. package/dist/collection/components/next/demo/group/index.js +1 -1
  58. package/dist/collection/components/next/demo/index.js +1 -1
  59. package/dist/collection/components/next/demo/nested/index.js +1 -1
  60. package/dist/collection/components/next/demo/nested/inner/index.js +1 -1
  61. package/dist/collection/components/next/demo/simple/simple.js +1 -1
  62. package/dist/collection/components/next/table/body/index.js +1 -1
  63. package/dist/collection/components/next/table/cell/index.js +1 -1
  64. package/dist/collection/components/next/table/expandable/cell/index.js +1 -1
  65. package/dist/collection/components/next/table/expandable/row/index.js +1 -1
  66. package/dist/collection/components/next/table/fillerRow/index.js +1 -1
  67. package/dist/collection/components/next/table/foot/index.js +1 -1
  68. package/dist/collection/components/next/table/group/index.js +1 -1
  69. package/dist/collection/components/next/table/head/index.js +1 -1
  70. package/dist/collection/components/next/table/index.js +1 -1
  71. package/dist/collection/components/next/table/row/index.js +1 -1
  72. package/dist/collection/components/notification/index.js +1 -1
  73. package/dist/collection/components/notifier/index.js +2 -2
  74. package/dist/collection/components/spinner/index.js +2 -2
  75. package/dist/collection/components/submit/index.js +1 -1
  76. package/dist/collection/components/summary/index.js +1 -1
  77. package/dist/collection/components/table/cell/index.js +1 -1
  78. package/dist/collection/components/table/demo/filtered/index.js +5 -5
  79. package/dist/collection/components/table/demo/index.js +1 -1
  80. package/dist/collection/components/table/demo/testing/index.js +1 -1
  81. package/dist/collection/components/table/expandable/cell/index.js +1 -1
  82. package/dist/collection/components/table/expandable/row/index.js +1 -1
  83. package/dist/collection/components/table/footer/index.js +1 -1
  84. package/dist/collection/components/table/header/index.js +1 -1
  85. package/dist/collection/components/table/index.js +1 -1
  86. package/dist/collection/components/table/row/index.js +1 -1
  87. package/dist/collection/components/tabs/demo/index.js +1 -1
  88. package/dist/collection/components/tabs/index.js +1 -1
  89. package/dist/collection/components/tabs/tab/index.js +1 -1
  90. package/dist/collection/components/theme/color/index.js +1 -1
  91. package/dist/collection/components/theme/demo/index.js +1 -1
  92. package/dist/collection/components/theme/guide/index.js +8 -8
  93. package/dist/collection/components/theme/picker/index.js +2 -2
  94. package/dist/collection/components/toggle/index.js +1 -1
  95. package/dist/collection/components/toggle-switch/demo/index.js +1 -1
  96. package/dist/collection/components/toggle-switch/index.js +1 -1
  97. package/dist/collection/components/trigger/index.js +1 -1
  98. package/dist/collection/components/trigger/sink/index.js +1 -1
  99. package/dist/collection/components/trigger/source/index.js +1 -1
  100. package/dist/components/{p-db7effcb.js → p-019e330f.js} +23 -23
  101. package/dist/components/{p-db7effcb.js.map → p-019e330f.js.map} +1 -1
  102. package/dist/components/{p-b8e2c001.js → p-03b62a84.js} +4 -4
  103. package/dist/components/{p-b8e2c001.js.map → p-03b62a84.js.map} +1 -1
  104. package/dist/components/{p-4290c3dc.js → p-07b733ab.js} +4 -4
  105. package/dist/components/{p-4290c3dc.js.map → p-07b733ab.js.map} +1 -1
  106. package/dist/components/{p-2dcd7532.js → p-07d3ec9e.js} +8 -8
  107. package/dist/components/{p-2dcd7532.js.map → p-07d3ec9e.js.map} +1 -1
  108. package/dist/components/p-086f9642.js +123 -0
  109. package/dist/components/{p-2e5f3044.js.map → p-086f9642.js.map} +1 -1
  110. package/dist/components/{p-62096c0f.js → p-08777b22.js} +10 -10
  111. package/dist/components/{p-62096c0f.js.map → p-08777b22.js.map} +1 -1
  112. package/dist/components/{p-72d4e417.js → p-0b980f10.js} +5 -5
  113. package/dist/components/{p-72d4e417.js.map → p-0b980f10.js.map} +1 -1
  114. package/dist/components/{p-062a6fe4.js → p-0c8bbdc3.js} +2 -2
  115. package/dist/components/{p-062a6fe4.js.map → p-0c8bbdc3.js.map} +1 -1
  116. package/dist/components/{p-dfde995c.js → p-1070ed11.js} +3 -3
  117. package/dist/components/{p-dfde995c.js.map → p-1070ed11.js.map} +1 -1
  118. package/dist/components/{p-91c1f4d3.js → p-11efb4da.js} +6 -6
  119. package/dist/components/{p-91c1f4d3.js.map → p-11efb4da.js.map} +1 -1
  120. package/dist/components/{p-e358e53c.js → p-1204db0b.js} +13 -13
  121. package/dist/components/{p-e358e53c.js.map → p-1204db0b.js.map} +1 -1
  122. package/dist/components/{p-f9cb46a5.js → p-131461c4.js} +2 -2
  123. package/dist/components/{p-f9cb46a5.js.map → p-131461c4.js.map} +1 -1
  124. package/dist/components/{p-bf57d733.js → p-147ec824.js} +2 -2
  125. package/dist/components/{p-bf57d733.js.map → p-147ec824.js.map} +1 -1
  126. package/dist/components/{p-f4e939e4.js → p-15807e7e.js} +9 -9
  127. package/dist/components/{p-f4e939e4.js.map → p-15807e7e.js.map} +1 -1
  128. package/dist/components/{p-285fe73a.js → p-194be519.js} +7 -7
  129. package/dist/components/{p-285fe73a.js.map → p-194be519.js.map} +1 -1
  130. package/dist/components/{p-59595cb3.js → p-20d5fac8.js} +2 -2
  131. package/dist/components/{p-59595cb3.js.map → p-20d5fac8.js.map} +1 -1
  132. package/dist/components/{p-b95db1c4.js → p-2240500f.js} +10 -10
  133. package/dist/components/{p-b95db1c4.js.map → p-2240500f.js.map} +1 -1
  134. package/dist/components/{p-95102e4e.js → p-23770a20.js} +2 -2
  135. package/dist/components/{p-95102e4e.js.map → p-23770a20.js.map} +1 -1
  136. package/dist/components/{p-0e712224.js → p-2749acb5.js} +9 -9
  137. package/dist/components/{p-0e712224.js.map → p-2749acb5.js.map} +1 -1
  138. package/dist/components/{p-4c4607c5.js → p-2930104b.js} +32 -32
  139. package/dist/components/{p-4c4607c5.js.map → p-2930104b.js.map} +1 -1
  140. package/dist/components/{p-22c9eb96.js → p-295811a6.js} +10 -10
  141. package/dist/components/{p-22c9eb96.js.map → p-295811a6.js.map} +1 -1
  142. package/dist/components/{p-e5f4d278.js → p-34355667.js} +3 -3
  143. package/dist/components/{p-e5f4d278.js.map → p-34355667.js.map} +1 -1
  144. package/dist/components/{p-77638386.js → p-346ebd99.js} +7 -7
  145. package/dist/components/{p-77638386.js.map → p-346ebd99.js.map} +1 -1
  146. package/dist/components/{p-8bf3df8f.js → p-35080dc5.js} +8 -8
  147. package/dist/components/{p-8bf3df8f.js.map → p-35080dc5.js.map} +1 -1
  148. package/dist/components/{p-b83c0cdb.js → p-358396f3.js} +3 -3
  149. package/dist/components/{p-b83c0cdb.js.map → p-358396f3.js.map} +1 -1
  150. package/dist/components/{p-aeb593b8.js → p-3fcaa69d.js} +3 -3
  151. package/dist/components/{p-aeb593b8.js.map → p-3fcaa69d.js.map} +1 -1
  152. package/dist/components/{p-9040a584.js → p-4325ac30.js} +2 -2
  153. package/dist/components/{p-9040a584.js.map → p-4325ac30.js.map} +1 -1
  154. package/dist/components/{p-fca663c0.js → p-45800269.js} +3 -3
  155. package/dist/components/{p-fca663c0.js.map → p-45800269.js.map} +1 -1
  156. package/dist/components/{p-405d6f00.js → p-4bbdd1c9.js} +6 -6
  157. package/dist/components/{p-405d6f00.js.map → p-4bbdd1c9.js.map} +1 -1
  158. package/dist/components/{p-2245665c.js → p-4da92b01.js} +2 -2
  159. package/dist/components/{p-2245665c.js.map → p-4da92b01.js.map} +1 -1
  160. package/dist/components/{p-6f5a2d5b.js → p-54b99067.js} +2 -2
  161. package/dist/components/{p-6f5a2d5b.js.map → p-54b99067.js.map} +1 -1
  162. package/dist/components/{p-8f277683.js → p-558481f1.js} +4 -4
  163. package/dist/components/{p-8f277683.js.map → p-558481f1.js.map} +1 -1
  164. package/dist/components/{p-d0d172ed.js → p-58d5e72e.js} +25 -25
  165. package/dist/components/{p-d0d172ed.js.map → p-58d5e72e.js.map} +1 -1
  166. package/dist/components/{p-9088d27f.js → p-5bf952c5.js} +8 -5
  167. package/dist/components/p-5bf952c5.js.map +1 -0
  168. package/dist/components/{p-df19616b.js → p-5da33c08.js} +3 -3
  169. package/dist/components/{p-df19616b.js.map → p-5da33c08.js.map} +1 -1
  170. package/dist/components/{p-5066e613.js → p-5e56437f.js} +4 -4
  171. package/dist/components/{p-5066e613.js.map → p-5e56437f.js.map} +1 -1
  172. package/dist/components/{p-0f7a9aad.js → p-60f63920.js} +3 -3
  173. package/dist/components/{p-0f7a9aad.js.map → p-60f63920.js.map} +1 -1
  174. package/dist/components/{p-22fe3436.js → p-62ab1899.js} +2 -2
  175. package/dist/components/{p-22fe3436.js.map → p-62ab1899.js.map} +1 -1
  176. package/dist/components/{p-0025863f.js → p-6790f452.js} +9 -9
  177. package/dist/components/{p-0025863f.js.map → p-6790f452.js.map} +1 -1
  178. package/dist/components/{p-86fc6d36.js → p-707f32c7.js} +2 -2
  179. package/dist/components/{p-86fc6d36.js.map → p-707f32c7.js.map} +1 -1
  180. package/dist/components/{p-802d4c20.js → p-72feb959.js} +3 -3
  181. package/dist/components/{p-802d4c20.js.map → p-72feb959.js.map} +1 -1
  182. package/dist/components/{p-844a4416.js → p-77b1f721.js} +10 -10
  183. package/dist/components/{p-844a4416.js.map → p-77b1f721.js.map} +1 -1
  184. package/dist/components/{p-c8f16f2f.js → p-7962c1af.js} +5 -5
  185. package/dist/components/{p-c8f16f2f.js.map → p-7962c1af.js.map} +1 -1
  186. package/dist/components/{p-43fd9c2d.js → p-7b144a9e.js} +2 -2
  187. package/dist/components/{p-43fd9c2d.js.map → p-7b144a9e.js.map} +1 -1
  188. package/dist/components/{p-258504c6.js → p-7ba67f13.js} +13 -13
  189. package/dist/components/{p-258504c6.js.map → p-7ba67f13.js.map} +1 -1
  190. package/dist/components/{p-43d0c1ec.js → p-7baf0810.js} +21 -21
  191. package/dist/components/{p-43d0c1ec.js.map → p-7baf0810.js.map} +1 -1
  192. package/dist/components/{p-6f3fa567.js → p-7c13984b.js} +4 -4
  193. package/dist/components/p-7c13984b.js.map +1 -0
  194. package/dist/components/{p-036a11dd.js → p-7d547395.js} +7 -7
  195. package/dist/components/{p-036a11dd.js.map → p-7d547395.js.map} +1 -1
  196. package/dist/components/{p-252f435e.js → p-7f64dfd8.js} +6 -6
  197. package/dist/components/{p-252f435e.js.map → p-7f64dfd8.js.map} +1 -1
  198. package/dist/components/{p-8e748704.js → p-7f7c4cf3.js} +2 -2
  199. package/dist/components/{p-8e748704.js.map → p-7f7c4cf3.js.map} +1 -1
  200. package/dist/components/{p-484c8e9f.js → p-8325e020.js} +2 -2
  201. package/dist/components/{p-484c8e9f.js.map → p-8325e020.js.map} +1 -1
  202. package/dist/components/p-855617c6.js +45 -0
  203. package/dist/components/{p-0fa3f5a7.js.map → p-855617c6.js.map} +1 -1
  204. package/dist/components/{p-259190db.js → p-870628fb.js} +2 -2
  205. package/dist/components/{p-259190db.js.map → p-870628fb.js.map} +1 -1
  206. package/dist/components/{p-6bd00b48.js → p-8b29f2b4.js} +2 -2
  207. package/dist/components/{p-6bd00b48.js.map → p-8b29f2b4.js.map} +1 -1
  208. package/dist/components/{p-8b653306.js → p-8cf76a5d.js} +6 -6
  209. package/dist/components/{p-8b653306.js.map → p-8cf76a5d.js.map} +1 -1
  210. package/dist/components/p-8e140c7a.js +121 -0
  211. package/dist/components/p-8e140c7a.js.map +1 -0
  212. package/dist/components/{p-04b7f978.js → p-8f43fcdd.js} +2 -2
  213. package/dist/components/{p-04b7f978.js.map → p-8f43fcdd.js.map} +1 -1
  214. package/dist/components/{p-e9ce7bf9.js → p-92061151.js} +2 -2
  215. package/dist/components/{p-e9ce7bf9.js.map → p-92061151.js.map} +1 -1
  216. package/dist/components/{p-b41ec3e0.js → p-920711b0.js} +6 -6
  217. package/dist/components/{p-b41ec3e0.js.map → p-920711b0.js.map} +1 -1
  218. package/dist/components/{p-290784f7.js → p-9690faa5.js} +4 -4
  219. package/dist/components/{p-290784f7.js.map → p-9690faa5.js.map} +1 -1
  220. package/dist/components/{p-78f4df54.js → p-9a61768f.js} +3 -3
  221. package/dist/components/{p-78f4df54.js.map → p-9a61768f.js.map} +1 -1
  222. package/dist/components/{p-1e152a40.js → p-a0ae39bb.js} +2 -2
  223. package/dist/components/{p-1e152a40.js.map → p-a0ae39bb.js.map} +1 -1
  224. package/dist/components/{p-9344bf25.js → p-a26360d7.js} +2 -2
  225. package/dist/components/{p-9344bf25.js.map → p-a26360d7.js.map} +1 -1
  226. package/dist/components/{p-4efff7b4.js → p-a375981d.js} +3 -3
  227. package/dist/components/{p-4efff7b4.js.map → p-a375981d.js.map} +1 -1
  228. package/dist/components/{p-765d9313.js → p-a3987ada.js} +4 -4
  229. package/dist/components/{p-765d9313.js.map → p-a3987ada.js.map} +1 -1
  230. package/dist/components/{p-17794f14.js → p-a4c683f7.js} +11 -11
  231. package/dist/components/{p-17794f14.js.map → p-a4c683f7.js.map} +1 -1
  232. package/dist/components/{p-20881197.js → p-a73d4047.js} +3 -3
  233. package/dist/components/{p-20881197.js.map → p-a73d4047.js.map} +1 -1
  234. package/dist/components/{p-9cb820c5.js → p-aabc0016.js} +4 -4
  235. package/dist/components/{p-9cb820c5.js.map → p-aabc0016.js.map} +1 -1
  236. package/dist/components/{p-1995505a.js → p-b2ffaca2.js} +23 -23
  237. package/dist/components/{p-1995505a.js.map → p-b2ffaca2.js.map} +1 -1
  238. package/dist/components/{p-20f60ede.js → p-b747b713.js} +13 -13
  239. package/dist/components/{p-20f60ede.js.map → p-b747b713.js.map} +1 -1
  240. package/dist/components/{p-b8e8d142.js → p-b79a65d9.js} +3 -3
  241. package/dist/components/{p-b8e8d142.js.map → p-b79a65d9.js.map} +1 -1
  242. package/dist/components/{p-99568b5a.js → p-bdc029ad.js} +7 -7
  243. package/dist/components/{p-99568b5a.js.map → p-bdc029ad.js.map} +1 -1
  244. package/dist/components/{p-eec2649a.js → p-bf52b8d1.js} +2 -2
  245. package/dist/components/{p-eec2649a.js.map → p-bf52b8d1.js.map} +1 -1
  246. package/dist/components/p-c29ca9d9.js +241 -0
  247. package/dist/components/{p-14024783.js.map → p-c29ca9d9.js.map} +1 -1
  248. package/dist/components/{p-6acdcb78.js → p-c5ebb66b.js} +8 -8
  249. package/dist/components/{p-6acdcb78.js.map → p-c5ebb66b.js.map} +1 -1
  250. package/dist/components/{p-15112f2e.js → p-c77f4c0f.js} +3 -3
  251. package/dist/components/{p-15112f2e.js.map → p-c77f4c0f.js.map} +1 -1
  252. package/dist/components/{p-2f3b4735.js → p-c7be31eb.js} +6 -6
  253. package/dist/components/{p-2f3b4735.js.map → p-c7be31eb.js.map} +1 -1
  254. package/dist/components/{p-5d000366.js → p-c9a29ee1.js} +9 -9
  255. package/dist/components/{p-5d000366.js.map → p-c9a29ee1.js.map} +1 -1
  256. package/dist/components/{p-58437ae8.js → p-ca6e8175.js} +2 -2
  257. package/dist/components/{p-58437ae8.js.map → p-ca6e8175.js.map} +1 -1
  258. package/dist/components/{p-8e13449b.js → p-cb083b20.js} +2 -2
  259. package/dist/components/{p-8e13449b.js.map → p-cb083b20.js.map} +1 -1
  260. package/dist/components/{p-2072c622.js → p-cb45cc1f.js} +4 -4
  261. package/dist/components/{p-2072c622.js.map → p-cb45cc1f.js.map} +1 -1
  262. package/dist/components/{p-2c93fde9.js → p-d0049fe4.js} +2 -2
  263. package/dist/components/{p-2c93fde9.js.map → p-d0049fe4.js.map} +1 -1
  264. package/dist/components/{p-85265529.js → p-d104367f.js} +9 -9
  265. package/dist/components/{p-85265529.js.map → p-d104367f.js.map} +1 -1
  266. package/dist/components/{p-0ac899b2.js → p-d2aa1c38.js} +5 -5
  267. package/dist/components/{p-0ac899b2.js.map → p-d2aa1c38.js.map} +1 -1
  268. package/dist/components/p-de39a980.js +207 -0
  269. package/dist/components/{p-d9620164.js.map → p-de39a980.js.map} +1 -1
  270. package/dist/components/{p-697c3178.js → p-e25aaa1d.js} +15 -15
  271. package/dist/components/{p-697c3178.js.map → p-e25aaa1d.js.map} +1 -1
  272. package/dist/components/{p-560771d7.js → p-e27c488b.js} +10 -10
  273. package/dist/components/{p-560771d7.js.map → p-e27c488b.js.map} +1 -1
  274. package/dist/components/{p-56235c3f.js → p-e2de28a2.js} +3 -3
  275. package/dist/components/{p-56235c3f.js.map → p-e2de28a2.js.map} +1 -1
  276. package/dist/components/{p-b09ce609.js → p-e54d19d9.js} +2 -2
  277. package/dist/components/{p-b09ce609.js.map → p-e54d19d9.js.map} +1 -1
  278. package/dist/components/{p-36365329.js → p-e660be53.js} +4 -4
  279. package/dist/components/{p-36365329.js.map → p-e660be53.js.map} +1 -1
  280. package/dist/components/{p-54a6c919.js → p-e96a36e8.js} +2 -2
  281. package/dist/components/{p-54a6c919.js.map → p-e96a36e8.js.map} +1 -1
  282. package/dist/components/{p-1f93537e.js → p-ec959ba7.js} +14 -14
  283. package/dist/components/{p-1f93537e.js.map → p-ec959ba7.js.map} +1 -1
  284. package/dist/components/{p-2f04e84f.js → p-ed0b2856.js} +4 -4
  285. package/dist/components/{p-2f04e84f.js.map → p-ed0b2856.js.map} +1 -1
  286. package/dist/components/{p-c090ac4b.js → p-ee61f718.js} +2 -2
  287. package/dist/components/{p-c090ac4b.js.map → p-ee61f718.js.map} +1 -1
  288. package/dist/components/{p-a14e7882.js → p-f1cc5346.js} +4 -4
  289. package/dist/components/{p-a14e7882.js.map → p-f1cc5346.js.map} +1 -1
  290. package/dist/components/{p-635413e0.js → p-f815774c.js} +2 -2
  291. package/dist/components/{p-635413e0.js.map → p-f815774c.js.map} +1 -1
  292. package/dist/components/{p-a3f22345.js → p-f9c491ef.js} +66 -60
  293. package/dist/components/p-f9c491ef.js.map +1 -0
  294. package/dist/components/{p-78332392.js → p-fb11d1db.js} +8 -8
  295. package/dist/components/{p-78332392.js.map → p-fb11d1db.js.map} +1 -1
  296. package/dist/components/{p-e79802d6.js → p-fd058de9.js} +14 -14
  297. package/dist/components/{p-e79802d6.js.map → p-fd058de9.js.map} +1 -1
  298. package/dist/components/{p-5541919e.js → p-fe562681.js} +20 -20
  299. package/dist/components/{p-5541919e.js.map → p-fe562681.js.map} +1 -1
  300. package/dist/components/smoothly-app-demo.js +144 -138
  301. package/dist/components/smoothly-app-demo.js.map +1 -1
  302. package/dist/components/smoothly-app-room.js +1 -1
  303. package/dist/components/smoothly-app.js +1 -1
  304. package/dist/components/smoothly-back-to-top.js +1 -1
  305. package/dist/components/smoothly-burger.js +1 -1
  306. package/dist/components/smoothly-button-confirm.js +1 -1
  307. package/dist/components/smoothly-button-demo.js +1 -1
  308. package/dist/components/smoothly-calendar.js +1 -1
  309. package/dist/components/smoothly-checkbox.js +1 -1
  310. package/dist/components/smoothly-dialog-demo.js +1 -1
  311. package/dist/components/smoothly-dialog.js +1 -1
  312. package/dist/components/smoothly-display-demo.js +1 -1
  313. package/dist/components/smoothly-filter-field.js +1 -1
  314. package/dist/components/smoothly-filter-input.js +1 -1
  315. package/dist/components/smoothly-filter-select.js +1 -1
  316. package/dist/components/smoothly-filter-toggle.js +1 -1
  317. package/dist/components/smoothly-filter.js +1 -1
  318. package/dist/components/smoothly-form-demo-all.js +1 -1
  319. package/dist/components/smoothly-form-demo-card.js +1 -1
  320. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  321. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  322. package/dist/components/smoothly-form-demo-date.js +1 -1
  323. package/dist/components/smoothly-form-demo-login.js +1 -1
  324. package/dist/components/smoothly-form-demo-pet.js +1 -1
  325. package/dist/components/smoothly-form-demo-prices.js +1 -1
  326. package/dist/components/smoothly-form-demo-schedule.d.ts +11 -0
  327. package/dist/components/smoothly-form-demo-schedule.js +8 -0
  328. package/dist/components/smoothly-form-demo-schedule.js.map +1 -0
  329. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  330. package/dist/components/smoothly-form-demo-typed.js +1 -1
  331. package/dist/components/smoothly-form-demo.js +1 -1
  332. package/dist/components/smoothly-form.js +1 -1
  333. package/dist/components/smoothly-icon-demo.js +1 -1
  334. package/dist/components/smoothly-icon.js +1 -1
  335. package/dist/components/smoothly-input-checkbox-demo.js +23 -23
  336. package/dist/components/smoothly-input-checkbox.js +1 -1
  337. package/dist/components/smoothly-input-clear.js +1 -1
  338. package/dist/components/smoothly-input-color-demo.js +1 -1
  339. package/dist/components/smoothly-input-color.js +1 -1
  340. package/dist/components/smoothly-input-date-range.js +1 -1
  341. package/dist/components/smoothly-input-date.js +1 -1
  342. package/dist/components/smoothly-input-demo-standard.js +1 -1
  343. package/dist/components/smoothly-input-demo.js +1 -1
  344. package/dist/components/smoothly-input-edit.js +1 -1
  345. package/dist/components/smoothly-input-file.js +1 -1
  346. package/dist/components/smoothly-input-month.js +1 -1
  347. package/dist/components/smoothly-input-price-demo.js +1 -1
  348. package/dist/components/smoothly-input-radio-item.js +1 -1
  349. package/dist/components/smoothly-input-radio.js +1 -1
  350. package/dist/components/smoothly-input-range-demo.js +1 -1
  351. package/dist/components/smoothly-input-range.js +1 -1
  352. package/dist/components/smoothly-input-reset.js +1 -1
  353. package/dist/components/smoothly-input-select.js +1 -1
  354. package/dist/components/smoothly-input-submit.js +1 -1
  355. package/dist/components/smoothly-input.js +1 -1
  356. package/dist/components/smoothly-item.js +1 -1
  357. package/dist/components/smoothly-label.js +1 -1
  358. package/dist/components/smoothly-lazy.js +1 -1
  359. package/dist/components/smoothly-load-more.js +1 -1
  360. package/dist/components/smoothly-modal.js +1 -1
  361. package/dist/components/smoothly-next-demo-colspan.js +1 -1
  362. package/dist/components/smoothly-next-demo-filler-row-demo.js +1 -1
  363. package/dist/components/smoothly-next-demo-group.js +1 -1
  364. package/dist/components/smoothly-next-demo-nested-inner.js +1 -1
  365. package/dist/components/smoothly-next-demo-nested.js +1 -1
  366. package/dist/components/smoothly-next-demo-simple.js +1 -1
  367. package/dist/components/smoothly-next-demo.js +1 -1
  368. package/dist/components/smoothly-next-table-body.js +1 -1
  369. package/dist/components/smoothly-next-table-cell.js +1 -1
  370. package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
  371. package/dist/components/smoothly-next-table-expandable-cell.js +1 -1
  372. package/dist/components/smoothly-next-table-expandable-row.js +1 -1
  373. package/dist/components/smoothly-next-table-filler-row.js +1 -1
  374. package/dist/components/smoothly-next-table-foot.js +1 -1
  375. package/dist/components/smoothly-next-table-head.js +1 -1
  376. package/dist/components/smoothly-next-table-row-group.js +1 -1
  377. package/dist/components/smoothly-next-table-row.js +1 -1
  378. package/dist/components/smoothly-next-table.js +1 -1
  379. package/dist/components/smoothly-notification.js +1 -1
  380. package/dist/components/smoothly-notifier.js +1 -1
  381. package/dist/components/smoothly-spinner.js +1 -1
  382. package/dist/components/smoothly-submit.js +1 -1
  383. package/dist/components/smoothly-summary.js +1 -1
  384. package/dist/components/smoothly-tab.js +1 -1
  385. package/dist/components/smoothly-table-cell.js +1 -1
  386. package/dist/components/smoothly-table-demo-filtered.js +1 -1
  387. package/dist/components/smoothly-table-demo.js +1 -1
  388. package/dist/components/smoothly-table-expandable-cell.js +1 -1
  389. package/dist/components/smoothly-table-expandable-row.js +1 -1
  390. package/dist/components/smoothly-table-footer.js +1 -1
  391. package/dist/components/smoothly-table-header.js +1 -1
  392. package/dist/components/smoothly-table-row.js +1 -1
  393. package/dist/components/smoothly-table-testing.js +1 -1
  394. package/dist/components/smoothly-table.js +1 -1
  395. package/dist/components/smoothly-tabs-demo.js +1 -1
  396. package/dist/components/smoothly-tabs.js +1 -1
  397. package/dist/components/smoothly-theme-color.js +1 -1
  398. package/dist/components/smoothly-theme-colors.js +1 -1
  399. package/dist/components/smoothly-theme-demo.js +1 -1
  400. package/dist/components/smoothly-theme-guide.js +1 -1
  401. package/dist/components/smoothly-theme-picker.js +1 -1
  402. package/dist/components/smoothly-toggle-switch-demo.js +1 -1
  403. package/dist/components/smoothly-toggle-switch.js +1 -1
  404. package/dist/components/smoothly-toggle.js +1 -1
  405. package/dist/components/smoothly-trigger-sink.js +1 -1
  406. package/dist/components/smoothly-trigger-source.js +1 -1
  407. package/dist/components/smoothly-trigger.js +1 -1
  408. package/dist/esm/loader.js +1 -1
  409. package/dist/esm/{smoothly-app_109.entry.js → smoothly-app_110.entry.js} +143 -123
  410. package/dist/esm/smoothly-app_110.entry.js.map +1 -0
  411. package/dist/esm/smoothly-input-checkbox-demo.entry.js +1 -1
  412. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  413. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  414. package/dist/esm/smoothly.js +1 -1
  415. package/dist/smoothly/{p-24a9b92c.entry.js → p-007b4bab.entry.js} +2 -2
  416. package/dist/smoothly/p-6d9cf6a6.entry.js +2 -0
  417. package/dist/smoothly/p-6d9cf6a6.entry.js.map +1 -0
  418. package/dist/smoothly/p-c35d7ab7.entry.js +2 -0
  419. package/dist/smoothly/{p-ddf20417.entry.js → p-fc0c0853.entry.js} +2 -2
  420. package/dist/smoothly/smoothly.esm.js +1 -1
  421. package/dist/smoothly/smoothly.esm.js.map +1 -1
  422. package/dist/types/components/form/demo/schedule/index.d.ts +4 -0
  423. package/dist/types/components.d.ts +13 -0
  424. package/package.json +1 -1
  425. package/dist/cjs/smoothly-app_109.cjs.entry.js.map +0 -1
  426. package/dist/components/p-0fa3f5a7.js +0 -45
  427. package/dist/components/p-14024783.js +0 -241
  428. package/dist/components/p-2e5f3044.js +0 -123
  429. package/dist/components/p-6f3fa567.js.map +0 -1
  430. package/dist/components/p-9088d27f.js.map +0 -1
  431. package/dist/components/p-a3f22345.js.map +0 -1
  432. package/dist/components/p-d9620164.js +0 -207
  433. package/dist/esm/smoothly-app_109.entry.js.map +0 -1
  434. package/dist/smoothly/p-121b7e5c.entry.js +0 -2
  435. package/dist/smoothly/p-121b7e5c.entry.js.map +0 -1
  436. package/dist/smoothly/p-8fa9500d.entry.js +0 -2
  437. /package/dist/smoothly/{p-24a9b92c.entry.js.map → p-007b4bab.entry.js.map} +0 -0
  438. /package/dist/smoothly/{p-8fa9500d.entry.js.map → p-c35d7ab7.entry.js.map} +0 -0
  439. /package/dist/smoothly/{p-ddf20417.entry.js.map → p-fc0c0853.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as e,h as t,c as o,H as s,g as a,F as i}from"./p-ad674a4e.js";import{a as n,T as l,C as r,i as c,r as d,D as h,f as m,R as b,M as y,I as u}from"./p-6d7ee489.js";import{T as f,L as p,a as g,D as k,c as v,d as x,C as w,o as S,s as C,b as z,e as j,n as _,A as T}from"./p-34d144e8.js";import{r as I,N as L}from"./p-c3f85494.js";import{f as O}from"./p-2257be8c.js";function A(e){return new E(e??"any")}class E extends f{class="any";is=e=>e!=undefined}function D(){const e=navigator.language;return p.is(e)?e:g.is(e)?p.toLocale(e):undefined}const M='smoothly-app{--header-height:5rem;display:block}smoothly-app>smoothly-notifier>main{height:calc(100dvh - var(--header-height))}smoothly-app[hidden]{display:none}smoothly-app>smoothly-notifier{height:100%;background:none}header:has(smoothly-burger[visible])>nav>ul smoothly-app-room{width:100%;height:4em}smoothly-app>smoothly-notifier>header{position:sticky;top:0;z-index:5;width:100%;height:var(--header-height);display:flex;justify-content:space-between;box-sizing:border-box;align-items:center;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}smoothly-app>smoothly-notifier>header>nav{width:100%;flex-shrink:2;height:100%}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{display:flex;margin:0}smoothly-app:not([label])>smoothly-notifier>header>h1{display:none}smoothly-app>smoothly-notifier>header>h1{margin-left:1rem;margin-bottom:0.8em;display:flex;height:100%}smoothly-app>smoothly-notifier>header>h1>a{display:inline-block;align-self:center;size:100%;background-position-y:center;text-decoration:none;white-space:nowrap}smoothly-app>smoothly-notifier>header>nav>ul{width:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container{display:flex;align-items:center;height:100%}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{display:flex;align-items:center;height:100%;margin-left:auto;margin-right:1rem}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"]{width:fit-content;align-self:center;height:fit-content;margin-left:10rem}smoothly-app>smoothly-notifier>header>nav>ul li a{display:flex;height:2.3rem;text-decoration:none;align-items:center;align-self:center}@media screen and (max-width: 900px){smoothly-app>smoothly-notifier>header>nav{width:fit-content;max-width:100%;top:100%;position:absolute;max-height:calc(100dvh - var(--header-height));overflow-y:scroll;right:0;height:auto}smoothly-app>smoothly-notifier>header>nav,smoothly-app>smoothly-notifier>header>nav>ul{flex-direction:column;background-color:rgba(var(--smoothly-color))}smoothly-app>smoothly-notifier>header>nav>ul{padding:1.5rem;box-sizing:border-box}smoothly-app>smoothly-notifier>header>nav>ul li{margin-right:0;width:100%}smoothly-app>smoothly-notifier>header>smoothly-burger{position:absolute;top:0;right:0}smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-start"]{display:none}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container,smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container{flex-direction:column;margin:0;align-items:start;justify-content:center}smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child{margin-bottom:1em}}smoothly-app>smoothly-notifier>header>nav:not(.menu-open){display:none}smoothly-app>smoothly-notifier>main>div{overflow-y:scroll;height:100%}';const $=M;const R=class{constructor(t){e(this,t);this.rooms={};this.label=undefined;this.color=undefined;this.home=undefined;this.menuOpen=false;this.selected=undefined}async componentDidRender(){var e;if(!this.selected&&!window.location.search)(e=this.home&&this.rooms[this.home]?this.rooms[this.home]:Object.values(this.rooms).find((e=>!(e===null||e===void 0?void 0:e.element.disabled))))===null||e===void 0?void 0:e.element.setSelected(true)}async selectRoom(e){var t;(t=this.rooms[e])===null||t===void 0?void 0:t.element.setSelected(true)}async selectedChanged(){var e;Object.values(this.rooms).forEach((e=>{var t;return(e===null||e===void 0?void 0:e.element.path)!=((t=this.selected)===null||t===void 0?void 0:t.element.path)&&(e===null||e===void 0?void 0:e.element.setSelected(false))}));const t=await((e=this.selected)===null||e===void 0?void 0:e.element.getContent());if(this.mainElement&&t){this.mainElement.innerHTML="";this.mainElement.appendChild(t)}}burgerVisibilityHandler(e){this.burgerVisibility=e.detail}burgerStatusHandler(e){e.stopPropagation();this.menuOpen=e.detail}async locationChangeHandler(e){var t;(t=this.rooms[e.state.smoothlyPath])===null||t===void 0?void 0:t.element.setSelected(true,{history:true})}roomSelectedHandler(e){this.selected={element:e.target};if(this.burgerVisibility)this.menuOpen=false;if(!e.detail.history){const e=this.selected.element.path.toString();const t=new URL(window.location.pathname==e?window.location.href:window.location.origin);t.pathname=e;window.history.pushState({smoothlyPath:e},"",t.href)}}roomLoadedHandler(e){const t=this.rooms[e.target.path.toString()]={element:e.target};if(t.element.selected){this.selected=t;window.history.replaceState({smoothlyPath:t.element.path},"",window.location.href)}}clickHandler(e){if(this.burgerVisibility)if(e.composedPath().some((e=>e==this.burgerElement||e==this.navElement)));else this.menuOpen=false}render(){return t("smoothly-notifier",{key:"e9b90a7541f72cd1357e2bb68c1f26709984d176"},t("header",{key:"2fad88bef48cd6afcb8e5a3dc88c3126413e24cb",color:this.color},t("h1",{key:"56b0cf1059806fa6d522ff7c306d68e5b1fe6a02"},t("a",{key:"4609bf678748cbaf824c169f8723de0944d1940a",href:""},this.label)),t("slot",{key:"69b8995d75823b0dc79f9ac3e6589d93373d0b9e",name:"header"}),t("nav",{key:"74c0984bd564554aea61d69cc56057d49dc59431",ref:e=>this.navElement=e,class:{"menu-open":this.menuOpen}},t("ul",{key:"824b6fca8abe6cb0d94cf6af063522eb17bd7f24"},t("div",{key:"b341a3703747911119ce85bfcb799d85e8b36bc3",class:"nav-start-container"},t("slot",{key:"a88cd0274213cdcaea4750f26e543ff2a86458e9",name:"nav-start"})),t("slot",{key:"abefaa514bb2b5d9580c462d44356cc9336dbbad"}),t("div",{key:"3bd9dc239b15781dada1557337fda06525f03486",class:"nav-end-container"},t("slot",{key:"d42926c3698e00ef3d90cf9a0a2222c1b5ad0bbc",name:"nav-end"})))),t("smoothly-burger",{key:"174b04034324bd0e8e44416fe7781873c0749b01",ref:e=>this.burgerElement=e,open:this.menuOpen,onSmoothlyNavStatus:e=>this.burgerStatusHandler(e),onSmoothlyVisibleStatus:e=>this.burgerVisibilityHandler(e)})),t("main",{key:"116290e55aafdce447c85854f8f8a6040210b81a",ref:e=>this.mainElement=e}))}static get watchers(){return{selected:["selectedChanged"]}}};R.style=$;const P=class{constructor(t){e(this,t);this.baseUrl=undefined}render(){return t("smoothly-app",{key:"aa798117a543b094b87cd4f794e41c2c62eedcf5",color:"dark",label:"Smoothly Demo",home:"/root",ref:e=>this.app=e},t("smoothly-trigger",{key:"8576545a5f1408fe488c80ca5a0856650d3d5b49",slot:"nav-start",type:"link",name:"logout"},t("smoothly-icon",{key:"193f43f5a6d919ba06eec2a08149ed2374aee06f",toolTip:"Log out",name:"log-out",size:"medium"})),t("smoothly-app-room",{key:"e8844d73ceb204d13bfc279e946a0bac80dc4d68",path:"/root",label:"root"},t("smoothly-theme-demo",{key:"6cb3d1813bf4d9fe930ef3ed82215aac2af0d628"})),t("smoothly-app-room",{key:"cbf46329c16c64a199535b1553e7a8c672529fbc",path:"/links",label:"Links"},t("smoothly-input",{key:"4a9793a5fcca2a9addc6090c9c0cd671b1ebbd24",type:"text"},"Default"),t("div",{key:"14eeb3c49e15d784862c4f6e9d59c8a3d8da7963",style:{padding:"1em",maxWidth:"12em"}},t("smoothly-button",{key:"31b4d3395c2591401eb6dab6da14d6caac0411fe",fill:"solid",color:"danger",link:"https://google.com"},"open"),t("smoothly-button",{key:"bfad0b8b15643d8d31c85ee11a9c0e84db2ab6c9",fill:"solid",color:"danger",link:"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",type:"download"},"download"),t("smoothly-button",{key:"bebe8268049b005938a50db82b40c0ee87612743",fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"e29cddc1f4bfd034dde47491361278c6ce87ba7d",disabled:true,fill:"solid",color:"danger",onClick:()=>alert("clicked")},"action"),t("smoothly-button",{key:"d8cc0600b0632998ba1b869ad084edab91fad2e5",type:"link",fill:"clear",color:"danger",onClick:()=>alert("clicked")},"action link"))),t("smoothly-app-room",{key:"ac76d59a6a1abf64390f2abf922d5f5a6dee1669",path:"/form",label:"Form"},t("smoothly-form-demo",{key:"0bdc1d11f5b8f934dda4ff392458b08d4a70be3f"})),t("smoothly-app-room",{key:"4563223ad6f765c0939cc30cd45dc30cd5d69032",path:"/input",label:"Input"},t("smoothly-input-demo",{key:"375c06afd265f6307fc66e93c9835dc49ce3e6d6"})),t("smoothly-app-room",{key:"42e0a3a236f724591145301dd9df043f679af9ee",path:"/button",label:"Button"},t("smoothly-button-demo",{key:"5901292f12d2d24973a2cf5387508a431803b2e8"})),t("smoothly-app-room",{key:"d4a8784af2165b95cfc42aff5ca3be1e5c958e87",path:"/dialog",label:"Dialog"},t("smoothly-dialog-demo",{key:"35c854b7844271e48d3f0e6533f9306c8464baf0"})),t("smoothly-app-room",{key:"e2ad58e1f1265d3a5027cd3f224083e40d5973f7",path:"/display",label:"Display",icon:"eye-outline"},t("smoothly-display-demo",{key:"2bfc57d7150503495f8b12d2ed3d9ec7d5d89a88"})),t("smoothly-app-room",{key:"8d586a62c12cf26864db2f247ad12681f590a77d",path:"/table",label:"Table"},t("smoothly-table-demo",{key:"38415d9b5ce66403af5628b3348410592e67fa23"})),t("smoothly-app-room",{key:"751c2b58dcbc1863dcc5529d88dd4fdd903e757a",path:"/next",label:"Next"},t("smoothly-next-demo",{key:"4e59f67d38365c613cea03506f3084ea692ee586"})),t("smoothly-app-room",{key:"ae695b723b25a16a108fa9e0c2b3b09533e50286",path:"/tabs",label:"Tabs",slot:"nav-end"},t("smoothly-tabs-demo",{key:"c283c99faa9ac420440b044c3aeebe8a01ec43e4"})),t("smoothly-app-room",{key:"267db613a187c690e77b432dd39bcff73234ac38",path:"/icon",label:"Icon",content:t("smoothly-icon-demo",null),slot:"nav-end"}),t("smoothly-app-room",{key:"8bfbb99b17ad01a4fd09b8806a822546cdf720a3",path:"/redirect",label:"Redirect",slot:"nav-end"},t("smoothly-button",{key:"d4b35584d2c1287d720ebc459100761b276de121",type:"link",link:"/input"},"To input"),t("smoothly-button",{key:"8f207c300488db536215a3c61edb66519a22cc4d",type:"link",link:"../button"},"To button"),t("smoothly-button",{key:"c71e440088db8957a47434ab649fe7fe7c6c0f8e",type:"link",link:new URL("/hidden",window.location.origin).href},"To hidden"),t("smoothly-button",{key:"e6257c6f6da592e923ba67f73d587b35d2435d09",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"d55eb65cf2286b9fef264f8531f68b499af73199",type:"link",link:"nested"},"To redirect nested, relative path")),t("smoothly-app-room",{key:"3ba5cd1cfc05a1b00ec42ea9ddfebbe8abf74d02",path:"/hidden"},t("p",{key:"0033b0c86f9199c4623da10af5ad62ae3c89eb82"},"hello world!")),t("smoothly-app-room",{key:"5f43fc7540b1d3a123b278eed2b6be274a661fd5",path:"/redirect/nested"},"this is a nested room"))}};var N=class{constructor(e,t,o,s,a,i){this.type=3;this.name="";this.prefix="";this.value="";this.suffix="";this.modifier=3;this.type=e;this.name=t;this.prefix=o;this.value=s;this.suffix=a;this.modifier=i}hasCustomName(){return this.name!==""&&typeof this.name!=="number"}};var F=/[$_\p{ID_Start}]/u;var H=/[$_\u200C\u200D\p{ID_Continue}]/u;var U=".*";function Y(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}function W(e,t=false){const o=[];let s=0;while(s<e.length){const a=e[s];const i=function(a){if(!t)throw new TypeError(a);o.push({type:"INVALID_CHAR",index:s,value:e[s++]})};if(a==="*"){o.push({type:"ASTERISK",index:s,value:e[s++]});continue}if(a==="+"||a==="?"){o.push({type:"OTHER_MODIFIER",index:s,value:e[s++]});continue}if(a==="\\"){o.push({type:"ESCAPED_CHAR",index:s++,value:e[s++]});continue}if(a==="{"){o.push({type:"OPEN",index:s,value:e[s++]});continue}if(a==="}"){o.push({type:"CLOSE",index:s,value:e[s++]});continue}if(a===":"){let t="";let a=s+1;while(a<e.length){const o=e.substr(a,1);if(a===s+1&&F.test(o)||a!==s+1&&H.test(o)){t+=e[a++];continue}break}if(!t){i(`Missing parameter name at ${s}`);continue}o.push({type:"NAME",index:s,value:t});s=a;continue}if(a==="("){let t=1;let a="";let n=s+1;let l=false;if(e[n]==="?"){i(`Pattern cannot start with "?" at ${n}`);continue}while(n<e.length){if(!Y(e[n],false)){i(`Invalid character '${e[n]}' at ${n}.`);l=true;break}if(e[n]==="\\"){a+=e[n++]+e[n++];continue}if(e[n]===")"){t--;if(t===0){n++;break}}else if(e[n]==="("){t++;if(e[n+1]!=="?"){i(`Capturing groups are not allowed at ${n}`);l=true;break}}a+=e[n++]}if(l){continue}if(t){i(`Unbalanced pattern at ${s}`);continue}if(!a){i(`Missing pattern at ${s}`);continue}o.push({type:"REGEX",index:s,value:a});s=n;continue}o.push({type:"CHAR",index:s,value:e[s++]})}o.push({type:"END",index:s,value:""});return o}function B(e,t={}){const o=W(e);t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");const s=`[^${V(t.delimiter)}]+?`;const a=[];let i=0;let n=0;let l=new Set;const r=e=>{if(n<o.length&&o[n].type===e)return o[n++].value};const c=()=>r("OTHER_MODIFIER")??r("ASTERISK");const d=e=>{const t=r(e);if(t!==void 0)return t;const{type:s,index:a}=o[n];throw new TypeError(`Unexpected ${s} at ${a}, expected ${e}`)};const h=()=>{let e="";let t;while(t=r("CHAR")??r("ESCAPED_CHAR")){e+=t}return e};const m=e=>e;const b=t.encodePart||m;let y="";const u=e=>{y+=e};const f=()=>{if(!y.length){return}a.push(new N(3,"","",b(y),"",3));y=""};const p=(e,t,o,n,r)=>{let c=3;switch(r){case"?":c=1;break;case"*":c=0;break;case"+":c=2;break}if(!t&&!o&&c===3){u(e);return}f();if(!t&&!o){if(!e){return}a.push(new N(3,"","",b(e),"",c));return}let d;if(!o){d=s}else if(o==="*"){d=U}else{d=o}let h=2;if(d===s){h=1;d=""}else if(d===U){h=0;d=""}let m;if(t){m=t}else if(o){m=i++}if(l.has(m)){throw new TypeError(`Duplicate name '${m}'.`)}l.add(m);a.push(new N(h,m,b(e),d,b(n),c))};while(n<o.length){const e=r("CHAR");const o=r("NAME");let s=r("REGEX");if(!o&&!s){s=r("ASTERISK")}if(o||s){let a=e??"";if(t.prefixes.indexOf(a)===-1){u(a);a=""}f();let i=c();p(a,o,s,"",i);continue}const a=e??r("ESCAPED_CHAR");if(a){u(a);continue}const i=r("OPEN");if(i){const e=h();const t=r("NAME");let o=r("REGEX");if(!t&&!o){o=r("ASTERISK")}const s=h();d("CLOSE");const a=c();p(e,t,o,s,a);continue}f();d("END")}return a}function V(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function G(e){return e&&e.ignoreCase?"ui":"u"}function K(e,t,o){return Z(B(e,o),t,o)}function q(e){switch(e){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}function Z(e,t,o={}){o.delimiter??(o.delimiter="/#?");o.prefixes??(o.prefixes="./");o.sensitive??(o.sensitive=false);o.strict??(o.strict=false);o.end??(o.end=true);o.start??(o.start=true);o.endsWith="";let s=o.start?"^":"";for(const a of e){if(a.type===3){if(a.modifier===3){s+=V(a.value)}else{s+=`(?:${V(a.value)})${q(a.modifier)}`}continue}if(t)t.push(a.name);const e=`[^${V(o.delimiter)}]+?`;let i=a.value;if(a.type===1)i=e;else if(a.type===0)i=U;if(!a.prefix.length&&!a.suffix.length){if(a.modifier===3||a.modifier===1){s+=`(${i})${q(a.modifier)}`}else{s+=`((?:${i})${q(a.modifier)})`}continue}if(a.modifier===3||a.modifier===1){s+=`(?:${V(a.prefix)}(${i})${V(a.suffix)})`;s+=q(a.modifier);continue}s+=`(?:${V(a.prefix)}`;s+=`((?:${i})(?:`;s+=V(a.suffix);s+=V(a.prefix);s+=`(?:${i}))*)${V(a.suffix)})`;if(a.modifier===0){s+="?"}}const a=`[${V(o.endsWith)}]|$`;const i=`[${V(o.delimiter)}]`;if(o.end){if(!o.strict){s+=`${i}?`}if(!o.endsWith.length){s+="$"}else{s+=`(?=${a})`}return new RegExp(s,G(o))}if(!o.strict){s+=`(?:${i}(?=${a}))?`}let n=false;if(e.length){const t=e[e.length-1];if(t.type===3&&t.modifier===3){n=o.delimiter.indexOf(t)>-1}}if(!n){s+=`(?=${i}|${a})`}return new RegExp(s,G(o))}var J={delimiter:"",prefixes:"",sensitive:true,strict:true};var X={delimiter:".",prefixes:"",sensitive:true,strict:true};var Q={delimiter:"/",prefixes:"/",sensitive:true,strict:true};function ee(e,t){if(!e.length){return false}if(e[0]==="/"){return true}if(!t){return false}if(e.length<2){return false}if((e[0]=="\\"||e[0]=="{")&&e[1]=="/"){return true}return false}function te(e,t){if(e.startsWith(t)){return e.substring(t.length,e.length)}return e}function oe(e,t){if(e.endsWith(t)){return e.substr(0,e.length-t.length)}return e}function se(e){if(!e||e.length<2){return false}if(e[0]==="["){return true}if((e[0]==="\\"||e[0]==="{")&&e[1]==="["){return true}return false}var ae=["ftp","file","http","https","ws","wss"];function ie(e){if(!e){return true}for(const t of ae){if(e.test(t)){return true}}return false}function ne(e,t){e=te(e,"#");if(t||e===""){return e}const o=new URL("https://example.com");o.hash=e;return o.hash?o.hash.substring(1,o.hash.length):""}function le(e,t){e=te(e,"?");if(t||e===""){return e}const o=new URL("https://example.com");o.search=e;return o.search?o.search.substring(1,o.search.length):""}function re(e,t){if(t||e===""){return e}if(se(e)){return ke(e)}else{return ge(e)}}function ce(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.password=e;return o.password}function de(e,t){if(t||e===""){return e}const o=new URL("https://example.com");o.username=e;return o.username}function he(e,t,o){if(o||e===""){return e}if(t&&!ae.includes(t)){const o=new URL(`${t}:${e}`);return o.pathname}const s=e[0]=="/";e=new URL(!s?"/-"+e:e,"https://example.com").pathname;if(!s){e=e.substring(2,e.length)}return e}function me(e,t,o){if(ye(t)===e){e=""}if(o||e===""){return e}return ve(e)}function be(e,t){e=oe(e,":");if(t||e===""){return e}return ue(e)}function ye(e){switch(e){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}function ue(e){if(e===""){return e}if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw new TypeError(`Invalid protocol '${e}'.`)}function fe(e){if(e===""){return e}const t=new URL("https://example.com");t.username=e;return t.username}function pe(e){if(e===""){return e}const t=new URL("https://example.com");t.password=e;return t.password}function ge(e){if(e===""){return e}if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e)){throw new TypeError(`Invalid hostname '${e}'`)}const t=new URL("https://example.com");t.hostname=e;return t.hostname}function ke(e){if(e===""){return e}if(/[^0-9a-fA-F[\]:]/g.test(e)){throw new TypeError(`Invalid IPv6 hostname '${e}'`)}return e.toLowerCase()}function ve(e){if(e===""){return e}if(/^[0-9]*$/.test(e)&&parseInt(e)<=65535){return e}throw new TypeError(`Invalid port '${e}'.`)}function xe(e){if(e===""){return e}const t=new URL("https://example.com");t.pathname=e[0]!=="/"?"/-"+e:e;if(e[0]!=="/"){return t.pathname.substring(2,t.pathname.length)}return t.pathname}function we(e){if(e===""){return e}const t=new URL(`data:${e}`);return t.pathname}function Se(e){if(e===""){return e}const t=new URL("https://example.com");t.search=e;return t.search.substring(1,t.search.length)}function Ce(e){if(e===""){return e}const t=new URL("https://example.com");t.hash=e;return t.hash.substring(1,t.hash.length)}var ze=class{constructor(e){this.tokenList=[];this.internalResult={};this.tokenIndex=0;this.tokenIncrement=1;this.componentStart=0;this.state=0;this.groupDepth=0;this.hostnameIPv6BracketDepth=0;this.shouldTreatAsStandardURL=false;this.input=e}get result(){return this.internalResult}parse(){this.tokenList=W(this.input,true);for(;this.tokenIndex<this.tokenList.length;this.tokenIndex+=this.tokenIncrement){this.tokenIncrement=1;if(this.tokenList[this.tokenIndex].type==="END"){if(this.state===0){this.rewind();if(this.isHashPrefix()){this.changeState(9,1)}else if(this.isSearchPrefix()){this.changeState(8,1);this.internalResult.hash=""}else{this.changeState(7,0);this.internalResult.search="";this.internalResult.hash=""}continue}else if(this.state===2){this.rewindAndSetState(5);continue}this.changeState(10,0);break}if(this.groupDepth>0){if(this.isGroupClose()){this.groupDepth-=1}else{continue}}if(this.isGroupOpen()){this.groupDepth+=1;continue}switch(this.state){case 0:if(this.isProtocolSuffix()){this.internalResult.username="";this.internalResult.password="";this.internalResult.hostname="";this.internalResult.port="";this.internalResult.pathname="";this.internalResult.search="";this.internalResult.hash="";this.rewindAndSetState(1)}break;case 1:if(this.isProtocolSuffix()){this.computeShouldTreatAsStandardURL();let e=7;let t=1;if(this.shouldTreatAsStandardURL){this.internalResult.pathname="/"}if(this.nextIsAuthoritySlashes()){e=2;t=3}else if(this.shouldTreatAsStandardURL){e=2}this.changeState(e,t)}break;case 2:if(this.isIdentityTerminator()){this.rewindAndSetState(3)}else if(this.isPathnameStart()||this.isSearchPrefix()||this.isHashPrefix()){this.rewindAndSetState(5)}break;case 3:if(this.isPasswordPrefix()){this.changeState(4,1)}else if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 4:if(this.isIdentityTerminator()){this.changeState(5,1)}break;case 5:if(this.isIPv6Open()){this.hostnameIPv6BracketDepth+=1}else if(this.isIPv6Close()){this.hostnameIPv6BracketDepth-=1}if(this.isPortPrefix()&&!this.hostnameIPv6BracketDepth){this.changeState(6,1)}else if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 6:if(this.isPathnameStart()){this.changeState(7,0)}else if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 7:if(this.isSearchPrefix()){this.changeState(8,1)}else if(this.isHashPrefix()){this.changeState(9,1)}break;case 8:if(this.isHashPrefix()){this.changeState(9,1)}break}}}changeState(e,t){switch(this.state){case 0:break;case 1:this.internalResult.protocol=this.makeComponentString();break;case 2:break;case 3:this.internalResult.username=this.makeComponentString();break;case 4:this.internalResult.password=this.makeComponentString();break;case 5:this.internalResult.hostname=this.makeComponentString();break;case 6:this.internalResult.port=this.makeComponentString();break;case 7:this.internalResult.pathname=this.makeComponentString();break;case 8:this.internalResult.search=this.makeComponentString();break;case 9:this.internalResult.hash=this.makeComponentString();break}this.changeStateWithoutSettingComponent(e,t)}changeStateWithoutSettingComponent(e,t){this.state=e;this.componentStart=this.tokenIndex+t;this.tokenIndex+=t;this.tokenIncrement=0}rewind(){this.tokenIndex=this.componentStart;this.tokenIncrement=0}rewindAndSetState(e){this.rewind();this.state=e}safeToken(e){if(e<0){e=this.tokenList.length-e}if(e<this.tokenList.length){return this.tokenList[e]}return this.tokenList[this.tokenList.length-1]}isNonSpecialPatternChar(e,t){const o=this.safeToken(e);return o.value===t&&(o.type==="CHAR"||o.type==="ESCAPED_CHAR"||o.type==="INVALID_CHAR")}isProtocolSuffix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}nextIsAuthoritySlashes(){return this.isNonSpecialPatternChar(this.tokenIndex+1,"/")&&this.isNonSpecialPatternChar(this.tokenIndex+2,"/")}isIdentityTerminator(){return this.isNonSpecialPatternChar(this.tokenIndex,"@")}isPasswordPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPortPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,":")}isPathnameStart(){return this.isNonSpecialPatternChar(this.tokenIndex,"/")}isSearchPrefix(){if(this.isNonSpecialPatternChar(this.tokenIndex,"?")){return true}if(this.tokenList[this.tokenIndex].value!=="?"){return false}const e=this.safeToken(this.tokenIndex-1);return e.type!=="NAME"&&e.type!=="REGEX"&&e.type!=="CLOSE"&&e.type!=="ASTERISK"}isHashPrefix(){return this.isNonSpecialPatternChar(this.tokenIndex,"#")}isGroupOpen(){return this.tokenList[this.tokenIndex].type=="OPEN"}isGroupClose(){return this.tokenList[this.tokenIndex].type=="CLOSE"}isIPv6Open(){return this.isNonSpecialPatternChar(this.tokenIndex,"[")}isIPv6Close(){return this.isNonSpecialPatternChar(this.tokenIndex,"]")}makeComponentString(){const e=this.tokenList[this.tokenIndex];const t=this.safeToken(this.componentStart).index;return this.input.substring(t,e.index)}computeShouldTreatAsStandardURL(){const e={};Object.assign(e,J);e.encodePart=ue;const t=K(this.makeComponentString(),void 0,e);this.shouldTreatAsStandardURL=ie(t)}};var je=["protocol","username","password","hostname","port","pathname","search","hash"];var _e="*";function Te(e,t){if(typeof e!=="string"){throw new TypeError(`parameter 1 is not of type 'string'.`)}const o=new URL(e,t);return{protocol:o.protocol.substring(0,o.protocol.length-1),username:o.username,password:o.password,hostname:o.hostname,port:o.port,pathname:o.pathname,search:o.search!==""?o.search.substring(1,o.search.length):void 0,hash:o.hash!==""?o.hash.substring(1,o.hash.length):void 0}}function Ie(e,t){if(!t){return e}return Oe(e)}function Le(e,t,o){let s;if(typeof t.baseURL==="string"){try{s=new URL(t.baseURL);e.protocol=Ie(s.protocol.substring(0,s.protocol.length-1),o);e.username=Ie(s.username,o);e.password=Ie(s.password,o);e.hostname=Ie(s.hostname,o);e.port=Ie(s.port,o);e.pathname=Ie(s.pathname,o);e.search=Ie(s.search.substring(1,s.search.length),o);e.hash=Ie(s.hash.substring(1,s.hash.length),o)}catch{throw new TypeError(`invalid baseURL '${t.baseURL}'.`)}}if(typeof t.protocol==="string"){e.protocol=be(t.protocol,o)}if(typeof t.username==="string"){e.username=de(t.username,o)}if(typeof t.password==="string"){e.password=ce(t.password,o)}if(typeof t.hostname==="string"){e.hostname=re(t.hostname,o)}if(typeof t.port==="string"){e.port=me(t.port,e.protocol,o)}if(typeof t.pathname==="string"){e.pathname=t.pathname;if(s&&!ee(e.pathname,o)){const t=s.pathname.lastIndexOf("/");if(t>=0){e.pathname=Ie(s.pathname.substring(0,t+1),o)+e.pathname}}e.pathname=he(e.pathname,e.protocol,o)}if(typeof t.search==="string"){e.search=le(t.search,o)}if(typeof t.hash==="string"){e.hash=ne(t.hash,o)}return e}function Oe(e){return e.replace(/([+*?:{}()\\])/g,"\\$1")}function Ae(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}function Ee(e,t){t.delimiter??(t.delimiter="/#?");t.prefixes??(t.prefixes="./");t.sensitive??(t.sensitive=false);t.strict??(t.strict=false);t.end??(t.end=true);t.start??(t.start=true);t.endsWith="";const o=".*";const s=`[^${Ae(t.delimiter)}]+?`;const a=/[$_\u200C\u200D\p{ID_Continue}]/u;let i="";for(let n=0;n<e.length;++n){const l=e[n];if(l.type===3){if(l.modifier===3){i+=Oe(l.value);continue}i+=`{${Oe(l.value)}}${q(l.modifier)}`;continue}const r=l.hasCustomName();let c=!!l.suffix.length||!!l.prefix.length&&(l.prefix.length!==1||!t.prefixes.includes(l.prefix));const d=n>0?e[n-1]:null;const h=n<e.length-1?e[n+1]:null;if(!c&&r&&l.type===1&&l.modifier===3&&h&&!h.prefix.length&&!h.suffix.length){if(h.type===3){const e=h.value.length>0?h.value[0]:"";c=a.test(e)}else{c=!h.hasCustomName()}}if(!c&&!l.prefix.length&&d&&d.type===3){const e=d.value[d.value.length-1];c=t.prefixes.includes(e)}if(c){i+="{"}i+=Oe(l.prefix);if(r){i+=`:${l.name}`}if(l.type===2){i+=`(${l.value})`}else if(l.type===1){if(!r){i+=`(${s})`}}else if(l.type===0){if(!r&&(!d||d.type===3||d.modifier!==3||c||l.prefix!=="")){i+="*"}else{i+=`(${o})`}}if(l.type===1&&r&&!!l.suffix.length){if(a.test(l.suffix[0])){i+="\\"}}i+=Oe(l.suffix);if(c){i+="}"}if(l.modifier!==3){i+=q(l.modifier)}}return i}var De=class{constructor(e={},t,o){this.regexp={};this.names={};this.component_pattern={};this.parts={};try{let s=void 0;if(typeof t==="string"){s=t}else{o=t}if(typeof e==="string"){const t=new ze(e);t.parse();e=t.result;if(s===void 0&&typeof e.protocol!=="string"){throw new TypeError(`A base URL must be provided for a relative constructor string.`)}e.baseURL=s}else{if(!e||typeof e!=="object"){throw new TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`)}if(s){throw new TypeError(`parameter 1 is not of type 'string'.`)}}if(typeof o==="undefined"){o={ignoreCase:false}}const a={ignoreCase:o.ignoreCase===true};const i={pathname:_e,protocol:_e,username:_e,password:_e,hostname:_e,port:_e,search:_e,hash:_e};this.pattern=Le(i,e,true);if(ye(this.pattern.protocol)===this.pattern.port){this.pattern.port=""}let n;for(n of je){if(!(n in this.pattern))continue;const e={};const t=this.pattern[n];this.names[n]=[];switch(n){case"protocol":Object.assign(e,J);e.encodePart=ue;break;case"username":Object.assign(e,J);e.encodePart=fe;break;case"password":Object.assign(e,J);e.encodePart=pe;break;case"hostname":Object.assign(e,X);if(se(t)){e.encodePart=ke}else{e.encodePart=ge}break;case"port":Object.assign(e,J);e.encodePart=ve;break;case"pathname":if(ie(this.regexp.protocol)){Object.assign(e,Q,a);e.encodePart=xe}else{Object.assign(e,J,a);e.encodePart=we}break;case"search":Object.assign(e,J,a);e.encodePart=Se;break;case"hash":Object.assign(e,J,a);e.encodePart=Ce;break}try{this.parts[n]=B(t,e);this.regexp[n]=Z(this.parts[n],this.names[n],e);this.component_pattern[n]=Ee(this.parts[n],e)}catch(e){throw new TypeError(`invalid ${n} pattern '${this.pattern[n]}'.`)}}}catch(e){throw new TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}test(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return false}try{if(typeof e==="object"){o=Le(o,e,false)}else{o=Le(o,Te(e,t),false)}}catch(e){return false}let s;for(s of je){if(!this.regexp[s].exec(o[s])){return false}}return true}exec(e={},t){let o={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof e!=="string"&&t){throw new TypeError(`parameter 1 is not of type 'string'.`)}if(typeof e==="undefined"){return}try{if(typeof e==="object"){o=Le(o,e,false)}else{o=Le(o,Te(e,t),false)}}catch(e){return null}let s={};if(t){s.inputs=[e,t]}else{s.inputs=[e]}let a;for(a of je){let e=this.regexp[a].exec(o[a]);if(!e){return null}let t={};for(let[o,s]of this.names[a].entries()){if(typeof s==="string"||typeof s==="number"){let a=e[o+1];t[s]=a}}s[a]={input:o[a]??"",groups:t}}return s}static compareComponent(e,t,o){const s=(e,t)=>{for(let o of["type","modifier","prefix","value","suffix"]){if(e[o]<t[o])return-1;else if(e[o]===t[o])continue;else return 1}return 0};const a=new N(3,"","","","",3);const i=new N(0,"","","","",3);const n=(e,t)=>{let o=0;for(;o<Math.min(e.length,t.length);++o){let a=s(e[o],t[o]);if(a)return a}if(e.length===t.length){return 0}return s(e[o]??a,t[o]??a)};if(!t.component_pattern[e]&&!o.component_pattern[e]){return 0}if(t.component_pattern[e]&&!o.component_pattern[e]){return n(t.parts[e],[i])}if(!t.component_pattern[e]&&o.component_pattern[e]){return n([i],o.parts[e])}return n(t.parts[e],o.parts[e])}get protocol(){return this.component_pattern.protocol}get username(){return this.component_pattern.username}get password(){return this.component_pattern.password}get hostname(){return this.component_pattern.hostname}get port(){return this.component_pattern.port}get pathname(){return this.component_pattern.pathname}get search(){return this.component_pattern.search}get hash(){return this.component_pattern.hash}};if(!globalThis.URLPattern){globalThis.URLPattern=De}const Me='.sc-smoothly-app-room-h{display:flex;justify-content:center;text-align:center;cursor:pointer;height:100%;position:relative}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{overflow-y:auto;height:100%}:not([label].sc-smoothly-app-room-h,[icon]).sc-smoothly-app-room-h,[disabled].sc-smoothly-app-room-h{display:none}.sc-smoothly-app-room-h>div.sc-smoothly-app-room{display:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room{height:100%;list-style:none}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0 1.5em;height:100%}[selected].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{display:flex;color:rgb(var(--smoothly-color-contrast));background:rgb(var(--smoothly-color-shade))}.sc-smoothly-app-room-h:hover>li.sc-smoothly-app-room>a.sc-smoothly-app-room{color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));transition:0.2s}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>smoothly-icon.sc-smoothly-app-room{align-self:inherit}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:none}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{position:absolute;color:rgb(var(--smoothly-color-contrast));background-color:rgb(var(--smoothly-color-tint));border-radius:0.25rem;pointer-events:none}[icon][label].sc-smoothly-app-room-h:hover::before{content:"";bottom:-1.75rem;transform:rotate(45deg);width:1.25em;height:1.25em}[icon][label].sc-smoothly-app-room-h:hover::after{content:attr(label);white-space:nowrap;bottom:-3.25rem;padding:.5rem 1rem;border-radius:.25rem}@media screen and (max-width: 900px){.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{padding:0}[icon].sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room>.label.sc-smoothly-app-room{display:unset;padding:0 1rem}.sc-smoothly-app-room-h>li.sc-smoothly-app-room>a.sc-smoothly-app-room{margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}[icon][label].sc-smoothly-app-room-h:hover::before,[icon][label].sc-smoothly-app-room-h:hover::after{content:unset}}';const $e=Me;const Re=class{constructor(t){e(this,t);this.smoothlyRoomSelected=o(this,"smoothlyRoomSelected",7);this.smoothlyRoomLoaded=o(this,"smoothlyRoomLoaded",7);this.label=undefined;this.icon=undefined;this.disabled=undefined;this.path="";this.selected=undefined;this.content=undefined}componentWillLoad(){this.selected=(typeof this.path=="string"?new URLPattern({pathname:this.path}):this.path).test(window.location);this.smoothlyRoomLoaded.emit({selected:this.selected})}async getContent(){return this.contentElement}async setSelected(e,t){this.selected=e;if(e)this.smoothlyRoomSelected.emit({history:!!(t===null||t===void 0?void 0:t.history)})}clickHandler(e){if(!e.metaKey&&!e.ctrlKey&&e.which!=2&&e.button!=1){e.preventDefault();this.setSelected(true)}}render(){return t(s,{key:"c8a335193ee0aa36091178413f9c66aeedb8c055"},t("li",{key:"14789089daba4c466cfae4f85d4cc00f713d2f7d"},t("a",{key:"5fa57305ed064e5c797b19bbdb21bb80798e5bd7",href:typeof this.path=="string"?this.path:this.path.pathname,onClick:e=>this.clickHandler(e)},this.icon&&t("smoothly-icon",{key:"8e460965cfcf0be0dbc4ec3b0a5f2fac870c8847",name:this.icon}),this.label&&t("span",{key:"df177b3036464c00da7b305b59425e2421809adc",class:"label"},this.label))),t("div",{key:"8efc7494ce11d1260c32aba361d72a5a51cac010",ref:e=>this.contentElement=e},this.content&&t("smoothly-lazy",{key:"2bd422f0c20d4e56746dce0d120c578171a70a57",content:this.content}),t("slot",{key:"d45b27b47bd8bdb85fed17fc196d53eb33234bd8"})))}};Re.style=$e;const Pe=".sc-smoothly-back-to-top-h{background-color:rgba(var(--smoothly-default-color), 1);opacity:var(--opacity);pointer-events:var(--pointer-events);transition:opacity 400ms;z-index:3;border-radius:50%;box-shadow:var(--smoothly-shadow);height:3rem;width:3rem;position:fixed;bottom:var(--bottom);right:var(--right);outline:none;cursor:pointer;display:flex;justify-content:center;align-items:center}";const Ne=Pe;const Fe=class{constructor(t){e(this,t);this.opacity="0.5";this.bottom="1rem";this.right="1rem";this.visible=undefined}componentWillLoad(){var e;this.scrollableParent=n.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",(()=>{var e,t;this.visible=((t=(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTop)!==null&&t!==void 0?t:0)>20}))}render(){const e={"--opacity":this.visible?this.opacity:"0","--pointer-events":this.visible?"auto":"none","--bottom":this.bottom,"--right":this.right};return t(s,{key:"d58ae307b6f213cac17096127f4f02f89261134e",style:e,onClick:()=>{var e;return(e=this.scrollableParent)===null||e===void 0?void 0:e.scrollTo({top:0,left:0,behavior:"smooth"})}},t("smoothly-icon",{key:"ced3df0d986862792b4233ab646aa39acfbf5276",name:"caret-up-outline"}))}get element(){return a(this)}};Fe.style=Ne;const He="[visible].sc-smoothly-burger-h{display:flex;justify-content:center;align-items:center;height:100%}[visible].sc-smoothly-burger-h .burger.sc-smoothly-burger smoothly-icon.sc-smoothly-burger{font-size:1.7em;cursor:pointer;margin-right:1em}.sc-smoothly-burger-h:not([visible]){display:none}.sc-smoothly-burger-h:not([open]) smoothly-icon.sc-smoothly-burger{transform:rotate(0deg);transition:transform 100ms ease-in-out}[open].sc-smoothly-burger-h smoothly-icon.sc-smoothly-burger{transform:rotate(-90deg);transition:transform 100ms ease-in-out}";const Ue=He;const Ye=class{constructor(t){e(this,t);this.smoothlyNavStatus=o(this,"smoothlyNavStatus",7);this.smoothlyVisibleStatus=o(this,"smoothlyVisibleStatus",7);this.visible=undefined;this.open=false;this.mediaQuery="(max-width: 900px)";this.history=undefined}componentWillLoad(){this.history=window.matchMedia(this.mediaQuery).matches;if(!window.matchMedia(this.mediaQuery).matches)this.visible=false;else this.visible=true;this.smoothlyNavStatus.emit(!this.visible);this.smoothlyVisibleStatus.emit(this.visible)}openChanged(){this.smoothlyNavStatus.emit(this.open)}clickHandler(e){if(this.visible)this.open=!this.open}resizeHandler(){const e=window.matchMedia(this.mediaQuery).matches;if(e!=this.history){if(e){this.visible=true;this.open=false}else{this.visible=false;this.open=false}this.smoothlyVisibleStatus.emit(this.visible);this.smoothlyNavStatus.emit(!this.visible)}this.history=e}render(){return t(s,{key:"6e32b13474959bdbd15eb7be2339e1e14f109d33"},t("span",{key:"93fc4c98a838d5a37f5df7ac675e201b9c017cfd",class:"burger"},t("smoothly-icon",{key:"6c11e78a8e1ba2180ec15117a5affa8bcd52f4bd",name:"menu"})))}get element(){return a(this)}static get watchers(){return{open:["openChanged"]}}};Ye.style=Ue;const We=({disabled:e,type:o,link:s},a)=>e&&(s||o=="link")?t("slot",null):o=="link"?t("a",{href:s,onClick:!s||!Ve(s)?undefined:e=>(e.preventDefault(),I(Be(s)))},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):o=="download"?t("a",{href:s,target:"_blank",download:true},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"})):t("button",{type:o,disabled:e},t("slot",{name:"start"}),t("slot",null),a,t("slot",{name:"end"}));function Be(e){let t;if(e.startsWith(window.location.origin))t=new URL(e).pathname;else if(e.match(/^\//))t=new URL(e,window.location.origin).pathname;else t=new URL(`${window.location.pathname.replace(/\/+$/,"")}/${e}`,window.location.origin).pathname;return t}function Ve(e){return new URL(e,window.location.origin).origin==window.location.origin}const Ge='[color=default].sc-smoothly-button{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-button{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-button{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-button{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-button{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-button{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-button{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-button{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-button{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-button{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-button-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-button-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-button-h{display:inline}[disabled].sc-smoothly-button-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-h>a.sc-smoothly-button,.sc-smoothly-button-h>button.sc-smoothly-button{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-button-h>a.sc-smoothly-button:empty,.sc-smoothly-button-h>button.sc-smoothly-button:empty{border-width:0}.sc-smoothly-button-h>button.sc-smoothly-button{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-button-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-button{padding:0.8em;min-width:8em}.sc-smoothly-button-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-button{padding:0.6em}[size=icon].sc-smoothly-button-h>button.sc-smoothly-button{padding:0.5em}[type=button].sc-smoothly-button-h>a.sc-smoothly-button{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-button-h>button.sc-smoothly-button{font-size:100%}[size=large].sc-smoothly-button-h>button.sc-smoothly-button{font-size:130%}.sc-smoothly-button-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-button-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-button-h>button.sc-smoothly-button{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-button-h{width:100%}[expand=full].sc-smoothly-button-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-button-h:not([fill=clear])>button.sc-smoothly-button:hover,.sc-smoothly-button-h>button.sc-smoothly-button:focus-visible,[fill=outline].sc-smoothly-button-h:active>button.sc-smoothly-button::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:hover::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:focus-within::before,[fill=outline].sc-smoothly-button-h>button.sc-smoothly-button:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:hover,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:focus-visible,.sc-smoothly-button-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-button:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-button-h>button.sc-smoothly-button,.sc-smoothly-button-h.sc-smoothly-button-s>smoothly-icon,.sc-smoothly-button-h .sc-smoothly-button-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-button-h{display:none}';const Ke=Ge;const qe=class{constructor(t){e(this,t);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.type=undefined;this.size=undefined;this.shape=undefined;this.link=undefined}render(){return t(We,{key:"d9f40ca3fcace86a986f242917b8f1965f2e7bed",disabled:this.disabled,type:this.type,link:this.link},t("slot",{key:"0d4561fa6cb301d7bd37c4f614b760943074298c"}))}};qe.style=Ke;const Ze=".sc-smoothly-button-confirm-h{display:inline-block}[disabled].sc-smoothly-button-confirm-h{opacity:0.5;pointer-events:none}.sc-smoothly-button-confirm-h:not([warning])>smoothly-button.sc-smoothly-button-confirm:first-child{display:none}[warning].sc-smoothly-button-confirm-h>smoothly-button.sc-smoothly-button-confirm:nth-child(2){display:none}[expand].sc-smoothly-button-confirm-h{width:100%}";const Je=Ze;const Xe=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyConfirm=o(this,"smoothlyConfirm",7);this.color=undefined;this.name=undefined;this.doubleClickTime=.2;this.expand=undefined;this.fill=undefined;this.disabled=false;this.shape=undefined;this.size=undefined;this.clickTimeStamp=undefined}clickHandler(e){if(this.clickTimeStamp&&e.timeStamp-this.clickTimeStamp>this.doubleClickTime*1e3){this.timer&&window.clearTimeout(this.timer);this.clickTimeStamp=undefined;this.smoothlyConfirm.emit({[this.name]:true})}else{this.clickTimeStamp=e.timeStamp;this.timer=window.setTimeout((()=>{this.clickTimeStamp=undefined}),2e3)}}render(){return t(s,{key:"f6fef52919cece13e8cefc87e6876375057a0f07",warning:this.clickTimeStamp},t("smoothly-button",{key:"15ba285763f7e51d255144bf7b4a74c4e12ecc22",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:"warning",disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("smoothly-icon",{key:"ab590fe61a83cede946727532183e7fa3f3420bf",name:"alert-outline",fill:this.fill,color:"warning",size:this.size==="icon"?"tiny":"small"})),t("smoothly-button",{key:"7e2f4b3056cea2eacba62a7e0ebaaa967ab98f4d",fill:this.fill,expand:this.expand,size:this.size,shape:this.shape,color:this.color,disabled:this.disabled,type:"button",onClick:e=>this.clickHandler(e)},t("slot",{key:"516023c4ad2d3080f49284d5f6ae9b299954c977"})))}};Xe.style=Je;const Qe="smoothly-button-demo{display:block;margin:1rem}smoothly-button-demo>section>div{display:flex;align-items:center}smoothly-button-demo smoothly-button{margin:.2em .5em}";const et=Qe;const tt=class{constructor(t){e(this,t)}render(){return[t("h2",{key:"3c8025ac2be655262bcd2b450a7bf231a4fb4895"},"Buttons"),t("section",{key:"7135bb7d07661d9c7feef8b28bd17f0cc2c290c2"},t("h4",{key:"a15d2adbce40601099357e61ceb47627f491e820"},"Confirm button (two clicks)"),t("div",{key:"ae1862a69fa8a949b3eb4338fcd42db23f33e0ea"},t("smoothly-button-confirm",{key:"c2408dce7880cb2c97feb9abf74cfe23293d9e8a",name:"confirm",shape:"rounded",color:"danger",size:"large"},"Delete"),t("smoothly-button-confirm",{key:"b933c3bfcc21591ea587c022be60b5dfa83d29dd",name:"confirm-icon",shape:"rounded",color:"success",size:"icon"},t("smoothly-icon",{key:"bb53ab8ab65c37b896d4d8889187fbaf1453b6aa",name:"checkmark-outline",size:"tiny"})),t("smoothly-button-confirm",{key:"29e5f6c63362ec0f2d67212ec119fb1527cf0715",name:"confirm-icon",shape:"rounded",color:"danger",size:"icon",fill:"outline"},t("smoothly-icon",{key:"5503b6db201faf2fc6756efb8eb7eed61f4e99b3",name:"trash-outline",size:"tiny",fill:"outline"}))),t("h4",{key:"ff82842ee1489a963ff6e609496210f1551c96d2"},"Toggle button"),t("smoothly-toggle",{key:"6222a1678c626c55914eac351c85d72a7f34baf9"},t("smoothly-icon",{key:"8bac18e6a2e093b6b3351e213f80f8659cf2bfad",name:"card",fill:"solid",slot:"icon-slot"})),t("smoothly-toggle",{key:"1f6fb978ecb57512a2edb0e827f3f755b9fed7b3"},t("smoothly-icon",{key:"92e78f07a80098c87db14a753ee185bbb4787965",name:"briefcase",slot:"icon-slot"})),t("smoothly-toggle",{key:"9dd282964fd8c821f9eaa4835a94ee46792160fd"},t("smoothly-icon",{key:"27fde3eb695917bb2aa80166deb3f79763672615",name:"airplane",slot:"icon-slot"})),t("smoothly-toggle-switch-demo",{key:"8142bb42ee3d41d537aaf9881499d8c14ae636ab"}),t("h4",{key:"8bf7ce023276823e238dc778ea7de087227b3c55"},"Links with icons"),t("smoothly-button",{key:"5dc5c52e56653c38b24653f8a09492b657a52812",type:"link"},t("smoothly-icon",{key:"bd37a7612e50a5b46a463cb33fcb3d3db4984fdc",name:"checkmark-circle",slot:"start"}),"type link"),t("smoothly-button",{key:"8c88fe90275d89b4d9266292ee5dfe2c89189453",type:"button",color:"warning",fill:"default"},t("smoothly-icon",{key:"7d0f38f8def892c6a70f94cfae60c97379f97a19",name:"call",slot:"start"}),t("a",{key:"c9a545939c8c69a936d7234f667a38304475ce29",href:"https://google.com"},"link")),t("smoothly-button",{key:"19ad20237f00b0fc3be118342479c542172aac85",link:"https://google.com",type:"link"},t("smoothly-icon",{key:"9417f3deb9468f0ec67b5e6f2e691d75237dfd8b",name:"arrow-forward",slot:"end"}),"link + type link"),t("h4",{key:"431e11211e7388a31e74c05c872f1225da3a8f2d"},"Size and Color test"),t("smoothly-button",{key:"e06b07125a4809a2fbfba8b663e7df05f2cafe2a",color:"primary",fill:"solid",size:"small",shape:"rounded"},"Color Primary + Small"),t("smoothly-button",{key:"4e6e0cd9552783605c85c0179ceb9867073d52f2",color:"secondary",fill:"solid",shape:"rounded"},"Color Secondary + Default"),t("smoothly-button",{key:"86e387b350d60cf3bf568aab93a4f87351556b03",color:"warning",fill:"solid",size:"large"},"Color Warning + Large"),t("smoothly-button",{key:"81ae2d506757e6d6aefa22389b27cf52115b0cd6",color:"danger",fill:"solid",size:"small",shape:"rounded"},"Color Danger + Small"),t("smoothly-button",{key:"8e54050a99f8373f550dc225ec562415d6a28341",color:"success",fill:"solid",size:"small",shape:"rounded"},"Color Success + Small"),t("smoothly-button",{key:"73fff1e9835ea73331f883f877b330ffc92366e2",color:"tertiary",fill:"solid",size:"small",shape:"rounded"},"Color Tertiary + Small"),t("smoothly-button",{key:"38c004df8478e18cfaadeafb000d566e618cd4ce",color:"dark",fill:"solid",size:"small",shape:"rounded"},"Color Dark + Small"),t("smoothly-button",{key:"423bc99ba52358b5fab7d023926c13d3d4147f79",color:"medium",fill:"solid",size:"small",shape:"rounded"},"Color Medium + Small"),t("smoothly-button",{key:"66f6cfaa814db14e2eb4dc58ff61d3f3e5df6407",color:"light",fill:"solid",size:"small",shape:"rounded"},"Color Light + Small"),t("h4",{key:"e8ab771bcfd1cb19d506768c70bd1489c3a63612"},"Expand examples"),t("smoothly-button",{key:"c33ba658c35a6d638885657a10b8355c1a39cad8",color:"secondary",fill:"solid",expand:"full"},"Color Secondary + Default"),t("smoothly-button",{key:"893978e950151a1f3bd34fa4e4d67be88a703f94",color:"warning",fill:"solid",expand:"block"},"Color Warning + Large"),t("h4",{key:"7ca51c36f0f7795529b768ff164fe897a545a503"},"Fill examples"),t("div",{key:"352da5da95852f703b34102dacd5056e96d49d2f"},t("smoothly-button",{key:"11060ec131da8694e760f9659ed298ff064bd02c",shape:"rounded",color:"primary",fill:"solid"},t("smoothly-icon",{key:"c1720e101a57dd3d3c6142ff00d7b6d3050b93ce",name:"checkmark-circle",slot:"start"}),"Fill Solid"),t("smoothly-button",{key:"a04d9f0204302610c9394e95bf954764fe8eaf8c",shape:"rounded",color:"secondary",fill:"outline"},t("smoothly-icon",{key:"d6dc32cc36c6f801abf35271167d2bca787faea3",name:"checkmark-circle",slot:"start"}),"Fill Outline"),t("smoothly-button",{key:"ffd1db87eaeb7e12f983146449be5d79e7de2b53",shape:"rounded",color:"tertiary",fill:"clear"},t("smoothly-icon",{key:"15086ae92c84b20973d964c699b219cca193fd6d",name:"checkmark-circle",slot:"start"}),"Fill Clear"),t("smoothly-button",{key:"461519344c8a5024d6b0dce79171375645abbdf8",size:"icon",shape:"rounded",color:"success",fill:"solid"},t("smoothly-icon",{key:"1068fe90e108438f28c66f8f4c6b2a6f203120df",name:"basketball"}))),t("h4",{key:"8e09f401d9ec18825e5b248cac01bddbf10ad95b"},'Buttons with Icon in "start"'),t("div",{key:"d17091668a8b535291fe14b7fb5fa64bcee3d77d"},t("smoothly-button",{key:"7fbcf5e63dfa6370f6ea8db63fe23eaafdf92d56",shape:"rounded",fill:"solid",color:"warning"},t("smoothly-icon",{key:"43da748cdca6199f9b0d677ec26a6ed14349522e",name:"checkmark-circle",slot:"start"}),"Check"),t("smoothly-button",{key:"dc64fcac7f381493149bd161dc78fa0b75d1e01f",shape:"rounded",fill:"solid",color:"secondary"},t("smoothly-icon",{key:"b64e9f855ee14612b83a4d6d320247056825e85a",name:"basketball",slot:"start"}),"Check"),t("smoothly-button",{key:"f714f8a9a143d68077a10e9bcc3008aebe34b931",shape:"rounded",fill:"solid",color:"success"},t("smoothly-icon",{key:"b39275e626a28eceb0d6c34b1781f175cf012b2d",name:"call",slot:"start"}),"Check"),t("smoothly-button",{key:"3c744c78969e58dbff1efadd767c59353a261a3b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"64aa5126a00bd7e0c157defe25e0c0a636f6a524",name:"call"})),t("smoothly-button",{key:"a5fff4c066a80e3e1b592b76facee2bb4bba2083",size:"flexible",fill:"solid",color:"success"},t("smoothly-icon",{key:"a3d95e518c35e3f4e508d303dad7d1b40c55319a",name:"airplane"}))),t("h4",{key:"308a6bfd84cfc8466d3df9900b39577edd0d58de"},'Buttons with Icon in "end"'),t("smoothly-button",{key:"d2a76de598220adf8083e951bc2694d81643c833",fill:"solid",color:"light"},"Go Forward",t("smoothly-icon",{key:"878b5626becbb010ac6b8556251fe51b0360cf22",name:"arrow-forward",slot:"end"})),t("h4",{key:"94f535345d7687b50d2d07cc3d61b24ca18ed4a0"},"Test for icon button"),t("div",{key:"9a3da368b7c537da7f95d60d75509940d462329e"},t("smoothly-button",{key:"065d688ae55163481d40f96e12c8e917360fc05b",size:"icon",fill:"solid",shape:"rounded",color:"success"},t("smoothly-icon",{key:"758c53a3eae336fbf8d3d7270236e4105ed532d4",name:"call"})),t("smoothly-button",{key:"32b14031344f9c74984ae1d8da0715b0b2b76be0",size:"icon",shape:"rounded",color:"warning",fill:"solid"},t("smoothly-icon",{key:"8e1988d9199e234f1b206d81fc69457c0461edf0",name:"search-outline"})),t("smoothly-button",{key:"16d4c1196b3b9f39777649f5047e5024624367a3",size:"icon",shape:"rounded",color:"secondary"},t("smoothly-icon",{key:"f217f1893799b98be1aee4d07f91766e791d5a6b",name:"checkmark-circle"}))),t("h4",{key:"07490863a687effc3cce1e96b730cb73441470e5"},"Link examples"),t("div",{key:"8d551baa54233f19b6829cbe6bd83498c2a8cc33"},t("smoothly-button",{key:"6eee7e1bc81598a59034ea1677795e0552b62327",type:"link"},"type link"),t("smoothly-button",{key:"c9121104f5847dc29da2bf88f09d8c7bab43ffbc",type:"button",fill:"clear"},t("a",{key:"b8cc19e6bd19dd64138d909e3a7e2a966c1ba8dd",href:"https://google.com"},"link")),t("smoothly-button",{key:"d47a8cb6b0f0102411f7badf1829d8d1c7ffd66c",link:"https://google.com",type:"link"},"link + type link")),t("h4",{key:"5468594fd4858fe83b593dac3e1da0a0982182bf"},"Disabled buttons"),t("div",{key:"cd4000d7596bc837b5735e72ac50a047f985244b"},t("smoothly-button",{key:"cd0fae2e3e985640c3cc8a89e34ef7c5c84c55d6",disabled:true,fill:"solid",color:"secondary"},"Disabled"),t("smoothly-button",{key:"72ed13dfb8bc8262daab63047dfb455f1fb602f7",type:"link",link:"https://google.com",disabled:true},"Disabled link"))),t("smoothly-back-to-top",{key:"2ec8649e3e567d6875b2c6a07125bdebd844786a"})]}};tt.style=et;function ot(e){const t=new Date(e);t.setDate(1);let o=-((t.getDay()+6)%7)+1;const s=[];for(let t=0;t<6;t++){const a=[];for(let t=0;t<7;t++){const t=new Date(e);t.setUTCDate(o++);a.push(k.create(t))}if(t<5||k.firstOfMonth(a[0])==k.firstOfMonth(e))s.push(a)}return s}function st(){const e=new globalThis.Date;e.setDate(e.getDate()-e.getDay()+1);const t=[];for(let o=0;o<7;o++){t.push(e.toLocaleString(undefined,{weekday:"short"}));e.setDate(e.getDate()+1)}return t}function at(e){const t=new globalThis.Date(e);const o=[];for(let s=0;s<12;s++){t.setMonth(s,28);const a=k.create(t);o.push({date:a,name:t.toLocaleString(undefined,{month:"long"}),selected:a.substr(0,7)==e.substr(0,7)})}return o}function it(e,t,o){const s=new globalThis.Date(e);const a=t?k.getYear(t):(new Date).getFullYear()-50;const i=o?k.getYear(o):(new Date).getFullYear()+50;const n=[];for(let t=a;t<=i;t++){s.setFullYear(t);const o=k.create(s);n.push({date:o,name:s.toLocaleString(undefined,{year:"numeric"}),selected:o==e})}return n}const nt='.sc-smoothly-calendar-h{display:block;--other-month-opacity:0.5;padding:0.5em;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-calendar-h>smoothly-input-month.sc-smoothly-calendar{padding:0 0.5em}.sc-smoothly-calendar-h>table.sc-smoothly-calendar{table-layout:fixed;width:100%}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>thead.sc-smoothly-calendar>tr.sc-smoothly-calendar>th.sc-smoothly-calendar,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{text-align:center;padding:0.5em;min-width:2em;box-sizing:border-box;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));-webkit-user-select:none;user-select:none}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar{position:relative;cursor:pointer}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.currentMonth.sc-smoothly-calendar{color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.currentMonth){color:rgba(var(--smoothly-default-contrast), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth).dateRange,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).selected,.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth).dateRange{color:rgba(var(--smoothly-default-contrast))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7){color:rgb(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(6):not(.currentMonth),.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:nth-child(7):not(.currentMonth){color:rgba(var(--smoothly-calendar-weekend-foreground, var(--smoothly-danger-color)), var(--other-month-opacity))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.sc-smoothly-calendar:not(.selected,.disable).sc-smoothly-calendar:hover{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.selected.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.today.sc-smoothly-calendar::before{content:"";inset:2px;position:absolute;border:1px solid currentColor}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.dateRange.sc-smoothly-calendar{color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-tint))}.sc-smoothly-calendar-h>table.sc-smoothly-calendar>tr.sc-smoothly-calendar>td.disable.sc-smoothly-calendar{cursor:not-allowed;opacity:0.5}';const lt=nt;const rt=class{constructor(t){e(this,t);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyStartChange=o(this,"smoothlyStartChange",7);this.smoothlyEndChange=o(this,"smoothlyEndChange",7);this.smoothlyDateSet=o(this,"smoothlyDateSet",7);this.smoothlyDateRangeSet=o(this,"smoothlyDateRangeSet",7);this.clickCounter=0;this.month=undefined;this.value=undefined;this.start=undefined;this.end=undefined;this.max=undefined;this.min=undefined;this.doubleInput=undefined;this.firstSelected=undefined}onStart(e){this.smoothlyStartChange.emit(e)}onEnd(e){this.smoothlyEndChange.emit(e)}onClick(e){this.smoothlyValueChange.emit(this.value=e);this.clickCounter+=1;if(this.doubleInput){if(this.clickCounter%2==1)this.start=this.end=this.frozenDate=e;else{if(this.start&&e>this.start)this.end=e;else this.start=e}}!this.doubleInput&&this.smoothlyDateSet.emit(this.value);this.doubleInput&&this.clickCounter%2==0&&this.start&&this.end&&this.smoothlyDateRangeSet.emit({start:this.start,end:this.end})}onHover(e){if(this.doubleInput&&this.clickCounter%2==1){if(e<this.frozenDate){this.start=e;this.end=this.frozenDate}else{this.start=this.frozenDate;this.end=e}}}withinLimit(e){return(!this.min||e>=this.min)&&(!this.max||e<=this.max)}render(){var e,o,s;return t(i,{key:"72c5a169add38daacba482bf64d5e0ac4e5376f2"},t("smoothly-input-month",{key:"400a611870cd3bd1dfef25b76497a7ddef88db0b",name:"month",value:(e=this.month)!==null&&e!==void 0?e:this.value,min:this.min,max:this.max,inCalendar:true,next:true,previous:true,showLabel:false,onSmoothlyInput:e=>{e.stopPropagation();"month"in e.detail&&typeof e.detail.month=="string"&&(this.month=e.detail.month)}},t("div",{key:"8c399dd9fdfd8de727bde48d1123d78f25f208a8",slot:"year-label"},t("slot",{key:"9e8fbc095327b1a09c7ac6c71817d9157d20b53d",name:"year-label"})),t("div",{key:"56fc2501be0d3fc5a7156e5156cfe0db7294f7f2",slot:"month-label"},t("slot",{key:"715855818d0299d69946f44d4b2031a47f3ce0a2",name:"month-label"}))),t("table",{key:"25a94c6bd36a6a509402b152456de995411cf00c"},t("thead",{key:"d310889be1da1ecef2b1a15aa5537815ed014660"},t("tr",{key:"2aabd32a00df64e4692d91c797934c5309e42a6c"},st().map((e=>t("th",null,e))))),ot((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:k.now()).map((e=>t("tr",null,e.map((e=>{var o,s,a,i;return t("td",{tabindex:1,onMouseOver:()=>this.withinLimit(e)?this.onHover(e):undefined,onClick:this.withinLimit(e)?()=>this.onClick(e):undefined,class:{selected:e==this.value||this.doubleInput&&(e==this.start||e==this.end),today:e==k.now(),currentMonth:k.firstOfMonth((s=(o=this.month)!==null&&o!==void 0?o:this.value)!==null&&s!==void 0?s:k.now())==k.firstOfMonth(e),dateRange:this.doubleInput&&e>((a=this.start)!==null&&a!==void 0?a:"")&&e<((i=this.end)!==null&&i!==void 0?i:""),disable:!this.withinLimit(e)}},e.substring(8,10))})))))))}get element(){return a(this)}static get watchers(){return{start:["onStart"],end:["onEnd"]}}};rt.style=lt;const ct=".sc-smoothly-dialog-h{display:block;position:fixed;top:55%;left:50%;transform:translate(-50%, -50%);width:100%;height:100%;z-index:1;background:rgba(var(--smoothly-default-color), var(--smoothly-semitransparent)) !important}[hidden].sc-smoothly-dialog-h{display:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog{margin-top:var(--smoothly-dialog-margin-top)}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog{border-top-left-radius:8px;border-top-right-radius:8px;margin-top:2em;color:rgb(var(--smoothly-primary-contrast));background:rgb(var(--smoothly-primary-color));border-color:rgb(var(--smoothly-primary-color))}.sc-smoothly-dialog-h:not([header]) div.header.sc-smoothly-dialog{border:none}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog{position:relative;color:rgb(var(--smoothly-default-contrast));background-color:rgb(var(--smoothly-default-color));border-color:rgb(var(--smoothly-color));border-width:1px;border-style:solid;max-width:40em;width:calc(100vw - 4em - 2px);max-height:calc(100vh - 6em - 2px);height:auto;margin-left:auto;margin-right:auto;border-collapse:collapse}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-bottom-left-radius:8px;border-bottom-right-radius:8px;margin-bottom:2em;border:1px solid rgb(var(--smoothly-default-contrast));box-sizing:border-box;overflow:hidden}.sc-smoothly-dialog-h:not([header])>section.sc-smoothly-dialog>div.content.sc-smoothly-dialog{border-radius:8px}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog{position:absolute;right:-2em;top:-2em;z-index:1;border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog:hover{border-color:transparent}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>div.header.sc-smoothly-dialog>smoothly-trigger.sc-smoothly-dialog>smoothly-icon.sc-smoothly-dialog{background-color:rgb(var(--smoothly-color));border-radius:50%}.sc-smoothly-dialog-h>section.sc-smoothly-dialog>*.sc-smoothly-dialog>*.sc-smoothly-dialog{margin:10px}";const dt=ct;const ht=class{constructor(t){e(this,t);this.color=undefined;this.open=true;this.closable=false;this.header=undefined}TriggerListener(e){if(l.is(e.detail)&&e.detail.name=="close")this.open=false}hostData(){return{style:{display:this.open?"block":"none"}}}__stencil_render(){return t("section",{key:"895d01d3dc41982402c51de51028bd6f775fc83a"},t("div",{key:"a10dddff73f3afde845bed759770b71c9fe87d17",class:"header"},this.closable&&t("smoothly-trigger",{key:"42957dd2cfa11eb08041897a84073d93e87d7f11",fill:"clear",name:"close"},t("smoothly-icon",{key:"245fed623b099c0c7d8aff0c2a098c5730329a3d",name:"close-circle",fill:"solid",color:this.color})),this.header?t("h1",null,this.header):t("slot",{name:"header"})),t("div",{key:"0ad2e35ade6a11497a69b5e6c63be9f05de79c78",class:"content"},t("slot",{key:"0af86e9eda2be05845a2653a1e97c60848911e03"})))}render(){return t(s,this.hostData(),this.__stencil_render())}};ht.style=dt;const mt=".sc-smoothly-dialog-demo-h>smoothly-button.sc-smoothly-dialog-demo{display:block;margin-block:2rem}";const bt=mt;const yt=class{constructor(t){e(this,t);this.openModal=false;this.openTallModal=false;this.showFrame=false}render(){return t(s,{key:"6f23592546df981ab328a997d491fc38dd018cd9"},t("smoothly-button",{key:"10c77679cf0d56bc2a6f72a811af6a8565c8a089",fill:"solid",color:"light",onClick:()=>this.openModal=true},"Open Modal"),t("smoothly-button",{key:"3ac4824da8c88e874ef3ce1fd074c14eb03b564c",fill:"solid",color:"light",onClick:()=>this.openTallModal=true},"Open Modal with long text and top-aligned."),t("smoothly-button",{key:"90b57556f3c083e437e6adf978ca5985d2dcbdac",fill:"solid",color:"light",onClick:()=>this.showFrame=!this.showFrame},"Show Frame"),t("smoothly-modal",{key:"d3302307ea096a2f80305f2d5ef18fa5e97a723e",closable:true,open:this.openModal,onSmoothlyModalChange:e=>this.openModal=e.detail},t("h2",{key:"7659aef15bb808a8057ecf1be592d3a98c84000c",slot:"header"},"Modal"),t("span",{key:"68eec929d76adaf9abb535220d7fbe7a7fcf8b0a"},"Are you sure you want to confirm this action?"),t("smoothly-button",{key:"85963882f77a2d5d05076a873dc612a9dbb1d735",slot:"actions",color:"success"},"Confirm"),t("smoothly-button",{key:"a106ae037ea3c9ec9bbcc33f6a00324220b07b61",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openModal=false},"Cancel")),t("smoothly-modal",{key:"9d91b3f59755964920ae0a9dba277b7de4795d09",closable:true,open:this.openTallModal,onSmoothlyModalChange:e=>this.openTallModal=e.detail,align:"top"},t("h2",{key:"b8f58b34e93ea54fdb83880b6a132aedd530d69b",slot:"header"},"Modal"),t("smoothly-summary",{key:"454a5f57522f0dbb0e2eb56365d62968a07b8f8c"},t("div",{key:"17607ba2a7b918eed58e4f827697aaccc1a3849b",slot:"summary"},"Lorem ipsum"),t("div",{key:"fda1929764661b8ceee7fff0de965716590d04fb",slot:"content"},Array.from({length:10}).map((()=>t("p",null,"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."))))),t("smoothly-button",{key:"c176e661ec34df09bde9beffdf502264851a9548",slot:"actions",color:"light",fill:"outline",onClick:()=>this.openTallModal=false},"Cancel")),this.showFrame&&t("smoothly-dialog",{key:"0596a4eba8b82b63d6711cb8f9e840eebf537072",closable:true},t("smoothly-frame",{key:"1a027bc120e983af8790e4b03d47195b092deaa4",url:"https://www.wikipedia.org/",name:"parent",style:{height:"80vh"}})))}};yt.style=bt;function ut(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}function ft(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function pt(e,t,o){const s=/([\wåäöüéáúíóßðœøæñµçþ_]+|[@-]+)/gi;return o=="backward"?ft(e,t,s):ut(e,t,s)}var gt;(function(e){function t(e){return e.direction=="backward"?e.start:e.end}e.getCursor=t;function o(e){return e.direction!="backward"?e.start:e.end}e.getStalker=o})(gt||(gt={}));var kt;(function(e){function t(e){return{value:e.value,selection:{start:e.selection.start,end:e.selection.end,direction:e.selection.direction},remainder:e.remainder}}e.copy=t})(kt||(kt={}));class vt{value;selection;constructor(e){this.value=e.value;this.selection={start:e.selection?.start,end:e.selection?.end,direction:e.selection?.direction}}get(e,t=1){return this.value.substring(e,e+t)}is(e,...t){const o=this.get(e);return t.some((e=>o==e))}isDigit(e){const t=this.get(e);return t>="0"&&t<="9"}match(e){return this.value.match(e)}replace(e,t,o){let s;if(typeof e=="string"&&typeof t=="string"){let o;s=this;while((o=s.value.indexOf(e))>-1)s=s.replace(o,o+e.length,t)}else if(typeof e=="number"&&typeof t=="number"){const a={value:this.value,selection:{start:this.selection.start,end:this.selection.end,direction:this.selection.direction}};if(!o)o="";a.value=this.value.slice(0,e)+o+this.value.slice(t,this.value.length);if(this.selection.start>=t)a.selection.start=this.selection.start+o.length-t+e;else if(this.selection.start>e&&this.selection.start<t)a.selection.start=Math.min(this.selection.start,e+o.length);if(this.selection.end>=t)a.selection.end=this.selection.end+o.length-t+e;else if(this.selection.end>e&&this.selection.end<t)a.selection.end=Math.min(this.selection.end,e+o.length);s=new vt(a)}return s||this}insert(e,t){return this.replace(e,e,t)}append(e){return this.insert(this.value.length,e)}prepend(e){return this.insert(0,e)}suffix(e){return new vt({value:this.value+e,selection:this.selection})}delete(e,t){let o;if(!this.value)o=this;else if(typeof e=="string"){let t;o=this;while(e&&(t=o.value.indexOf(e))>-1)o=o.delete(t,t+e.length)}else o=this.replace(e,t||e+1,"");return o}truncate(e){return this.value.length>=e?this.delete(e,this.value.length):this}pad(e,t,o){let s=this;while(e>s.value.length+t.length)s=s.insert(o,t);if(e>s.value.length)s=s.insert(o,t.substring(0,e-s.value.length));return s}padEnd(e,t){return this.pad(e,t,this.value.length)}padStart(e,t){return this.pad(e,t,0)}toLower(){return this.map((e=>e.toLowerCase()))}toUpper(){return this.map((e=>e.toUpperCase()))}map(e){let t=this;let o=0;for(let s=0;s<this.value.length;s++){const a=e(this.get(s),s);t=t.replace(o,o+1,a);o+=a.length}return t}static copy(e){return new vt({...e})}static create(){return new vt({value:"",selection:{start:0,end:0}})}static modify(e){return new vt(typeof e=="string"?{value:e,selection:{start:e.length,end:e.length}}:e)}}var xt;(function(e){function t(e,t,o){let c=kt.copy(e.unformat(vt.copy(t)));if(t.autocomplete=="cc-exp"&&/^\d\d \/$/g.test(t.value))o?.key&&(o.key="Backspace");if(o){if(o.ctrlKey||o.metaKey){if(o.key=="a")n(c,0,c.value.length,"forward");else if(["ArrowLeft","ArrowRight"].includes(o.key)&&t?.type!="password")c=s(e,t,o);else if(["Delete","Backspace"].includes(o.key)&&t?.type!="password")c=a(e,t,o)}else if(["ArrowLeft","ArrowRight","Home","End"].includes(o.key))i(c,o);else if(["Delete","Backspace"].includes(o.key)){c.selection.start==c.selection.end&&n(c,c.selection.start+(o.key=="Backspace"?-1:0),c.selection.end+(o.key=="Delete"?1:0));l(c)}else if(o.key!="Unidentified"){l(c);e.allowed(o.key,c)&&r(c,o.key)}}return e.format(vt.copy(c))}e.apply=t;function o(e,t,o){const s=kt.copy(e.unformat(vt.copy(t)));r(s,o);return e.format(vt.copy(s))}e.paste=o;function s(e,t,o){let s=gt.getCursor(t.selection);let a=gt.getStalker(t.selection);s=pt(t.value,s,o.key=="ArrowLeft"?"backward":"forward");a=o.shiftKey?a:s;return kt.copy(e.unformat(vt.copy({...t,selection:{start:Math.min(a,s),end:Math.max(a,s),direction:a<s?"forward":a>s?"backward":"none"}})))}function a(e,t,o){const s=gt.getCursor(t.selection);const a=pt(t.value,s,o.key=="Backspace"?"backward":"forward");const i=kt.copy(e.unformat(vt.copy({...t,selection:{start:Math.min(s,a),end:Math.max(s,a),direction:"none"}})));i.value=i.value.substring(0,i.selection.start)+i.value.substring(i.selection.end);i.selection.end=i.selection.start;return i}function i(e,t){let o=gt.getCursor(e.selection);let s=gt.getStalker(e.selection);o=t.key=="Home"?0:t.key=="End"?e.value.length:e.selection.start==e.selection.end||t.shiftKey?Math.min(Math.max(o+(t.key=="ArrowLeft"?-1:1),0),e.value.length):t.key=="ArrowLeft"?e.selection.start:e.selection.end;s=t.shiftKey?s:o;e.selection.direction=s<o?"forward":s>o?"backward":"none";e.selection.start=Math.min(s,o);e.selection.end=Math.max(s,o)}function n(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}function l(e){r(e,"")}function r(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}})(xt||(xt={}));const wt={};function St(e,t){wt[e]=t}function Ct(e,...t){const o=wt[e];return o&&o(t)}function zt(e,t,...o){const s=Ct(t,...o);return s?s.format(vt.modify(s.toString(typeof e=="string"?jt(e,t,o):e))).value:""}function jt(e,t,...o){const s=Ct(t,o);return s?s.fromString(s.unformat(vt.modify(e)).value):undefined}class _t{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,type:"text",inputmode:"numeric",autocomplete:"cc-csc",length:[3,3],pattern:/^\d{3}$/}}unformat(e){return e}allowed(e,t){return t.value.length<3&&e>="0"&&e<="9"}}St("card-csc",(()=>new _t));class Tt{toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString().padStart(2,"0")+e[1].toString().padStart(2,"0"):""}fromString(e){return typeof e=="string"&&e.length==4?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(2))]:undefined}partialFormat=this.format;format(e){let t=e;if(e.value.length>0&&!e.is(0,"0","1"))t=t.prepend("0");if(t.value.length>1)t=t.insert(2," / ");return{...t,type:"text",inputmode:"numeric",autocomplete:"cc-exp",length:[7,7],pattern:/^(0[1-9]|1[012]) \/ \d\d$/}}unformat(e){return e.delete(" / ")}allowed(e,t){return t.value.length<4&&e>="0"&&e<="9"}}St("card-expires",(()=>new Tt));class It{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){const t=Lt(e.value);const o=e.map(((e,o)=>(o+1<t.length[0]&&t.spaceIndexes.includes(o)?" ":"")+e));return{...o,type:"text",inputmode:"numeric",autocomplete:"cc-number",length:t.length.slice(1),pattern:t.verification,classes:["issuer-"+t.icon]}}unformat(e){return e.delete(" ")}allowed(e,t){const o=Lt(t.value);return e>="0"&&e<="9"&&t.value.length<o.length[0]}}St("card-number",(()=>new It));function Lt(e){let t={...Ot,spaceIndexes:e.length==14?[4,10]:Ot.spaceIndexes};for(const o in At)if(Object.prototype.hasOwnProperty.call(At,o)&&At[o].identification.test(e)){t={...Ot,name:o,...At[o]};break}return t}const Ot={name:"unknown",verification:/^\d{19}$/,spaceIndexes:[4,8,12],identification:/^\d/,length:[16,16,19],icon:"generic"};const At={amex:{verification:/^3[47][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{3}$/,identification:/^3[47]/,length:[15,18,18],icon:"amex"},dankort:{verification:/^(5019)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],identification:/^(5019)\d+/,length:[16,19,19],icon:"generic"},diners:{verification:/^3(?:0[0-5]|[68][0-9])[0-9]\s[0-9]{6}\s[0-9]{4}$/,identification:/^3(?:0[0-5]|[68][0-9])/,spaceIndexes:[4,10],length:[14,16,16],icon:"diners"},discover:{verification:/^6(?:011|5[0-9]{2})\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],identification:/^6(?:011|5[0-9]{2})/,length:[16,19,19],icon:"generic"},electron:{verification:/^((4026|4405|4508|4844|4913|4917)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|((4175)\s(00)[0-9]{2}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(4026|417500|4405|4508|4844|4913|4917)/,spaceIndexes:[4,8,12],length:[16,19,19],icon:"generic"},interpayment:{verification:/^(636)[0-9]\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],identification:/^(636)/,length:[16,19,19],icon:"generic"},jcb:{verification:/^((?:2131|1800)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})|(35[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4})$/,identification:/^(?:2131|1800|35\d{3})/,spaceIndexes:[4,8,12],length:[16,19,19],icon:"generic"},unionpay:{verification:/^(62|88)[0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],identification:/^(62|88)/,length:[16,19,19],icon:"generic"},maestro:{verification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],identification:/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)/,length:[16,19,19],icon:"maestro"},mastercard:{verification:/^5[1-5][0-9]{2}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}$/,spaceIndexes:[4,8,12],identification:/^5[1-5][0-9]/,length:[16,19,19],icon:"mastercard"},visa:{verification:/^4[0-9]{3}\s[0-9]{4}\s[0-9]{4}\s[0-9](?:[0-9]{3})?$/,spaceIndexes:[4,8,12],identification:/^4[0-9]/,length:[16,16,19],icon:"visa"}};var Et;(function(e){function t(e){let t;switch(e){case"sq-AL":case"es-AR":case"it-IT":case"en-GB":case"fr-FR":t="dd/mm/YYYY";break;case"en-US":t="mm/dd/YYYY";break;case"et-EE":case"de-AT":case"de-DE":case"he-IL":case"is-IS":case"lv-LV":case"pl-PL":case"ru-RU":case"fi-FI":t="dd.mm.YYYY";break;case"hi-IN":case"en-IN":t="dd-mm-YYYY";break;default:t="YYYY-mm-dd";break}return t}e.fromLocale=t;function o(e){let t;switch(e){case"dd/mm/YYYY":t="en-GB";break;case"mm/dd/YYYY":t="en-US";break;case"dd.mm.YYYY":t="de-DE";break;default:t="sv-SE";break}return t}e.toLocale=o;function s(e){return typeof e=="string"&&(e=="YYYY-mm-dd"||e=="dd/mm/YYYY"||e=="dd.mm.YYYY"||e=="mm/dd/YYYY")}e.is=s})(Et||(Et={}));class Dt{separator;constructor(e){this.separator=e}partialFormat(e){const t=this.format(e);return{...t,remainder:this.formatString.slice(t.value.length)}}unformat(e){return e.delete(this.separator)}validMonth(e,t,o){return new Date(Number.parseInt(o??"2004"),Number.parseInt(t),0).getDate()>=Number.parseInt(e)}}const Mt={};function $t(e,t){Mt[e]=t}St("date",(e=>{const t=e&&e.length>0?e[0]:undefined;const o=Et.is(t)?t:Et.fromLocale(t);const s=Mt[o]??Mt["YYYY-mm-dd"];return s()}));class Rt extends Dt{constructor(e){super(e)}toString(e){return k.is(e)&&e.length==10?[e.substring(8,10),e.substring(5,7),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e?.length==8?`${e.substring(4,8)}-${e.substring(2,4)}-${e.substring(0,2)}`:undefined;return k.is(t)?t:undefined}formatString=`DD${this.separator}MM${this.separator}YYYY`;format(e){let t=e.delete(this.separator);if(t.get(0,1)>"3")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>"1")t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|[12][0-9]|3[01])","(0[1-9]|1[012])","\\d{4}$"].join(this.separator))}}allowed(e,t){return t.selection.start==1&&t.value[0]=="3"?e>="0"&&e<="1":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==2?e>="0"&&e<="9"&&(e=="0"||e=="1"||this.validMonth(t.value.substring(0,2),e)):t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value[2]+e):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(0,2),t.value.substring(2,4),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9"}}$t("dd.mm.YYYY",(()=>new Rt(".")));$t("dd/mm/YYYY",(()=>new Rt("/")));$t("dd-mm-YYYY",(()=>new Rt("-")));class Pt extends Dt{constructor(e){super(e)}toString(e){return k.is(e)&&e.length==10?[e.substring(5,7),e.substring(8,10),e.substring(0,4)].join(this.separator):""}fromString(e){const t=e.length==8?`${e.substring(4,8)}-${e.substring(0,2)}-${e.substring(2,4)}`:undefined;return k.is(t)?t:undefined}formatString=`MM${this.separator}DD${this.separator}YYYY`;format(e){let t=e.delete(this.separator);if(t.get(0,1)>"1")t=t.insert(0,"0");if(t.value.length>1)t=t.insert(2,this.separator);if(t.get(3,1)>(t.get(0,2)=="02"?"2":"3"))t=t.insert(3,"0");if(t.value.length>4)t=t.insert(5,this.separator);return{...t,type:"text",length:[0,10],pattern:new RegExp(["^(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])","\\d{4}$"].join(this.separator))}}allowed(e,t){const o=t.selection.start==1&&t.value[0]=="1"?e>="0"&&e<="2":t.selection.start==1&&t.value[0]=="0"?e>="1"&&e<="9":t.selection.start==3?e>="0"&&e<="9"&&this.validMonth(t.value[2]+e,t.value.substring(0,2)):t.selection.start==7?e>="0"&&e<="9"&&this.validMonth(t.value.substring(2,4),t.value.substring(0,2),t.value.substring(4,7)+e):t.selection.start<8&&e>="0"&&e<="9";return o}}$t("mm/dd/YYYY",(()=>new Pt("/")));class Nt extends Dt{constructor(e){super(e)}toString(e){return typeof e!="string"?"":e}fromString(e){const t=e?.length==8?`${e.substring(0,4)}-${e.substring(4,6)}-${e.substring(6,8)}`:undefined;return k.is(t)?t:undefined}daysInMonth(e){const t=`${e.substring(0,4)}-${e.substring(4,6)}-01`;return k.is(t)?+k.lastOfMonth(`${e.substring(0,4)}-${e.substring(4,6)}-01`).substring(8,10):31}formatString=`YYYY${this.separator}MM${this.separator}DD`;format(e){let t=e.delete(this.separator);if(t.value.length>3){t=t.insert(4,this.separator);if(t.get(5,1)>"1")t=t.insert(5,"0");if(t.value.length>6){t=t.insert(7,this.separator);if(t.get(8,1)>this.daysInMonth(e.value).toString().substring(0,1))t=t.insert(8,"0")}}return{...t,type:"text",length:[0,10],pattern:new RegExp(["^\\d{4}","(0[1-9]|1[012])","(0[1-9]|[12][0-9]|3[01])$"].join(this.separator))}}allowed(e,t){const o=this.daysInMonth(t.value);return t.selection.start==5&&t.value[4]=="0"?e>="1"&&e<="9":t.selection.start==5&&t.value[4]=="1"?e>="0"&&e<="2":t.selection.start==7&&t.value[6]=="0"?e>="1"&&e<="9":t.selection.start==7&&(t.value[6]=="2"&&o<30||t.value[6]=="3")?e>="0"&&e<=o.toString().substring(1):t.selection.start<8&&e>="0"&&e<="9"}}$t("YYYY-mm-dd",(()=>new Nt("-")));class Ft{toString(e){return typeof e=="string"?e:""}fromString(e){let t=e.replace(" ","T");const o="0000-01-01T00:00:00.000Z";if(t?.match(/-\d$/))t=t.substring(0,t.length-1)+"0"+t.substring(t.length-1,t.length);t=!t.match(/^\d{4}-(0[1-9]|1[012])/)?undefined:t+o.substring(t.length,o.length);return v.is(t)?t:undefined}partialFormat=this.format;format(e){let t=Ht(e);if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[\d:.-]$/))t=t.insert(10," ");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 3$/))t=t.replace(11,12,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [45]$/))t=t.insert(11,"23:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) [6-9]$/))t=t.insert(11,"23:5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 24$/))t=t.replace(10,13,"00:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 25$/))t=t.insert(12,"3:");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) 2[6-9]$/))t=t.insert(12,"3:5").append(":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])\d[\s\S]$/))t=t.insert(13,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[6-9]$/))t=t.insert(14,"5");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d\d$/))t=t.insert(16,":");if(t.match(/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3]):[0-5]\d:[6-9]$/))t=t.insert(17,"5");return{...t,type:"text",length:[0,19],pattern:/^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]) ([0-1]\d|2[0-3])(:[0-5]\d){2}$/}}unformat(e){return e}allowed(e,t){return t.value.length<19&&(e>="0"&&e<="9"||e=="-"||e==":"||e=="."||e==" ")}}St("date-time",(()=>new Ft));function Ht(e,t){let o=e;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":if(!Ut(o.value,t))o=o.replace(0,10,Ut("31"+o.value.substring(2,10),t)?"31"+o.value.substring(2,10):Ut("30"+o.value.substring(2,10),t)?"30"+o.value.substring(2,10):Ut("29"+o.value.substring(2,10),t)?"29"+o.value.substring(2,10):Ut("28"+o.value.substring(2,10),t)?"28"+o.value.substring(2,10):o.value);break;case"mm/dd/YYYY":if(!Ut(o.value,t))o=o.replace(0,10,Ut(o.value.substring(0,3)+"31"+o.value.substring(5,10),t)?o.value.substring(0,3)+"31"+o.value.substring(5,10):Ut(o.value.substring(0,3)+"30"+o.value.substring(5,10),t)?o.value.substring(0,3)+"30"+o.value.substring(5,10):Ut(o.value.substring(0,3)+"29"+o.value.substring(5,10),t)?o.value.substring(0,3)+"29"+o.value.substring(5,10):Ut(o.value.substring(0,3)+"28"+o.value.substring(5,10),t)?o.value.substring(0,3)+"28"+o.value.substring(5,10):o.value);break;default:if(e.value.length==10){if(!Ut(o.value)){o=o.replace(0,10,Ut(o.value.substring(0,8)+"31")?o.value.substring(0,8)+"31":Ut(o.value.substring(0,8)+"30")?o.value.substring(0,8)+"30":Ut(o.value.substring(0,8)+"29")?o.value.substring(0,8)+"29":Ut(o.value.substring(0,8)+"28")?o.value.substring(0,8)+"28":o.value);break}return e}}return o}function Ut(e,t){let o;let s;let a;switch(t){case"dd/mm/YYYY":case"dd.mm.YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(3,5));a=parseInt(e.substring(0,2));return o&&s&&a?a>0&&Yt(o,s)>=a:false;case"mm/dd/YYYY":o=parseInt(e.substring(6,10));s=parseInt(e.substring(0,2));a=parseInt(e.substring(3,5));return o&&s&&a?a>0&&Yt(o,s)>=a:false;default:o=parseInt(e.substring(0,4));s=parseInt(e.substring(5,7));a=parseInt(e.substring(8,10));return o&&s&&a?a>0&&Yt(o,s)>=a:false}}function Yt(e,t){let o;switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:o=31;break;case 4:case 6:case 9:case 11:o=30;break;case 2:o=28;break}return o}class Wt{toString(e){return Array.isArray(e)&&e.length==2&&typeof e[0]=="number"&&typeof e[1]=="number"?e[0].toString()+" / "+e[1].toString():typeof e=="number"?e.toString():""}fromString(e){return typeof e=="string"&&e.match(/^\d{1,2}\s+\/\s+\d{1,2}$/)?[Number.parseInt(e.slice(0,2)),Number.parseInt(e.slice(e.length-2))]:typeof e=="string"&&e.match(/\d{1,2}/)?Number.parseInt(e):undefined}partialFormat=this.format;format(e){let t=e;if(e.match(/^\d\/$/))t=e.replace(1,2," / ");else if(e.match(/^\d{1,2}\s$/))t=e.replace(e.value.length-1,e.value.length," / ");else if(e.match(/^[\D.]+\/[\D.]+$/))t=e.delete(0,e.value.length);else if(e.match(/^[\D.]+\/[\D.]+\d$/))t=e.delete(0,e.value.length-1);else if(e.match(/^[\D.]+\/[\D.]+\d\d$/))t=e.delete(0,e.value.length-2);else if(e.match(/^[\D.]+\//))t=e.delete(0,e.value.search("/")+1);else if(e.match(/^\d\d\/$/))t=e.replace(2,3," / ");else if(e.match(/^\d\d\s+\/$/))t=e.delete(2,e.value.length);else if(e.match(/^\d\s+\/$/))t=e.delete(1,e.value.length);else if(e.match(/^\d\d\s\s+\/\s*$/))t=e.replace(2,e.value.length," / ");else if(e.match(/^\d\s\s+(\/\s*)?$/))t=e.replace(1,e.value.length," / ");else if(e.match(/^\d\s\/\s\d\d.+$/))t=e.delete(6,e.value.length);else if(e.value.length>1&&e.value.indexOf("/")<1)t=e.insert(2," / ");else if(e.value.length>1&&e.value.split("/").length>2)t=e.delete(e.value.lastIndexOf("/"));else if(e.value.length==1&&!e.isDigit(0))t=e.delete(0);return{...t,type:"text",length:[1,7],pattern:/^(\d{1,2}|\d{1,2} \/ \d{1,2})$/}}unformat(e){return e}allowed(e,t){return t.value.length<7&&(e>="0"&&e<="9"||e=="/"||e==" ")}}St("divisor",(()=>new Wt));class Bt{separator=":";patterns={allowed:/^-?\d*(?::{0,1}[0-5]{0,1}[0-9]{0,1}|[.,]{0,1}[0-9]{0,2})$/,extract:/^(-?)(\d*)([:,.]{0,1})([0-9]{0,2})$/,zeros:/^(-?)(0+)(?:[1-9]|0[,.:]?)/};toString(e){let t;if(!x.is(e))t="";else{const o=x.normalize(e);if(!o.minutes&&!o.hours)t="";else if(this.separator!=":")t=(+x.toHours(o).toFixed(2)||"").toString(10);else if(o.hours&&!o.minutes)t=o.hours.toString(10);else if(!o.hours&&o.minutes)t=`${o.minutes<0?"-":""}0:${Math.abs(o.minutes).toString(10)}`;else t=`${o.hours?.toString(10)}:${Math.abs(o.minutes??0).toString(10)}`}return t}fromString(e){let t;const o=e.match(this.patterns.extract);if(!o)t=undefined;else{const[e,s,a,i,n]=o;this.separator=i;if(i==":"){const e={hours:parseInt(a),minutes:parseInt(n)};const o=s?-1:1;t=x.normalize({hours:!Number.isFinite(e.hours)?0:e.hours*o,minutes:!Number.isFinite(e.minutes)?0:e.minutes*o})}else{const o=parseFloat(e.replace(",","."));t=x.normalize({hours:!Number.isFinite(o)?0:o})}}return t}partialFormat=this.format;format(e){let t=e;const[,o,s,a]=e.match(this.patterns.extract)??[];if(!s&&a)t=t.insert(o?1:0,"0");const i=t.match(this.patterns.zeros);if(i){const[,e,o]=i;if(o){const s=e?1:0;t=t.delete(s,o.length+s)}}return{...t,type:"tel",pattern:this.patterns.allowed}}unformat(e){const[,,,t]=e.match(this.patterns.extract)??[];if(t)this.separator=t;return e}allowed(e,t){const o=t.value.slice(0,t.selection.start)+e+t.value.slice(t.selection.end);return!!o.match(this.patterns.allowed)}}St("duration",(()=>new Bt));class Vt{settings;constructor(e){this.settings=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,...this.settings,type:"text",inputmode:"email",autocomplete:"email"}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}St("email",(e=>new Vt(e||{})));class Gt{settings;mode;constructor(e,t){this.settings=e;this.mode=t}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}split(e){let t;let o="";return e.map(((e,s)=>{const a=s!==0&&e===e.toUpperCase()&&isNaN(+e)&&o!==" "&&this.isSymbolAllowed(e)&&t?" "+e:(e==="_"||e==="-")&&o!==" "?" ":e===" "&&o===" "||!this.isSymbolAllowed(e)||!t&&!this.isSymbolLetter(e)&&this.mode!=="code"?"":e;!t&&(t=this.isSymbolLetter(e));this.isSymbolAllowed(e)&&(o=e);return a})).toLower().delete("-").delete("_")}isSymbolLetter(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}isSymbolAllowed(e){return this.isSymbolLetter(e)||e>="0"&&e<="9"||e===" "}partialFormat=this.format;format(e){const t=this.split(e);let o;switch(this.mode){case"code":o=t.delete(" ");break;case"pascal":case"camel":let s;o=t.map(((e,t)=>{const o=t===0&&this.mode==="pascal"||s?e.toUpperCase():e.toLowerCase();s=e==" ";return o})).delete(" ");break;case"snake":case"attribute":o=t.replace(" ",this.mode==="snake"?"_":"-");break;default:o=e}return{...o,...this.settings,type:"text",autocomplete:"on"}}unformat(e){return e}allowed(e,t){return this.isSymbolLetter(e)||e>="0"&&e<="9"&&(this.mode=="code"||t.value.length>0)||e=="_"&&this.mode=="snake"&&t.value.length>0||e=="-"&&this.mode=="attribute"&&t.value.length>0}}St("identifier-code",(e=>new Gt(e||{},"code")));St("identifier-pascal",(e=>new Gt(e||{},"pascal")));St("identifier-snake",(e=>new Gt(e||{},"snake")));St("identifier-camel",(e=>new Gt(e||{},"camel")));St("identifier-attribute",(e=>new Gt(e||{},"attribute")));class Kt{country;constructor(e){this.country=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){let t=e;const o=(new Date).getFullYear().toString();if(e.value.length>1&&e.get(0,2)!="19"&&e.get(0,2)!="20")t=t.prepend(e.get(0,2)>o.substring(2,4)?"19":"20");if(t.value.length>=8)t=t.insert(8,"-");return{...t.truncate(13),type:"text",length:[11,13],pattern:/^\d{6,8}-\d{4}$/}}unformat(e){return e.delete("-")}allowed(e,t){return t.value.length<13&&e>="0"&&e<="9"}}St("identity-number",(e=>new Kt(e&&e.length>0?e[0]:undefined)));class qt{toString(e){return typeof e=="number"?e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseInt(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t:undefined}partialFormat=this.format;format(e){return{...e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^[0-9]+$/}}unformat(e){return e}allowed(e,t){return e>="0"&&e<="9"}}St("integer",(()=>new qt));class Zt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,type:"password",autocomplete:"current-password"}}unformat(e){return e}allowed(e,t){return true}}St("password",(()=>new Zt));class Jt{toString(e){let t="";if(typeof e=="number"){const o=e.toString().split(".")[1]?.length??2;t=(e*100).toFixed(!o||o<=1?0:o-2)}return t}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return typeof t=="number"&&!Number.isNaN(t)?t/100:undefined}partialFormat=this.format;format(e){return{...e.value?e.suffix(" %"):e,type:"text",inputmode:"numeric",length:[3,undefined],pattern:/^\d+(.\d+)? %+$/}}unformat(e){return e.delete(" %")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")}}St("percent",(()=>new Jt));const Xt=[{countryCode:"+46",areaCodes:["011","0120","0121","0122","0123","0125","013","0140","0141","0142","0143","0144","0150","0151","0152","0155","0156","0157","0158","0159","016","0171","0173","0174","0175","0176","018","019","021","0220","0221","0222","0223","0224","0225","0226","0227","023","0240","0241","0243","0246","0247","0248","0250","0251","0253","0258","026","0270","0271","0278","0280","0281","0290","0291","0292","0293","0294","0295","0297","0300","0301","0302","0303","0304","031","0320","0321","0322","0325","033","0340","0345","0346","035","036","0370","0371","0372","0380","0381","0382","0383","0390","0392","0393","040","0410","0411","0413","0414","0415","0416","0417","0418","042","0430","0431","0433","0435","044","0451","0454","0455","0456","0457","0459","046","0470","0471","0472","0474","0476","0477","0478","0479","0480","0481","0485","0486","0490","0491","0492","0493","0494","0495","0496","0498","0499","0500","0501","0502","0503","0504","0505","0506","0510","0511","0512","0513","0514","0515","0520","0521","0522","0523","0524","0525","0526","0528","0530","0531","0532","0533","0534","054","0550","0551","0552","0553","0554","0555","0560","0563","0564","0565","0570","0571","0573","0580","0581","0582","0583","0584","0585","0586","0587","0589","0590","0591","060","0611","0612","0613","0620","0621","0622","0623","0624","063","0640","0642","0643","0644","0645","0647","0650","0651","0652","0653","0657","0660","0661","0662","0663","0670","0671","0672","0680","0682","0684","0687","0690","0691","0692","0693","0695","0696","08","090","0910","0911","0912","0913","0914","0915","0916","0918","0920","0921","0922","0923","0924","0925","0926","0927","0928","0929","0930","0932","0933","0934","0935","0940","0941","0942","0943","0950","0951","0952","0953","0954","0960","0961","0970","0971","0973","0975","0976","0977","0978","0980","0981","010","020","0378","070","072","073","076","079","0710","0740","0746","0749","0741","0742","0743","0744","0745","0747","075","077","078","0900","0939","0944","0969","099"]}];class Qt{toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){let t=e;if(t.value.startsWith("+")){for(const e of Xt)if(t.value.startsWith(e.countryCode))for(let o of e.areaCodes){o=o.substring(1);if(t.value.startsWith(e.countryCode+o)&&!t.value.includes("-"))t=t.insert(e.countryCode.length,"-").insert(e.countryCode.length+1+o.length,"-")}}else{const e=Xt[0];for(const o of e.areaCodes)if(t.value.startsWith(o)&&!t.value.includes("-")){t=t.insert(o.length,"-");t=t.delete(0);t=t.insert(0,"-").insert(0,e.countryCode)}}if(t.value.includes("-")){const e=t.value.indexOf("-",t.value.indexOf("-")+1)+1;const o=t.value.substring(e,t.value.length+1).length;switch(o){case 4:t=t.insert(e+2," ");break;case 5:t=t.insert(e+3," ");break;case 6:t=t.insert(e+2," ");t=t.insert(e+5," ");break;case 7:t=t.insert(e+3," ");t=t.insert(e+6," ");break;case 8:case 9:t=t.insert(e+3," ");t=t.insert(e+7," ");break}if(o>9){const s=Math.ceil(o/3)-1;if(s>0){for(let o=0;o<s;o++){const s=o*3+3+o;t=t.insert(s+e," ")}}}}return{...t,type:"tel",autocomplete:"tel"}}unformat(e){return e.delete(" ").delete("-")}allowed(e,t){return e>="0"&&e<="9"||t.selection.start==0&&e=="+"&&!t.value.includes("+")}}St("phone",(()=>new Qt));class eo{country;constructor(e){this.country=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){const t=!e.value.includes(" ")&&e.value.length>=4?e.insert(3," "):e;return{...t.truncate(6),type:"text",autocomplete:"postal-code",length:[6,6],pattern:/^\d{3} \d{2}$/}}unformat(e){return e.delete(" ")}allowed(e,t){return t.value.length<=5&&e>="0"&&e<="9"}}St("postal-code",(e=>new eo(e&&e.length>0?e[0]:undefined)));class to{currency;toInteger;constructor(e){this.currency=e&&typeof e=="object"?e.currency:e;this.toInteger=e&&typeof e=="object"?e.toInteger:undefined}toString(e){return typeof e=="number"?isNaN(e)?"":e.toString():""}fromString(e){const t=typeof e=="string"?Number.parseFloat(e):undefined;return t!=undefined&&!isNaN(t)?t:undefined}partialFormat(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):vt.copy(e);const o=this.currency&&w.decimalDigits(this.currency);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"onlyLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);return{...t,remainder:this.format(e).value.slice(t.value.length),type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d*)?$")}}format(e){let t=e.value=="NaN"?e.replace(0,e.value.length,""):vt.copy(e);const o=this.currency&&w.decimalDigits(this.currency);if(!this.toInteger)t=this.forceDecimalZero(t,o);t=this.addLeadingIntegerZero(t);t=this.fillDecimalsIfPresent(t,o,"fillAndLimit");t=this.truncateIntegerZeros(t);t=this.addThousandSeparators(t);t=this.appendCurrency(t);return{...t,type:"text",inputmode:"numeric",length:[3,undefined],pattern:new RegExp("^(\\d{0,3})( \\d{3})*(\\.\\d+)?"+(this.currency?" "+this.currency:"")+"$")}}forceDecimalZero(e,t){if(!e.value.includes(".")&&t&&(Math.abs(Number.parseFloat(e.value))>=0||e.value=="0"))e=e.suffix(".0");return e}addLeadingIntegerZero(e){const t=e.value&&e.value.includes(".")?e.value.indexOf("."):undefined;if(t==0)e=e.prepend("0");return e}fillDecimalsIfPresent(e,t,o){const s=e.value.indexOf(".");if(s!=-1){const a=s+1+(t??2)-e.value.length;e=a<0?e.truncate(e.value.length+a):o=="fillAndLimit"?e.suffix("0".repeat(a)):e}return e}truncateIntegerZeros(e){const t=e.match(/^[0\s]{2,}/);if(t)e=e.replace(0,t[0].length,"0");return e}addThousandSeparators(e){let t=e.value.includes(".")?e.value.indexOf("."):e.value.length;const o=t<=0?0:Math.ceil(t/3)-1;for(let s=0;s<o;s++){const a=t-(o-s)*3;e=e.insert(a," ");t++}return e}appendCurrency(e){return this.currency&&(e.value.length>1||e.value.length==1&&e.value.charAt(0)!=".")?e.suffix(" "+this.currency):e}unformat(e){return this.currency?e.delete(" ").delete(""+this.currency):e.delete(" ")}allowed(e,t){return e>="0"&&e<="9"||e=="."&&!t.value.includes(".")&&(!this.currency||w.decimalDigits(this.currency)!=0)}}St("price",(e=>new to(e&&e.length>0?e[0]:undefined)));class oo{settings;constructor(e){this.settings=e}toString(e){return typeof e=="string"?e:""}fromString(e){return typeof e=="string"&&!!e?e:undefined}partialFormat=this.format;format(e){return{...e,type:"text",...this.settings}}unformat(e){return e}allowed(e,t){return this.settings.length==undefined||this.settings.length[1]==undefined||t.value.length<this.settings.length[1]}}St("text",(e=>new oo(e||{})));class so{toString(e){return typeof e=="string"?"#"+e:""}fromString(e){return e?"#"+e:undefined}partialFormat=this.format;format(e){const t=e.delete("#");return{...t.value?t.prepend("#"):t,type:"text",length:[4,7],pattern:/^#([0-9a-f]{3}|[0-9a-f]{6})$/i}}unformat(e){return e.delete("#")}allowed(e,t){return(e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F")&&t.value.length<6}}St("hex-color",(()=>new so));const ao=".sc-smoothly-display-h{display:block;white-space:wrap}[hidden].sc-smoothly-display-h{display:none}.sc-smoothly-display-h>div.sc-smoothly-display{opacity:0.6;font-size:.8rem}";const io=ao;const no=class{constructor(t){e(this,t);this.type=undefined;this.label=undefined;this.value=undefined;this.collapseDepth=undefined;this.toInteger=undefined;this.currency=undefined;this.country=undefined;this.format=undefined}render(){var e,o;let s;const a=this.type;switch(a){case"json":s=t("smoothly-display-json",{key:"dae527906c3ef17061176ca4fa2b609136029d2a",value:this.value,collapseDepth:this.collapseDepth});break;default:s=zt(this.value,a);break;case"email":s=t("a",{key:"473961d0ae2df537bbd562de4c303b8a78579fe6",href:"mailto:"+this.value},zt(this.value,a));break;case"phone":s=t("a",{key:"ccb2abfa11f6240d8e2defb0d603db7910d9bfa4",href:"tel:"+this.value},zt(this.value,a,this.country));break;case"postal-code":s=zt(this.value,a,this.country);break;case"price":s=zt(this.value,a,{currency:this.currency,toInteger:this.toInteger});break;case"date":s=(e=Ct(this.type,D()))===null||e===void 0?void 0:e.toString(this.value);break;case"duration":s=zt(this.value,a)||"0";break;case"date-time":s=this.format?v.localize(this.value,this.format,D()):(o=Ct(this.type,D()))===null||o===void 0?void 0:o.toString(this.value);break}return this.label?[t("div",null,this.label),s]:s}};no.style=io;const lo=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.downloadingSpinner=undefined}noticeWarning(e){console.log("emit",e);this.notice.emit(e)}render(){return[t("main",{key:"39eb7bb72cea0c312714780bd9db27a77836a07d"},t("fieldset",{key:"46b0779510e3c6ee1106a6b3a83a13d41ac63b2e"},t("h2",{key:"f680e63af56e7d50cc660eac1a1b81de653d48bd"},"Smoothly display"),t("dl",{key:"26c00ce48352dde5b499bdd170488ffc0e9be984"},t("dt",{key:"8dbadab550b83b5bfc4acf8cff7b61d7ffd43af9"},"Duration"),t("dd",{key:"fc8689620efd6dd6e1ab8d1390b8d813be2520ca"},t("div",{key:"6ef111616240ac903eb2af7f2636936611c0a4f8"},t("div",{key:"7dc311657409ada5e96ce832158c020e55c4cc45"},t("smoothly-display",{key:"80fa4e17d62413c7699b94ef3ffa286f04b3f7b8",style:{display:"inline"},type:"duration",value:{hours:13,minutes:100}})," h"),t("div",{key:"e36d5b6131c20a99397c4c59f1dd2aace482dd9d"},t("smoothly-display",{key:"2858bd44eda1a0e81e22cd7f156ada646ce74e4b",style:{display:"inline"},type:"duration",value:{hours:8}})," h"),t("div",{key:"ad4757c65bfdee5ec7eaec6ca93985f8205ef629"},t("smoothly-display",{key:"e6b76219a8a754060a122303f9946fd3bac53ac3",style:{display:"inline"},type:"duration",value:{minutes:3}})," h"),t("div",{key:"5448e1f01cde73667fcddb1c12322bb3580570fd"},t("smoothly-display",{key:"716327a3acf4cc15693d1dd4bc4a2652ed10c6e5",style:{display:"inline"},type:"duration",value:{hours:-13,minutes:100}})," h"),t("div",{key:"7163c5acb2a9f3dcb9c620866a1bde90548f1d9a"},t("smoothly-display",{key:"75f2c509df90c14512e0ff6f9b218806c3b1d690",style:{display:"inline"},type:"duration",value:{hours:-8}})," h"),t("div",{key:"67bf890913db1d4907a7d8dc4a1386a85b30bb49"},t("smoothly-display",{key:"f38320854b7cbe1133ac214fda629cdb6e34fd04",style:{display:"inline"},type:"duration",value:{}})," h"),t("div",{key:"a0a553d3d7f1bf1e28c58f307e1cfc56dede0a86"},t("smoothly-display",{key:"dc28a4fab596e16a1180a6ff1d0ee081d2250efb",style:{display:"inline"},type:"duration",value:{minutes:-3}})," h"))),t("dt",{key:"cc4498418d1266333357fa9a47cfe267fefc4cb1"},"text"),t("dd",{key:"dbd253f9d092d730792090edc0d1c7294cd3268b"},t("smoothly-display",{key:"4b140b91c5b2e268dc691c4b2789ab1ad113cf9f",type:"text",value:"text"})),t("dt",{key:"7a7655e9282322688e901e034483e09aefe8dc69"},"postal code"),t("dd",{key:"3f880dcdad765deeb5bce0cfa92341cf08e42ceb"},t("smoothly-display",{key:"253b67d433924b812db35ac4b9442e8df6fb456e",type:"postal-code",value:"752 31"})),t("dt",{key:"a344618739cc1ce559ac80554f09405901643514"},"password"),t("dd",{key:"0f6f97055179d534b56754e9f4ffe868982f8364"},t("smoothly-display",{key:"0a95e73ffd18edec818388c6451e10e74ac25a1f",type:"password",value:"password"})),t("dt",{key:"d799959280bd357c59c1458620947ceb8261a8bc"},"email"),t("dd",{key:"6d822ad99d14d7ac68dfe5e60e76bc4f62039c60"},t("smoothly-display",{key:"df086753232838bbec2b4d6fe17a02e7640c7ec3",type:"email",value:"test@example.com"})),t("dt",{key:"eade96bd9319f2782533ad3ee6e73a279780dcc4"},"price"),t("dd",{key:"82580ddd52f3ec732054a92803c608241a03870c"},t("smoothly-display",{key:"db4df7924f25fe5c4b8c1ef79e4a2ccbfdb2b759",type:"price",value:"13.37",currency:"SEK"})),t("dt",{key:"6218fda2e606e48855cf22d2541a1b811f568a31"},"price without decimals"),t("dd",{key:"6f7b2d3f397e98bfcf7031739b8ded01b39c45b8"},t("smoothly-display",{key:"eec6de2446c60659d6fcfba09d1e1867dc5bb5f9",type:"price",value:200,currency:"SEK",toInteger:true})),t("dt",{key:"049e4dd01a1ecadf48febcb0c651b3a463373be7"},"price with decimals if they are set, otherwise no decimal"),t("dd",{key:"55b856f1380424862dc75ddb5a5d4ff9d6d4393b"},t("smoothly-display",{key:"d53fa00ba54c27011a7769bf89fb048d5ac43c2f",type:"price",value:200.2,currency:"SEK",toInteger:true})),t("dt",{key:"90d8a4d1e1649038656607cb0b65d805e3cb2aab"},"price with decimals"),t("dd",{key:"c9632b9d6252727300a101c585a8b26e5cc7fe51"},t("smoothly-display",{key:"fef95d8888886353708964a0bad03d716975c183",type:"price",value:200.2,currency:"SEK"})),t("dt",{key:"7abf3203c89e5c502717cd9757c937e582c1b6c7"},"percent"),t("dd",{key:"2fd5b7ec91de2fb4e0cbaf864ca258b852e88cca"},t("smoothly-display",{key:"0e241291b20784a4d802a83e15dadf318079f236",type:"percent",value:"42"})),t("dt",{key:"6c48237d73aba23ab3f35980f898eff5c2b87364"},"phone"),t("dd",{key:"53f16cee1b5c59599e8283cb4c22e751e8be1f3b"},t("smoothly-display",{key:"0338829b491a27c9d345cac5190203339c41ac6e",type:"phone",value:"0101881108"})),t("dt",{key:"afb89b8f0a49ad5bf1ef8bba4a51637f7ed57af1"},"card number"),t("dd",{key:"29e4eb02d6924ed8f7ac2797377ea3bf7b3e0623"},t("smoothly-display",{key:"745fefbafe113e1c12ace365f34c39938b3bb659",type:"card-number",value:"4111111111111111"})),t("dt",{key:"54a9b3bf222d4a9fa1bf1444b64fa7e6b4b7d5fd"},"card expires"),t("dd",{key:"a538c6af31872884cebb5e5667cd799d1cbe92dd"},t("smoothly-display",{key:"511a2c804811e9e1d3195d4ab8dad15e3e73cae4",type:"card-expires",value:"7/22"})),t("dt",{key:"16fa7df01a7d60ec01af68a37d196e35ff8d6503"},"card csc"),t("dd",{key:"0a3df0ba09f6fc7be53d17f0c87eece817a8145c"},t("smoothly-display",{key:"1351526da17988597fd739fe805a0da21689b520",type:"card-csc",value:"987"})),t("dt",{key:"4ac6ff219663982e06b96e7b3d7661b7317cee7f"},"date"),t("dd",{key:"6474b93898b9d357a4276a1801c0b1d739e8ae30"},t("smoothly-display",{key:"e6a43b2f91d87d9de7dd49583c97c93660157dfd",type:"date",value:"2022-07-07"})),t("dt",{key:"ad203d97c4b014f6235005882d1e35f32c37d291"},"date time"),t("dd",{key:"7869f2afaba99fd6c277707fd06dbc546e912377"},t("smoothly-display",{key:"c63424a1d505cedcd348aeddbc4083ec0fb99b43",type:"date-time",format:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"bad6623c83aa440db37bba77404a0e3261406359"},t("smoothly-display",{key:"70e4ab1844a5c575c54ef14314ce6f40423df47b",type:"date-time",format:{year:"2-digit",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},value:"2022-07-07T02:02:02Z"})),t("dd",{key:"b7d2b44b723b3d32e063a517034db9c6478a77c5"},t("smoothly-display",{key:"12492a2754ccdcfa781e2ef46a2579ad3bbb49a0",type:"date-time",format:{year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"72fda443ec030240fd29071d1a3eca87e2fa77d2"},t("smoothly-display",{key:"3bf63c1395a81d5da4c6594825a3120d99d36fd3",type:"date-time",format:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},value:"2022-07-07T12:22:24Z"})),t("dd",{key:"d9a5a251c68c83e51610bc8aac39c23a14a0da10"},t("smoothly-display",{key:"8a7438690f5b6ba0bbad4d676ebd161538024540",type:"date-time",format:{year:"numeric",month:"short",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"f426a55591ef6e03405cce72c0e64eaff677beb3"},t("smoothly-display",{key:"3402255ed959acefbc71333683b92dee43275d7d",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric"},value:"2022-07-07T00:00+02:00"})),t("dd",{key:"cc2b1b59c5d789358fb67a6d48a5a9cdf7fe599b"},t("smoothly-display",{key:"1f3a0edc25b8b9b34d6ffbe88787133bd145bc4c",type:"date-time",format:{year:"2-digit",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:"Europe/Stockholm"},value:"2022-07-07T12:15Z"})),t("dt",{key:"747992d0fa309d7c8cbd13d8eb7818accbb6d522"},"Display JSON"),t("dd",{key:"bc2d0785dbb216170fd320a3e7ba000d532e54ff"},t("smoothly-display-demo-json",{key:"6d23c6c7cc4720d60ea2160780f26ad10384d6f9"})))),t("h2",{key:"2e29c1a9d6b24b00ff6fc6c41201fecd16003684"},"With labels"),t("dd",{key:"e60a4cf0fa048db54972698f0c41c10dd420231f"},t("smoothly-display",{key:"c31dc1154af9e19ae130336862060106d3e1ca80",label:"Today",type:"date",value:k.now()}),t("smoothly-display",{key:"f442d5b680e29cffa32a35b5beab2281bb41d1e8",label:"Total amount",type:"price",currency:"SEK",value:6789}),t("smoothly-display",{key:"7054be327820ae495a87652e4eee220bd224835c",label:"Total amount",type:"price",currency:"GBP",value:678.9}),t("smoothly-display",{key:"164ed80432c0342192e83ddaea4f27a1b283b222",label:"Logs",type:"json",value:[{type:"trace",message:"Hello"},{type:"error",message:"Oh no!"}]})),t("fieldset",{key:"ae8fda6783a1045b24a90f73d95eb75fef524c3b"},t("h2",{key:"8b735feede5041d16621b35ab4ed65b4f6893e02"},"Test of different kinds of notifier"),t("button",{key:"eff36a6ecd92f817fcb196996b6677945e535c6a",onClick:()=>this.noticeWarning(L.warn("This is a test warning notice."))},"warning"),t("button",{key:"bedcbef25de624da67f1ce3b1d6413d7f170113e",onClick:()=>this.noticeWarning(L.succeeded("This is a test success notice."))},"success"),t("button",{key:"c6a9ac7dacf8cc450d2bfb02a2bcb85f484f0f24",onClick:()=>this.noticeWarning(L.failed("This is a test danger notice."))},"danger"),t("button",{key:"a31c5b25807dac6438f1d3aad447610260611dbf",onClick:()=>this.noticeWarning(L.execute("This is a test execute notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"execute"),t("button",{key:"6875bd9cadd9f5eedfdc1dc41a68ef602f3ba160",onClick:()=>this.noticeWarning(L.delay("This is a test delay notice.",(()=>new Promise((e=>window.setTimeout((()=>e([true,"This went great"])),3e3))))))},"delay")),t("fieldset",{key:"f7493cc029025477c394be2e48640f943e7d45df"},t("h2",{key:"14f549bdca342919dd0cc6b6e039b387ca9d5f47"},"Smoothly spinner"),t("div",{key:"2532ec422ca3c7f482fa2f80b8f0e188d00ed9e7",style:{width:"fit-content"}},"Large",t("smoothly-spinner",{key:"ca6bff694dfae13cbe31781fe75dc5a7f22726ce",size:"large",style:{"--spinner-background":"200,255,200","--spinner-background-opacity":"0.2","--spinner-color":"0,130,0"}})),t("div",{key:"94e96d5ea29719b5ed508879df5905db45e9b892",style:{width:"fit-content"}},"Medium",t("smoothly-spinner",{key:"a54f39247c27520000ec8a35acc4dca1eab61269",size:"medium"})),t("div",{key:"694bb6839a34c4d3c159674ac9d7b8764e715a0a",style:{width:"fit-content"}},"Small",t("smoothly-spinner",{key:"a4842814663b330faa6eb266722507dea1f1b0f0",size:"small"})),t("div",{key:"11dd2fd0047e3de22abe1de29f63ac56898b715e"},"Icon sized spinner on button",r.types.map((e=>t("smoothly-button",{size:"icon",color:e,shape:"rounded",onClick:()=>{this.downloadingSpinner=true;setTimeout((()=>this.downloadingSpinner=false),3e3)}},!this.downloadingSpinner&&t("smoothly-icon",{name:"download-outline"}),this.downloadingSpinner&&t("smoothly-spinner",{size:"icon",style:{"--spinner-background-opacity":"0"}}))))),t("h3",{key:"8e492b4dbad096875ccc36db465cd7441d33a6fa"},"Spinner with overlay"),t("div",{key:"00c85d4ee92d8f2cefec690537912abd43f97707",style:{position:"relative",height:"10em"}},"Large Overlay Spinner",t("smoothly-spinner",{key:"d340e0a508673de5a44756e13a85cedcfe328e71",overlay:true,size:"large",style:{"--spinner-background":"255,200,255","--spinner-background-opacity":"0.5","--spinner-color":"0,130,0"}})),t("div",{key:"016fe696e6e74e25bda569a1699e6049ac92c889",style:{position:"relative",height:"10em"}},"Medium Overlay Spinner",t("smoothly-spinner",{key:"66092e4011ae66dfaa436c55a39721be315c519a",overlay:true,color:"secondary",size:"medium"})),t("div",{key:"36a1cc846982bb5a1dc54c2f543c476b1fce8c91",style:{position:"relative",height:"10em"}},"Small Overlay Spinner",t("smoothly-spinner",{key:"b693e53a081661680f6a19ba81dacd2e41371902",overlay:true,size:"small"}))),t("fieldset",{key:"5a7e3b61ad86969f26a3679a58323a5a3e3eab65"},t("h2",{key:"bcc731681d6db9513cfc7391fcf3689233c2d540"},"Smoothly summary"),t("smoothly-summary",{key:"28698a792708b9630138d21a00bd6e367c8d2836"},t("p",{key:"43cddb839948c05ee1abe3e972b465601edcfa57",slot:"summary"},"Some title"),t("p",{key:"7e170421c947e618d3c88c2c78bc937cf895e7d5",slot:"content"},"Some content")),t("smoothly-summary",{key:"7766bc278e892e217b6e6441e41aa626d7ecf2d0",size:"large"},t("p",{key:"a0d83a3dacd955442983b2cbf086c95e5f54b87b",slot:"summary"},"Some title"),t("p",{key:"2d5957d9d8bd0d0ad1a8f0b11eb2ff211879c393",slot:"content"},"Some content")),t("smoothly-summary",{key:"9a03d40210651f64b7e3146b4f1f90d0af8e3b68",color:"danger",fill:"clear"},t("div",{key:"91888525a78ae6cf2bfbf492d4b8dc205d4ac1da",slot:"summary",style:{display:"flex",gap:"0.3rem"}},t("span",{key:"a22f933241a444da80c6d89b65275c4f6592609d"},"Person"),t("smoothly-icon",{key:"c79775e186b742d77715789887948c93c2c5867b",name:"person",color:"light",fill:"clear",size:"tiny"})),t("p",{key:"41b5c81feda26d37aab0d42093de072484c53045",slot:"content"},"Some person information.")),t("smoothly-summary",{key:"b7d82ffdf718528fbd038b9ce51490cbce1226fe",color:"danger",fill:"clear",open:true},t("p",{key:"f09c420f105318297999e44fb90b3e22f3a89a67",slot:"summary"},"Some other title"),t("p",{key:"b2761d6607e63756c7e0ee18a9da1f16f5c48969",slot:"content"},"A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.A lot more content, yes please. A lot more content, yes please. A lot more content, yes please. A lot more content, yes please.")),t("h2",{key:"de8ca3994652d8f1dd8b364d79879a8ee638f9e6"},"Label"),ro.map((e=>t("smoothly-label",{hue:e.hue,description:e.description,shape:"rectangle"},e.name))),t("smoothly-label",{key:"dd8c4d057d26e554b03aefc7a1cc63ccb4f162c4",color:"primary",description:"Using colors",shape:"rectangle"},"Primary")))]}};const ro=[{name:"2fa",hue:120,description:"User has two factor authentication enabled."},{name:"expired",hue:240,description:"User's password has expired."},{name:"inactive",hue:60,description:"User is inactive."}];const co=class{constructor(t){e(this,t)}render(){return t(s,{key:"a3e2a042bff06a25da98b43e95705b303a4e2d7c"},[0,1,3,undefined].map((e=>[t("div",null,"collapseDepth=",e!==null&&e!==void 0?e:"undefined"),t("div",null,t("smoothly-display",{type:"json",value:ho,collapseDepth:e}))])))}};const ho={name:"stringy",nested:{age:109,array:["one","two","three",{name:"four"}],emptyObject:{},emptyArray:[],truthy:true,falsy:false,null:null,notDefined:undefined,longString:"pepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakorpepparkakor"}};const mo=({value:e,collapseDepth:o})=>S().is(e)||Array.isArray(e)?t("smoothly-display-json-object",{value:e,collapseDepth:o}):t("smoothly-display-json-primitive",{value:e});const bo=".sc-smoothly-display-json-h{font-family:monospace}";const yo=bo;const uo=class{constructor(t){e(this,t);this.value=undefined;this.collapseDepth=undefined}render(){return t(mo,{key:"c09039321486768334c742e4efc26dab510d2ffc",value:this.value,collapseDepth:this.collapseDepth})}};uo.style=yo;const fo='.sc-smoothly-display-json-object-h{font-family:monospace;position:relative}[hidden].sc-smoothly-display-json-object-h{display:none}.indent.sc-smoothly-display-json-object{padding-left:1rem;border-left:1px solid rgb(var(--smoothly-light-shade))}.sc-smoothly-display-json-object-h:not(.open) .content.sc-smoothly-display-json-object{display:none}.sc-smoothly-display-json-object-h>.content.sc-smoothly-display-json-object>.indent.sc-smoothly-display-json-object:last-child>.comma.sc-smoothly-display-json-object{display:none}.open-bracket.sc-smoothly-display-json-object::after{background-color:rgb(var(--smoothly-light-color));color:rgb(var(--smoothly-light-shade));white-space:pre;border-radius:0.25rem;font-weight:bold;font-size:0.8em}.sc-smoothly-display-json-object-h:not(.open):not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▶ " attr(data-length) " ◀ "}.open.sc-smoothly-display-json-object-h:not(.empty)>.open-bracket.sc-smoothly-display-json-object::after{content:" ▼ "}';const po=fo;const go=class{constructor(t){e(this,t);this.openBracket="";this.closeBracket="";this.value=undefined;this.collapseDepth=undefined;this.open=undefined;this.empty=undefined}componentWillLoad(){this.open=typeof this.collapseDepth=="number"?this.collapseDepth>0:true;if(Array.isArray(this.value)){this.openBracket="[";this.closeBracket="]";this.length=this.value.length}else{this.openBracket="{";this.closeBracket="}";this.length=Object.keys(this.value).length}this.empty=this.length==0}render(){const e=typeof this.collapseDepth=="number"?Math.max(this.collapseDepth-1,0):undefined;return t(s,{key:"f0d5f6e755c48269ebeddd210961a91a45ac637c",class:{empty:this.empty,open:this.open}},t("span",{key:"9d8da480999cb92e162e1472c4cf0c4253033553",class:"open-bracket",onClick:()=>this.open=!this.open,"data-length":this.length},this.openBracket),t("span",{key:"4e540c3b7ab63546106d485b5e88849be5e497a3",class:"content"},Array.isArray(this.value)?this.value.map((o=>t("div",{class:"indent"},t(mo,{value:o,collapseDepth:e}),t("span",{class:"comma"},",")))):Object.entries(this.value).map((([o,s])=>t("div",{class:"indent"},t("smoothly-display-json-record-key",{value:o}),":"," ",t(mo,{value:s,collapseDepth:e}),t("span",{class:"comma"},","))))),t("span",{key:"b8bd52db35dcf7bc14de9fdfe3b928eebdc04d7a"},this.closeBracket))}};go.style=po;const ko=".sc-smoothly-display-json-primitive-h{font-family:monospace;display:inline;word-wrap:anywhere}[hidden].sc-smoothly-display-json-primitive-h{display:none}.string.sc-smoothly-display-json-primitive-h,.number.sc-smoothly-display-json-primitive-h,.boolean.sc-smoothly-display-json-primitive-h{font-weight:bold}.string.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-primary-color))}.number.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-secondary-color))}.boolean.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-tertiary-color))}.null.sc-smoothly-display-json-primitive-h,.undefined.sc-smoothly-display-json-primitive-h{color:rgb(var(--smoothly-medium-color))}";const vo=ko;const xo=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"2b2dbfe65a076ca4c5e5b4f16b9431eeca85ffbc",class:this.value==null?"null":typeof this.value},""+JSON.stringify(this.value))}};xo.style=vo;const wo=".sc-smoothly-display-json-record-key-h{font-family:monospace;display:inline;color:rgb(var(--smoothly-default-contrast))}[hidden].sc-smoothly-display-json-record-key-h{display:none}";const So=wo;const Co=class{constructor(t){e(this,t);this.value=undefined}render(){return t(s,{key:"e76d5030ff940c6a7d9acf859603e6be834a3b81"},'"',this.value,'"')}};Co.style=So;class zo{filter(e){return e.filter((e=>this.is(e)))}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}const jo=[e=>e instanceof zo?e:undefined];function _o(e){jo.push(e)}let To;function Io(e){To=e}function Lo(e){let t;for(const o of jo){t=o(e);if(t)break}return t||To}class Oo extends zo{constructor(){super();this.precedence=Number.MAX_SAFE_INTEGER;this.class="Always"}is(e){return true}toString(){return""}}Io(new Oo);class Ao extends zo{constructor(e){super();this.criteria=e;this.precedence=50;this.class="Any"}is(e){return e&&typeof e=="object"&&Object.getOwnPropertyNames(e).some((t=>this.criteria.is(e[t])||this.is(e[t])))}toString(){return this.criteria.stringify(this.precedence)}}class Eo extends zo{constructor(e){super();this.precedence=40;this.class="And";this.rules=e.reduce(((e,t)=>t instanceof Eo?[...e,...t.rules]:[...e,t]),[])}is(e){return this.rules.every((t=>t.is(e)))}toString(){return this.rules.map((e=>e.stringify(this.precedence))).join(" ")}generalize(){return new Eo(this.rules.map((e=>e.class=="Property"?e:new Ao(e))))}}function Do(...e){return new Eo(e.map(Lo))}var Mo;(function(e){e.is=$o})(Mo||(Mo={}));function $o(e,t=false){return typeof e=="number"||typeof e=="string"||e instanceof zo||t&&typeof e=="object"&&e&&Object.values(e).every((e=>Array.isArray(e)?e.every((e=>$o(e,true))):$o(e,true)))}var Ro=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};var Po={};var No={};var Fo={};var Ho={};var Uo={};(function(e){Object.defineProperty(e,"__esModule",{value:true});(function(e){e[e["Logging"]=0]="Logging";e[e["Debug"]=1]="Debug";e[e["Warning"]=2]="Warning";e[e["Recoverable"]=3]="Recoverable";e[e["Critical"]=4]="Critical"})(e.Level||(e.Level={}))})(Uo);Object.defineProperty(Ho,"__esModule",{value:true});const Yo=Uo;class Wo{constructor(e,t=Yo.Level.Recoverable,o="unknown",s){this.description=e;this.level=t;this.type=o;this.region=s}toString(){return Yo.Level[this.level]+": "+this.type+" error. "+this.description+(this.region?" @ "+this.region.toString():"")}}Ho.Message=Wo;Object.defineProperty(Fo,"__esModule",{value:true});const Bo=Ho;class Vo{raise(e,t,o,s){if(!(e instanceof Bo.Message))e=new Bo.Message(e,t,o,s);console.error(e.toString())}}Fo.ConsoleHandler=Vo;var Go={};var Ko={};Object.defineProperty(Ko,"__esModule",{value:true});class qo{constructor(e,t){this.line=e;this.column=t}toString(){return"Ln "+this.line+", Col "+this.column}}Ko.Position=qo;Object.defineProperty(Go,"__esModule",{value:true});const Zo=Ko;class Jo extends Zo.Position{constructor(e,t,o){super(t,o);this.resource=e}toString(){return this.resource.toString()+" @ "+super.toString()}}Go.Location=Jo;var Xo={};Object.defineProperty(Xo,"__esModule",{value:true});class Qo{constructor(e,t,o,s){this.resource=e;this.start=t;this.end=o;this.content=s}merge(e){return e?new Qo(this.resource,this.start,e.end,this.content?this.content:""+e.content?e.content:""):this}toString(){let e=this.resource.toString();if(this.start&&this.end)e+=" ("+this.start.toString()+" - "+this.end.toString()+") ";if(this.content)e+=this.content;return e}}Xo.Region=Qo;Object.defineProperty(No,"__esModule",{value:true});var es=Fo;No.ConsoleHandler=es.ConsoleHandler;var ts=Uo;No.Level=ts.Level;var os=Go;No.Location=os.Location;var ss=Ho;No.Message=ss.Message;var as=Ko;No.Position=as.Position;var is=Xo;No.Region=is.Region;var ns={};var ls={};var rs={};var cs={};var ds={};Object.defineProperty(ds,"__esModule",{value:true});class hs{constructor(e,t){this.name=e;this.password=t}get isEmpty(){return!this.name&&!this.password}toString(){let e="";if(this.name)e=this.name;if(this.password)e+=":"+this.password;return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new hs(o[0],o[1])}else t=new hs;return t}}ds.User=hs;var ms={};Object.defineProperty(ms,"__esModule",{value:true});class bs{constructor(e=[],t){this.host=e;this.port=t}get isEmpty(){return this.host.length==0&&!this.port}toString(){let e=this.host.join(".");if(this.port)e+=":"+this.port.toString();return e}static parse(e){let t;if(e){const o=e.split(":",2);t=new bs(o[0].split("."),o.length>1?parseInt(o[1]):undefined)}else t=new bs;return t}}ms.Endpoint=bs;Object.defineProperty(cs,"__esModule",{value:true});const ys=ds;const us=ms;class fs{constructor(e=new ys.User,t=new us.Endpoint){this.user=e;this.endpoint=t}get isEmpty(){return this.user.isEmpty&&this.endpoint.isEmpty}toString(){let e="";if(!this.user.isEmpty)e=this.user.toString()+"@";if(!this.endpoint.isEmpty)e=e+this.endpoint.toString();return e}static parse(e){let t;if(e){const o=e.split("@",2);t=new fs(ys.User.parse(o.length==2?o.pop():undefined),us.Endpoint.parse(o.pop()))}return t}}cs.Authority=fs;var ps={};Object.defineProperty(ps,"__esModule",{value:true});const gs=cs;class ks{constructor(e=[],t=new gs.Authority,o=[],s={},a){this.scheme=e;this.authority=t;this.path=o;this.query=s;this.fragment=a}get isRelative(){return this.path[0]=="."||this.path[0]==".."}get isFolder(){return this.path[this.path.length-1]==""}get folder(){return this.isFolder?this:new ks(this.scheme,this.authority,this.path.filter(((e,t)=>t<this.path.length-1)),this.query,this.fragment)}get name(){return this.path[this.path.length-1]}get extension(){const e=this.name.split(".");return e.length>1?e[e.length-1]:""}createArray(e,t){const o=[];while(t-- >0)o.push(e);return o}normalize(){let e=0;const t=this.path.reverse().filter(((t,o)=>{let s=false;if((t==""||t==".")&&o<this.path.length-1)s=false;else if(t=="..")e++;else if(e>0)e--;else s=true;return s})).concat(this.createArray("..",e)).reverse();return new ks(this.scheme,this.authority,t,this.query,this.fragment)}resolve(e){return!e?this:new ks(this.scheme.length>0?this.scheme:e.scheme,!this.authority.isEmpty?this.authority:e.authority,this.isRelative?e.folder.path.concat(this.path):this.path,this.query,this.fragment).normalize()}appendPath(e){return new ks(this.scheme,this.authority,e instanceof Array?[...this.path,...e]:[...this.path,e],this.query,this.fragment)}toString(){let e="";if(this.scheme.length>0)e+=this.scheme.join("+")+":";if(!this.authority.isEmpty)e+="//"+this.authority.toString();else if(this.scheme.length>0)e+="//";if(this.path){let t=this.path.join("/");if(t[0]!="."||e.length>0)t="/"+t;e+=t}if(Object.keys(this.query).length>0)e+="?"+this.query.toString();if(this.fragment)e+="#"+this.fragment;return e}static parse(e){let t;switch(e){case"":case null:case undefined:break;default:let o=true;let s=[];let a=e.split("://",2);if(a.length>1){s=(a.shift()||"").split("+");e=a.shift()}else if(e.slice(0,2)=="//")e=e.slice(2);else o=false;let i;let n;if(e&&(i=e.lastIndexOf("#"))>-1){n=e.slice(i+1);e=e.slice(0,i)}let l={};if(e&&(i=e.lastIndexOf("?"))>-1){l=new Object;e.slice(i+1).split(";").forEach((e=>{a=e.split("=");const t=a.shift();const o=a.shift();if(t&&o)l[t]=o}));e=e.slice(0,i)}let r;let c=[];if(e){a=e.split("/");if(a.length>0){switch(a[0]){case".":case"..":break;case"":a.shift();break;default:if(o)r=gs.Authority.parse(a.shift());else a.unshift(".");break}c=a}}t=new ks(s,r,c,l,n);break}return t}}ps.Locator=ks;ks.empty=new ks(undefined,undefined,undefined,undefined,undefined);Object.defineProperty(rs,"__esModule",{value:true});var vs=cs;rs.Authority=vs.Authority;var xs=ms;rs.Endpoint=xs.Endpoint;var ws=ps;rs.Locator=ws.Locator;var Ss=ds;rs.User=Ss.User;var Cs={};var zs={};var js={};Object.defineProperty(js,"__esModule",{value:true});class _s{}js.Device=_s;Object.defineProperty(zs,"__esModule",{value:true});const Ts=js;class Is extends Ts.Device{}zs.InDevice=Is;Object.defineProperty(Cs,"__esModule",{value:true});const Ls=zs;class Os extends Ls.InDevice{static addOpener(e,t){if(!t)t=0;Os.openers.push({open:e,priority:t});Os.openers=Os.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){let t;let o=0;do{t=Os.openers[o++].open(e)}while(!t&&o<Os.openers.length);return t}}Cs.Reader=Os;Os.openers=[];Object.defineProperty(ls,"__esModule",{value:true});const As=rs;const Es=No;const Ds=Cs;var Ms=Cs;ls.Reader=Ms.Reader;class $s extends Ds.Reader{constructor(e){super();this.backend=e;this.buffer=[];this.lastContent="";this.lastMark=this.locationValue=this.backend.location}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return!!this.backend}get opened(){return!!this.backend}get isEmpty(){return(this.buffer.length==0||this.buffer[0].data=="\0")&&this.backend.isEmpty}get resource(){const e=this.location;return e?e.resource:As.Locator.empty}get location(){return this.locationValue}get region(){return new Es.Region(this.resource,this.lastMark,this.location,this.lastContent)}close(){return this.backend.close()}peek(e){if(!e)e=1;let t;while(e>this.buffer.length&&(t=this.backend.read()))this.buffer.push({data:t,location:this.backend.location});return this.buffer.length==0?undefined:this.buffer.slice(0,e>this.buffer.length?this.buffer.length:e).map((e=>e.data)).join("")}read(e){if(!e)e=1;const t=this.peek(e);if(t&&t.length>0){this.locationValue=this.buffer[t.length-1].location;this.buffer.splice(0,t.length);this.lastContent+=t}return t}peekIs(e,t){let o;if(e)if(typeof e=="string"){const s=e;while(t&&t-- >0)e+=s;o=this.peek(e.length)==e?e:undefined}else if(e.length>0&&!(o=this.peekIs(e[0]))&&e.length)o=this.peekIs(e.slice(1));return o}readIf(e){let t;if(e)if(typeof e=="string")t=this.peek(e.length)==e&&this.read(e.length)||undefined;else if(e.length>0&&!(t=this.readIf(e[0]))&&e.length)t=this.readIf(e.slice(1));return t}readAll(){let e="";while(this.peek())e+=this.read();return e!=""?e:undefined}mark(){const e=this.region;this.lastMark=this.location;this.lastContent="";return e}static create(e){return e?new $s(e):undefined}}ls.BufferedReader=$s;var Rs={};var Ps={};var Ns=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(Ps,"__esModule",{value:true});function Fs(e){return Ns(this,void 0,void 0,(function*(){}))}Ps.close=Fs;function Hs(e){return Ns(this,void 0,void 0,(function*(){}))}Ps.fsync=Hs;function Us(e,t,o){return Ns(this,void 0,void 0,(function*(){return 0}))}Ps.open=Us;function Ys(e,t,o,s){return Ns(this,void 0,void 0,(function*(){return{bytesWritten:0}}))}Ps.write=Ys;function Ws(e,t){return{isDirectory:()=>false}}Ps.lstatSync=Ws;function Bs(e){return[]}Ps.readdirSync=Bs;function Vs(e,t){return""}Ps.readFileSync=Vs;var Gs={};Object.defineProperty(Gs,"__esModule",{value:true});const Ks="/";Gs.sep=Ks;var qs={};var Zs=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(qs,"__esModule",{value:true});const Js=No;const Xs=rs;const Qs=Cs;class ea extends Qs.Reader{constructor(e,t){super();this.content=e;this.resource=t;this.tabSize=2;this.count=0;this.line=1;this.column=1;this.lastContent="";this.readable=true;this.content+="\0";this.lastPosition=this.location}get opened(){return this.count+1>=this.content.length}get isEmpty(){return this.opened}get location(){return new Js.Location(this.resource,this.line,this.column)}get region(){return new Js.Region(this.resource,this.lastPosition,this.location,this.lastContent)}close(){return Zs(this,void 0,void 0,(function*(){const e=!(yield this.isEmpty);if(e)this.count=this.content.length;return e}))}read(){let e;if(this.count<this.content.length)e=this.content.charAt(this.count);else if(this.count==this.content.length)e=undefined;this.count++;if(e){switch(e){case"\n":this.line++;this.column=1;break;case"\t":this.column+=this.tabSize;break;default:this.column++;break}this.lastContent+=e}return e}mark(){const e=this.region;this.lastPosition=this.location;this.lastContent="";return e}static create(e,t){return e!=undefined?new ea(e,t||Xs.Locator.empty):undefined}}qs.StringReader=ea;Object.defineProperty(Rs,"__esModule",{value:true});const ta=Ps;const oa=Gs;const sa=rs;const aa=Cs;const ia=qs;class na extends aa.Reader{constructor(e){super();this.backend=e}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.backend.isEmpty}get resource(){return this.backend?this.backend.resource:sa.Locator.empty}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){return this.backend.read()}mark(){return this.backend.mark()}static open(e){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=ia.StringReader.create(ta.readFileSync((e.isRelative?"":oa.sep)+e.path.join(oa.sep),"utf-8"),e)}catch(t){console.log(`Failed to open file: ${e.toString()}`)}return t?new na(t):undefined}}Rs.FileReader=na;aa.Reader.addOpener((e=>na.open(e)),10);var la={};var ra=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(la,"__esModule",{value:true});const ca=Ps;const da=Gs;const ha=rs;const ma=No;const ba=Cs;const ya=Rs;class ua extends ba.Reader{constructor(e){super();this.files=e;this.tabSizeValue=2;this.lastLocation=new ma.Location(ha.Locator.empty,0,0)}get tabSize(){return this.tabSizeValue}set tabSize(e){this.tabSizeValue=e;if(this.current)this.current.tabSize=e}get readable(){return this.current!=undefined&&this.current.readable||this.files.length>0}get opened(){return this.current!=undefined||this.files.length>0}get isEmpty(){return this.files.length==0&&(!this.current||this.current.isEmpty)}get resource(){return this.current?this.current.resource:this.lastLocation.resource}get location(){return this.current?this.current.location:this.lastLocation}get region(){return this.current?this.current.region:new ma.Region(this.resource)}close(){return ra(this,void 0,void 0,(function*(){return this.current!=undefined&&(yield this.current.close())}))}read(){let e;if(!this.current&&this.files.length>0){this.current=ya.FileReader.open(this.files.shift());this.current.tabSize=this.tabSize}if(this.current){e=this.current.read();if(e==undefined||e=="\0"){this.current.close();this.current=undefined}}this.lastLocation=this.location;return e}mark(){return this.current?this.current.mark():new ma.Region(this.resource)}static getFiles(e,t,o=[]){let s=[];const a=ca.readdirSync(e);a.forEach((a=>{const i=e+da.sep+a;if(o.indexOf(i)==-1){if(ca.lstatSync(i).isDirectory())s=s.concat(ua.getFiles(i,t,o));else if(a.length>t.length&&a.lastIndexOf(t,a.length-t.length)===a.length-t.length)s.push(i)}}));return s}static open(e){let t;try{if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file")&&e.isFolder||e.name.match("*"))t=ua.getFiles((e.isRelative?"":da.sep)+e.folder.path.join(da.sep),e.extension)}catch(e){}return t?new ua(t.map((e=>new ha.Locator(["file"],undefined,e.split(da.sep))))):undefined}}la.FolderReader=ua;ba.Reader.addOpener((e=>ua.open(e)),0);var fa={};var pa={};var ga={};var ka={};Object.defineProperty(ka,"__esModule",{value:true});function*va(e){let t;while((t=e())!=undefined)yield t}function xa(e){return e.next instanceof Function}function*wa(e,t){let o;while(!(o=e.next()).done)yield o.value;if(xa(t))while(!(o=t.next()).done)yield o.value;else yield t}class Sa{constructor(e){this.iterator=e instanceof Function?va(e):e}get length(){let e=0;while(!this.next().done)e++;return e}get last(){return this.nextValue&&!this.nextValue.done?this.nextValue.value:undefined}fetch(){const e=this.next();return e.done?undefined:e.value}next(e){return this.nextValue=this.iterator.next(e)}append(e){return new Sa(wa(this,e))}map(e){return new Sa((()=>{const t=this.fetch();return t!=undefined?e(t):undefined}))}reduce(e,t){const o=this.fetch();return o?this.reduce(e,e(t,o)):t}apply(e){const t=this.fetch();if(t){e(t);this.apply(e)}}filter(e){return new Sa((()=>{let t;do{t=this.fetch()}while(t!=undefined&&!e(t));return t}))}toArray(){const e=this.fetch();let t;if(!e)t=[];else{t=this.toArray();t.unshift(e)}return t}static from(e){return new Sa(e)}}ka.Enumerator=Sa;Sa.empty=Sa.from((()=>undefined));var Ca={};Object.defineProperty(Ca,"__esModule",{value:true});const za=ka;function ja(e){return e==null?false:typeof e[Symbol.iterator]==="function"}class _a{constructor(e){this.get=e}get length(){return this.get().length}get first(){return this.get().fetch()}get last(){return this.get().last}getEnumerator(){return new za.Enumerator(this.get())}[Symbol.iterator](){return this.getEnumerator()}append(e){return new _a((()=>this.get().append(e)))}map(e){return new _a((()=>this.get().map(e)))}reduce(e,t){return this.get().reduce(e,t)}apply(e){this.get().apply(e)}filter(e){return new _a((()=>this.get().filter(e)))}toArray(){return this.getEnumerator().toArray()}static from(e){return ja(e)?new _a((()=>new za.Enumerator(e[Symbol.iterator]()))):new _a((()=>{const t=e();return t instanceof za.Enumerator?t:new za.Enumerator(t)}))}}Ca.Enumerable=_a;_a.empty=_a.from([]);var Ta={};Object.defineProperty(Ta,"__esModule",{value:true});const Ia=ka;class La extends Ia.Enumerator{constructor(e){super((()=>this.position<this.backend.length?this.backend[this.position++]:undefined));this.backend=e;this.position=0}}Ta.ArrayEnumerator=La;var Oa={};Object.defineProperty(Oa,"__esModule",{value:true});const Aa=ka;class Ea extends Aa.Enumerator{constructor(e){super((()=>{const e=this.peek(0);if(this.buffer.length>0)this.buffer.shift();return e}));this.backend=e;this.buffer=[]}peek(e){if(!e)e=0;let t;while(e>this.buffer.length-1&&(t=this.backend.fetch()))this.buffer.push(t);return e>this.buffer.length-1?undefined:this.buffer[e]}}Oa.BufferedEnumerator=Ea;var Da={};Object.defineProperty(Da,"__esModule",{value:true});class Ma{static padLeft(e,t,o){return Ma.pad(e,t,o,true)}static padRight(e,t,o){return Ma.pad(e,t,o,false)}static pad(e,t,o,s){let a="";const i=o-e.length;for(let e=0;e<i;e++)a+=t;return s?a+e:e+a}}Da.String=Ma;Object.defineProperty(ga,"__esModule",{value:true});var $a=ka;ga.Enumerator=$a.Enumerator;var Ra=Ca;ga.Enumerable=Ra.Enumerable;var Pa=Ta;ga.ArrayEnumerator=Pa.ArrayEnumerator;var Na=Oa;ga.BufferedEnumerator=Na.BufferedEnumerator;var Fa=Da;ga.String=Fa.String;var Ha={};Object.defineProperty(Ha,"__esModule",{value:true});const Ua=js;class Ya extends Ua.Device{}Ha.OutDevice=Ya;var Wa=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(pa,"__esModule",{value:true});const Ba=rs;const Va=ga;const Ga=Ha;class Ka extends Ga.OutDevice{constructor(){super(...arguments);this.newLineSymbol="\n"}write(e){return Wa(this,void 0,void 0,(function*(){return e instanceof Va.Enumerator?this.writeImplementation(e):e instanceof Array?this.writeImplementation(new Va.ArrayEnumerator(e)):this.writeImplementation(new Va.ArrayEnumerator([e]))}))}writeLine(e){return Wa(this,void 0,void 0,(function*(){return e instanceof Va.Enumerator?this.writeImplementation(e.append(this.newLineSymbol)):e instanceof Array?this.writeImplementation(new Va.ArrayEnumerator([...e,this.newLineSymbol])):e?this.writeImplementation(new Va.ArrayEnumerator([e,this.newLineSymbol])):this.writeImplementation(new Va.ArrayEnumerator([this.newLineSymbol]))}))}static addOpener(e,t){if(!t)t=0;Ka.openers.push({open:e,priority:t});Ka.openers=Ka.openers.sort(((e,t)=>t.priority-e.priority))}static open(e){return Wa(this,void 0,void 0,(function*(){let t;if(typeof e=="string"){const o=Ba.Locator.parse(e);t=o?yield Ka.open(o):undefined}else{let o=0;do{t=yield Ka.openers[o++].open(e)}while(!t&&o<Ka.openers.length)}return t}))}}pa.Writer=Ka;Ka.openers=[];Object.defineProperty(fa,"__esModule",{value:true});const qa=pa;class Za extends qa.Writer{constructor(e){super();this.backend=e;this.autoFlush=true;this.indentionSymbol="\t";this.indentionCount=0;this.indentNext=false}get resource(){return this.backend.resource}get opened(){return this.backend.opened}get writable(){return this.backend.writable}flush(){return this.backend.flush()}close(){return this.backend.close()}increase(){this.indentionCount++;return true}decrease(){this.indentionCount--;return this.indentionCount>=0}getIndention(){return this.indentionSymbol.repeat(this.indentionCount)}writeImplementation(e){const t=[];let o;let s=e.fetch();if(s)do{o=s;s=e.fetch();if(this.indentNext)o=this.getIndention()+o;this.indentNext=o.endsWith(this.newLineSymbol);o=o.replace(this.newLineSymbol,this.newLineSymbol+this.getIndention());if(this.indentNext)o=o.substring(0,o.length-this.indentionCount*this.indentionSymbol.length);t.push(this.backend.write(o))}while(s);return Promise.all(t).then((e=>e.reduce(((e,t)=>e&&t),true)))}}fa.Indenter=Za;var Ja={};Object.defineProperty(Ja,"__esModule",{value:true});const Xa=Cs;const Qa=ls;class ei extends Xa.Reader{constructor(e,t){super();this.prefix=t;this.done=false;this.backend=e instanceof Qa.BufferedReader?e:Qa.BufferedReader.create(e)}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){return this.backend.close()}read(){let e;if(!this.done){e=this.backend.read();this.done=e=="\n"&&!this.backend.readIf(this.prefix)&&!this.backend.peekIs("\n")}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new ei(e,t):e}}Ja.PrefixReader=ei;var ti={};var oi=Ro&&Ro.__awaiter||function(e,t,o,s){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{r(s.next(e))}catch(e){i(e)}}function l(e){try{r(s["throw"](e))}catch(e){i(e)}}function r(e){e.done?o(e.value):a(e.value).then(n,l)}r((s=s.apply(e,t||[])).next())}))};Object.defineProperty(ti,"__esModule",{value:true});const si=Ps;const ai=Gs;const ii=pa;class ni extends ii.Writer{constructor(e,t){super();this.resource=e;this.descriptor=t;this.autoFlush=false}get opened(){return this.descriptor>0}get writable(){return this.descriptor>0}flush(){return oi(this,void 0,void 0,(function*(){let e=true;try{yield si.fsync(this.descriptor)}catch(t){e=false}return e}))}close(){return oi(this,void 0,void 0,(function*(){let e=this.opened;if(e){try{yield si.close(this.descriptor)}catch(t){e=false}this.descriptor=0}return e}))}writeImplementation(e){return oi(this,void 0,void 0,(function*(){let t=true;const o=Buffer.from(e.reduce(((e,t)=>e+t),""));try{const e=yield si.write(this.descriptor,o,0,"utf8");t=e.bytesWritten==o.length}catch(e){t=false}return t&&(!this.autoFlush||(yield this.flush()))}))}static open(e){return oi(this,void 0,void 0,(function*(){let t;if(e&&(e.scheme.length==0||e.scheme.length==1&&e.scheme[0]=="file"))try{t=yield si.open((e.isRelative?"":ai.sep)+e.path.join(ai.sep),"w")}catch(e){t=undefined}return t?new ni(e,t):undefined}))}}ti.FileWriter=ni;ii.Writer.addOpener(ni.open);var li={};Object.defineProperty(li,"__esModule",{value:true});const ri=Cs;const ci=ls;class di extends ri.Reader{constructor(e,t){super();this.endMark=t;this.done=false;this.backend=e instanceof ci.BufferedReader?e:ci.BufferedReader.create(e);this.done=this.backend.peekIs(this.endMark)!=undefined}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const e=!this.done;if(e)this.done=true;return Promise.resolve(e)}read(){let e;if(!this.done){e=this.backend.read();this.done=this.backend.peekIs(this.endMark)!=undefined}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new di(e,t):e}}li.TillReader=di;var hi={};Object.defineProperty(hi,"__esModule",{value:true});const mi=Cs;const bi=ls;class yi extends mi.Reader{constructor(e,t){super();this.endMark=t;this.done=-1;this.backend=e instanceof bi.BufferedReader?e:bi.BufferedReader.create(e);const o=this.backend.peekIs(this.endMark);if(o)this.done=o.length}get tabSize(){return this.backend.tabSize}set tabSize(e){this.backend.tabSize=e}get readable(){return this.backend.readable}get opened(){return!this.done&&this.backend.opened}get isEmpty(){return this.done==0||this.backend.isEmpty}get resource(){return this.backend.resource}get location(){return this.backend.location}get region(){return this.backend.region}close(){const e=this.done>0;if(e)this.done=0;return Promise.resolve(e)}read(){let e;if(this.done!=0){e=this.backend.read();let t;if(this.done>0)this.done--;else if(t=this.backend.peekIs(this.endMark))this.done=t.length}return e}mark(){return this.backend.mark()}static create(e,t){return e&&t?new yi(e,t):e}}hi.UntilReader=yi;Object.defineProperty(ns,"__esModule",{value:true});var ui=ls;ns.BufferedReader=ui.BufferedReader;var fi=js;ns.Device=fi.Device;var pi=Rs;ns.FileReader=pi.FileReader;var gi=la;ns.FolderReader=gi.FolderReader;var ki=fa;ns.Indenter=ki.Indenter;var vi=zs;ns.InDevice=vi.InDevice;var xi=Ha;ns.OutDevice=xi.OutDevice;var wi=Ja;ns.PrefixReader=wi.PrefixReader;var Si=Cs;ns.Reader=Si.Reader;var Ci=qs;ns.StringReader=Ci.StringReader;var zi=ti;ns.FileWriter=zi.FileWriter;var ji=li;ns.TillReader=ji.TillReader;var _i=hi;ns.UntilReader=_i.UntilReader;var Ti=pa;ns.Writer=Ti.Writer;Object.defineProperty(Po,"__esModule",{value:true});const Ii=No;var Li=Po.Error=Ii;const Oi=ns;var Ai=Po.IO=Oi;const Ei=rs;Po.Uri=Ei;const Di=ga;var Mi=Po.Utilities=Di;class $i extends Ai.BufferedReader{constructor(e,t){super(typeof e=="string"?Ai.StringReader.create(e):e);this.errorHandler=t}raise(e,t,o="lexical",s){if(!(e instanceof Li.Message)){if(!t)t=Li.Level.Critical;if(!s)s=this.region;e=new Li.Message(e,t,o,s)}if(this.errorHandler)this.errorHandler.raise(e)}requirePrefix(e){return new $i(new Ai.PrefixReader(this,e),this.errorHandler)}till(e){return new $i(Ai.TillReader.create(this,e),this.errorHandler)}until(e){return new $i(Ai.UntilReader.create(this,e),this.errorHandler)}peekIsSymbol(e){return this.peekIs(e??["!","(",")","[","]","|","*",":",".","<=",">=","<",">"," * "," + "," - "," / ",","])?.length??false}peekIsWhitespace(){return!!this.peekIs([" ","\n","\t"])}}function Ri(e,t,o){const s=new $i(e,t);return new Mi.Enumerator((()=>{let e;let t=1;if(!s.isEmpty){while(s.peekIsWhitespace()&&!s.peekIsSymbol(o))s.read();if(t=s.peekIsSymbol(o))e={value:s.read(t)||"",region:s.mark()};else{let t="";while(!s.isEmpty&&!s.peekIsWhitespace()&&!s.peekIsSymbol(o))t+=s.read();if(t)e={value:t,region:s.mark()}}}return e}))}class Pi{tokenize(e){return Ri(e,undefined,["!","(",")","[","]","|"," | ","*",":",".","<=",">=","<",">"," * "," + ","+"," - ","-"," / "]).map((e=>({value:e.value}))).toArray()}}class Ni extends Pi{constructor(e){super();this.class="array";this.array=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return Ni.completor.flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])}isType(e){return global.Array.isArray(e)}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Ni}}Ni.completor=[];var Fi;(function(e){function t(e){return typeof e=="object"&&typeof e.start=="number"&&typeof e.end=="number"}e.is=t})(Fi||(Fi={}));var Hi;(function(e){function t(e){return e.map((e=>typeof e.cursor=="number"?e.value.slice(0,e.cursor)+"_"+e.value.slice(e.cursor,e.value.length):e.value+"_"))}e.stringify=t;function o(e,t,s){return Array.isArray(t)?t.map((t=>o(e,t,s))):{value:e+t.value+(s??""),cursor:typeof t?.cursor=="number"?t?.cursor+e.length:Fi.is(t.cursor)?{start:t.cursor.start+e.length,end:t.cursor.end+e.length}:t.value.length+e.length,suggestion:t.suggestion}}e.prepend=o})(Hi||(Hi={}));class Ui extends Pi{constructor(){super();this.class="boolean"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;const a=o?Ui.literals.filter((e=>e.value.startsWith(s[0]?.value??""))):s[0]?.value==":"?Hi.prepend(":",Ui.literals.filter((e=>e.value.startsWith(s[1]?.value??"")))):[];return[...a??[],...(o?[]:Ui.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e=="boolean"}static add(...e){this.completor.push(...e)}}Ui.literals=[{value:"true",suggestion:{value:"true"}},{value:"false",suggestion:{value:"false"}}];Ui.completor=[];var Yi;(function(e){function t(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e.length<=3&&e[0].value==":"&&o.value.startsWith(e[1]?.value??"")&&(e[2]?.value??"(")=="("?Hi.prepend(":",[o]):e.length<=4&&e.slice(0,4).reduce(((e,t)=>e+t.value),"")==":"+o.value?Hi.prepend(":"+o.value.substring(0,o.value.length-1),t(),")"):e.length==5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[4].value==":"+o.value?Hi.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):e.length>5&&e.slice(0,3).reduce(((e,t)=>e+t.value),"")+e[e.length-1].value==":"+o.value?Hi.prepend(":"+o.value.substring(0,o.value.length-1),t(e.slice(3,e.length-1)),")"):[]}e.functions=t;function o(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1?Hi.prepend(":",[o]):Hi.prepend(":",t(e.slice(1)))}e.expressions=o;function s(e,t,o){return e.length>=1&&e[0].value==o.value?Hi.prepend(o.value,t(e.slice(1))):e.length==0||e.length==1&&o.value.startsWith(e[0].value)||e[0].value==o.value.replace(/ /g,"")?[o]:[]}e.operators=s})(Yi||(Yi={}));class Wi extends Pi{constructor(e){super();this.input=e;this.class="number";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return[...s.length>0&&s[0].value==":"&&t?Hi.prepend(":",t.complete(s.slice(1),undefined,this)):t&&s.length>=0&&o?Hi.prepend(" ",t?.complete(s,undefined,undefined)):[],...(o?Wi.completorArgument:Wi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return isNaN(+e)?false:true}static add(...e){this.completor.push(...e)}static addArgument(...e){this.completorArgument.push(...e)}static is(e){return e instanceof Wi||!global.Number.isNaN(e)}}Wi.completor=[];Wi.completorArgument=[];class Bi extends Pi{constructor(e){super();this.properties=e;this.class="object";this.completions=Object.keys(this.properties).map((e=>({value:e,suggestion:{value:e}})))}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;const i=this.filterByType(o);if(!t){const e=s.length>0?this.match(s[0],i):undefined;if(e)a=s.length>=1?Hi.prepend(e.value,this.properties[e.value].complete(s.slice(1),this,o)):[];else if(o&&s.length>2&&o.isType(s[0].value+s[1].value+s[2].value))a=Hi.prepend(s[0].value+s[1].value+s[2].value,o.complete(s.slice(3),this,o));else if(o&&s.length>0&&o.isType(s[0].value))a=Hi.prepend(s[0].value,o.complete(s.slice(1),this,o));else{let e;a=s.length==0?[...this.addDot(i,o),...o?.class=="number"?[]:Bi.wildcard]:s.length==1&&(e=Bi.wildcard.find((e=>e.value==s[0].value)))?Hi.prepend(e.value,this.completions,o?".":""):s.length>=1&&(e=Bi.wildcard.find((e=>e.value==s[0].value)))?Hi.prepend(e.value,this.complete(s.slice(1))):this.addDot(this.partial(s[0],i),o)}}else a=s.length==0?[{value:".",suggestion:{value:"."}}]:s[0].value!="."?[]:s.length==1?Hi.prepend(".",this.addDot(i,o)):this.properties[s[1].value]?Hi.prepend("."+s[1].value,this.properties[s[1].value].complete(s.slice(2),t,o)):Hi.prepend(".",this.addDot(this.partial(s[1],i),o));return[...a.reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[]),...Bi.completor.flatMap((e=>e(s,this,t)))]}filterByType(e){return e?this.completions.filter((t=>this.properties[t.value].class==e.class||(this.properties[t.value].class=="object"?this.properties[t.value].filterByType(e).length>0:false))):this.completions}addDot(e,t){return!e?[]:t?e.map((e=>this.properties[e.value].class=="object"?{value:e.value+".",suggestion:{value:e.suggestion?.value+"."}}:e)):e}partial(e,t){const o=t.filter((t=>t.value.startsWith(e.value)));return o&&o.length>0?o:undefined}match(e,t){const o=t.filter((t=>t.value==e.value));return o&&o.length>0?o[0]:undefined}isType(e){return false}static add(...e){this.completor.push(...e)}}Bi.wildcard=[{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}];Bi.completor=[];class Vi extends Pi{constructor(e){super();this.class="string";if(e)this.value=e}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;let a;if(o)a=this.value?.startsWith(s[0]?.value??"")?[{value:this.value,suggestion:{value:this.value}}]:undefined;else a=s.length==0||s[0].value!=":"?undefined:this.value?.startsWith(s[1]?.value??"")?[Hi.prepend(":",{value:this.value,suggestion:{value:this.value}})]:undefined;return[...a??[],...(o?[]:Vi.completor).flatMap((e=>e(s,this,t))).reduce(((e,t)=>e.some((e=>e.value==t.value&&e.cursor==t.cursor))?e:[...e,t]),[])]}isType(e){return typeof e.value=="string"}static add(...e){this.completor.push(...e)}static is(e){return e instanceof Vi}}Vi.completor=[];class Gi extends Pi{constructor(e){super();this.type=e;this.class="union"}complete(e,t,o){const s=typeof e=="string"?this.tokenize(e):e;return this.type?this.type?.flatMap((e=>e?.complete(s,t,o)??[])):[]}isType(e){return e instanceof Gi}static is(e){return e instanceof Gi}}var Ki;(function(e){function t(e,t){const o=e.complete(t);return o.filter((e=>!t.includes(e.value)&&e.suggestion?.value)).map((e=>({full:e.value,cursor:e?.cursor??e.value.length,addon:e?.suggestion?.value,description:e?.suggestion?.description})))}e.complete=t;function o(e){let t;switch(typeof e){case"object":t=global.Array.isArray(e)?new Ni(e.map((e=>o(e)))):new Bi(global.Object.entries(e).reduce(((e,t)=>({...e,[t[0]]:o(t[1])})),{}));break;case"string":t=new Vi(e);break;default:t=new Wi(e);break}return t}e.convert=o;e.Array=Ni;e.Boolean=Ui;e.Completion=Hi;e.Object=Bi;e.String=Vi;e.Number=Wi;e.Union=Gi;e.Completor=Yi})(Ki||(Ki={}));class qi extends zo{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="EndsWith"}is(e){return typeof e=="string"&&e.endsWith(this.needle)}toString(){return`*${this.needle}`}}function Zi(e,t){return Yi.expressions(e,(e=>!e||e[0].value=="*"&&t.value&&t.value.endsWith(e[1]?.value??"")?[Ki.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}})]:[]),{value:"*",suggestion:{value:"*",description:"endswith"}})}Ki.String.add(Zi);class Ji extends zo{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Every"}is(e){return Array.isArray(e)&&e.every((e=>this.criteria.is(e)))}toString(){return`every(${this.criteria.toString()})`}}function Xi(e,t){const o=e=>t.array.some(Ki.String.is)&&e?t.array.filter(Ki.String.is).map((t=>t.complete([{value:":"},...e]))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Ki.String.is)?t.array.filter(Ki.String.is).map((e=>({value:e?.value??""}))):t.array.some(Ki.Number.is)&&e?t.array.filter(Ki.Number.is).map((t=>t.complete(e))).reduce(((e,t)=>Array.isArray(t)?e.concat(t):t?[...e,t]:e),[]):!e&&t.array.some(Ki.Number.is)?t.array.filter(Ki.Number.is).map((e=>({value:(e?.value??"").toString()}))):[];return Yi.functions(e,o,{value:"every()",cursor:6,suggestion:{value:"every()"}})}Ki.Array.add(Xi);class Qi extends zo{constructor(e,t,o){super();this.identifier=e;this.argument=t;this.definition=o;this.precedence=85;this.class="FunctionCall"}is(e){return this.definition?.is(e)??true}toString(){return`${this.identifier}(${this.argument.join(", ")})`}}class en{stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}}class tn extends en{constructor(e,t){super();this.name=t;this.precedence=tn.precedence;this.class="Value";if(typeof e=="string")this.value=isNaN(+e.replace(",","."))?e:+e.replace(",",".");else this.value=e}toString(){return this.name?`${this.name?.toString()}.`+this.value.toString():this.value.toString()}evaluate(e){return e?this.get(e):+this.value}get(e){return typeof this.value=="string"?+e[this.value]:this.name&&typeof this.value=="object"?this.value.get(e[this.name]):+this.value}static create(e,t){return new tn(e,t)}}tn.precedence=19;class on extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThan";this.symbol=">"}is(e,t){return(isNaN(+e)?e:+e)>(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function sn(e,t,o){return Ki.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">",suggestion:{value:">"}})}Ki.Number.add(sn);Ki.String.add(sn);class an extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="GreaterThanOrEqual";this.symbol=">="}is(e,t){return(isNaN(+e)?e:+e)>=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function nn(e,t,o){return Ki.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:">=",suggestion:{value:">="}})}Ki.Number.add(nn);Ki.String.add(nn);class ln extends zo{constructor(e){super();this.property=e;this.precedence=85;this.class="Has"}is(e,t){return typeof e=="object"&&e?Object.entries(e).some((e=>{t=typeof t=="string"?t:this.property;return e[0]==t?true:typeof e[1]=="object"&&e[1]?this.is(e[1],t.includes(".")&&t.split(".")[0]==e[0]?t.split(".")[1]:undefined):false})):false}toString(){return`has(${this.property})`}}function rn(e,t,o){return o&&t?.class=="object"?Yi.functions(e,(e=>t.completions.filter((t=>t.value.startsWith(e?e[0].value:"")))),{value:"has()",cursor:4,suggestion:{value:"has()"}}):[]}Ki.Object.add(rn);class cn extends zo{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Includes"}is(e){return typeof e=="string"&&e.includes(this.needle)}toString(){return`*${this.needle}*`}}function dn(e,t){const o=new cn(e);return t?o.is(t):o}function hn(e,t){return Yi.expressions(e,(e=>!e||e.length==3&&t.value?.includes(e[1].value)&&t.value!=e[1].value||e.length==2&&e[0].value+e[1].value=="**"?[Ki.Completion.prepend("*",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:e.length==1&&e[0].value=="*"?[{value:"**",suggestion:{value:"**",description:"includes"}}]:[]),{value:"**",cursor:1,suggestion:{value:"**",description:"includes"}})}Ki.String.add(hn);class mn extends zo{constructor(e){super();this.criteria=e;this.precedence=100;this.class="Some"}is(e,t){return Array.isArray(e)&&e.some((e=>this.criteria.is(e,t)))}toString(){return`some(${this.criteria.toString()})`}}function bn(e,t){const o=new mn(Lo(e));return t?o.is(t):o}function yn(e,t,o){return e.length==0?[{value:":",suggestion:{value:":"}}]:e[0].value!=":"?[]:e.length==1&&e[0].value==":"?Ki.Completion.prepend(":",t.array.filter(Ki.String.is).filter((e=>e.value&&e.value!="string")).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):e.length==2&&e[0].value==":"?Ki.Completion.prepend(":",t.array.filter(Ki.String.is).filter((t=>t.value&&t.value!="string"&&t.value.startsWith(e[1].value))).map((e=>({value:e?.value??"",suggestion:{value:e?.value??""}})))):[]}Ki.Array.add(yn);class un extends zo{constructor(e){super();this.value=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Is";this.symbol=":"}is(e,t){return Array.isArray(e)&&$o(this.value)?bn(this.value,e):(typeof e=="boolean"?e.toString():isNaN(+e)?e:+e)==(typeof this.value=="object"?this.value.evaluate(t):this.value)}toString(){return this.value.toString()}}_o((e=>typeof e=="bigint"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"?new un(e):undefined));class fn extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThan";this.symbol="<"}is(e,t){return(isNaN(+e)?e:+e)<(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function pn(e,t,o){return Ki.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<",suggestion:{value:"<"}})}Ki.Number.add(pn);Ki.String.add(pn);class gn extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="LesserThanOrEqual";this.symbol="<="}is(e,t){return(isNaN(+e)?e:+e)<=(this.value instanceof tn&&typeof this.value.value=="string"&&this.value.value.includes("-")||typeof this.value!="object"?this.value:this.value.evaluate(t))}toString(){return this.value.toString()}}function kn(e,t,o){return Ki.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,t):[]),{value:"<=",suggestion:{value:"<="}})}Ki.Number.add(kn);Ki.String.add(kn);function vn(e,t){return Yi.expressions(e,(e=>e&&e?.length==1&&e[0].value=="/"?[{value:"//",cursor:1}]:[]),{value:"//",cursor:1,suggestion:{value:"//",description:"match"}})}Ki.String.add(vn);class xn extends zo{constructor(e){super();this.criteria=e;this.precedence=xn.precedence;this.class="Not"}is(e){return!this.criteria.is(e)}toString(){return`!${this.criteria.stringify(this.precedence)}`}}xn.precedence=90;function wn(e,t){const o=new xn(Lo(e));return t?o.is(t):o}function Sn(e,t,o){return t&&t.class!="object"&&o?Yi.expressions(e,(e=>e[0].value!="!"?[]:Ki.Completion.prepend("!",t.complete(e.slice(1),o,t))),{value:"!",cursor:1,suggestion:{value:"!",description:"not"}}):[]}Ki.String.add(Sn);Ki.Number.add(Sn);Ki.Boolean.add(Sn);Ki.Object.add(Sn);class Cn extends zo{constructor(e){super();this.precedence=Cn.precedence;this.class="Or";this.criteria=e.reduce(((e,t)=>t instanceof Cn?[...e,...t.criteria]:[...e,t]),[])}is(e){return this.criteria.some((t=>t.is(e)))}toString(){return this.criteria.map((e=>e.stringify(this.precedence))).join(" | ")}}Cn.precedence=30;function zn(e,t,o){return Ki.Completor.operators(e,(e=>e&&o?o?.complete(e,undefined,undefined):[]),{value:" | ",suggestion:{value:"|",description:"or"}})}Ki.Number.addArgument(zn);class jn extends Mi.BufferedEnumerator{constructor(e,t){super(Array.isArray(e)?new Mi.ArrayEnumerator(e):e);this.errorHandler=t}clone(e="(",t=")"){let o=0;return new jn(new Mi.Enumerator((()=>{let s;if(this.peekIs(e))o++;else if(this.peekIs(t))o--;if(o>=0)s=this.fetch();return s})),this)}peekIs(...e){return e.every(((e,t)=>{const o=this.peek(t);return o&&o.value&&jn.is(e,o.value)}))}fetchIf(...e){const t=[];if(this.peekIs(...e))e.forEach((e=>t.push(this.fetch())));return e.length==1?t.length==1?t[0]:undefined:e.length==t.length?t:undefined}mark(){return Mi.Enumerable.from(Mi.Enumerable.empty)}raise(e,t=Li.Level.Critical,o="grammatical",s){if(typeof e=="string"){if(!s&&this.last)s=this.last.region;e=new Li.Message(e,t,o,s)}this.errorHandler.raise(e)}static is(e,t){return Array.isArray(e)?e.some((e=>jn.is(e,t))):typeof e!="string"?e.test(t):e.startsWith("!")&&e!="!"?!jn.is(e.substring(1),t):e=="any"?jn.symbol.every((e=>e!=t)):e=="symbol"?jn.symbol.some((e=>e==t)):e=="identifier"?/[A-Za-z][A-Za-z0-9_]*/.test(t):e==t}}jn.wildcard=["*","?"];jn.separator=["(",")","."];jn.operator=["!","|"];jn.comparator=["<","<=",">",">=",":"];jn.binaryOperator=[" * "," + "," - "];jn.symbol=[...jn.wildcard,...jn.separator,...jn.operator,...jn.comparator];function _n(e,t){if(typeof e=="string"){t=t||new Li.ConsoleHandler;const o=Ri(e,t).toArray();e=new jn(o,t)}t=t instanceof zo?t:undefined;const o=[];while(e.peek()){if(e.fetchIf("|"))o[o.length-1]=new Cn([o[o.length-1],Tn(0,e)]);else o.push(Tn(0,e))}return o.length==1?o[0]:new Eo(o)}function Tn(e,t){let o;const s=typeof e=="number"?t=>e<t:t=>e.precedence>t;const a=typeof e=="number"?undefined:e;for(const e of In)if(s(e[1]||Number.MAX_SAFE_INTEGER)){const s=e[0](t,a);if(s){o=Tn(s,t);break}}return o||a||new Eo([])}const In=[];function Ln(e,t){In.push([e,t])}function On(e,t){if(typeof e=="string"){t=t||new Li.ConsoleHandler;const o=Ri(e,t).toArray();e=new jn(o,t)}t=t instanceof en?t:undefined;let o;let s=false;let a=false;while(!o!=s&&!a&&e.peek()){let t=1;s=false;a=false;while(!s&&!a&&e.peek(t)){s=jn.binaryOperator.some((o=>e.peek(t)?.value==o));a=jn.comparator.some((o=>e.peek(t)?.value==o));t++}o=An(o??Number.MAX_SAFE_INTEGER,e)}if(!o)e.raise("Missing Expression");return o??new tn(NaN)}function An(e,t){let o;const s=typeof e=="number"?undefined:e;for(const s of En){const a=s[0](t,e);if(a){o=a;break}}return o||s}const En=[];function Dn(e,t){En.push([e,t])}Ln((e=>{const t=e.fetchIf(":","every","(")&&new Ji(_n(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Ln((e=>{const t=e.fetchIf(":","some","(")&&new mn(_n(e.clone()));if(t&&!e.fetchIf(")"))e.raise("Missing end of parenthesis.");return t}));Ln(Mn(_n));Dn(Mn(On));function Mn(e){return t=>{const o=t.fetchIf("(")&&e(t.clone());if(o&&!t.fetchIf(")"))t.raise("Missing end of parenthesis.");return o}}Ln((e=>e.fetchIf(">")&&new on(On(e))));Ln((e=>e.fetchIf(">=")&&new an(On(e))));Ln((e=>e.fetchIf("<")&&new fn(On(e))));Ln((e=>e.fetchIf("<=")&&new gn(On(e))));Ln((e=>e.fetchIf("!")&&new xn(Tn(xn.precedence,e))));Ln((e=>{const t=e.fetchIf("has","(","any",")")||e.fetchIf(":","has","(","any",")");return t&&new ln(t.length==4?t[2].value:t[3].value)}));class $n extends zo{constructor(e){super();this.value=e;this.precedence=85;this.class="Within"}is(e){return this.value.includes(e)}toString(){return`within(${this.value.join(", ")})`}}function Rn(e,t){const o=new $n(e);return t?o.is(t):o}function Pn(e,t,o){return o&&t?.class?Yi.functions(e,(e=>[]),{value:"within()",cursor:7,suggestion:{value:"within()"}}):[]}Ki.String.add(Pn);Ki.Number.add(Pn);Ln((e=>{const t=e.fetchIf(":","within","(");let o;if(t&&e.peek()){o=[e.fetch()?.value??""];while(e.fetchIf(","))o.push(e.fetchIf("any")?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o?new $n(o):undefined}));class Nn extends zo{constructor(e){super();this.criteria=e;this.precedence=85;this.class="Contains"}is(e,t){return Array.isArray(e)&&this.criteria.every((t=>e.some((e=>t==e))))}toString(){return`contains(${this.criteria.join(", ")})`}}function Fn(e,t){const o=new Nn(e);return t?o.is(t):o}function Hn(e,t,o){return Yi.functions(e,(()=>[]),{value:"contains()",cursor:9,suggestion:{value:"contains()"}})}Ki.Array.add(Hn);Ln((e=>{const t=e.fetchIf(":","contains","(");const o=[];if(t&&e.peek()){do{o.push(e.fetchIf("any")?.value??"")}while(e.fetchIf(","));if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return t&&o.length>0?new Nn(o):undefined}));Ln((e=>{const t=e.peek(3)?.value;const o=[")",",","("].find((e=>e==t))||e.peek(2)?.value==")"?e.fetchIf("identifier","("):undefined;let s;if(o&&e.peek()){s=[e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??""];while(e.fetchIf(","))s.push(e.fetchIf(/[A-Za-z0-9_\.\-]+/)?.value??"");if(!e.fetchIf(")"))e.raise("Missing end of parenthesis.")}return o&&s?new Qi(o[0].value,s):undefined}));class Un extends zo{constructor(e,t){super();this.name=e;this.criteria=t;this.precedence=Un.precedence;this.class="Property";this.symbol="."}is(e,t){return!this.criteria?e==t?.[this.name]:typeof e=="object"?this.criteria.is(e[this.name],t??e):this.criteria.is(e,t?.[this.name])}toString(){return`${this.name}${this.criteria?this.criteria.symbol??":":""}${this.criteria?.stringify(this.precedence)??""}`}}Un.precedence=80;function Yn(e,t,o){const s=(Array.isArray(e)?e:[e]).reduceRight(((e,t)=>new Un(t,e)),Lo(t));return o?s.is(o):s}_o((e=>typeof e=="object"&&!(e instanceof zo)&&!Array.isArray(e)?Do(...Object.getOwnPropertyNames(e).map((t=>Yn(t,e[t])))):undefined));Ln((e=>{const t=[];let o;while(o=e.fetchIf("identifier","."))t.push(o[0].value);if(e.peekIs("identifier",jn.comparator)&&(o=e.fetchIf("identifier")))t.push(o.value);return t.length>0?t.reduceRight(((e,t)=>new Un(t,e)),e.peekIs("identifier")&&(o=e.fetchIf("identifier"))?new Un(o.value):Tn(Un.precedence,e)):undefined}));Ln((e=>{const t=e.fetchIf(":","*","any","*")||e.fetchIf("*","any","*");return t&&new cn(t.length==4?t[2].value:t[1].value)}));class Wn extends zo{constructor(e){super();this.needle=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="StartsWith"}is(e){return typeof e=="string"&&e.startsWith(this.needle)}toString(){return`${this.needle}*`}}function Bn(e,t){return Yi.expressions(e,(e=>!e||e.length==1&&e[0].value=="*"||e.length==2&&e[1].value=="*"&&t.value&&t.value.startsWith(e[0]?.value??"")?[Ki.Completion.prepend("",{value:t?.value??"",suggestion:{value:t?.value??""}},"*")]:[]),{value:"*",cursor:0,suggestion:{value:"*",description:"startswith"}})}Ki.String.add(Bn);Ln((e=>{const t=e.fetchIf(":","any","*")||e.fetchIf("any","*");return t&&new Wn(t?.length==3?t[1].value:t[0].value)}));Ln((e=>{const t=e.fetchIf(":","*","any")||e.fetchIf("*","any");return t&&new qi(t?.length==3?t[2].value:t[1].value)}));class Vn extends en{toString(){const e=this.symbol;return this.left.stringify(Vn.getPrecedence(e))+` ${e} `+this.right.stringify(Vn.getPrecedence(e))}constructor(e,t,o,s){super();this.precedence=t;this.left=o;this.right=s;this.class="InfixOperator";this.symbol=e.replace(/ /g,"")}evaluate(e){let t;switch(this.getSymbol()){case"+":t=this.left.evaluate(e)+this.right.evaluate(e);break;case"-":t=this.left.evaluate(e)-this.right.evaluate(e);break;case"*":t=this.left.evaluate(e)*this.right.evaluate(e);break;default:t=NaN;break}return t}getSymbol(){return this.symbol}stringify(e=0){let t=this.toString();if(this.precedence<e)t="("+t+")";return t}static getPrecedence(e){let t;e=e?.replace(/ /g,"");switch(e){case"+":t=14;break;case"-":t=15;break;case"*":t=16;break;default:t=undefined;break}return t}static create(e,t,o){let s;const a=new Vn("+",14,t,o);const i=Vn.getPrecedence(e);if(i)s=new Vn(e,i,t,o);return s||a}}function Gn(e,t,o){return[" + "," - "," * "].map((e=>({value:e,suggestion:{value:e}}))).map((s=>Ki.Completor.operators(e,(e=>e?o.complete(e,undefined,t):[]),s))).reduce(((e,t)=>e.concat(t)),[])}Ki.Number.addArgument(Gn);Dn(((e,t)=>{let o;const s=e.peekIs(jn.binaryOperator)&&e.fetch().value;let a;if(s&&typeof t=="object"){let i;let n;let l=0;a=Vn.getPrecedence(s);while(!n&&e.peek(l)){n=e.peek(l)?.value=="("?Number.MAX_SAFE_INTEGER:Vn.getPrecedence(e.peek(l)?.value);l++}if(n&&a<n){i=An(a,e);if(!i){e.raise("Missing right hand side of "+s)}}else i=An(NaN,e);if(n&&a==n||n==Number.MAX_SAFE_INTEGER){o=An(new Vn(s,a,t,i),e)}else o=new Vn(s,a,t,i)}return o}));Dn(((e,t)=>{const o=[];let s;while(s=e.fetchIf("identifier","."))o.push(s[0].value);let a;if(o.length==0){s=e.fetchIf("any",".","any")||e.fetchIf("any",",","any")||e.fetchIf("any");a=s&&(Array.isArray(s)?new tn(+s.map((e=>e.value.replace(",","."))).join("")):new tn(s.value))}else{s=e.fetchIf("identifier");const t=new tn(s?s.value:0);a=o.length>0?o.reduceRight(((e,t)=>new tn(isNaN(+e)?e:+e,t)),t):undefined}if(a&&typeof t=="number"&&!isNaN(t)&&t!=Number.MAX_SAFE_INTEGER)a=An(a,e);return a}));Ln((e=>{let t;if(e.fetchIf(":")){let o=false;let s=false;let a=1;while(!o&&!s&&e.peek(a)){o=jn.binaryOperator.some((t=>e.peek(a)?.value==t));s=jn.comparator.some((t=>e.peek(a)?.value==t));a++}if(o)t=On(e)}const o=e.fetchIf("any");return t?new un(t):o&&new un(o.value)}));Ln((e=>{e.raise(`Ignoring unknown token "${e.fetch()}"`);return undefined}));function Kn(e,t,o={input:[],identifier:[]}){return qn[t?.class]?.(e,t,o)??t}const qn={};function Zn(e,t){qn[e]=t}Zn("And",((e,t,o)=>new Eo(t.rules.map((t=>Kn(e,t,o))))));var Jn;(function(e){function t(e,t){let o=undefined;let s;const a=typeof e=="string"?e:e.toString();if(t&&t.input&&t.identifier&&t?.input?.length>0&&t?.identifier?.length>0&&t.identifier.includes(a)){s=t.identifier.indexOf(a);o=isNaN(+t.input[s])?t.input[s]:+t.input[s]}return o}e.argument=t})(Jn||(Jn={}));Zn("EndsWith",((e,t,o)=>{const s=Jn.argument(t.needle,o);return s?new qi(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("Every",((e,t,o)=>new Ji(Kn(e,t.criteria,o))));Zn("FunctionCall",((e,t,o)=>{const s=e[t.identifier];const a=s?_n(s.definition):undefined;const i=a?Kn(e,a,{input:o?.input?.concat(t.argument),identifier:o?.identifier?.concat(s.arguments)}):undefined;return new Qi(t.identifier,t.argument,i)}));Zn("GreaterThan",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new on(s):t}));Zn("GreaterThanOrEqual",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new an(s):t}));Zn("Has",((e,t,o)=>{const s=Jn.argument(t.property,o);return s?new ln(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("Includes",((e,t,o)=>{const s=Jn.argument(t.needle,o);return s?new cn(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("LesserThan",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new fn(s):t}));Zn("LesserThanOrEqual",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new gn(s):t}));Zn("Not",((e,t,o)=>new xn(Kn(e,t.criteria,o))));Zn("Or",((e,t,o)=>new Cn(t.criteria.map((t=>Kn(e,t,o))))));Zn("Property",((e,t,o)=>new Un(t.name,t.criteria&&Kn(e,t.criteria,o))));Zn("Some",((e,t,o)=>new mn(Kn(e,t.criteria,o))));Zn("StartsWith",((e,t,o)=>{const s=Jn.argument(t.needle,o);return s?new Wn(typeof s=="object"?s.value.toString():s.toString()):t}));Zn("Is",((e,t,o)=>{const s=Jn.argument(t.value,o);return s?new un(s):t}));class Xn extends zo{constructor(e){super();this.criteria=e;this.precedence=Number.MAX_SAFE_INTEGER;this.class="Tuple"}is(e){return this.criteria.length==e.length&&this.criteria.every(((t,o)=>t.is(e[o])))}toString(){return`[${this.criteria.map((e=>e.toString())).join(", ")}]`}}_o((e=>Array.isArray(e)?new Xn(e.map(Lo)):undefined));function Qn(e,t){const o=Lo(e);return t?o.is(t):o}function el(e,t){const o=Lo(e);return o.filter(t)}const tl=S({emit:c()});var ol;(function(e){let t;(function(e){e.type=S({property:C().optional(),properties:d(C(),C()).optional()})})(t=e.Element||(e.Element={}));e.type=t.type.extend({smoothlyFilterUpdate:tl,smoothlyFilterManipulate:tl})})(ol||(ol={}));const sl='.sc-smoothly-filter-h {\n\tposition: relative;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tmargin-left: 1rem;\n\tbackground-color: rgb(var(--smoothly-input-background));\n\tmargin-right: 1rem;\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n\n.sc-smoothly-filter-h>div.sc-smoothly-filter-s > [slot=detail] {\n\tz-index: 5;\n}\n\n.sc-smoothly-filter-h.sc-smoothly-filter-s > [slot=bar] {\n\tpointer-events: auto;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\n\t&>[looks="plain"] {\n\t\tdisplay: flex;\n\t\talign-self: stretch;\n\t\talign-items: center;\n\t}\n}\n\n.sc-smoothly-filter-h > div.sc-smoothly-filter:empty + smoothly-icon.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > smoothly-icon.sc-smoothly-filter {\n\tcursor: pointer;\n\tmargin-left: 0.3em;\n\tmargin-right: 0.3em;\n\tflex-shrink: 0;\n}\n\n.sc-smoothly-filter-h > div.close.sc-smoothly-filter {\n\tposition: fixed;\n\tz-index: 3;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100dvw;\n\theight: 100dvh;\n\tbackground: transparent;\n}\n\n.sc-smoothly-filter-h > div.hidden.sc-smoothly-filter {\n\tdisplay: none;\n}\n\n.sc-smoothly-filter-h > .container.sc-smoothly-filter {\n\tpadding: 2em;\n\tposition: absolute;\n\tright: 0.35em;\n\twidth: fit-content;\n\tdisplay: flex;\n\tjustify-content: center;\n\ttop: 100%;\n\twidth: fit-content;\n\tz-index: 4;\n\tbackground-color: rgb(var(--smoothly-color));\n\tmargin: 0.8em -2em;\n}\n\n\n.sc-smoothly-filter-h > div.container.sc-smoothly-filter:before {\n\tcontent: "";\n\twidth: 0.6em;\n\theight: 0.6em;\n\ttransform: rotate(45deg);\n\tborder-top: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-left: 1px solid rgb(var(--smoothly-medium-tint));\n\tbackground-color: rgb(var(--smoothly-color));\n\tposition: absolute;\n\tz-index: 3;\n}\n\n\n.sc-smoothly-filter-h > div.container.arrow-top.sc-smoothly-filter:before {\n\tleft: calc(91%);\n\ttop: -5px;\n}\n\n.sc-smoothly-filter-h div.container.sc-smoothly-filter:after {\n\tcontent: "";\n\theight: 100%;\n\twidth: 100%;\n\tborder: 1px solid rgb(var(--smoothly-medium-tint));\n\tborder-radius: 0.25em;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n}';const al=sl;const il=class{constructor(t){e(this,t);this.smoothlyFilter=o(this,"smoothlyFilter",7);this.updating=false;this.filters=new Set;this.detailChildren=undefined;this.criteria=Do();this.expanded=false}updateHandler(e){e.stopPropagation();if(ol.Element.type.is(e.target))this.filters.add(e.detail)}manipulateHandler(e){e.stopPropagation();this.updating=true;this.criteria=e.detail(this.criteria);this.smoothlyFilter.emit(this.criteria);this.filters.forEach((e=>e(this.criteria)));this.updating=false}filterFieldHandler(e){e.stopPropagation();if(!this.updating){this.smoothlyFilter.emit(this.criteria=Do(e.detail));this.filters.forEach((e=>e(this.criteria)))}}clear(){var e;(e=this.field)===null||e===void 0?void 0:e.clear();this.smoothlyFilter.emit(this.criteria=Do());this.filters.forEach((e=>e(this.criteria)))}render(){return t(s,{key:"8fa96851dc8a5b97455ffcc90d8edb4f556e1a5e"},t("slot",{key:"0a3c57ae72c5f8902d2b5f97de96c78fe6b1e091",name:"bar"}),t("smoothly-filter-field",{key:"fdc85964b77a2aa02effa9f1a634164a35086f52",criteria:this.criteria,ref:e=>this.field=e}),this.criteria.toString()!=""&&t("smoothly-icon",{key:"5a2a3f4582bb4ceb282c4ef6be1d439efd19ddc0",name:"close",toolTip:"Clear all filters",size:"small",onClick:()=>{this.clear()}}),t("div",{key:"6b7bba3c3a30cb4f9b562481d2921d595ea7e5fa",class:this.expanded?"container arrow-top":"hidden"},t("slot",{key:"5cdea6994206c24a2c62e1ac3208e03b6263468e",name:"detail"})),t("smoothly-icon",{key:"85d0324d62c557048e3caaaae33b2d8b0d0d4897",name:this.expanded?"options":"options-outline",toolTip:(this.expanded?"Hide":"Show")+" additional filters",size:"small",onClick:()=>{this.expanded=!this.expanded}}),t("div",{key:"f57ac805ce77fcc263d7c68581db9ae98566cf41",class:this.expanded?"close":"hidden",onClick:()=>this.expanded=!this.expanded}))}};il.style=al;const nl=".sc-smoothly-filter-field-h{flex-grow:5}";const ll=nl;const rl=class{constructor(t){e(this,t);this.smoothlyFilterField=o(this,"smoothlyFilterField",7);this.value="";this.criteria=undefined}async clear(){var e;await((e=this.input)===null||e===void 0?void 0:e.clear())}filterFieldEmit(){var e;this.smoothlyFilterField.emit(_n((e=this.value)!==null&&e!==void 0?e:""))}updateValue(e){this.value=e.detail.filter}render(){return t(s,{key:"52e0af5554f3372a7613a7b42a434457685c5863"},t("smoothly-input",{key:"8e133079de86dc284c3322f0c300beee667d7da8",name:"filter",ref:e=>this.input=e,value:this.criteria.toString(),onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyKeydown:e=>{e.stopPropagation();e.detail.key=="Enter"&&this.filterFieldEmit()},onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation();this.updateValue(e)}},"Filter"))}};rl.style=ll;const cl=".sc-smoothly-filter-input-h{display:contents}.sc-smoothly-filter-input-h>smoothly-input.sc-smoothly-filter-input{flex-grow:1;min-width:10em;flex-basis:40%}";const dl=cl;const hl=class{constructor(t){e(this,t);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.type="text";this.needle="";this.label=undefined;this.property=undefined;this.placeholder=undefined}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(e){var t;if(e instanceof Eo&&e.rules.length>0)for(const o of e.rules){const e=this.isCriteria(o,this.property);if(e){this.needle=(t=e.needle)!==null&&t!==void 0?t:"";break}}else this.needle=""}isCriteria(e,t){const[o,...s]=t.split(".");return e instanceof Un&&e.name==o&&(e.criteria instanceof cn&&e.criteria||e.criteria instanceof Un&&this.isCriteria(e.criteria,s.join(".")))||undefined}inputHandler(e){e.stopPropagation();const t=e.detail[this.property];const o=e=>{let o=e;const s=t?this.getCriteria(t):undefined;if(o instanceof Eo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s?e!=-1&&o.rules.splice(e,1):e==-1?o.rules.push(s):o.rules[e]=s;o=Do(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}getCriteria(e){return this.property.split(".").reduceRight(((e,t)=>Yn(t,e)),dn(e))}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Un&&e.name==o&&(s.length==0||!!e.criteria&&this.findInstanceOf(e.criteria,s.join(".")))}render(){return t("smoothly-input",{key:"743a8c6c26b12a10833791e322c06887a93a23c2",name:this.property,value:this.needle,type:this.type,placeholder:this.placeholder,onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyFormDisable:e=>e.stopPropagation(),onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyChange:e=>e.stopPropagation(),onSmoothlyInput:e=>this.inputHandler(e)},this.label,t("slot",{key:"68eacc299a625d16ce66b0eec27e4db1b0b6fb4c"}))}};hl.style=dl;const ml=".sc-smoothly-filter-select-h{display:contents}.sc-smoothly-filter-select-h>smoothly-input-select.sc-smoothly-filter-select{flex-grow:1;width:12.5em}.options.sc-smoothly-filter-select{border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}";const bl=ml;const yl=class{constructor(t){e(this,t);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.updating=false;this.items=new Map;this.label=undefined;this.property=undefined;this.menuHeight=undefined;this.multiple=false;this.type="string";this.looks=undefined}componentWillLoad(){this.smoothlyInputLooks.emit((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}))}async componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}async smoothlyInputLoadHandler(e){var t,o;(o=await((t=this.selectElement)===null||t===void 0?void 0:t.getItems()))===null||o===void 0?void 0:o.forEach((e=>this.items.set(e.value,{state:this.property.split(".").reduceRight(((e,t)=>({[t]:e})),e.value),item:e})))}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks)}}update(e){this.updating=true;if(e instanceof Eo&&e.rules.length>0)for(const t of this.items.values()){const o=e.rules.some((e=>this.isCriteria(e,this.property,t.state)&&(this.type=="array"?this.findInstanceOf(e,this.property):e.is(t.state))));t.item.selected=o}else this.items.forEach((e=>e.item.selected=false));this.updating=false}isCriteria(e,t,o){const[s,...a]=t.split(".");const i=e instanceof Un&&e.name==s?this.isCriteria(e.criteria,a.join("."),o[s]):this.multiple?e instanceof $n&&e.value.some((e=>e==o))||this.type=="array"&&e instanceof Nn&&e.criteria.some((e=>e==o)):e instanceof un&&e.value==o;return i}selectHandler(e){e.stopPropagation();if(!this.updating){const t=e.detail[this.property];const o=e=>{let o=e;const s=this.getCriteria(t);if(!(o instanceof zo))o=s?Do(o,s):o;else if(o instanceof Eo){const e=o.rules.findIndex((e=>this.findInstanceOf(e,this.property)));!s&&e>=0?o.rules.splice(e,1):!s?undefined:e==-1?o.rules.push(s):o.rules[e]=s;o=Do(...o.rules)}return o};this.smoothlyFilterManipulate.emit(o.bind(this))}}findInstanceOf(e,t){const[o,...s]=t.split(".");return e instanceof Un&&e.name==o&&(e.criteria instanceof $n||e.criteria instanceof un||e.criteria instanceof Nn||e.criteria instanceof Un&&this.findInstanceOf(e.criteria,s.join(".")))}getCriteria(e){let t;if(this.multiple&&C().array({criteria:"minLength",value:1}).is(e))t=this.type=="array"?Fn(e):Rn(e);else if(typeof e=="string")t=Qn(e);else t=undefined;return t&&this.property.split(".").reduceRight(((e,t)=>Yn(t,e)),t)}render(){return t("smoothly-input-select",{key:"d033eebdc74a6a25c7c9059d2f5ce06dc1c3fadc",ref:e=>this.selectElement=e,name:this.property,looks:this.looks,multiple:this.multiple,menuHeight:this.menuHeight,onSmoothlyInputLooks:e=>e.stopPropagation(),onSmoothlyItemSelect:e=>e.stopPropagation(),onSmoothlyInput:e=>this.selectHandler(e)},this.label&&t("span",{key:"74642e91b226596e425c6f676f6f855354bd0a39",slot:"label"},[this.label.slice(0,1).toUpperCase(),this.label.slice(1,this.label.length)].join("")),t("slot",{key:"bf075d1fee4c85cd8953b79cf9831c2d47b71b23",name:"items"}))}get element(){return a(this)}};yl.style=bl;const ul=".sc-smoothly-filter-toggle-h{position:relative;display:inline-block;cursor:pointer}.sc-smoothly-filter-toggle-h:hover>smoothly-icon.sc-smoothly-filter-toggle{stroke:rgb(var(--smoothly-success-tint));color:rgb(var(--smoothly-success-tint));fill:rgb(var(--smoothly-success-tint))}[flip].sc-smoothly-filter-toggle-h{transform:scaleX(-1)}";const fl=ul;const pl=class{constructor(t){e(this,t);this.smoothlyFilterUpdate=o(this,"smoothlyFilterUpdate",7);this.smoothlyFilterManipulate=o(this,"smoothlyFilterManipulate",7);this.icon=undefined;this.properties=undefined;this.toolTip=undefined;this.not=undefined;this.flip=false;this.active=false}componentWillLoad(){this.active&&this.activeHandler()}componentDidLoad(){this.smoothlyFilterUpdate.emit(this.update.bind(this))}update(e){if(e instanceof Eo&&e.rules.length>0){this.active=Object.entries(this.properties).every((([t,o])=>e.rules.some((e=>{const s=!this.not?e:e instanceof xn?e.criteria:undefined;return o==""?!(s instanceof Un&&s.name==t):this.isCriteria(s,t,o)}))))}else this.active=false}isCriteria(e,t,o){const[s,...a]=t.split(".");return e instanceof Un&&e.name==s&&(e.criteria instanceof un&&e.criteria.value==o||this.isCriteria(e.criteria,a.join("."),o))}activeHandler(e){const t=t=>{let o=t;e&&(this.active=!this.active);if(o instanceof Eo){for(const[e,t]of Object.entries(this.properties)){const s=!this.active||this.active&&t==""?undefined:this.not?wn(this.createCriteria(e,t)):this.createCriteria(e,t);const a=o.rules.findIndex((t=>this.findInstanceOf(t,e)));!s&&a>=0?o.rules.splice(a,1):!s?undefined:a==-1?o.rules.push(s):o.rules[a]=s}o=Do(...o.rules)}return o};this.smoothlyFilterManipulate.emit(t.bind(this))}createCriteria(e,t){const[o,...s]=e.split(".");return Yn(o,s.length==0?Qn(t):this.createCriteria(s.join("."),t))}findInstanceOf(e,t){const o=!this.not?e:e instanceof xn?e.criteria:false;const[s,...a]=t.split(".");return o instanceof Un&&o.name==s&&(a.length==0||!!o.criteria&&this.findInstanceOf(o.criteria,a.join(".")))}render(){return t("smoothly-icon",{key:"dd151c8e540e1808b87d0a291f3a2c5aba7ee321",fill:"clear",color:this.active?"success":"medium",name:this.active?`${this.icon}`:`${this.icon}-outline`,toolTip:this.toolTip,onClick:()=>this.activeHandler(true)})}};pl.style=fl;var gl;(function(e){function t(e){return typeof e=="string"&&(e=="GET"||e=="POST"||e=="DELETE"||e=="HEAD"||e=="PATCH"||e=="PUT"||e=="OPTIONS"||e=="TRACE"||e=="CONNECT")}e.is=t;function o(e){e=e?.toUpperCase();return t(e)?e:undefined}e.parse=o})(gl||(gl={}));const kl={};function vl(e,...t){t.forEach((t=>kl[t]=e))}function xl(e){const t=e.headers.get("Content-Type");const o=t&&t.split(";");const s=kl[o?.[0]??"plain/text"];return s?s(e):e.text()}const wl={};function Sl(e,...t){t.forEach((t=>wl[t]=e))}function Cl(e,t){const o=wl[t?.split(";")[0]??""];return o?o(e,t):e}function zl(e){return e.toLowerCase().replace(/-[a-z]/g,(e=>e.substring(1).toUpperCase()))}function jl(e){const t=e.replace(/[A-Z]/g,(e=>"-"+e));return t[0].toUpperCase()+t.substring(1)}const _l=[["aIM","A-IM",1],["accept","Accept",2],["acceptCharset","Accept-Charset",2],["acceptDatetime","Accept-Datetime",1],["acceptEncoding","Accept-Encoding",2],["acceptLanguage","Accept-Language",2],["accessControlRequestMethod","Access-Control-Request-Method",1],["accessControlRequestHeaders","Access-Control-Request-Headers",1],["authorization","Authorization",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentLength","Content-Length",1],["contentMD5","Content-MD5",1],["contentType","Content-Type",1],["cookie","Cookie",1],["date","Date",1],["expect","Expect",1],["forwarded","Forwarded",1],["from","From",1],["host","Host",1],["http2Settings","HTTP2-Settings",1],["ifMatch","If-Match",2],["ifModifiedSince","If-Modified-Since",1],["ifNoneMatch","If-None-Match",2],["ifRange","If-Range",1],["ifUnmodifiedSince","If-Unmodified-Since",1],["maxForwards","Max-Forwards",1],["origin","Origin",1],["pragma","Pragma",1],["proxyAuthorization","Proxy-Authorization",1],["range","Range",1],["referer","Referer",1],["te","TE",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["userAgent","User-Agent",1],["upgrade","Upgrade",2],["via","Via",2],["warning","Warning",1],["upgradeInsecureRequests","Upgrade-Insecure-Requests",1],["xRequestedWith","X-Requested-With",1],["dnt","DNT",1],["xForwardedFor","X-Forwarded-For",1],["xForwardedHost","X-Forwarded-Host",1],["xForwardedProto","X-Forwarded-Proto",1],["xMsContinuation","X-Ms-Continuation",1],["frontEndHttps","Front-End-Https",1],["xHttpMethodOverride","X-Http-Method-Override",1],["xAttDeviceId","X-ATT-DeviceId",1],["xWapProfile","X-Wap-Profile",1],["proxyConnection","Proxy-Connection",1],["xCsrfToken","X-Csrf-Token",1],["xCorrelationID","X-Correlation-ID",1],["xModNonce","x-mod-nonce",1],["xModRetry","x-mod-retry",1],["saveData","Save-Data",1],["xAuthToken","X-Auth-Token",1],["xTrackingId","x-tracking-id",1]];var Tl;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&_l.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=_l.find((([t,o,s])=>t==e));return[o?o[1]:jl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?[...e]:Object.entries(e)).map((([e,t])=>{const o=_l.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[zl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.entries=="function"}})(Tl||(Tl={}));var Il;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["method","url","parameter","search","remote","header","body"].some((t=>t==e))))&&gl.is(e.method)&&e.url instanceof URL&&typeof e.parameter=="object"&&Object.entries(e.parameter).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&typeof e.search=="object"&&Object.entries(e.search).every((([e,t])=>typeof e=="string"&&typeof t=="string"))&&(e.remote==undefined||typeof e.remote=="string")&&(e.header==undefined||Tl.is(e.header))}e.is=t;async function o(e){const o=t(e)?e:a(e);const s=o.header.contentType?.startsWith("multipart/form-data")?(({contentType:e,...t})=>t)(o.header):o.header;return{url:o.url.toString(),method:o.method,headers:Tl.to(s),body:["GET","HEAD"].some((e=>e==o.method))?undefined:await Cl(await o.body,o.header.contentType)}}e.to=o;function s(e){const t=new URL(e.url);return{method:gl.parse(e.method)??"GET",url:t,header:Tl.from(e.headers),parameter:{},search:Object.fromEntries(t.searchParams.entries()),body:xl(e),..."cf"in e&&{cloudflare:e.cf}}}e.from=s;function a(e){let t;if(typeof e=="string")t=a({url:e});else{const o=typeof e.url=="string"?new URL(e.url):e.url;t={method:gl.parse(e.method)??"GET",url:o,parameter:e.parameter??{},search:{...e.search,...Object.fromEntries(o.searchParams.entries())},remote:e.remote,header:e.header??{},body:e.body}}return t}e.create=a;(function(e){e.is=Tl.is;e.from=Tl.from;e.to=Tl.to})(e.Header||(e.Header={}))})(Il||(Il={}));const Ll=typeof Response!="undefined"?Response:globalThis.Response;var Ol=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Al=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var El,Dl,Ml,$l,Rl,Pl,Nl,Fl,Hl;class Ul{get state(){return Ol(this,$l,"f")?"closed":"opened"}set onMessage(e){if(Ol(this,Dl,"f").length&&e){Ol(this,Dl,"f").forEach(e);Al(this,Dl,[],"f")}Al(this,Pl,e,"f")}set onClose(e){if(this.state=="closed"&&e)e();Al(this,Nl,e,"f")}set onOpen(e){if(this.state=="opened"&&e)e();Al(this,Hl,e,"f")}constructor(e,t){El.add(this);Dl.set(this,[]);Ml.set(this,[]);$l.set(this,false);Rl.set(this,void 0);Pl.set(this,void 0);Nl.set(this,void 0);Hl.set(this,void 0);Al(this,Rl,e,"f");if(t)Al(this,Ml,undefined,"f");Ol(this,Rl,"f").addEventListener("open",(()=>{if(Ol(this,Hl,"f"))Ol(this,Hl,"f").call(this);Ol(this,El,"m",Fl).bind(this)}));Ol(this,Rl,"f").addEventListener("message",(async e=>{const t=this.processReceived(e.data);Ol(this,El,"m",Fl).call(this);if(Ol(this,Pl,"f"))Ol(this,Pl,"f").call(this,t);else Ol(this,Dl,"f")?.push(t)}));Ol(this,Rl,"f").addEventListener("close",(()=>{if(Ol(this,Nl,"f"))Ol(this,Nl,"f").call(this);Al(this,$l,true,"f")}))}send(e){if(Ol(this,Ml,"f"))Ol(this,Ml,"f").push(this.processSend(e));else Ol(this,Rl,"f").send(this.processSend(e))}}Dl=new WeakMap,Ml=new WeakMap,$l=new WeakMap,Rl=new WeakMap,Pl=new WeakMap,Nl=new WeakMap,Hl=new WeakMap,El=new WeakSet,Fl=function e(){Ol(this,Ml,"f")?.forEach((e=>Ol(this,Rl,"f").send(e)));Al(this,Ml,undefined,"f")};class Yl extends Ul{processReceived(e){return e?.arrayBuffer?e.arrayBuffer():typeof e=="string"?(new TextEncoder).encode(e).buffer:e}processSend(e){return e}}class Wl extends Ul{processReceived(e){return JSON.parse(e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e)}processSend(e){return JSON.stringify(e)}}class Bl extends Ul{processReceived(e){return e?.arrayBuffer?(new TextDecoder).decode(e.arrayBuffer()):typeof e!="string"?(new TextDecoder).decode(e):e}processSend(e){return e}}var Vl=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var Gl=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Kl,ql,Zl;class Jl{get json(){if(!Vl(this,Kl,"f"))Gl(this,Kl,new Wl(this.backend,this.isOpen),"f");return Vl(this,Kl,"f")}get string(){if(!Vl(this,ql,"f"))Gl(this,ql,new Bl(this.backend,this.isOpen),"f");return Vl(this,ql,"f")}get arrayBuffer(){if(!Vl(this,Zl,"f"))Gl(this,Zl,new Yl(this.backend,this.isOpen),"f");return Vl(this,Zl,"f")}constructor(e,t){this.backend=e;this.isOpen=t;Kl.set(this,void 0);ql.set(this,void 0);Zl.set(this,void 0)}createResponse(e={}){return{status:101,socket:this,header:e}}close(e,t){this.backend.close(e,t)}}Kl=new WeakMap,ql=new WeakMap,Zl=new WeakMap;var Xl;(function(e){e.Factory=Jl})(Xl||(Xl={}));const Ql=[["accessControlAllowOrigin","Access-Control-Allow-Origin",1],["accessControlAllowCredentials","Access-Control-Allow-Credentials",1],["accessControlExposeHeaders","Access-Control-Expose-Headers",2],["accessControlMaxAge","Access-Control-Max-Age",1],["accessControlAllowMethods","Access-Control-Allow-Methods",2],["accessControlAllowHeaders","Access-Control-Allow-Headers",2],["acceptPatch","Accept-Patch",1],["acceptRanges","Accept-Ranges",1],["age","Age",1],["allow","Allow",2],["altSvc","Alt-Svc",1],["cacheControl","Cache-Control",1],["cfConnectionIp","CF-Connecting-IP",1],["cfIpCountry","CF-IPCountry",1],["connection","Connection",1],["contentDisposition","Content-Disposition",1],["contentEncoding","Content-Encoding",1],["contentLanguage","Content-Language",2],["contentLength","Content-Length",1],["contentLocation","Content-Location",1],["contentMD5","Content-MD5",1],["contentRange","Content-Range",1],["contentSecurityPolicy","Content-Security-Policy",1],["contentType","Content-Type",1],["date","Date",1],["deltaBase","Delta-Base",1],["eTag","ETag",1],["expires","Expires",1],["iM","IM",1],["lastModified","Last-Modified",1],["link","Link",1],["location","Location",1],["p3P","P3P",1],["pragma","Pragma",1],["proxyAuthenticate","Proxy-Authenticate",1],["publicKeyPins","Public-Key-Pins",1],["refresh","Refresh",1],["retryAfter","Retry-After",1],["server","Server",1],["setCookie","Set-Cookie",1],["status","Status",1],["strictTransportSecurity","Strict-Transport-Security",1],["timingAllowOrigin","Timing-Allow-Origin",2],["trailer","Trailer",1],["transferEncoding","Transfer-Encoding",1],["tk","Tk",1],["upgrade","Upgrade",2],["vary","Vary",2],["via","Via",1],["warning","Warning",1],["wwwAuthenticate","WWW-Authenticate",1],["xContentDuration","X-Content-Duration",1],["xContentSecurityPolicy","X-Content-Security-Policy",1],["xContentTypeOptions","X-Content-Type-Options",1],["xCorrelationId","X-Correlation-ID",1],["xFrameOptions","X-Frame-Options",1],["xMsContinuation","X-Ms-Continuation",1],["xPoweredBy","X-Powered-By",1],["xRequestId","X-Request-ID",1],["xUACompatible","X-UA-Compatible",1],["xWebkitCsp","X-WebKit-CSP",1],["xXssProtection","X-XSS-Protection",1]];var er;(function(e){function t(e){function t(e){return e==undefined||typeof e=="string"}function o(e){return e==undefined||Array.isArray(e)&&e.every((e=>typeof e=="string"))}return typeof e=="object"&&Ql.every((s=>(s[2]==1?t:o)(e[s[0]])))}e.is=t;function o(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>{const o=Ql.find((([t,...o])=>t==e));return[o?o[1]:jl(e),Array.isArray(t)?t.join(", "):t]})))}e.to=o;function s(e){return Object.fromEntries((Array.isArray(e)?e.map((([e,...t])=>[e,t.join(", ")])):i(e)?n(e):Object.entries(e)).map((([e,t])=>{const o=Ql.find((([t,o,s])=>e.toLowerCase()==o.toLowerCase()));return o?[o[0],o[2]==1||typeof t!="string"?t:t.split(",").map((e=>e.trim()))]:[zl(e),t]})))}e.from=s;function a(e){return Object.entries(e).map((([e,t])=>e+": "+t)).join("\n")}e.toString=a;function i(e){return typeof e.forEach=="function"}function n(e){const t=[];e.forEach(((e,o)=>t.push([o,e])));return t}})(er||(er={}));var tr;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||er.is(e.header))&&(e.socket==undefined||typeof e.socket.close=="function"&&typeof e.socket.json?.send=="function"&&typeof e.socket.string?.send=="function"&&typeof e.socket.arrayBuffer?.send=="function")&&(e.status!=undefined||e.header!=undefined||e.body!=undefined)}e.is=t})(tr||(tr={}));var or;(function(e){function t(e){return typeof e=="object"&&Object.keys(e).every((e=>["status","header","body","socket"].some((t=>t==e))))&&(e.status==undefined||typeof e.status=="number")&&(e.header==undefined||er.is(e.header))&&(e.socket==undefined||e.socket instanceof WebSocket)}e.is=t;async function o(e){return new Ll(await Cl(await e.body,e.header.contentType),{status:e.status,headers:new Headers(er.to(!e.header.contentType?.startsWith("multipart/formdata")?e.header:(({contentType:e,...t})=>t)(e.header))),...e.socket&&{webSocket:{...e.socket.createResponse().socket}?.backend}})}e.to=o;function s(e){return{status:e.status,header:er.from(e.headers),body:e.status==101?undefined:xl(e),...e.webSocket&&{socket:new Xl.Factory(e.webSocket)}}}e.from=s;function a(e,t){const o=tr.is(e)?{status:200,header:{},body:undefined,...e.socket&&{socket:e.socket},...e}:typeof e?.createResponse=="function"&&(t==undefined||er.is(t))?e.createResponse(t):{status:typeof e=="object"&&typeof e.status=="number"&&e.status||200,header:typeof e=="object"?{...e.header,...(e.status==301||e.status==302)&&e.location?{location:e.location}:{}}:{},body:!(typeof e=="object"&&!Array.isArray(e))||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof FormData?e:(({header:e,...t})=>t)(e),...e.webSocket&&{socket:new Xl.Factory(e.webSocket)}||e.socket&&{socket:e.socket}};if(!o.header.contentType)switch(typeof o.body){case"undefined":break;default:case"object":o.header.contentType=typeof t=="string"?t:t?.contentType?t.contentType:o.body instanceof FormData?"multipart/formdata":o.body instanceof ArrayBuffer||ArrayBuffer.isView(o.body)?i(o.body)?"application/pdf":"application/octet-stream":"application/json; charset=utf-8";break;case"string":o.header.contentType=o.body.slice(0,9).toLowerCase()=="<!doctype"?"text/html; charset=utf-8":/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/.test(o.body)?"application/jwt; charset=utf-8":/^<\?xml version=(.|\n)*\?>(.|\n)*<svg(.|\n)*<\/svg>$/.test(o.body)?"image/svg+xml":"text/plain; charset=utf-8";break}return o}e.create=a;function i(e){const t=new Uint8Array(ArrayBuffer.isView(e)?e.buffer:e).slice(0,4);return[37,80,68,70].every(((e,o)=>e==t[o]))}e.Header=er;e.Like=tr})(or||(or={}));const sr=ar(globalThis.fetch);sr.create=ar;function ar(e){return async t=>{const o=Il.create(t);return or.from(await e(o.url.toString(),await Il.to(o)))}}var ir;(function(e){function t(e){const t=new globalThis.FormData;t.append("*",new globalThis.Blob([(new TextEncoder).encode(JSON.stringify(o(e,"",t)))],{type:"application/json; charset=utf-8"}));return t}e.to=t;function o(e,t,a){return Object.entries(e).reduce(((e,[i,n])=>{n instanceof Blob?a.append(t?`${t}.${i}`:i,n):typeof n=="object"&&n?Array.isArray(n)?e[i]=s(n,t?`${t}.${i}`:i,a):e[i]=o(n,t?`${t}.${i}`:i,a):e[i]=n;return e}),{})}function s(e,t,a){return e.reduce(((e,i)=>{typeof i=="object"&&i?Array.isArray(i)?e.push(s(i,t,a)):e.push(o(i,t,a)):e.push(i);return e}),[])}async function a(e){const t={};for(const[o,s]of e.entries())await i(t,o.split("."),s);return t}e.from=a;async function i(e,[t,...o],s){if(o.length==0)s instanceof Blob&&s.type.startsWith("application/json")?t=="*"?n(e,JSON.parse(await s.text())):typeof e[t]=="object"&&e[t]?n(e[t],JSON.parse(await s.text())):e[t]=JSON.parse(await s.text()):e[t]=s;else i(typeof e[t]=="object"&&e[t]?e[t]:e[t]={},o,s)}function n(e,...t){if(t.length){const[o,...s]=t;Object.entries(o).forEach((([t,s])=>l(s)?n(l(e[t])?e[t]:e[t]={},s):e[t]=o[t]));n(e,...s)}}function l(e){return e&&typeof e=="object"&&!Array.isArray(e)}e.isObject=l})(ir||(ir={}));function nr(e){const t=[];const o=(e,s)=>{switch(typeof s){default:case"bigint":case"boolean":case"number":case"string":t.push(`${e}=${encodeURIComponent(s.toString())}`);break;case"undefined":break;case"object":for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))o(e?e+`[${t}]`:t,s[t]);break}};o("",e);return t.join("&")}function lr(e){const t=e=>typeof e=="object"&&Object.keys(e).sort().every(((e,t)=>`${e}`==`${t}`))?Object.entries(e).sort().map((e=>typeof e[1]=="object"?t(e[1]):e[1])):typeof e=="object"?Object.fromEntries(Object.entries(e).map((e=>[e[0],t(e[1])]))):e;const o=(e,t,s)=>{e[t[0]]=t.length>1?o(e[t[0]]??{},t.slice(1),s):s;return e};const s=e.split("&").map((e=>e.split("=",2))).map((([e,t])=>[decodeURIComponent(e).split("[").map((e=>e.replace("]",""))),decodeURIComponent(t.replace(/\+/g," "))]));return s.reduce(((e,[s,a])=>t(o(e,s,a))),{})}vl((async e=>await e.text()),"text/plain","text/html");vl((async e=>await e.json()),"application/json");vl((async e=>await e.arrayBuffer()),"application/pdf");vl((async e=>ir.from(await e.formData())),"multipart/form-data");vl((async e=>lr(await e.text())),"application/x-www-form-urlencoded");Sl((async e=>typeof e=="string"?e:e.toString()),"text/plain","text/html");Sl((async e=>JSON.stringify(e)),"application/json");Sl((async e=>e),"application/pdf");Sl((async e=>nr(e)),"application/x-www-form-urlencoded");Sl((async e=>e instanceof globalThis.FormData?e:ir.to(e)),"multipart/form-data");var rr;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.clear=="function"}e.is=t})(rr||(rr={}));var cr;(function(e){let t;(function(e){e.type=S({edit:c(),readonly:z(),listen:c(),reset:c(),setInitialValue:c()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=S({emit:c()});e.type=t.type.extend({changed:z(),value:A().optional(),smoothlyFormDisable:o});e.is=e.type.is})(cr||(cr={}));var dr;(function(e){e.types=["plain","grid","border","line","transparent"];e.type=C(e.types);e.is=e.type.is})(dr||(dr={}));var hr;(function(e){let t;(function(e){e.type=S({register:c(),unregister:c(),getValue:c(),color:r.type.optional(),name:C(),invalid:z().optional(),looks:dr.type.optional(),defined:z().optional(),binary:c().optional()});e.is=e.type.is})(t=e.Element||(e.Element={}));const o=S({emit:c()});e.type=t.type.extend({smoothlyInputLoad:o,smoothlyInput:o,smoothlyKeydown:o.optional(),smoothlyInputForm:o.optional(),parent:cr.type.optional()});e.is=e.type.is;function s(e){if(e.parent instanceof yr){e.parent.removeInput(e.name)}}e.formRemove=s;function a(e){e.smoothlyInputLoad.emit((t=>e.parent=t))}e.formAdd=a;function i(e,t){if(!(t.target&&"name"in t.target&&t.target.name===e.name)){t.stopPropagation();t.detail(e)}}e.registerSubAction=i})(hr||(hr={}));const mr='smoothly-form{display:block;position:relative}smoothly-form>form{position:relative;min-width:15em}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:10em;flex-basis:40%}smoothly-form[looks="line"]>form>fieldset,smoothly-form[looks="border"]>form>fieldset,smoothly-form[looks="transparent"]>form>fieldset{gap:2em}smoothly-form[looks="grid"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:0.5rem}';const br=mr;const yr=class{constructor(t){e(this,t);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyFormInput=o(this,"smoothlyFormInput",7);this.smoothlyFormSubmit=o(this,"smoothlyFormSubmit",7);this.smoothlyFormReset=o(this,"smoothlyFormReset",7);this.smoothlyFormEdit=o(this,"smoothlyFormEdit",7);this.smoothlyFormClear=o(this,"smoothlyFormClear",7);this.notice=o(this,"notice",7);this.contentType="json";this.inputs=new Map;this.readonlyAtLoad=this.readonly;this.listeners={};this.color=undefined;this.value={};this.action=undefined;this.validator=undefined;this.type=this.action?"create":undefined;this.readonly=false;this.looks=undefined;this.name=undefined;this.prevent=true;this.changed=false;this.processing=undefined}componentWillLoad(){!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async removeInput(e){if(this.element.isConnected){this.value=h.remove(this.value,e);this.inputs.delete(e);this.smoothlyFormInput.emit(h.convertArrays(this.value))}}async listen(e,t){var o;var s;((o=(s=this.listeners)[e])!==null&&o!==void 0?o:s[e]=[]).push(t);t(this)}async watchValue(){var e,t,o;this.changed=[...this.inputs.values()].some((e=>cr.type.is(e)?e.changed:true));if(this.validator){const o=(t=(e=this.validator)===null||e===void 0?void 0:e.flaw(h.convertArrays(this.value)).flaws)===null||t===void 0?void 0:t.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{});for(const[e,t]of this.inputs.entries()){this.validate(o,e,t)}}(o=this.listeners.changed)===null||o===void 0?void 0:o.forEach((e=>e(this)))}validate(e,t,o){var s,a;if(t.includes(".")){const[i,...n]=t.split(".");const l=(a=(s=e===null||e===void 0?void 0:e[i])===null||s===void 0?void 0:s.flaws)!==null&&a!==void 0?a:[];this.validate(l.reduce(((e,t)=>t.property?Object.assign(Object.assign({},e),{[t.property]:t}):e),{}),n.join("."),o)}else{const s=e===null||e===void 0?void 0:e[t];o&&(o.invalid=!!s)}}watchReadonly(){var e;(e=this.listeners.changed)===null||e===void 0?void 0:e.forEach((e=>e(this)))}smoothlyInputLooksHandler(e){e.stopPropagation();e.detail(this.looks,this.color)}async smoothlyInputHandler(e){this.value=h.merge(this.value,e.detail);this.smoothlyFormInput.emit(h.convertArrays(this.value))}async smoothlyKeydownHandler(e){if(e.detail.key=="Enter"&&this.inputs.has(e.detail.name)){e.stopPropagation();await this.submit()}}windowSubmitHandler(e){e.target==this.element&&e.detail.result(false)}submitHandler(e){this.action&&e.stopPropagation()}async smoothlyInputLoadHandler(e){var t;e.stopPropagation();e.detail(this);const o=e.target;if(hr.Element.is(o)){if(await((t=o.binary)===null||t===void 0?void 0:t.call(o)))this.contentType="form-data";const e=await o.getValue();this.value=h.merge(this.value,{[o.name]:e});this.smoothlyFormInput.emit(h.convertArrays(this.value));this.inputs.set(o.name,o)}}async smoothlyFormDisableHandler(e){e.stopPropagation();e.detail(this.readonly)}async submit(e){this.processing=new Promise((t=>{this.smoothlyFormSubmit.emit({value:h.convertArrays(this.value),result:t,type:e==true?"remove":this.type});if(this.action){const o=this.action;this.notice.emit(L.execute("Submitting form",(async()=>{const s=e?"DELETE":!this.type||this.type=="create"?"POST":this.type=="change"?"PUT":this.type=="update"?"PATCH":"GET";const a=await sr(Il.create(s=="GET"?{method:s,url:`${o}?${nr(this.value)}`}:Object.assign({method:s,url:o},this.value&&{header:{contentType:this.contentType?"multipart/form-data":"application/json"},body:this.value}))).catch((()=>undefined));const i=!a||(a===null||a===void 0?void 0:a.status)<200||a.status>=300?[false,"Failed to submit form."]:[true,"Form successfully submitted."];t(i[0]);return[...i]})))}}));if(await this.processing){this.type=="create"&&await this.clear();await this.setInitialValue();this.readonlyAtLoad&&await this.edit(!this.readonlyAtLoad)}this.processing=undefined}async clear(){await Promise.all([...this.inputs.values()].map((async e=>rr.is(e)&&e.clear())));this.smoothlyFormClear.emit()}async edit(e){await Promise.all([...this.inputs.values()].map((async t=>cr.Element.type.is(t)&&t.edit(e))));this.readonly=!e;this.smoothlyFormEdit.emit(e)}async reset(){await Promise.all([...this.inputs.values()].map((e=>cr.Element.type.is(e)&&e.reset())));this.changed=[...this.inputs.values()].some((e=>cr.type.is(e)?e.changed:true));this.smoothlyFormReset.emit()}async setInitialValue(){await Promise.all([...this.inputs.values()].map((e=>cr.Element.type.is(e)&&e.setInitialValue())))}render(){return t(s,{key:"1d9d37d4d3c61cbf3fbb844dbe72c1eed2335938"},t("smoothly-spinner",{key:"b8c7d90a3e089d7d52a1486a1dedbd166e3207e7",overlay:true,hidden:!this.processing}),t("form",{key:"1eae5c52bf9a4c92da64f2bf9500b524d9cb124d",onSubmit:!this.prevent?undefined:e=>e.preventDefault(),name:this.name},t("fieldset",{key:"75a96e948df29ae53698993b122ba1a1b8ca7f0b"},t("slot",{key:"9b197a101f00720485dbe22c7c799ff1c710778d"})),t("div",{key:"c3d2ad2b7007e03afca830609c53a5a744e15167"},t("slot",{key:"0dfb32cdf5a653cf88f3c8295cbd0abe7ac3cca3",name:"clear"}),t("slot",{key:"60cbc0922c41c48e9bdfd7921dfade2aef44f920",name:"edit"}),t("slot",{key:"ded5e82b98663d312145f451fdea0224133361a3",name:"reset"}),t("slot",{key:"865d5339d8d09ff8edfeb00e8f3f963564226635",name:"delete"}),t("slot",{key:"cbad91b715a714ee8fd1effe79b06965bc3fd4e5",name:"submit"}))))}get element(){return a(this)}static get watchers(){return{value:["watchValue"],readonly:["watchReadonly"]}}};yr.style=br;const ur=".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:100%}";const fr=ur;const pr=class{constructor(t){e(this,t)}render(){return t(s,{key:"f1ca7be120d87c8cdb9bd0c9121b7ccc2346d812"},t("div",{key:"0a57eceabdcb885bb2b114c107bbdbf0297c4396"},t("smoothly-form-demo-all",{key:"ceedbb7ddd84562a8e4ee35e15b7b9ea51c8e979"}),t("smoothly-form-demo-pet",{key:"4cba93208eb3e1ef043a19713d08a286e705c5ff"}),t("smoothly-form-demo-card",{key:"f5f566679b5dae179121e826534594daea439bc9"}),t("smoothly-form-demo-login",{key:"befffde4476de1a6b3e5918fea806391482bfdd3"}),t("smoothly-form-demo-prices",{key:"bd187e2eed55caf537cdb4383f2ef8d08de2de96"}),t("smoothly-form-demo-typed",{key:"3d059700b23d5cdb4bca6b133bec53b44bec85a3"}),t("smoothly-form-demo-transparent",{key:"ebfb7021b446605a417d1ef7a839ddd7d565cc54"}),t("smoothly-form-demo-date",{key:"a9af3ae6f5d7e4a71d3ebe4c1c3bf029fb2bb9b7"}),t("smoothly-form-demo-schedule",{key:"2011739c48572e39e1eea2d330e1b04caf0ef94b"}),t("smoothly-form-demo-date-range",{key:"11317d1feb82c20fc09284cb996e55f80038ed2f"}),t("smoothly-form-demo-controlled",{key:"d9ac6a284edbe2fe977abbe1947cf3412066cecb"})))}};pr.style=fr;const gr=class{constructor(t){e(this,t)}render(){return t(s,{key:"f24ac803db965645290763057bd1230a3123d1b6"},t("h2",{key:"d0acef992a1610c807639136d041cff6cc6ec269"},"All inputs"),t("smoothly-form",{key:"8edb30c23ed6dca4e1c0df70b4252fba6c973bc6",looks:"grid",type:"create",readonly:true,action:"https://api.toiletapi.com/upload/6b12fd2f-e896-46f9-b38f-25cf42cee4b4",onSmoothlyFormSubmit:e=>{Object.entries(e.detail.value).forEach((([e,t])=>console.log(e,t)))}},t("smoothly-input",{key:"2a2cb7fcad7d202a4eac70e7afef558423aed257",readonly:true,name:"First Name",value:"John"},"First name"),t("smoothly-input",{key:"2b735ec5a01555419fd7fbee889aecce3823004a",showLabel:false,name:"Last name",value:"Doe"},"Last name",t("smoothly-input-clear",{key:"b3c5c0105b909e6d12faf1063dd89ac7e5e3f1ab",size:"icon",slot:"end"})),t("smoothly-input",{key:"da05d67ac53bbcaa7d1df327903a88b4bda7ddd5",type:"phone",name:"Phone",value:"777888999"},"Phone",t("smoothly-input-reset",{key:"9cea89c87657646a1695784616b2b6528ab29a15",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"d846018ac718c5edaf3af59a799c1f0719295fc7",clearable:true,name:"radioFirstInput"},t("label",{key:"75d8455e9c3fff37ebaf26a0ca9ab96f3fe47ca3",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"4ad289b3f1e6ab329d0d9d5260b3ad805c74947b",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"7567c6aabde81a027372ed78420832b74ba0b12d",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"a24e987bcfd2d8e3c17319f552570568bcc322eb",value:"third"},"Label 3")),t("smoothly-input-color",{key:"b822ebfe6fd9e39c4d8ddebf7560650e897d26a0",name:"color"},"Color"),t("smoothly-input-select",{key:"2b188685740f2986a2905a12a41599d2fb27a387",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"442ddbf643f8593f014e9c8ebfb89b548e25f9e4",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"b426d55f660ea12f314c808970185ba84ca96c2e",value:"1"},"January"),t("smoothly-item",{key:"3bd9373d991fcf8b32464a2911cb94b6ffbe3e98",value:"2"},"February"),t("smoothly-item",{key:"afad8edbbbd715d6f47d59ff2b0e3b56effa4a28",value:"3"},"March"),t("smoothly-item",{key:"00811873dbc227b95b271f6ffb399ed9cb91ff77",value:"4"},"April"),t("smoothly-item",{key:"1cb9763c83f89593cf5c3acc2fa6c1131b96f4b9",value:"5"},"May"),t("smoothly-item",{key:"162a4852b915c8b4823ba0cfb8b9224a3da02329",value:"6"},"June"),t("smoothly-item",{key:"a82491db9bdbc0876c368b4753a6bacf10f1f809",value:"7"},"July"),t("smoothly-item",{key:"8c2ef1528a44c3f34baf3a867210791b7db4df38",value:"8"},"August"),t("smoothly-item",{key:"018b8535cd06d8fb76af46807acd67f777aa839c",value:"9"},"September"),t("smoothly-item",{key:"5559631cf35eebf6dbc2daf016ac65cae0100d56",value:"10"},"October"),t("smoothly-item",{key:"7a05b0f47332d3c47b171c7af45616098818cb3b",value:"11"},"November"),t("smoothly-item",{key:"783eba3fc1f02dda35b95bc3168d8fc40a2cfb9b",value:"12"},"December")),t("smoothly-input-select",{key:"708ae228ebac730d88542fadac9eacdbef65816d",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"ab3cc10c5837684c8c3fd31189ab9df3488d484f",value:"folder",selected:true},t("smoothly-icon",{key:"23a5c0fa737f6d2787b68a1f74b1945f7e6db4f9",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"bf26b10ff966c3c228838b97e8193ecbe73fe1ee",value:"camera"},t("smoothly-icon",{key:"0dbc3d1789c62478fcf7a8fe7b3de76a2952f27a",size:"small",name:"camera-outline"}))),t("smoothly-input-checkbox",{key:"04a361a611548788fc62295e38f1a142587171e8",name:"checkbox"},"Check the box"),t("smoothly-input-checkbox",{key:"1a1be95b3bd3560f7f96b0fdc1c5c183f409cdb6",name:"checkbox2",checked:true},"Check the box 2"),t("smoothly-input-range",{key:"90e62b694df1dd076c6ae8d2f1a2c300d1fe8667",step:1,name:"range3",value:20,label:"Range"}),t("smoothly-input",{key:"fd79baee4d795d8bc85c07da9ad648b6f9be66ce",name:"pets.0.name"},"First Pet's Name"),t("smoothly-input-range",{key:"f4c6ce348957870ef206697bcc9a48d65ce97039",name:"pets.0.age",max:100,step:1,label:"First Pet's Age"}),t("smoothly-input",{key:"c5dc005f7bd1953be10ffa4cab2abb994779aa4f",name:"pets.1.name"},"Second Pet's Name"),t("smoothly-input-range",{key:"bcfcae2f743f64d25b41cbf66835dad3b6859798",name:"pets.1.age",max:100,step:1,label:"Second Pet's Age"}),t("smoothly-input",{key:"78a97ca7891fd91b59efe623a67eb96711a79d63",name:"pets.2.name"},"Third Pet's Name"),t("smoothly-input-range",{key:"3d9c41e44797337be3864d9fbb029e300309aa92",name:"pets.2.age",max:100,step:1,label:"Third Pet's Age"}),t("smoothly-input-file",{key:"b3fcea11a832b7b36049d4e4adeb555f80146652",name:"profile",placeholder:"Click or drag your profile picture here..."},t("span",{key:"ef82a2ac85080c6b45efe658e76e9c0bc0469f14",slot:"label"},"Profile"),t("smoothly-icon",{key:"1155235a811c711d163c187b1597fb80ee62c8c7",slot:"button",name:"person-circle-outline",size:"tiny",fill:"default"})),t("smoothly-input",{key:"87ff969b859405209fb9bcfce698b9d319f34b72",type:"duration",name:"duration",value:{}},"Duration"),t("smoothly-input-clear",{key:"bf68e9ad454eff0c639b5da2c7242fc402a35c65",fill:"default",type:"form",color:"warning",slot:"clear",size:"icon",shape:"rounded"}),t("smoothly-input-edit",{key:"447e503c8e3c48b93f41f620b5fc277dc4d8d475",fill:"default",type:"form",color:"tertiary",slot:"edit",size:"icon",shape:"rounded"}),t("smoothly-input-reset",{key:"1a732b5a30f9e7b5d87a09be76c2fcecec722394",fill:"default",type:"form",color:"warning",slot:"reset",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"9ef5b1fddf599242589f45a77ae81d53cfb6244b",delete:true,slot:"delete",color:"danger",size:"icon",shape:"rounded"}),t("smoothly-input-submit",{key:"a9d1d83e4d1bfd131cec91e4a64ef26134294d48",fill:"default",color:"success",slot:"submit",size:"icon",shape:"rounded"})))}};const kr=class{constructor(t){e(this,t)}render(){return t(s,{key:"6ce5500bac732834bb5dfad51a4176eb6919e084"},t("h2",{key:"d0bfdef60eb67936e2b4462a1a4bb2c89dc59993"},"Card"),t("smoothly-form",{key:"a708e697d518fa8950c2cf83cc076e92ebffbaef",looks:"grid",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail))},t("smoothly-input",{key:"166ba0f75ac66c2d5f11f03c8fadb20cf89d6435",type:"card-number",name:"card"},"Card #"),t("smoothly-input-submit",{key:"d61c7bd39e8c09ae774606b92a8bb3e537836e57",size:"icon",slot:"submit",color:"success",fill:"solid"}),t("smoothly-input",{key:"70b23dd5937565ad6c87f9936b83a02d2f8c070c",type:"card-expires",name:"expires"},"Expires"),t("smoothly-input",{key:"dc59de914f323faed35381b6c4eb2e4c72539178",type:"card-csc",name:"csc"},"CVV/CVC"),t("smoothly-input",{key:"b27fdb3e0a8fc1c02d3c570e1e3fb434f97e63b3",type:"text",name:"name.first"},"First Name"),t("smoothly-input",{key:"e76461cffe3afca778b1151a188b47c7ef7d9c8d",type:"text",name:"name.last"},"Last Name")))}};const vr=class{constructor(t){e(this,t);this.currencies=["GBP","SEK","EUR","USD"];this.name="Initial name";this.currency="EUR";this.date=k.now()}nameChanged(e,t){console.log(`updated name from '${t}' to '${e}'`)}async submitHandler(e){e.stopPropagation();console.log("Received event. Processing...",e.detail);if(!(typeof e.detail.value.name=="string")){console.error("Bad input. Resolving false.")}else if(!(typeof e.detail.value.date=="string"))console.error("Bad input. Resolving false.");else if(!w.is(e.detail.value.currency))console.error("Bad input. Resolving false.");else{await new Promise((e=>window.setTimeout(e,1e3)));this.name=e.detail.value.name;this.date=e.detail.value.date;this.currency=e.detail.value.currency;console.log("Finished processing successfully. Resolving true.");e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"7844d1e5845e087bc559f6f3395dbffa97ce3059"},t("h2",{key:"56c4d14611046efdf9b06816e59aea0e7e3a2fad"},"Controlled"),t("smoothly-form",{key:"875ef51cf0633aef4bb3510d8a22f0f41dcaa944",readonly:true,looks:"grid",onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input",{key:"08550c8bf896ce5996a2ea17da506bf55e6d0cef",type:"text",name:"name",value:this.name},"Name"),t("smoothly-input-select",{key:"9f2394024404cee03db2563fa1fc674fb1d23fb8",name:"currency"},t("span",{key:"837b2f0f698e6299eaa6d56dd71ea53558edc502",slot:"label"},"Currency"),this.currencies.map((e=>t("smoothly-item",{selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"d4cf009fb3f52de30d6f26990d9fa44f21d8f50e"},"Dummy"),t("smoothly-input-month",{key:"9d149577b8ac244b2a00c5643e9d06a332929895",name:"date",value:this.date,next:true,previous:true},t("span",{key:"36fa1ee96d15026fc2db142c17864e7dcd458a9a",slot:"year-label"},"Year"),t("span",{key:"cf11d02d8dacaee8c5d073e635997495a1bea1bc",slot:"month-label"},"Month")),t("smoothly-input-edit",{key:"06304a23cd66351fb145733e675bd960b5340b5f",slot:"edit",size:"icon",color:"primary",fill:"default"}),t("smoothly-input-reset",{key:"b002ca14148b17cd648602c8b950f65c2106a07b",slot:"reset",size:"icon",color:"warning",fill:"default"}),t("smoothly-input-submit",{key:"998f09cbbf11b0e5dbf2efa606fa7ad7a80cc86c",slot:"submit",size:"icon",color:"success"})))}static get watchers(){return{name:["nameChanged"]}}};const xr=".sc-smoothly-form-demo-date-h{display:block}";const wr=xr;const Sr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=S({date:m("isoly.Date",k.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"fec03fe6e146f8c4ca93d4cd4418d997e1dac8de"},t("h2",{key:"767fa5fdb9f5474e12bd65857fc97b6e734eb6e0"},"Date input"),t("smoothly-form",{key:"6f5fa68123ea141e005d8f8730f04828298863d0",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date",{key:"5e290e7adfeea3b1527763f03bea07614c225402",name:"date"},"Date"),t("smoothly-input-submit",{key:"c69663690016397e994f7045e57a04ba26f4aba8",slot:"submit"},t("smoothly-icon",{key:"7cf86ec53b1c8d02a44a9fe410a9597051b8baea",name:"checkmark-outline"}))))}};Sr.style=wr;const Cr=".sc-smoothly-form-demo-date-range-h{display:block}";const zr=Cr;const jr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.validator=S({range:m("isoly.DateRange",j.is)})}async submitHandler(e){e.stopPropagation();if(!this.validator.is(e.detail.value)){console.error(`Type is incomplete.`);this.notice.emit(L.failed(`Type is incomplete.`))}else{this.notice.emit(L.succeeded(`Type is complete!`));e.detail.result(true)}e.detail.result(false)}render(){return t(s,{key:"250862ffe0d53e328905329437e91b5ebad8562b"},t("h2",{key:"536e40aadb53f8ed550fe333e587b93172e8d415"},"Date-range input"),t("smoothly-form",{key:"e74f74d9b1c5ece5e0d7b0961964322b5cb10bfb",looks:"border",type:"create",validator:this.validator,onSmoothlyFormSubmit:e=>this.submitHandler(e)},t("smoothly-input-date-range",{key:"34570b46ba3407959fe53675ca6069d39b1020f9",name:"range"},"Range"),t("smoothly-input-submit",{key:"61250eec0b407776f16c883832e6525ed43f4e8e",slot:"submit"},t("smoothly-icon",{key:"60d386f83cc1f370534ba360e5769b300840483f",name:"checkmark-outline"}))))}};jr.style=zr;const _r=class{constructor(t){e(this,t)}render(){return t(s,{key:"2a5f43deb8d5412bd6e3f689121dae61a8e810fe"},t("h2",{key:"4da410bb5c2d0567d2ded09d3d12d2e734754783"},"Login"),t("smoothly-form",{key:"d7d13e509e44bbf7565c44ffba00ad05d47a0bef",looks:"border"},t("smoothly-input",{key:"dfe6efa937a9a30356f8fe83ee0f177983450100",type:"text",name:"username"},"Username"),t("smoothly-input",{key:"0f77f8eace6a54580330c59dde1f78d7fc2b9777",type:"password",name:"password"},"Password"),t("smoothly-input-reset",{key:"9fd28636ee5650135f8d92fe3652952df6fdd0b4",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"a55b68e79b7e4eda5cd0b9b936b8d568d6c395fb",slot:"submit"})))}};const Tr='.sc-smoothly-form-demo-pet-h{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-column-gap:2rem}.sc-smoothly-form-demo-pet-h smoothly-input-checkbox[name="hasOwner"].sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-summary.sc-smoothly-form-demo-pet,.sc-smoothly-form-demo-pet-h>smoothly-form.sc-smoothly-form-demo-pet smoothly-tabs.sc-smoothly-form-demo-pet{flex-basis:100%}';const Ir=Tr;const Lr=class{constructor(t){e(this,t);this.hasOwner=false;this.owner={};this.value=undefined}render(){var e,o;return t(s,{key:"db081d6ec048537567ff4c3de3efb80f02e875a9"},t("h2",{key:"152ec589606c14d600458d16edd6aa2c45366007"},"Pet"),t("h3",{key:"51ccb3e2d3a10b11579fa24ae5998a10ed2e656c"},"Value"),t("smoothly-form",{key:"b1e76f0e962498c312fb61b2198f27e177eedeea",looks:"border",onSmoothlyFormSubmit:e=>alert(JSON.stringify(e.detail)),onSmoothlyFormInput:e=>this.value=Object.assign({},e.detail)},t("smoothly-input",{key:"c60c6da48f5e5c62b84a934dd908f18278bd5a7a",type:"text",name:"name.first"},"Name"),t("smoothly-input",{key:"92cf53c5a0fc3dbb9d1f7b042c6600458524cfd7",type:"integer",name:"age"},"Age (Years)"),t("smoothly-input-checkbox",{key:"e4e9f551b36342ac128b5c189e372add1453be38",name:"hasOwner",onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{this.hasOwner=e.detail.hasOwner;e.stopPropagation()}},"Has Owner"),this.hasOwner&&t(i,{key:"d4e41bd4f0ea384e45d3c7b0ebcfc8fef0c8a273"},t("smoothly-input",{key:"a8f6dec76b80683428d77f30c3e444a883d1afc7",type:"text",name:"owner.firstName",value:this.owner.firstName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{firstName:e.detail["owner.firstName"]})},"Owner First Name"),t("smoothly-input",{key:"7556e46fc24f10f1ca8252d3759e13ef6be294e7",type:"text",name:"owner.lastName",value:this.owner.lastName,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{lastName:e.detail["owner.lastName"]})},"Owner Last Name"),t("smoothly-input-file",{key:"eb895e44123c07d936fbdca933b873aa20eed521",name:"owner.picture"},t("span",{key:"8b44d1b0e331113f3d9c994edd860bcbbaa0235a",slot:"label"},"Owner picture")),t("smoothly-input-date",{key:"5ea7342881dc271817826891f9e4007d4d1f1389",name:"owner.birthday",value:this.owner.birthday,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{birthday:e.detail["owner.birthday"]})},"Owner birthday"),t("smoothly-input-date-range",{key:"6209c4291574f87a35c1904defebd4cbde66290c",name:"owner.ownedRange",start:(e=this.owner.ownedRange)===null||e===void 0?void 0:e.start,end:(o=this.owner.ownedRange)===null||o===void 0?void 0:o.end,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{ownedRange:e.detail["owner.ownedRange"]})},"Owner ownedRange"),t("smoothly-input-range",{key:"b9dc7ac7da7ff8593e1a2e4a4d328dd81dfc5992",name:"owner.height",step:1,max:250,value:this.owner.height,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{height:e.detail["owner.height"]})},"Owner's Height"),t("smoothly-input-select",{key:"21d3858ea701a6286251ae44371b2dbb9c370412",name:"owner.favoriteHat"},t("span",{key:"2e8cef55162db373af79645a4b5e374a6b40bbb2",slot:"label"},"Owner's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o,selected:this.owner.favoriteHat==e},e)))),t("smoothly-input-color",{key:"24133d180e198e554b63de26bc3323cbe3744601",name:"owner.favoriteColor",value:this.owner.favoriteColor?b.toHex(this.owner.favoriteColor):undefined,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoriteColor:e.detail["owner.favoriteColor"]})},"Owner's Favorite Color"),t("smoothly-input-radio",{key:"274fb656b13bde70abea4fa35eb688cdf46eacb8",name:"owner.favoritePizza",value:this.owner.favoritePizza,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{favoritePizza:e.detail["owner.favoritePizza"]})},t("span",{key:"df83a30c36b5177a23d8763d5e66611db3bbe697",slot:"label"},"Owner's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"5a733c0b2ff06ddad303ec77097775d4a42fadb5",name:"owner.hasPet",checked:this.owner.hasPet,onSmoothlyInput:e=>this.owner=Object.assign(Object.assign({},this.owner),{hasPet:e.detail["owner.hasPet"]})},"Has Pet")),t("smoothly-summary",{key:"6d2fcc2affe9250787419dce8157912339803fee"},t("span",{key:"b589d7b6ca57d95b621d827cfb5927db3faca50b",slot:"summary"},"Summary"),t("div",{key:"d4d1293918327030bdee186d4ca5a55682b3703c",slot:"content"},t("smoothly-input",{key:"5959e26fe56c7347f7c15a17cdfd4f2acdfb9fef",type:"price",name:"summary.price",currency:"EUR"},"Summary Price"),t("smoothly-input-file",{key:"d1bb869132deb842aa805655d552906c80858ec8",name:"summary.picture"},t("span",{key:"f8b1915acdd0d42eb33978fcb02f662d65a8f2ab",slot:"label"},"Summary picture")),t("smoothly-input-date",{key:"b64e66df7956ab1a05197fe2d51e44361f984c0e",name:"summary.birthday"},"Summary birthday"),t("smoothly-input-date-range",{key:"5466ee7830e653a6f6db25961645c9ab203ccb51",name:"summary.ownedRange"},"Summary ownedRange"),t("smoothly-input-range",{key:"7ce763b3bef80bc5e0e0206c7f66fec8631d29d6",name:"summary.height",label:"Height"}),t("smoothly-input-select",{key:"83b72df95cff68356940bdaec14fc5afb136fc36",name:"summary.favoriteHat"},t("span",{key:"f8b6d174307542335f4da99192b8aaf6c85c9aec",slot:"label"},"Summary's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-month",{key:"b75782058ca787708a313135fc1e8bb152e6b3c3",name:"summary.month"},t("span",{key:"696e8468f1f4ed059418e8ce73630f2e342bbddc",slot:"month-label"},"Summary month")),t("smoothly-input-color",{key:"8e667d352bd2c206980b6104c67f9ae2c5a99966",name:"summary.color"},"Summary Color"),t("smoothly-input-radio",{key:"d1aaf397f6b3ab4f09334b5a7bb29dc8d21c6ddd",name:"summary.favoritePizza"},t("span",{key:"f3b6a36b33d5a57ae90fed082e49f64009f918cd",slot:"label"},"Summary's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"a3623c6c863c01ececceb3662bc28e866bb02624",name:"summary.hasPet"},"Has Pet"))),t("smoothly-tabs",{key:"560c301f9084430a3116610ecac87526c4c75fe3"},t("smoothly-tab",{key:"a6daa32792c96cc28522f8be2bedd0cb55c0fd11",label:"Dog"},t("smoothly-input",{key:"7d49e5553a141bddea389bf51dd84a9c77bcefe6",type:"text",name:"dog.breed"},"Breed"),t("smoothly-input-file",{key:"aa8ad2af83ad5f74e7094cddde1ad86232708335",name:"dog.picture"},t("span",{key:"ba9254c5c1e741d44136d0f6cbb28d5f4f0dafc4",slot:"label"},"Dog picture")),t("smoothly-input-date",{key:"8e49fb563376bd4349e7151a8ef4292fffa2badd",name:"dog.birthday"},"Dog birthday"),t("smoothly-input-date-range",{key:"5a8b95b3fa01a59a7e6cfe32c0158b10d6548805",name:"dog.dateRange"},"Dog date range"),t("smoothly-input-select",{key:"9db97eab10483487370a2eea58a7b4c69bf1d6c4",name:"dog.favoriteHat"},t("span",{key:"84f01e17a57d9bc3ce1c6c7e3973ebddf6ec1388",slot:"label"},"Dog's Favorite Hat"),["🎩 top hat","🧢 cap","👒 sun hat","❌ none"].map(((e,o)=>t("smoothly-item",{value:e,key:o},e)))),t("smoothly-input-color",{key:"40b05d29bf1fce02de12100fd649d3c24313b104",name:"dog.favoriteColor"},"Dog's Favorite Color"),t("smoothly-input-radio",{key:"e7477ef30a27eced86023fd8463c8982e3c949cd",name:"dog.favoritePizza"},t("span",{key:"f58e1ccc4ddabc64df4f567ea3b279075acb17e8",slot:"label"},"Dog's Favorite Pizza"),["vesuvio","capricciosa","quattro formaggi"].map(((e,o)=>t("smoothly-input-radio-item",{value:e,key:o},e)))),t("smoothly-input-checkbox",{key:"f02baf4ffd3456d15eda802c1f701e941bf74c08",name:"dog.hasPet"},"Has Pet")),t("smoothly-tab",{key:"cffe512b4e6ac0a4c9ca085de43e1924e3778b7b",label:"Cat",open:true},t("smoothly-input",{key:"f7196eec6788c2f294ff6743bb4360e1a57b0a14",name:"cat.favoriteFood"},"Favorite Food"))),t("smoothly-input-submit",{key:"f4912e7af63e667a438d389a82cd4292fdcdaf7d",size:"icon",slot:"submit",color:"success",fill:"solid"})),t("smoothly-display",{key:"fa69764806f0a1ba82cc066aedcc1ce9e18e0a50",type:"json",value:this.value}))}};Lr.style=Ir;const Or=class{constructor(t){e(this,t)}render(){return t(s,{key:"5ed4038bcc2aaa09d52b20596234e323fb2fc8f7"},t("h2",{key:"d9a9121129755d8a9f9a38976ac7a277d152b5f7"},"Prices"),t("smoothly-form",{key:"b1d1646ef95052ecf5e56786132405bc99fcdc55",looks:"line"},t("smoothly-input",{key:"682ab8b618be4ba29d0a0823f76ccc5d4f0fb88d",type:"price",name:"no"},"No currency"),t("smoothly-input",{key:"a50fde19f136d84e78b33a556ef06132d3de9862",type:"price",name:"crowns",currency:"SEK",toInteger:true},"SEK (toInteger)"),t("smoothly-input",{key:"af5cbc7ba716720732f2ca8378bcd6930c858124",type:"price",name:"usDollar",currency:"USD"},"USD"),t("smoothly-input",{key:"26c3529dadcca120c36f4e9e429af3a2a0c67afe",type:"price",name:"pounds",currency:"GBP"},"GBP"),t("smoothly-input",{key:"1bd61f5772d6cecb4d8122f0bb7e12d0fd78750b",type:"price",name:"peso",currency:"UYW"},"UYW"),t("smoothly-input",{key:"7c81bd4291f7530da19745d67c3fb7b791fbf429",type:"price",name:"iceland",currency:"ISK"},"ISK"),t("smoothly-input",{key:"9b5da213d1fde556b6c5c5295203a8d3abfe14ba",type:"price",name:"Palladium",currency:"XPD"},"XPD (Palladium)"),t("smoothly-input-reset",{key:"9dc494033b06e3a6e14f9ba9f5bc3c7cc7e3bd88",slot:"reset",fill:"default",type:"form",color:"warning"}),t("smoothly-input-submit",{key:"6f8a1c4c31461564c2acea4034117f4e78846dc6",slot:"submit"})))}};var Ar;(function(e){e.type=S({date:m("isoly.Date",k.is),amount:_()})})(Ar||(Ar={}));var Er;(function(e){e.type=S({schedule:Ar.type.array()})})(Er||(Er={}));const Dr=class{constructor(t){e(this,t)}render(){return t(s,{key:"a2dfe85cbe9a77c05371417039b053de1ff6438f"},t("h2",{key:"55c26e3adbbf9bd5f96c665f7adfd1ae4f30bb68"},"Schedule"),t("smoothly-form",{key:"4800c705002c5f850ca5bc117d7d2269acdf6df4",looks:"line",validator:Er.type},t("smoothly-input-date",{key:"a370ad7ed5c8feaf03fd91f3a9fd58e4cf378fc3",name:"schedule.0.date"},"Date"),t("smoothly-input",{key:"7d99e4f920f10aebbb99678f74a9bf46da4e5728",name:"schedule.0.amount",type:"price"},"Amount"),t("smoothly-input-date",{key:"11911e751725ad9f2eb47e796d6ed34c55db8bdc",name:"schedule.1.date"},"Date"),t("smoothly-input",{key:"54edda245c6b1803da201addf93942b6d640ae00",name:"schedule.1.amount",type:"price"},"Amount"),t("smoothly-input-date",{key:"e800f5668d0df1af08c65ed91ec1c3690789d1b6",name:"schedule.2.date"},"Date"),t("smoothly-input",{key:"fc5e69f6de150b83389b34b4fd51d82eec7422c1",name:"schedule.2.amount",type:"price"},"Amount"),t("smoothly-input-reset",{key:"8b32edd5df32e1e1a12314adf83a701d5b8353c1",slot:"reset",fill:"default",type:"form",color:"warning"}),t("smoothly-input-submit",{key:"87350ae3b3bc920cb1f89d8a4b63f13a91f658eb",slot:"submit"})))}};const Mr=class{constructor(t){e(this,t)}render(){return t(s,{key:"33e58258f38663c8283869c8aa751ce54b6ff131"},t("h2",{key:"d257eb6844086ddff32d309aefe38e3d3c49aab4"},"Transparent"),t("smoothly-form",{key:"215bf30f6faa569f594bfb0dcfbf325dedaced3d",looks:"transparent",onSmoothlyFormSubmit:e=>console.log(e.detail.value)},t("smoothly-input-file",{key:"ce7f5ae99c6fc49fc1ff8aa52accbec42440ef6d",name:"file"},t("span",{key:"3a9770ab2e6dcbdc5cfb77cab7b4dcf5324d9357",slot:"label"},"File"),t("smoothly-icon",{key:"e6ad4f9a1aae3f1c458ac3c0d2aa36e5b18dfc71",slot:"button",name:"folder-open-outline",size:"small"})),t("smoothly-input",{key:"5b6e425b22c551e516b7b95f03aab78a4a0bdb70",type:"duration",looks:"transparent",placeholder:"h:mm"},"Input"),t("smoothly-input-date",{key:"28d44980fcc5b752884afa43a2eb3217d87ff8ba"},"Date"),t("smoothly-input-date-range",{key:"d98533b265ea972f8cea9f9d7e24a7bbed315afa"},"Date Range"),t("smoothly-input-select",{key:"046e7d26992ec93436b9b55ed0b7ad1d5e9ed0b2",name:"transport"},t("smoothly-item",{key:"8f04e6b1398efd270dc28c72de932f00b967afb8",value:"plane"},t("smoothly-icon",{key:"027bb9786ae542ab1d9ebe25747798999e8afc67",name:"airplane-outline"})),t("smoothly-item",{key:"7df0d69db219641e7d0b5f577987a0fb787f8b7c",value:"car"},t("smoothly-icon",{key:"69dd108bcb129943931c80ae65e809851e637b2d",name:"car-outline"})),t("smoothly-item",{key:"554f0e330adfa4f357a5403e61f4df724830ebbb",value:"bus",selected:true},t("smoothly-icon",{key:"fff4c573b60864f3a17336ab999d735cdb1bbac4",name:"bus-outline"}))),t("smoothly-input-submit",{key:"922e7c4c4cb99315ae58ca6014bad981e39822c7",icon:"checkbox-outline"})))}};var $r;(function(e){e.type=S({name:S({first:C(),middle:C().optional(),last:C()}),age:_((e=>18<=e&&e<=120)),country:m("CountryCode",T.is),birthday:m("Date",k.is)})})($r||($r={}));const Rr="";const Pr=Rr;const Nr=class{constructor(t){e(this,t)}render(){return t(s,{key:"aa45fe19db2b739480b0d6e1acf25f5d25021fe7"},t("h2",{key:"5a75209e55f6082316117ab8202ac29ec45f6fec"},"Typed Contact"),t("smoothly-form",{key:"dce44554c5d5523c0035a7a51bdd795423e2b682",validator:$r.type},t("smoothly-input",{key:"fb7eba03fcca4a8f832ef757b92864fb0ed9c308",name:"name.first"},"First Name"),t("smoothly-input",{key:"6acff61dc9c33c18aaa9c2d3c03b1602684a0c47",name:"name.middle"},"Middle Name (optional)"),t("smoothly-input",{key:"368aadb5ad7ea5807ccc2b0f0b969e0a86c1ad89",name:"name.last"},"Last Name"),t("smoothly-input",{key:"7f787fd008d9e5915f97ab994834e4323e8efd0b",name:"age",type:"integer"},"Age (18-120)"),t("smoothly-input-select",{key:"52748a9b0f51a5bb7f7955708544a1e2fb3b4e30",name:"country"},t("span",{key:"779b0df0a80132981dbf8131cb7657c4ac9cd50f",slot:"label"},"Country"),T.values.map((e=>t("smoothly-item",{value:e},O(e))))),t("smoothly-input-date",{key:"5ec8b16b0e21c6d369c0edbb1db313d00aa23eed",name:"birthday"},"Date of birth"),t("smoothly-input-reset",{key:"1fb641919146d2d69762c1eff443c2a280d42065",slot:"reset",type:"form",size:"icon",color:"warning"}),t("smoothly-input-submit",{key:"183df4f3ededc6c7dfd8e1cb27142959e7694a90",slot:"submit",size:"icon",color:"success"})))}};Nr.style=Pr;const Fr=".sc-smoothly-frame-h{display:block;width:100%;height:100%}[hidden].sc-smoothly-frame-h{display:none}.sc-smoothly-frame-h>iframe.sc-smoothly-frame{border:none;padding:none;margin:none}";const Hr=Fr;const Ur=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.message2=o(this,"message2",7);this.url=undefined;this.name=undefined;this.origin=undefined}get contentWindow(){const e=this.element&&this.element.firstElementChild?this.element.firstElementChild:undefined;return e&&e.contentWindow||undefined}get defaultOrigin(){const e=this.url.match(/^(([a-z]+\+)*[a-z]+:\/\/)?[^/^\n]+/);return e?e[0]:"*"}componentDidLoad(){var e;if(this.contentWindow)y.listen((e=this.origin)!==null&&e!==void 0?e:this.defaultOrigin,((e,t)=>{if(e==this.name)if(l.is(t))this.trigger.emit(t);else this.message2.emit({destination:e,content:t})}),window)}async send(e,t){var o,s;if(typeof e=="string")y.send(((o=this.origin)!==null&&o!==void 0?o:this.defaultOrigin)+"#"+e,t,this.contentWindow);else if(y.is(e)&&this.contentWindow)y.send({destination:((s=this.origin)!==null&&s!==void 0?s:this.defaultOrigin)+"#"+e.destination,content:e.destination},this.contentWindow)}render(){return[]}get element(){return a(this)}};Ur.style=Hr;const Yr="[size].sc-smoothly-icon-h{background:none}.sc-smoothly-icon-h{display:flex;align-items:center;justify-content:center}[rotate].sc-smoothly-icon-h{--rotate:rotate(var(--rotation, 0deg));transform:var(--rotate)}[flip=x].sc-smoothly-icon-h{--flip:scaleX(-1);transform:var(--flip)}[flip=y].sc-smoothly-icon-h{--flip:scaleY(-1);transform:var(--flip)}[rotate][flip].sc-smoothly-icon-h{transform:var(--rotate)var(--flip)}[hidden].sc-smoothly-icon-h{display:none}[size=tiny].sc-smoothly-icon-h{width:1.2em;height:1.2em}[size=small].sc-smoothly-icon-h{width:1.4em;height:1.4em}[size=medium].sc-smoothly-icon-h{width:1.8em;height:1.8em}[size=large].sc-smoothly-icon-h{width:2.8em;height:2.8em}[size=xlarge].sc-smoothly-icon-h{width:4em;height:4em}.sc-smoothly-icon-h.sc-smoothly-icon-s>svg{width:100%}";const Wr=Yr;const Br=class{constructor(t){e(this,t);this.color=undefined;this.fill="solid";this.name="empty";this.size="medium";this.rotate=undefined;this.flip=undefined;this.toolTip=undefined;this.latestPromise=undefined;this.document=undefined}async componentWillLoad(){await this.nameChanged()}async nameChanged(){if(this.name!="empty"){const e=this.latestPromise=u.load(this.name);let t=await e;if(e==this.latestPromise){t=t===null||t===void 0?void 0:t.replace(/(?<=^<svg\s?)/,`$& role="img"`).replace(` width="512" height="512"`,"").replace(/stroke:#000;/gi,"");if(!this.toolTip)t=t===null||t===void 0?void 0:t.replace(/<title>.*<\/title>/,"");else if(t===null||t===void 0?void 0:t.includes("<title>"))t=t.replace(/(<title>).*(<\/title>)/,`<title>${this.toolTip}</title>`);else t=t===null||t===void 0?void 0:t.replace(/(.*>)(<\/svg>$)/,`$1<title>${this.toolTip}</title>$2`);this.updateDocument(t)}}else this.updateDocument()}updateDocument(e){this.document=e!==null&&e!==void 0?e:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\n\t\t<title>Empty</title>\n\t\t</svg>`}render(){var e;return t(s,{key:"b98eb1398e4508e58a131c6d5ff723486c0a32f7",innerHTML:this.document,style:{["--rotation"]:`${(e=this.rotate)!==null&&e!==void 0?e:0}deg`}})}static get watchers(){return{toolTip:["nameChanged"],name:["nameChanged"]}}};Br.style=Wr;const Vr=".sc-smoothly-icon-demo-h{display:block;width:clamp(200px, 100%, 1200px);margin:auto}[hidden].sc-smoothly-icon-demo-h{display:none}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo{display:flex;flex-flow:row wrap}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo{padding:1rem;position:relative}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover{scale:1.5}.sc-smoothly-icon-demo-h>div.sc-smoothly-icon-demo>smoothly-icon.sc-smoothly-icon-demo:hover::after{content:attr(data-name);position:absolute;white-space:nowrap;bottom:100%;background:rgb(var(--smoothly-default-contrast));color:rgb(var(--smoothly-default-color));padding:0.25rem 1rem;z-index:1;pointer-events:none}";const Gr=Vr;const Kr=class{constructor(t){e(this,t);this.notice=o(this,"notice",7);this.page=0;this.display={};this.props={}}render(){return t(s,{key:"1c6981b2ead8d852bd3095ea2b8e167ccfa3999e"},t("h2",{key:"a674e2334702d721bbe80c38e340dd4df83b1d8c"},"Filter and Variants"),t("smoothly-form",{key:"7ce406f374d1d73f0ef76988f94366a0737dca0c",onSmoothlyFormInput:e=>this.display=e.detail},t("smoothly-input",{key:"2880e33baad9499180d57e928a613a839edf5504",name:"filter"},"Filter"),t("smoothly-input-select",{key:"238a669e80f19114a5530d5fbc46e12d4607818c",name:"variant"},t("span",{key:"d03a1b35b864531d62e2d09f99a1e3f500170ffa",slot:"label"},"Variant"),t("smoothly-item",{key:"0e826e3272ed4c017ad98a7a7d6b137b71ef9333",value:"outline"},"outline"),t("smoothly-item",{key:"0e330f7e224f1bb4e9a99f5e1e162a786888b14c",value:"sharp"},"sharp"),t("smoothly-input-clear",{key:"c5aabc95974e08dfc599ff7d639918647c04100f",slot:"end"}))),t("h2",{key:"83a640f95d8fce430ece0c95c7a8cb360747e5eb"},"Props"),t("smoothly-form",{key:"d04aa102e7fa19243158a4927e0fd1073076dc3a",onSmoothlyFormInput:e=>this.props=e.detail},t("smoothly-input-select",{key:"fb220fa5e5ddd2483d0af445008e8f53132dbfc9",name:"color"},t("span",{key:"469f2b7809c85dab743be2a787deea0f928cf887",slot:"label"},"Color"),r.types.map((e=>t("smoothly-item",{value:e,color:e},e))),t("smoothly-input-clear",{key:"93d833e82d0329fe42fd699550e7090d2aee8b10",slot:"end"})),t("smoothly-input-select",{key:"ca8185ac3e6dec1b773dcc84eb3e0b67c84fd897",name:"flip"},t("span",{key:"430a8a3e7333ab6f854bfeb26f27375a6f085b39",slot:"label"},"Flip"),t("smoothly-item",{key:"bdaa614c66e08e12a03b63ecb92e6f8fd4b22477",value:"x"},"x"),t("smoothly-item",{key:"091a2f82865030b1c35d4d974683a35bd2b15f87",value:"y"},"y"),t("smoothly-input-clear",{key:"a845f8a9224de65fbbec6fca8a25da9126beb661",slot:"end"})),t("smoothly-input-select",{key:"f7c069d6af5a183902268d411bcc6ad2ea7dd11b",name:"size"},t("span",{key:"e8a85b03fac104008ab9c3351ee1fc604f906762",slot:"label"},"Size"),t("smoothly-item",{key:"9d986f27066f821c253f7604f3c2fe3c2c5daece",value:"tiny"},"tiny"),t("smoothly-item",{key:"706de8a8dee95736dfd610c87f0c6ddee4053d8e",value:"small"},"small"),t("smoothly-item",{key:"fb34e0afcf503ea5a373c110bca59bc500189495",value:"medium"},"medium"),t("smoothly-item",{key:"aa72f96fcd840ef012d9bb3ea5f4785a2d47247f",value:"large"},"large"),t("smoothly-input-clear",{key:"650667d92f842cc29b2b821a813f6afe68a855a7",slot:"end"})),t("smoothly-input-range",{key:"14095e1c264aa84327020bde44c9ed1a16f6682b",name:"rotate",step:1,min:-180,max:180,value:0},"Rotate",t("smoothly-input-clear",{key:"9b70eebe0d7a713d38fd99f02023fb6a1a9b889a",slot:"end"}))),t("h1",{key:"9e7af6108684d5a189e7ccaecec8bf4ae9b63d52"},"Icons"),t("div",{key:"1de01a285b956ffe3a540022f2905b6257cea5bc",class:"icons"},[...u.Name.values.filter((e=>!this.display.filter||e.includes(this.display.filter))).map((e=>this.display.variant?`${e}-${this.display.variant}`:e)),...u.Logo.values.filter((e=>!this.display.filter||e.includes(this.display.filter)))].map((e=>t("smoothly-icon",{name:e,toolTip:e,"data-name":e,color:this.props.color,flip:this.props.flip,size:this.props.size,rotate:this.props.rotate,onClick:()=>{navigator.clipboard.writeText(e);this.notice.emit(L.succeeded(`Copied "${e}"`))}})))))}};Kr.style=Gr;var qr;(function(e){function t(e,o){if(e===o)return true;if(typeof e=="object"&&typeof o=="object"){const s=Object.keys(e);if(s.length==Object.keys(o).length&&s.every((s=>t(e[s],o[s]))))return true}return false}e.equal=t;function o(e,o){return!t(e,o)}e.notEqual=o})(qr||(qr={}));var Zr;(function(e){function t(e,t,a){const i=/([^.-@\s]+)/gi;return a=="backward"?o(e,t,i):s(e,t,i)}e.getWordBreakIndex=t;function o(e,t,o){let s=0;let a;while((a=o.exec(e))!=null){if(o.lastIndex-a[0].length<t)s=o.lastIndex-a[0].length;else break}return s}function s(e,t,o){let s=0;while(o.exec(e)!=null){s=o.lastIndex;if(o.lastIndex>t)break}o.lastIndex<=t&&(s=e.length);return s}})(Zr||(Zr={}));class Jr{constructor(e,t){this.formatter=e;this.type=t;this.keydownHandlers={ArrowLeft:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t),ArrowRight:(e,t)=>e.ctrlKey||e.metaKey?t:this.moveCursor(e,t)};this.eventHandlers={beforeinput:{insertText:(e,t)=>this.insert(e,t),insertFromPaste:(e,t)=>this.insert(e,t),insertFromDrop:(e,t)=>this.insert(e,t),deleteContentBackward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start-1,t.selection.end);this.erase(t);return t},deleteContentForward:(e,t)=>{e.preventDefault();if(t.selection.start==t.selection.end)this.select(t,t.selection.start,t.selection.end+1);this.erase(t);return t},deleteWordBackward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"backward")}return s},deleteWordForward:(e,t,o)=>{let s=t;if(this.type!="password"){e.preventDefault();s=this.deleteWord(o,"forward")}return s},deleteByCut:(e,t)=>{this.erase(t);return t}},input:{insertReplacementText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),insertCompositionText:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value}),deleteWordBackward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,deleteWordForward:(e,t)=>this.type=="password"?Object.assign(Object.assign({},t),{value:e.target.value}):t,undefined:(e,t)=>Object.assign(Object.assign({},t),{value:e.target.value})}}}static create(e,t){let o;switch(e){case"price":o=Ct("price",t);break;default:o=Ct(e,t);break}return new Jr(o||Ct("text"),e)}onKeyDown(e,t){var o,s,a,i;let n=t;const l=this.keydownHandlers[e.key];if(l){const r=e.target;t.selection.start=(o=r.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=r.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=r.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const c=l(e,this.unformatState(t),t);const d=this.partialFormatState(c);if(e.defaultPrevented){r.selectionStart=d.selection.start;r.selectionEnd=d.selection.end;r.selectionDirection=(i=d.selection.direction)!==null&&i!==void 0?i:null}n=d}return n}moveCursor(e,t){e.preventDefault();let o=gt.getCursor(t.selection);let s=gt.getStalker(t.selection);o=Math.min(Math.max(o+(e.key=="ArrowLeft"?-1:1),0),t.value.length);s=e.shiftKey?s:o;t.selection.direction=s<o?"forward":s>o?"backward":"none";t.selection.start=Math.min(s,o);t.selection.end=Math.max(s,o);return t}onFocus(e,t){const o=this.partialFormatState(this.unformatState(t));const s=e.target;s.value=o.value;return o}onBlur(e,t){const o=this.createFormattedState(t);const s=e.target;s.value=o.value;return o}onInputEvent(e,t){var o,s,a,i,n,l,r;const c=e.target;t.selection.start=(o=c.selectionStart)!==null&&o!==void 0?o:t.selection.start;t.selection.end=(s=c.selectionEnd)!==null&&s!==void 0?s:t.selection.end;t.selection.direction=(a=c.selectionDirection)!==null&&a!==void 0?a:t.selection.direction;const d=e.type=="beforeinput"||e.type=="input"?(l=(n=(i=this.eventHandlers[e.type])[e.inputType])===null||n===void 0?void 0:n.call(i,e,this.unformatState(t),t))!==null&&l!==void 0?l:t:t;const h=this.partialFormatState(d);if(e.defaultPrevented){c.value=h.value;c.selectionStart=h.selection.start;c.selectionEnd=h.selection.end;c.selectionDirection=(r=h.selection.direction)!==null&&r!==void 0?r:null}return h}insert(e,t){e.preventDefault();if(typeof e.data=="string")for(const o of e.data)this.formatter.allowed(o,t)&&this.replace(t,o);return t}deleteWord(e,t){const o=gt.getCursor(e.selection);const s=Zr.getWordBreakIndex(e.value,o,t);const a=this.unformatState(Object.assign(Object.assign({},e),{selection:{start:Math.min(o,s),end:Math.max(o,s),direction:"none"}}));const i=a.value.substring(0,a.selection.start)+a.value.substring(a.selection.end);a.value=i;a.selection.end=a.selection.start;return a}select(e,t,o,s){e.selection.start=t;e.selection.end=o;s&&(e.selection.direction=s)}erase(e){this.replace(e,"")}replace(e,t){e.value=e.value.substring(0,e.selection.start)+t+e.value.substring(e.selection.end);e.selection.start=e.selection.start+t.length;e.selection.end=e.selection.start}unformatState(e){return kt.copy(this.formatter.unformat(vt.copy(e)))}partialFormatState(e){return this.formatter.partialFormat(vt.copy(e))}createFormattedState(e){return this.formatter.format(vt.copy(this.formatter.unformat(vt.copy(e))))}toString(e){return this.formatter.toString(e)}initialState(e){const t=this.toString(e)||"";const o=t.length;const s=this.createFormattedState({value:t,selection:{start:o,end:o,direction:"none"}});return s}setValue(e,t,o){const s=Object.assign(Object.assign({},t),{value:this.createFormattedState({value:this.formatter.toString(o),selection:t.selection}).value});e.value=s.value;return s}getValue(e){return this.formatter.fromString(this.unformatState(e).value)}setSelection(e,t,o,s){e.focus();e.selectionStart=o;e.selectionEnd=s;this.select(t,o,s);return t}}var Xr;(function(e){e.type=S({name:C(),key:C(),shift:z(),ctrl:z(),alt:z(),meta:z()});e.is=e.type.is;function t(e,t){return{name:e,key:t.key,shift:t.shiftKey,ctrl:t.ctrlKey,alt:t.altKey,meta:t.metaKey}}e.create=t})(Xr||(Xr={}));const Qr='.sc-smoothly-input-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-h[looks="border"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-h{border:transparent solid 1px}.sc-smoothly-input-h[looks="line"].sc-smoothly-input-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-h,[looks="transparent"].sc-smoothly-input-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-h>input.sc-smoothly-input,[looks="transparent"].sc-smoothly-input-h:not(:focus-within)>input.sc-smoothly-input{background:transparent}[looks="transparent"].sc-smoothly-input-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-h.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h .label.sc-smoothly-input{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-h.floating-label.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.floating-label .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value.sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h.has-value .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[placeholder] .sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly].sc-smoothly-input-s>[slot=label],.sc-smoothly-input-h[readonly] .sc-smoothly-input-s>[slot=label],.has-value.sc-smoothly-input-h .label.sc-smoothly-input,[placeholder].sc-smoothly-input-h .label.sc-smoothly-input,[readonly].sc-smoothly-input-h .label.sc-smoothly-input,.sc-smoothly-input-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-h:not([show-label]):not(.show-label) .label.sc-smoothly-input{display:none}.sc-smoothly-input-h{display:flex;align-items:center;justify-content:center;font-weight:var(--smoothly-font-weight);overflow:hidden;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground))}[hidden].sc-smoothly-input-h{display:none}.sc-smoothly-input-h>div.sc-smoothly-input{position:relative;width:100%;height:100%}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{left:var(--input-padding-side)}.sc-smoothly-input-h:not([show-label])>div.sc-smoothly-input>input.sc-smoothly-input{padding:0 var(--input-padding-side)}.sc-smoothly-input-h>div.sc-smoothly-input>div.ghost.sc-smoothly-input{position:absolute;box-sizing:border-box;align-content:center;height:100%;padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side)}.sc-smoothly-input-h>div.sc-smoothly-input>div.ghost.sc-smoothly-input>div.value.sc-smoothly-input{display:inline;pointer-events:none;opacity:0}.sc-smoothly-input-h>div.sc-smoothly-input>div.ghost.sc-smoothly-input>div.remainder.sc-smoothly-input{display:inline;pointer-events:none;opacity:0.5}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input{padding:var(--input-value-padding-top) \n\t\tvar(--input-padding-side) \n\t\tvar(--input-value-padding-bottom) \n\t\tvar(--input-padding-side);box-sizing:border-box;width:100%;height:100%;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}.sc-smoothly-input-h>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}[invalid].sc-smoothly-input-h>div.sc-smoothly-input>smoothly-icon.sc-smoothly-input{display:block;z-index:2;cursor:pointer}.sc-smoothly-input-h>div.sc-smoothly-input>label.sc-smoothly-input{z-index:1;pointer-events:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:focus{outline:none}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:hover,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:focus,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset;-webkit-box-shadow:0 0 0 40em rgb(var(--smoothly-input-background)) inset}.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill,.sc-smoothly-input-h>div.sc-smoothly-input>input.sc-smoothly-input:-webkit-autofill+label.sc-smoothly-input{-webkit-text-fill-color:rgb(var(--smoothly-input-foreground))}';const ec=Qr;const tc=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyKeydown=o(this,"smoothlyKeydown",7);this.smoothlyBlur=o(this,"smoothlyBlur",7);this.smoothlyChange=o(this,"smoothlyChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.uneditable=this.readonly;this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.value=undefined;this.type="text";this.required=false;this.showLabel=true;this.autocomplete=undefined;this.placeholder=undefined;this.disabled=false;this.readonly=false;this.toInteger=undefined;this.currency=undefined;this.invalid=false;this.changed=false;this.errorMessage=undefined;this.initialValue=undefined;this.state=undefined}async getValue(){return this.stateHandler.getValue(this.state)}async setValue(e){if(this.inputElement)this.state=this.stateHandler.setValue(this.inputElement,this.state,e)}async setFocus(){var e;(e=this.inputElement)===null||e===void 0?void 0:e.focus()}async setSelection(e,t){if(this.inputElement)this.state=this.stateHandler.setSelection(this.inputElement,this.state,e,t<0?this.inputElement.value.length+t+1:t)}async listen(e,t){this.listener[e]=t;t(this)}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async clear(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,undefined)}}async edit(e){!this.uneditable&&(this.readonly=!e)}async reset(){if(!this.uneditable&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,this.initialValue)}}async setInitialValue(){this.changed=false;this.initialValue=this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}async setCustomInitialValue(e){this.initialValue=e}async smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}typeChange(){var e,t;switch(this.type){case"price":this.stateHandler=Jr.create("price",{currency:this.currency,toInteger:this.toInteger});break;default:this.stateHandler=Jr.create(this.type,D());break}this.state=this.stateHandler.initialState((e=this.value)!==null&&e!==void 0?e:(t=this.state)===null||t===void 0?void 0:t.value)}stateChange(){var e,t;this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}valueChange(e){const t=this.stateHandler.getValue(this.state);if(qr.notEqual(t,e)&&this.inputElement){this.state=this.stateHandler.setValue(this.inputElement,this.state,e);this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)})}}readonlyChange(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentWillLoad(){var e,t;this.typeChange();this.initialValue=this.value;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){if(this.inputElement)this.inputElement.value=this.state.value}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}onEvent(e){this.state=this.stateHandler.onInputEvent(e,this.state)}render(){var e,o,a,i,n,l,r,c,d,h;return t(s,{key:"3fbe62c49a8bb7d7cfb7e15800ae409551955d82",class:{"has-value":((e=this.state)===null||e===void 0?void 0:e.value)!=undefined&&((o=this.state)===null||o===void 0?void 0:o.value)!=""},onclick:()=>{var e;return(e=this.inputElement)===null||e===void 0?void 0:e.focus()}},t("slot",{key:"ed341e08868536ddcef3d753c9a538eaab339a80",name:"start"}),t("div",{key:"61c5e6d8d17e034e4a5a30e2aa7451e190322791"},t("div",{key:"80de8d4b66076c356208fd5aca76a871ea78adb5",class:"ghost"},t("div",{key:"9e03dc99e94796848c823280aa2008e8923057a8",class:"value"},(a=this.state)===null||a===void 0?void 0:a.value),t("div",{key:"f18338e4bb535a353ccd19c011959df294103555",class:"remainder"},(i=this.state)===null||i===void 0?void 0:i.remainder)),t("input",{key:"011ecaafbcc906ae0d0f4d8e39820a3a63cd168a",ref:e=>this.inputElement=e,color:this.color,name:this.name,type:(n=this.state)===null||n===void 0?void 0:n.type,inputmode:(l=this.state)===null||l===void 0?void 0:l.inputmode,placeholder:this.placeholder,required:this.required,autocomplete:(r=this.autocomplete)!==null&&r!==void 0?r:(c=this.state)===null||c===void 0?void 0:c.autocomplete,disabled:this.disabled,readOnly:this.readonly,pattern:((d=this.state)===null||d===void 0?void 0:d.pattern)&&((h=this.state)===null||h===void 0?void 0:h.pattern.source),onKeyDown:e=>{this.state=this.stateHandler.onKeyDown(e,this.state);if(!this.readonly&&!this.disabled)this.smoothlyKeydown.emit(Xr.create(this.name,e))},onFocus:e=>!this.readonly&&(this.state=this.stateHandler.onFocus(e,this.state)),onBlur:e=>{if(!this.readonly){const t=this.stateHandler.getValue(this.state);this.state=this.stateHandler.onBlur(e,this.state);this.smoothlyBlur.emit();this.smoothlyInput.emit({[this.name]:this.stateHandler.getValue(this.state)});if(qr.notEqual(t,this.stateHandler.getValue(this.state)))this.smoothlyChange.emit({[this.name]:this.stateHandler.getValue(this.state)})}}}),t("label",{key:"ea3151b8d79f3475d02c8b0b8761c286ffb4d9a1",class:"label float-on-focus",htmlFor:this.name},t("slot",{key:"f7175e37987972a88d5bd7756b61253240835ed4"})),t("smoothly-icon",{key:"89f2bf409e15b617656a7cadb96c8b6b4146e4a5",name:"alert-circle",color:"danger",fill:"clear",size:"small",toolTip:this.errorMessage})),t("slot",{key:"3d1a9674c76bdbac5ebd98137df4eca4a8690322",name:"end"}))}get element(){return a(this)}static get watchers(){return{currency:["typeChange"],type:["typeChange"],state:["stateChange"],value:["valueChange"],readonly:["readonlyChange"]}}};tc.style=ec;const oc='.sc-smoothly-input-checkbox-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-checkbox-h[looks="border"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-checkbox-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-checkbox-h{border:transparent solid 1px}.sc-smoothly-input-checkbox-h[looks="line"].sc-smoothly-input-checkbox-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-checkbox-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-checkbox-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-checkbox-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-checkbox-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-checkbox-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[looks="transparent"].sc-smoothly-input-checkbox-h:not(:focus-within)>input.sc-smoothly-input-checkbox{background:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-checkbox-h.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-checkbox-h.floating-label.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.floating-label .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value.sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h.has-value .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[placeholder] .sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly].sc-smoothly-input-checkbox-s>[slot=label],.sc-smoothly-input-checkbox-h[readonly] .sc-smoothly-input-checkbox-s>[slot=label],.has-value.sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[placeholder].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,[readonly].sc-smoothly-input-checkbox-h .label.sc-smoothly-input-checkbox,.sc-smoothly-input-checkbox-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-checkbox{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-checkbox-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-checkbox{display:none}.sc-smoothly-input-checkbox-h{display:flex;align-items:center;flex-direction:row;position:relative;gap:.5rem;padding:0 var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{position:absolute;z-index:1}.sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:1.25rem;width:1.25rem;border:1px solid black;display:block}.sc-smoothly-input-checkbox-h:not([readonly]),.sc-smoothly-input-checkbox-h:not([readonly])>*.sc-smoothly-input-checkbox{cursor:pointer}[readonly].sc-smoothly-input-checkbox-h,[readonly].sc-smoothly-input-checkbox-h>*.sc-smoothly-input-checkbox{cursor:not-allowed}[disabled].sc-smoothly-input-checkbox-h>input.sc-smoothly-input-checkbox,[disabled].sc-smoothly-input-checkbox-h>smoothly-icon.sc-smoothly-input-checkbox{cursor:not-allowed;border-color:rgb(var(--smoothly-color-contrast), 0.3);color:rgb(var(--smoothly-color-contrast), 0.4)}[looks="transparent"].sc-smoothly-input-checkbox-h{background-color:transparent}[looks="transparent"].sc-smoothly-input-checkbox-h:not([readonly]):focus-within{outline-color:transparent}';const sc=oc;const ac=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name=undefined;this.changed=false;this.readonly=false;this.checked=false;this.value=this.checked;this.looks=undefined;this.color=undefined;this.disabled=undefined}componentWillLoad(){var e,t;this.initialValue=this.checked;!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.checked}async clear(){!this.disabled&&!this.readonly&&(this.checked=false)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.checked=this.initialValue}async setInitialValue(){this.initialValue=this.checked;this.changed=false}async elementCheck(){var e,t;this.changed=this.initialValue!==this.checked;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}click(){!this.disabled&&!this.readonly&&(this.checked=!this.checked)}render(){return t(s,{key:"95a1522022f5a25c402a1563187cc1f483d88ec1",onMouseDown:e=>this.mouseDownPosition={x:e.clientX,y:e.clientY},onMouseUp:e=>{var t;return((t=this.mouseDownPosition)===null||t===void 0?void 0:t.x)==e.clientX&&this.mouseDownPosition.y==e.clientY&&this.click()}},t("input",{key:"a8b3077019550c1ff4e44eb9a81f817d5390ee84",type:"checkbox",checked:this.checked}),this.checked&&t("smoothly-icon",{key:"161bcd14b479d105d143137493a956ab82f46146",name:"checkmark-outline",size:"tiny"}),t("label",{key:"d7f7dfc554a0706ff045a83a95931d50ac124832"},t("slot",{key:"c6ac7cca4bdb1aa315d4e0ef1811b3c4ae3a655a"})))}get element(){return a(this)}static get watchers(){return{checked:["elementCheck"]}}};ac.style=sc;const ic='[color=default].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-clear{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-clear-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-clear-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-clear-h{display:inline}[disabled].sc-smoothly-input-clear-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-clear-h>a.sc-smoothly-input-clear:empty,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:empty{border-width:0}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-clear{padding:0.8em;min-width:8em}.sc-smoothly-input-clear-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-clear{padding:0.6em}[size=icon].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{padding:0.5em}[type=button].sc-smoothly-input-clear-h>a.sc-smoothly-input-clear{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:100%}[size=large].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{font-size:130%}.sc-smoothly-input-clear-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-clear-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-clear-h{width:100%}[expand=full].sc-smoothly-input-clear-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-clear-h:not([fill=clear])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-visible,[fill=outline].sc-smoothly-input-clear-h:active>button.sc-smoothly-input-clear::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:hover::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:focus-within::before,[fill=outline].sc-smoothly-input-clear-h>button.sc-smoothly-input-clear:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:hover,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:focus-visible,.sc-smoothly-input-clear-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-clear:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-clear-h>button.sc-smoothly-input-clear,.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h .sc-smoothly-input-clear-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-clear-h{display:none}.sc-smoothly-input-clear-h{display:flex}.sc-smoothly-input-clear-h:not([display]){display:none}.sc-smoothly-input-clear-h[type="input"].sc-smoothly-input-clear-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-clear-h.sc-smoothly-input-clear-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-clear-h{cursor:not-allowed}.sc-smoothly-input-clear-h[type="input"]:hover.sc-smoothly-input-clear-s>smoothly-icon,.sc-smoothly-input-clear-h[type="input"]:hover .sc-smoothly-input-clear-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}';const nc=ic;const lc=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill="clear";this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Clear"}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(rr.is(e)){this.parent=e;if(cr.Element.is(e)){e.listen("changed",(async e=>{if(hr.is(e)){this.display=!e.readonly&&(typeof e.defined=="boolean"?e.defined:Boolean(await e.getValue()))}if(e instanceof yr){this.disabled=e.readonly||Object.values(e.value).filter((e=>e)).length<1;this.display=!e.readonly}}))}}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.clear()}render(){var e;return t(s,{key:"443c2519cefdff110d087244d4a153a9b1a2b408",title:this.tooltip},t("smoothly-button",{key:"c88f9fa84c854b37db34f498addddd95f71b628e",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"4dffca4a3499f5fbf79bf2d7a91a1e0e6a7f0052"}),t("smoothly-icon",{key:"331c0dcd767585f0711c1072580dff6d91f39e06",name:"close",size:"tiny"})))}};lc.style=nc;const rc='.sc-smoothly-input-color-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-color-h[looks="border"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-color-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-color-h{border:transparent solid 1px}.sc-smoothly-input-color-h[looks="line"].sc-smoothly-input-color-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-color-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-color-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-color-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-color-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-color-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-color-h,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-color-h>input.sc-smoothly-input-color,[looks="transparent"].sc-smoothly-input-color-h:not(:focus-within)>input.sc-smoothly-input-color{background:transparent}[looks="transparent"].sc-smoothly-input-color-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h .label.sc-smoothly-input-color{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-color-h.floating-label.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.floating-label .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value.sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h.has-value .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[placeholder] .sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly].sc-smoothly-input-color-s>[slot=label],.sc-smoothly-input-color-h[readonly] .sc-smoothly-input-color-s>[slot=label],.has-value.sc-smoothly-input-color-h .label.sc-smoothly-input-color,[placeholder].sc-smoothly-input-color-h .label.sc-smoothly-input-color,[readonly].sc-smoothly-input-color-h .label.sc-smoothly-input-color,.sc-smoothly-input-color-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-color{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-color-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-color{display:none}.sc-smoothly-input-color-h{display:flex;position:relative;background-color:rgb(var(--smoothly-input-background));align-items:center;justify-content:center}.sc-smoothly-input-color-h>smoothly-input.sc-smoothly-input-color{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-color-h div.color-sample.sc-smoothly-input-color{height:2em;width:3em;margin-right:0.5rem;background-color:var(--hexCode);outline:1px solid rgb(var(--smoothly-input-border));border-radius:3px}.sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{padding-right:var(--input-padding-side)}[readonly].sc-smoothly-input-color-h smoothly-icon[name=options-outline].sc-smoothly-input-color{filter:opacity(60%)}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color{background-color:rgb(var(--smoothly-input-background));position:absolute;padding:1em 1em 1em 0;top:calc(var(--element-height) + .8em);left:0;box-sizing:border-box;z-index:10;border:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color::before{content:"";transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border));position:absolute;z-index:100;top:0em}.sc-smoothly-input-color-h>div.rgb-sliders.sc-smoothly-input-color>smoothly-toggle-switch.sc-smoothly-input-color{margin-left:auto;margin-right:1em;margin-bottom:1em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color{padding:.5em 0}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color label.sc-smoothly-input-color{width:4em}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(255, var(--rgb-g), var(--rgb-b)), rgb(0, var(--rgb-g), var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-moz-range-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=r].sc-smoothly-input-color::-webkit-slider-thumb{background-color:red}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), 255, var(--rgb-b)), rgb(var(--rgb-r), 0, var(--rgb-b)))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-moz-range-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=g].sc-smoothly-input-color::-webkit-slider-thumb{background-color:green}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to left, rgb(var(--rgb-r), var(--rgb-g), 255), rgb(var(--rgb-r), var(--rgb-g), 0))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-moz-range-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=b].sc-smoothly-input-color::-webkit-slider-thumb{background-color:blue}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right in hsl longer hue, red, red)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=h].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), 100%, 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, hsl(var(--hsl-h), 0%, 50%), hsl(var(--hsl-h), 100%, 50%))}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-moz-range-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=s].sc-smoothly-input-color::-webkit-slider-thumb{background-color:hsl(var(--hsl-h), var(--hsl-s), 50%)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-runnable-track{background:linear-gradient(to right, black, white)}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-moz-range-thumb{background-color:#777}div.rgb-sliders.sc-smoothly-input-color smoothly-input-range.sc-smoothly-input-color>div.sc-smoothly-input-color>input[name=l].sc-smoothly-input-color::-webkit-slider-thumb{background-color:#777}';const cc=rc;const dc=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.readonly=false;this.output="rgb";this.name=undefined;this.showLabel=true;this.open=false;this.sliderMode="rgb"}async componentWillLoad(){this.value&&this.setInitialValue();this.value&&(this.rgb=r.Hex.toRGB(this.value));this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.output==="rgb"?{r:this.rgb.r===undefined?undefined:Math.round(this.rgb.r),g:this.rgb.g===undefined?undefined:Math.round(this.rgb.g),b:this.rgb.b===undefined?undefined:Math.round(this.rgb.b)}:this.value?this.value:undefined}async clear(){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined};this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e;this.open=false}async reset(){this.value=this.initialValue;this.open=false}async setInitialValue(){this.initialValue=this.value;this.open=false}async valueChanged(){var e,t;this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}handleSwitchMode(e){e.stopPropagation();this.sliderMode=e.detail?"hsl":"rgb";if(this.sliderMode==="rgb"){this.value&&(this.rgb=r.Hex.toRGB(this.value))}else{this.value&&(this.hsl=r.RGB.toHSL(r.Hex.toRGB(this.value)))}}hexInputHandler(e){if(e!==this.value){if(e&&r.Hex.type.is(e)){if(this.sliderMode==="hsl"||this.rgb.r===undefined){this.rgb=r.Hex.toRGB(e)}if(this.sliderMode==="rgb"||this.hsl.h===undefined){this.hsl=r.RGB.toHSL(r.Hex.toRGB(e))}}else if(!e||!r.Hex.type.is(e)){this.rgb={r:undefined,g:undefined,b:undefined};this.hsl={h:undefined,s:undefined,l:undefined}}this.value=e}}sliderInputHandler(e){var t;e.stopPropagation();const o=Object.keys(e.detail)[0];let s=this.sliderMode==="rgb"?this.rgb:this.hsl;if(!(e.detail[o]===undefined)){for(const a of Object.keys(s))if(a===o)s=Object.assign(Object.assign({},s),{[a]:a==="s"||a==="l"?+((t=e.detail[o])!==null&&t!==void 0?t:0)*100:e.detail[o]});else if(s[a]===undefined)s=Object.assign(Object.assign({},s),{[a]:0});if(this.sliderMode==="rgb"){this.rgb=Object.assign({},s);this.hsl=r.RGB.toHSL(this.rgb);this.hexInputHandler(r.RGB.toHex(this.rgb))}else{this.hsl=Object.assign({},s);this.rgb=r.HSL.toRGB(this.hsl);this.hexInputHandler(r.RGB.toHex(r.HSL.toRGB(this.hsl)))}}}openDropdown(){this.open=!this.open}render(){var e,o,a,i,n,l;return t(s,{key:"7f1cdee26ce9429dcfce8d03d876c66c4bc6b4ad",style:{"--hexCode":this.value,"--rgb-r":`${Math.round((e=this.rgb.r)!==null&&e!==void 0?e:0)}`,"--rgb-g":`${Math.round((o=this.rgb.g)!==null&&o!==void 0?o:0)}`,"--rgb-b":`${Math.round((a=this.rgb.b)!==null&&a!==void 0?a:0)}`,"--hsl-h":`${Math.round((i=this.hsl.h)!==null&&i!==void 0?i:0)}`,"--hsl-s":`${Math.round((n=this.hsl.s)!==null&&n!==void 0?n:0)}%`,"--hsl-l":`${Math.round((l=this.hsl.l)!==null&&l!==void 0?l:0)}%`,"--element-height":`${this.element.clientHeight}px`}},t("smoothly-input",{key:"56287469e8bf02977505c701fe5ed71354928d76",value:this.value,name:this.name,looks:undefined,color:this.color,type:"hex-color",showLabel:this.showLabel,readonly:this.readonly,onSmoothlyInput:e=>(e===null||e===void 0?void 0:e.stopPropagation(),this.hexInputHandler(e.detail[this.name]))},t("slot",{key:"a9ab7e21bfc75d25ab1000deb2270fab7dbdf864"})),t("div",{key:"d0512a2df8b8a1de5e64729c616bccc9c89bb296",class:"color-sample"}),t("smoothly-icon",{key:"06289ee0bec2159be080b61ace4959d9c51b34bc",color:this.color,name:"options-outline",size:"small",onClick:()=>!this.readonly&&this.openDropdown()}),t("div",{key:"8133f8753df1b4df9f64783aead0f08c5755932e"},t("slot",{key:"1477cf5aa7ff10134e84eb8807d139ff256d6e60",name:"end"})),this.open&&!this.readonly&&t("div",{key:"8b190e294cc1b315ad8d3fd769afd544546d914b",class:"rgb-sliders"},t("smoothly-toggle-switch",{key:"39c25111b8a835258d2573a9901df7fc632242e4",title:`${this.sliderMode==="rgb"?"To HSL":"To RGB"}`,onSmoothlyToggleSwitchChange:e=>this.handleSwitchMode(e),size:"tiny",checkmark:false,selected:this.sliderMode==="hsl"}),Object.entries(this.rgb).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="rgb"?{display:"none"}:{},name:e,min:0,max:255,color:undefined,type:"text",value:o,step:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()}))),Object.entries(this.hsl).map((([e,o])=>t("smoothly-input-range",{style:this.sliderMode!="hsl"?{display:"none"}:{},name:e,min:0,max:e==="h"?359:1,color:undefined,type:e==="s"||e==="l"?"percent":"text",value:(e==="s"||e==="l")&&o?o/100:o,step:e==="s"||e==="l"?.01:1,outputSide:"right",onSmoothlyInput:e=>this.sliderInputHandler(e),label:e.toUpperCase()})))))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};dc.style=cc;const hc=class{constructor(t){e(this,t)}render(){return t(s,{key:"c2fe23975b38b280a677c518054c4e60e6af2e2c"},t("h2",{key:"d9c3935d08df05cdf004cad00512a228c39c642e"},"Color"),t("smoothly-input-color",{key:"ffafa281cf391ee7d741055b4baae0dac8fe6a7c",name:"color"},"Choose color"))}};hc.style="style.css";const mc='.sc-smoothly-input-date-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-date-h[looks="border"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-h{border:transparent solid 1px}.sc-smoothly-input-date-h[looks="line"].sc-smoothly-input-date-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-h,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-h>input.sc-smoothly-input-date,[looks="transparent"].sc-smoothly-input-date-h:not(:focus-within)>input.sc-smoothly-input-date{background:transparent}[looks="transparent"].sc-smoothly-input-date-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h .label.sc-smoothly-input-date{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-h.floating-label.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.floating-label .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value.sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h.has-value .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[placeholder] .sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly].sc-smoothly-input-date-s>[slot=label],.sc-smoothly-input-date-h[readonly] .sc-smoothly-input-date-s>[slot=label],.has-value.sc-smoothly-input-date-h .label.sc-smoothly-input-date,[placeholder].sc-smoothly-input-date-h .label.sc-smoothly-input-date,[readonly].sc-smoothly-input-date-h .label.sc-smoothly-input-date,.sc-smoothly-input-date-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date{display:none}.sc-smoothly-input-date-h{display:flex;position:relative;max-width:100vw;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box;min-height:var(--input-min-height)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date{width:100%;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:pointer}[readonly].sc-smoothly-input-date-h,[readonly].sc-smoothly-input-date-h>smoothly-input.sc-smoothly-input-date>div.sc-smoothly-input-date>input.sc-smoothly-input-date{cursor:not-allowed}[looks=transparent].sc-smoothly-input-date-h smoothly-input.sc-smoothly-input-date{outline:none}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));min-width:18em}.sc-smoothly-input-date-h>nav.sc-smoothly-input-date>smoothly-calendar.sc-smoothly-input-date::before{content:"";box-sizing:border-box;position:absolute;top:1px;z-index:9;transform:translate(2em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-h>span.icons.sc-smoothly-input-date{display:flex;flex-direction:row;align-items:center}@media screen and (min-width: 400px){.sc-smoothly-input-date-h>nav.sc-smoothly-input-date{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em}}';const bc=mc;const yc=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyValueChange=o(this,"smoothlyValueChange",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.color=undefined;this.looks=undefined;this.name=undefined;this.changed=false;this.readonly=false;this.invalid=false;this.value=undefined;this.open=undefined;this.max=undefined;this.min=undefined;this.showLabel=true}componentWillLoad(){var e,t;this.setInitialValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async listen(e,t){this.listener[e]=t;t(this)}async clear(){this.value=undefined}onStart(e){var t,o;this.smoothlyValueChange.emit(e);this.smoothlyInput.emit({[this.name]:e});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}smoothlyInputHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.changed=false}dateSetHandler(e){this.open=false;e.stopPropagation()}render(){return t(s,{key:"6955944dd414b37f64792071b7cf07f18ed38ed3"},t("smoothly-input",{key:"334571bf04611a652c3feffe1e5faa5c7b1f26c0",color:this.color,looks:this.looks=="transparent"?this.looks:undefined,name:this.name,onFocus:()=>!this.readonly&&(this.open=!this.open),onClick:()=>!this.readonly&&(this.open=!this.open),readonly:this.readonly,invalid:this.invalid,type:"date",value:this.value,showLabel:this.showLabel,onSmoothlyInputLoad:e=>e.stopPropagation(),onSmoothlyInput:e=>{e.stopPropagation();this.value=e.detail[this.name]}},t("slot",{key:"7540f9c4b099fd8a659cc1e39b2a1195b0a7f59a"})),t("span",{key:"ebdb6a365e74a5c635f63811ce309c160d5af35d",class:"icons"},t("slot",{key:"e5ebb2ef8dbd85a62c6a71e93fd41886ee9ac308",name:"end"})),this.open&&!this.readonly&&t("nav",{key:"6924bc97b9f03e84bc449039f33232b05fc15729"},t("smoothly-calendar",{key:"68964bdc3c4fc4a7e8a84bec206ecb39ae65947c",doubleInput:false,value:this.value,onSmoothlyValueChange:e=>{this.value=e.detail;e.stopPropagation()},max:this.max,min:this.min},t("div",{key:"27fac3ecaaebb4ce91f4c6e7503fb9308f3bb6f3",slot:"year-label"},t("slot",{key:"2d3a5016114b92a0036321efc3fa8b86006ed7c5",name:"year-label"})),t("div",{key:"47124124ab93b08722058f150101093abbbbb950",slot:"month-label"},t("slot",{key:"06fe48332f022c57e380381b02f30889cad73a39",name:"month-label"})))))}get element(){return a(this)}static get watchers(){return{value:["onStart"]}}};yc.style=bc;const uc='.sc-smoothly-input-date-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-date-range-h[looks="border"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-date-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-date-range-h{border:transparent solid 1px}.sc-smoothly-input-date-range-h[looks="line"].sc-smoothly-input-date-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-date-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-date-range-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-date-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-date-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-date-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-date-range-h,[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-date-range-h>input.sc-smoothly-input-date-range,[looks="transparent"].sc-smoothly-input-date-range-h:not(:focus-within)>input.sc-smoothly-input-date-range{background:transparent}[looks="transparent"].sc-smoothly-input-date-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-date-range-h.floating-label.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.floating-label .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value.sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h.has-value .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[placeholder] .sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly].sc-smoothly-input-date-range-s>[slot=label],.sc-smoothly-input-date-range-h[readonly] .sc-smoothly-input-date-range-s>[slot=label],.has-value.sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[placeholder].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,[readonly].sc-smoothly-input-date-range-h .label.sc-smoothly-input-date-range,.sc-smoothly-input-date-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-date-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-date-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-date-range{display:none}.sc-smoothly-input-date-range-h{position:relative;display:flex;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-date-range-h:focus-within smoothly-input.sc-smoothly-input-date-range{outline:none}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:pointer}[readonly].sc-smoothly-input-date-range-h,[readonly].sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range>div.sc-smoothly-input-date-range>input.sc-smoothly-input-date-range{cursor:not-allowed}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range{position:absolute;z-index:10;top:4em;background-color:rgb(var(--smoothly-input-background));max-width:22em;min-width:18em}.sc-smoothly-input-date-range-h>nav.sc-smoothly-input-date-range>smoothly-calendar.sc-smoothly-input-date-range::before{content:"";position:absolute;box-sizing:border-box;top:1px;left:-7em;z-index:9;transform:translate(10em, -0.55em) rotate(45deg);width:1em;height:1em;background-color:rgb(var(--smoothly-input-background));border-top:1px solid rgb(var(--smoothly-input-border));border-left:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range{display:flex;width:100%;background-color:var(--smoothly-input-background);border-radius:0.25rem;cursor:pointer}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>smoothly-input.sc-smoothly-input-date-range{min-width:15rem;background-color:transparent;--input-min-height:calc(var(--input-min-height) - 2px)}.sc-smoothly-input-date-range-h>section.sc-smoothly-input-date-range>span.sc-smoothly-input-date-range{padding:0.5em 0.2em 0.5em 0.2em;align-self:center}.sc-smoothly-input-date-range-h>span.icons.sc-smoothly-input-date-range{display:flex;flex-direction:row;align-items:center}';const fc=uc;const pc=class{constructor(t){e(this,t);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.name="dateRange";this.color=undefined;this.looks=undefined;this.readonly=false;this.showLabel=true;this.start=undefined;this.end=undefined;this.placeholder="from — to";this.invalid=false;this.max=undefined;this.min=undefined;this.changed=false;this.value=undefined;this.open=undefined}componentWillLoad(){var e,t;this.setInitialValue();this.updateValue();this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));this.start&&this.end&&this.smoothlyInput.emit({[this.name]:{start:this.start,end:this.end}});!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}inputHandler(e){const t="dateRangeInput"in e&&typeof e.dateRangeInput=="string"&&e.dateRangeInput.split(" - ");if(t&&t.length==2&&k.is(t[0])&&k.is(t[1])){this.start=t[0];this.end=t[1]}}updateValue(){this.value=this.start&&this.end?{start:this.start,end:this.end}:undefined}valueChanged(){var e,t;this.changed=this.initialStart!=this.start||this.initialEnd!=this.end;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&(this.open=!this.open)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.start&&this.end?{start:this.start,end:this.end}:undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.start=this.initialStart;this.end=this.initialEnd}async setInitialValue(){this.initialStart=this.start;this.initialEnd=this.end;this.changed=false}async clear(){this.start=undefined;this.end=undefined;this.smoothlyInput.emit({[this.name]:undefined})}render(){const e=navigator.language;return t(s,{key:"888acc7f9b13d584516df9b02b00a6d1d355bc67",tabindex:0},t("section",{key:"4d48b609e57b5efb08d6a959e5e6493590a4d958",onClick:()=>!this.readonly&&(this.open=!this.open)},t("smoothly-input",{key:"9b08f7f4b55ee7c47caae23c60557fee2474d7e9",type:"text",name:"dateRangeInput",readonly:this.readonly,value:this.start&&this.end?`${zt(this.start,"date",e)} — ${zt(this.end,"date",e)}`:undefined,invalid:this.invalid,placeholder:this.placeholder,showLabel:this.showLabel,onSmoothlyInput:e=>{e.stopPropagation();this.inputHandler(e.detail)}},t("slot",{key:"05a2ad08ac0a1ffafc57b296c6b307a3e94d93b1"}))),t("span",{key:"a30ab3b21738225028eeb8ec224c1e57e6867d5b",class:"icons"},t("slot",{key:"dc9950b0053872d98e537dc2b52959ec804dc88e",name:"end"})),this.open&&t("nav",{key:"957af34215a9aed9c77a287bb0c9dd0b38130a2e"},t("smoothly-calendar",{key:"4ef33a937d1e3bd08769284d12678ae264d32710",doubleInput:true,onSmoothlyValueChange:e=>e.stopPropagation(),onSmoothlyStartChange:e=>{e.stopPropagation();this.start=e.detail},onSmoothlyEndChange:e=>{e.stopPropagation();this.end=e.detail},onSmoothlyDateSet:e=>e.stopPropagation(),onSmoothlyDateRangeSet:e=>{e.stopPropagation();this.open=false;this.smoothlyInput.emit({[this.name]:e.detail})},value:this.start,start:this.start,end:this.end,max:this.max,min:this.min})))}get element(){return a(this)}static get watchers(){return{start:["updateValue"],end:["updateValue"],value:["valueChanged"]}}};pc.style=fc;const gc=".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";const kc=gc;const vc=class{constructor(t){e(this,t);this.duration={hours:8};this.alphanumeric="!@##"}render(){return t(s,{key:"f5fb9f6b4974bc45606cf2d8c8e36d1df5615968"},t("smoothly-input-demo-standard",{key:"76b7f4807acddd7a1abaafc15dd2a831023b1e2d"}),t("div",{key:"cf8fa718aef87f25b5e808ab2e6208b1aaee69ea",class:"inputs"},t("h2",{key:"19b8c7a5a6bc49fb40aee9e84ac9773c5def7366"},"Calendar"),t("smoothly-input-date",{key:"927e3a5305f7ed3b7f0b968580604a8d647d6cab",name:"some-date"},"Calendar"),t("h2",{key:"1764deed7d46371f2e4f788916bab240d4f239d8"},"Date Range"),t("smoothly-input-date-range",{key:"9f5201fc2ee08446de0f9d76651db829866f848c",name:"testing",start:k.now(),end:k.nextMonth(k.now()),min:"2021-10-01",max:"2025-01-31"}),t("smoothly-input-date-range",{key:"7376ad2973f5925d66e859bedefde669fa1150a8",name:"testing",start:k.now(),end:k.nextMonth(k.now()),min:"2021-10-10",max:"2024-12-30"},t("smoothly-input-reset",{key:"4b596600cc7f285bc256da0e745797d8d7901c1d",slot:"end",size:"icon"})),t("smoothly-input-date-range",{key:"4a5a7f575ded4a0279e9281712dc7e89a2d80bda",looks:"grid",start:k.now(),end:k.nextMonth(k.now()),min:"2021-10-10",max:"2025-12-30",showLabel:false,style:{"--smoothly-input-border-radius":"0.5rem"}},t("smoothly-input-clear",{key:"0a6fcc2bf611100b030151f697a92c265cab70ce",slot:"end",size:"icon"})),t("h2",{key:"6dff02322fe2e6d046ab87783ee10e2bf8811846"},"Date"),t("smoothly-input-date",{key:"12d8d46d4b3b6c15edaf3dc57b42f8b8ae2e7673"},"Date"),t("smoothly-input-date",{key:"e29de3a00b02eddf2d1b12bacd3cac2fcd4ba21d",showLabel:false,value:"2021-10-28",max:"2021-12-30",min:"2021-10-10"},"Date"),t("smoothly-input-date",{key:"da1503dc2c330128d6c45cf8ddae57ddfa07777a",value:"2021-10-28"},"Date",t("smoothly-input-reset",{key:"1928e5521e5f057770e55cb01779f4db5ea2b969",slot:"end",size:"icon"})),t("smoothly-input-date",{key:"d2a7c44b60f34eae763e9d2ab0a1638116cb4ab6",value:"2021-10-28"},"Date",t("smoothly-input-clear",{key:"c8f3b4d83b9c7b7e9bc7a77e69f5a5f62574f383",slot:"end",size:"icon"})),t("h2",{key:"3fd8792c958f964c72268ea7864e559b23ed0437"},"Select"),t("div",{key:"3a9eb0b50df2f894a6bdd21b929ae6359c861cd1",class:"select-div"},t("smoothly-input-select",{key:"0cfb6c169c267de816dfa241d60fe276e240ab8f",name:"select-dessert",looks:"border"},t("label",{key:"dc2e67f25a9e838324b0af86086fb383f62ed885",slot:"label"},"Select with clear button"),t("smoothly-item",{key:"ffb1b308014b5860cd6211fd474b5fd0b324004b",value:"1"},"Ice cream"),t("smoothly-item",{key:"ff46f80bed769056e4724b1aa349ab8df6316277",value:"2"},"Sponge cake"),t("smoothly-item",{key:"7234bcf8495a875b320b44b3cf685960c16994b6",value:"3",disabled:true},"Disabled Item"),t("smoothly-item",{key:"368eb6a25a0cab467d6c15ae162d80f9fd2b694d",value:"4"},"Cookie"),t("smoothly-item",{key:"ba54e39b1ef822b404c7b41d8ede588efffb9379",value:"5"},"Croissant"),t("smoothly-item",{key:"3508452be1107a52a6eae701cfefddb7430a0f83",value:"6"},"Chocolate fondue"),t("smoothly-input-clear",{key:"8fbb58174a3ff374d1b6f9ecb41f4eafc42ac3df",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"442fd11b7bed0671dbad3d3c6513f610f068263b",multiple:true,name:"select-dessert-multiple",looks:"border"},t("label",{key:"c25ff454d762fbf5c3753c940c5f19270f77c930",slot:"label"},"Select multiple with reset button"),t("smoothly-item",{key:"3eab5157ea0aced4df728508eceddd9de2108c41",value:"ice cream"},"Ice cream"),t("smoothly-item",{key:"e091e11fac9863053119399195eb7b151d40d5b1",value:"sponge cake"},"Sponge cake"),t("smoothly-item",{key:"f951cf1b3c8921fb7e5a56ce717cbc5ce9ee2105",selected:true,value:"cookie"},"Cookie"),t("smoothly-item",{key:"d218c0a625bf06749ce47c6771e3d551080c9792",value:"croissant"},"Croissant"),t("smoothly-item",{key:"7dcf5a03476f818a5843034813da35c185631322",selected:true,value:"chocolate fondue"},"Chocolate fondue"),t("smoothly-input-reset",{key:"27b8c6510f419ed030987fc6279121336549e541",size:"icon",slot:"end"})),t("smoothly-input-select",{key:"a4fee9f21deca306d278d4f9e79107ae6604921b",name:"spirit-animals",looks:"border",mutable:true},t("label",{key:"72dffbe468f90f77d86aced927ce371995d5f485",slot:"label"},"Select or add new options"),t("smoothly-item",{key:"1cdfcffbfb7d105ba775827736dea14298c449cf",value:"manatee"},"Manatee"),t("smoothly-item",{key:"4918e8c669062246ebbc6646b40e3f1b63c03744",selected:true,value:"cthulu"},"Cthulu")),t("smoothly-input-select",{key:"863ce71edfa5a6812ec68f4d91a5b93bd03cb02a",name:"select-icon",clearable:false,showSelected:false},t("smoothly-item",{key:"71b4cbd7e1d2f4ad2dd1e1e81f983eb5af57320d",value:"folder",selected:true},t("smoothly-icon",{key:"85a9c63762b5a906e74bd14472caf542308b12fc",size:"small",name:"folder-outline"})),t("smoothly-item",{key:"e376aff6f1f203274cc4c7e5185f429f2ab2413a",value:"camera"},t("smoothly-icon",{key:"acf038728fb05e63e8ca9a23d86ddfa775e75c88",size:"small",name:"camera-outline"}))),t("smoothly-input-select",{key:"e5e3c9cdbee2bd5d25405bb00bc8a1b0a28bbcbe",ordered:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"e8fb5709c0e79b9e38580a16f81fb1d7bbc4a37a",slot:"label"},"Alphabet ordered select"),Array.from({length:26}).map(((e,t)=>String.fromCharCode(t+65))).map((e=>t("smoothly-item",{value:e,selected:e=="H"},e)))),t("smoothly-input-select",{key:"9e3f99927f6e54ee05c91f8aa5cf7f6ebcf69998",multiple:true,menuHeight:"7.5items",placeholder:"Select...",name:"select-month"},t("label",{key:"07d0a34094bc6ab9fbef7e4dbcdce146042b2b88",slot:"label"},"Month multiple select"),t("smoothly-item",{key:"152ef005ce3793e97354445a860ad68cbee8ab33",value:"1"},"January"),t("smoothly-item",{key:"f7e641e238be611474914f9019d8f0c04e1748c4",value:"2"},"February"),t("smoothly-item",{key:"cc5d5bd3eca19b02bcd890569bba07742dcedc04",value:"3"},"March"),t("smoothly-item",{key:"5c3c1adbb28372473d78d5358025f00c2f179eca",value:"4"},"April"),t("smoothly-item",{key:"e67ff66dc999b688481fdfdd3f9c401ff0ae308f",value:"5"},"May"),t("smoothly-item",{key:"24fef6b4773f4a541443ed337e9efd6aadd40ad3",value:"6"},"June"),t("smoothly-item",{key:"d870d078612432334a40908b71d4c80969f6c307",value:"7"},"July"),t("smoothly-item",{key:"0476e0648671e4d40a942a9f0b3d4ceac4c00e70",value:"8"},"August"),t("smoothly-item",{key:"1036c20d89e5e8d2239a3e159d709c6146e5bffa",value:"9"},"September"),t("smoothly-item",{key:"284995044dbfcc51e19d5f0df1573c56b2e4c6eb",value:"10"},"October"),t("smoothly-item",{key:"2db4b959ef88bb76743c5244da2b658e56a92b63",value:"11"},"November"),t("smoothly-item",{key:"32da23e740fa20b0bbe4e659a9676057d0e9aa73",value:"12"},"December"))),t("h2",{key:"156972cad40cac5ffb02ace653cf02befacd6b6a"},"Duration"),t("smoothly-input",{key:"c94595a4b896161c04d02d6215ba538e29edcdc3",name:"duration",type:"duration",placeholder:"hh:mm",value:this.duration,onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("smoothly-input",{key:"6866dd633ddcf17b103ec8cbc5710e52862a2d4f",name:"duration",type:"duration",value:this.duration,placeholder:"-hh:mm",onSmoothlyInput:e=>{const t=e.detail.duration;this.duration=t}},"Duration"),t("h2",{key:"d0b5633f6333132c4260b3d1cbce7af063e56f6d"},"Invalid text with warning icon and tooltip"),t("smoothly-input",{key:"7b981f8d3094db4beceb49819e39cd64d3a58cdc",name:"alphanumeric",invalid:!/^[a-zA-Z0-9]+$/.test(this.alphanumeric),errorMessage:"Only alphanumeric allowed",value:this.alphanumeric,onSmoothlyInput:e=>this.alphanumeric=e.detail.alphanumeric},"Alphanumeric"),t("h2",{key:"4a6cb992d7a790ac8f90a9457624b39dde605f1f"},"Identifiers"),t("smoothly-input",{key:"ea8c8c5733677215ebe8bb58dbdb003e0fe2ffcc",type:"identifier-code"},"Code"),t("smoothly-input",{key:"59d0e1b81408577c66471703272024ea00e65b23",type:"identifier-attribute"},"Attribute"),t("smoothly-input",{key:"0c37d4cc4c095af41847d0481dbaa758344a1f44",type:"identifier-snake"},"Snake"),t("smoothly-input",{key:"1f007396c2ce2eeb4b808f6cf685101ecaaa2b39",type:"identifier-pascal"},"Pascal"),t("smoothly-input",{key:"e98f7782122213569d5849aeb51bebef7dc76e1a",type:"identifier-camel"},"Camel"),t("h2",{key:"10370fde30ddc40fb1756fda0a13473ef6b54c5c"},"Input Alternatives"),t("smoothly-input",{key:"b6477cffb527fe7aadefc72fcea14edec8d9be52",type:"text",name:"name.last",onSmoothlyChange:e=>console.log("smoothly change event")},t("smoothly-icon",{key:"8e74243a055105befb639cd9349a8851762d5634",name:"checkmark-circle",slot:"start"}),"First Name"),t("smoothly-input",{key:"3233f8e9ffa51aabef8677a3c6b9e340099fc76c",type:"text",name:"name.first",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"8b44ab9254c128952ce3403930cd0d2b33869f67",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"874ea98d4329a8de0179ab35738439c988c5795d",type:"text",name:"name.first",placeholder:"Smith",onSmoothlyChange:e=>console.log("smoothly change event")},"Last Name",t("smoothly-icon",{key:"320e158a5b8e453b260a4641dcdd7e7eebb735ed",name:"checkmark-circle",slot:"end"})),t("smoothly-input",{key:"3842e1d2cdb6114319aa7997123e9643b9749efc",placeholder:"test"}),t("smoothly-input-submit",{key:"06ce532c4703c3c798c91c9416b21ecddd6db84b",slot:"submit",fill:"solid",onSubmit:e=>alert(e),color:"success"}),t("h4",{key:"2dbce1c8a6d42eba1c40ced7750d4728b999210e"},"Smoothly checkboxes"),t("div",{key:"a1804c8d0644e13a196a37ae1eec78d27f2aedb3",class:"checkbox-group"},t("smoothly-input-checkbox",{key:"a420ffd579f723297c69ad49ea6cb0ee0c9596de",disabled:true,name:"first-checkbox"},t("smoothly-icon",{key:"249c0ba3c8745e8333f8b535d4b409f7b37473df",name:"checkmark-circle",slot:"start",size:"tiny"}),"First"),t("smoothly-input-checkbox",{key:"d784dcad4cf36a3ac7c1de6b01fc2563cee5844d",name:"second-checkbox",checked:true},t("smoothly-icon",{key:"2d547862dc1f1e401ce0e28161ec22518bf50daf",name:"checkmark-circle",slot:"start",size:"tiny"}),"second",t("smoothly-input-clear",{key:"660cbd34a71a2f3db60f4bcb71f84d65b0a2e26d",size:"icon",slot:"end"})),t("smoothly-input-checkbox",{key:"c611d17fe695f639bece084d60334ec600c29dd9",name:"third-checkbox"},"3rd")),t("h4",{key:"472ff0bc98b21b279f81b6023208b4dbed53da87"},"Smoothly Radio Buttons"),t("smoothly-input-radio",{key:"8d5be0841845fb0077a09d130231ab53c4bd4fb9",clearable:true,name:"radioFirstInput"},t("smoothly-icon",{key:"1405d82a5326946e9b75aaa044c493101cd10cf6",name:"checkmark-circle",slot:"start"}),t("label",{key:"0de40dc5cd9ed9c8fc179603c99b506969de235b",slot:"label"},"Clearable"),t("smoothly-input-radio-item",{key:"7a580563ae23ff537bbd3d24949b4c5293301919",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"802ac68270881b22463edb41b1993da3523caf24",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"3fc3d97e8a222e4bb4ed345cc3fd2dc722b15915",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"12edb81d592e715090fb863ba1f813b829eb6c25",size:"icon",slot:"end"})),t("smoothly-input-radio",{key:"6eefa5acda608df32bf346f4d39112d416d303d0",name:"radioSecondInput"},t("label",{key:"adfdd8cccf5066275893d97312bc25f4a534fb4c",slot:"label"},"Not clearable"),t("smoothly-input-radio-item",{key:"212a3e5b79ae95879528b06e2c5c171d30346574",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"1b7e69595c0ff030d70c81983f6ba2935bff0a59",value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"f021ef6ba5491e532c956770dec1cdb743b2ecd8",value:"third"},"Label 3"),t("smoothly-input-radio-item",{key:"5e9aeb6fab5d2e163f3dd0af8e6c907d7c216159",value:"fourth"},"Label 4"),t("smoothly-input-radio-item",{key:"b89bffddc3d2ecc88f2f77065babd1ed961d9a30",value:"fifth"},"Label 5"),t("smoothly-input-radio-item",{key:"2ac6c8f18deefff5e47a4956c482ded44a4bce56",value:"sixth"},"Label 6")),t("smoothly-input-range-demo",{key:"d745e05ff520d1437f67e7e52a81494f4aad1fba"}),t("smoothly-input-color-demo",{key:"f75787af771c042203883f797b3f018e48f6770d"}),t("smoothly-input-price-demo",{key:"bfd9b06dbbb6626e32687b48bb9cbdce12cc59e3"}),t("smoothly-back-to-top",{key:"7c1b9cb3aaf8e709a2c0cd746eb98f9426d51a10"})))}};vc.style=kc;const xc='.sc-smoothly-input-demo-standard-h{width:50%;margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:2fr 1fr;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:"hello"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:"";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}.vertical.sc-smoothly-input-demo-standard-h{width:100%;row-gap:0;position:relative}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;grid-template-columns:repeat(auto-fill, 14rem);gap:.5rem}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{display:none}.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::before,.vertical.sc-smoothly-input-demo-standard-h>div.input-wrapper.sc-smoothly-input-demo-standard>.guide-lines.sc-smoothly-input-demo-standard::after{content:"";pointer-events:none;right:0;width:100vw;position:absolute;z-index:2;border-top:1px dotted black}.sc-smoothly-input-demo-standard-h:not(.vertical) .guide-lines.sc-smoothly-input-demo-standard{display:none}.guide-lines.sc-smoothly-input-demo-standard{text-align:end;justify-self:center;align-content:center}.guide-lines.sc-smoothly-input-demo-standard::before{top:1rem}.guide-lines.sc-smoothly-input-demo-standard::after{top:2rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::before{top:1.05rem}.guide-lines.show-label.sc-smoothly-input-demo-standard::after{top:2.3rem}';const wc=xc;const Sc=class{constructor(t){e(this,t);this.duration={hours:8};this.options={showLabel:true}}connectedCallback(){this.updateInputHeightText()}componentDidRender(){this.updateInputHeightText()}updateInputHeightText(){const e=Number(getComputedStyle(document.documentElement).fontSize.replace("px",""));this.element.querySelectorAll(".height").forEach((t=>{const o=t.clientHeight;t.innerHTML=`<b>${o/e}rem</b> (${o}pixels)`}))}render(){const e=this.options.placeholder?"placeholder":undefined;return t(s,{key:"47b726ba113bc1a9f6fc1939a6337ee5a0741e1b",class:{vertical:!!this.options.vertical}},t("div",{key:"c429d933fc8433d42ab46875decd514855cd1e83",class:"description"},t("h2",{key:"3211b544b609eb41c0ff234e60fe1d69c7f5d046"},"Input Standard"),t("p",{key:"4821da07bb22b485566be6edbdfed274dbb5e484"},"Height of input should be ",t("code",{key:"7b9eece83abad5736b3e20008dcd6180be00a0cc"},"3rem")," including border. This is should result in a 48 pixel height at 100% zoom, assuming a root font-size of 16 pixels."),t("smoothly-form",{key:"8b7a0f3eb0597bf481193e136878bb9b06e57c4a",looks:"grid",onSmoothlyFormInput:e=>this.options=e.detail},t("smoothly-input-select",{key:"2f375af36f6b222583aef2c127118684200382f9",name:"looks"},t("span",{key:"f17cd19cd1c65db729df20cebfe3e29aebdb7f85",slot:"label"},"Looks"),dr.types.map((e=>t("smoothly-item",{value:e},e)))),t("smoothly-input-checkbox",{key:"7102fb6e60c26f369fc333edd177dab299693644",name:"readonly"},"Readonly"),t("smoothly-input-select",{key:"ea5bd1dac640c8c98d5f2f6673593dfba7ed7d97",name:"color"},t("span",{key:"7980f0882dc8dc731cabab158c7e8e71323bcb09",slot:"label"},"Color"),r.types.map((e=>t("smoothly-item",{value:e},t("span",{color:e},e)))),t("smoothly-input-clear",{key:"de3487a00564e32a27aa17e098dda3efb9847fd8",slot:"end"})),t("smoothly-input-checkbox",{key:"01bcc9cc34538608689edbd72a39ca628b8c0b90",name:"vertical"},"Vertical Layout"),t("smoothly-input-checkbox",{key:"d0a37ae43bf75b530c245c68e20bb358a651405c",name:"showLabel",checked:this.options.showLabel},"Show Label"),t("smoothly-input-checkbox",{key:"78c63416b6bb19948677fb79b0505c56150e7289",name:"placeholder",checked:this.options.placeholder},"Placeholder"),t("smoothly-input-range",{key:"d2cb1e9c0507d7adcd680c310bc0fa55092d8789",label:"Border Radius (rem)",name:"borderRadius",value:this.options.borderRadius,min:0,max:2,step:.25}))),t("div",{key:"d3b4fd9eee3d70175d1225534e87d1f98d5ecf23",class:"input-wrapper",style:{"--smoothly-input-border-radius":`${this.options.borderRadius}rem`}},t("div",{key:"214c05ffa1d43a097fd5598249e71115cc90c7d1",class:"width"},"100%"),t("div",{key:"7445c862f785d4ca8e0df3c18fc48f1ab03c79cc",class:"left-padding"},"0.5rem - left padding"),t("smoothly-input",{key:"c1d5a3adf710d94a7386d429e4089cb0b0e35b47",name:"text",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"3ae870f1a680a08ebcba67b1e566b7754606914c"},"Text"),t("smoothly-input-clear",{key:"05da5780e131498e29b56b68f5fda946cc572873",slot:"end"})),t("div",{key:"c9507311ebbd91b05617354ece57e32c09412243",class:"height"}),t("smoothly-input-select",{key:"8ac37d8cb08d5147ee60cca2e98980a14de2c517",name:"month",looks:this.options.looks,placeholder:e,readonly:this.options.readonly,color:this.options.color},this.options.showLabel&&t("label",{key:"dd2870e1536d0671798fe2cf268d698c5feff5d1",slot:"label"},"Select"),t("smoothly-item",{key:"54d23e9b1e368c7a740481baa4247ec77c029f30",value:"1"},"January"),t("smoothly-item",{key:"927f087be317bf0f2b166712653b92b4b451dddc",value:"2"},"February"),t("smoothly-item",{key:"9fd277a3f60e6e6cc52566797e4056be56b0e04d",value:"3"},"March"),t("smoothly-item",{key:"f10d69e96a9449036ef957a01baf09f32d08cc4d",value:"4"},"April"),t("smoothly-item",{key:"151b21bd845de134bbf5396d1c29bd4a9b240310",value:"5"},"May"),t("smoothly-item",{key:"2caa06bdd8d6ce4626e97530463a2ceeef078410",value:"6"},"June"),t("smoothly-item",{key:"b3bb56d7acfe778609d91e9baf72ea395e9ab89d",value:"7"},"July"),t("smoothly-item",{key:"57778be76f481702639d4fa57d46ce4e5adee6ca",value:"8"},"August"),t("smoothly-item",{key:"16e4109e3c570a2c32b09a3847e64da5d884c561",value:"9"},"September"),t("smoothly-item",{key:"bebc7d0128740166e9b949c4f6802747403ed540",value:"10"},"October"),t("smoothly-item",{key:"6eff62b76c73599ab9aa9122cb22091e0736320e",value:"11"},"November"),t("smoothly-item",{key:"bb6159a94027e46dcb5d6b7996c2a3b86a59cda0",value:"12"},"December"),t("smoothly-input-clear",{key:"39c2a60887d89d16ee67acda33a7278be288f6ec",slot:"end"})),t("div",{key:"18b0a4eede115170b32c0a120418c33c7c0a4a01",class:"height"}),t("smoothly-input-checkbox",{key:"7b6eb4a3ddcf38cd8164515b9487dabecb2cb888",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},"Check"),t("div",{key:"7f5fcf95e74535cd4c8622e3dbfb567a9cf9539a",class:"height"}),t("smoothly-input-radio",{key:"31be89feab2c450d187bf7101938b237393e4b12",name:"radio",clearable:true,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("label",{key:"d5bdee2736aa83a4a60fffe4dc4f8389d263dbab",slot:"label"},"Radio"),t("smoothly-input-radio-item",{key:"8a18eb04c6da4a282f772a84c3ff9562bb0a28f7",value:"first"},"Label 1"),t("smoothly-input-radio-item",{key:"e9e8704f31d673dd6e4ea48386b772b6cca07302",selected:true,value:"second"},"Label 2"),t("smoothly-input-radio-item",{key:"cb1994125c6a7c375c95d399585a46ac3dcd6be5",value:"third"},"Label 3"),t("smoothly-input-clear",{key:"39738fd1d1d4e93081fe679ddb5c374e029c0f01",slot:"end"})),t("div",{key:"252ccaa1ea0e51f8226e63ae2d7f21e7156176b5",class:"height"}),t("smoothly-input-file",{key:"faa0b5950dd568dfa3c5b2ebab89c21b30247cd4",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"0b9968f955b82f53ea92ae3621173ca0f0a164ea",slot:"label"},"File"),t("smoothly-input-clear",{key:"ea108267cf7ca3209731a39426d0fc944220384e",slot:"end"})),t("div",{key:"d543999aadc649fc4bd83bb1157d96693766d974",class:"height"}),t("smoothly-input-range",{key:"8717c01cf5a8dbb452781cab15845c6d4eeb8e90",name:"range",label:this.options.showLabel?"Range":undefined,looks:this.options.looks,readonly:this.options.readonly,color:this.options.color},t("smoothly-input-clear",{key:"def04faa521043b8c35ae9727d419e87eb8ca425",slot:"end"})),t("div",{key:"71f44309b1f61848bd786a17fe160c90a9e6a442",class:"height"}),t("smoothly-input-color",{key:"b176f693f1c259ca42f9251a6409f0aefd315121",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"37bfab45f78dc75b94890fab9adfaaed0ad80dbe"},"Color"),t("smoothly-input-clear",{key:"47ea6ea8da52dcaf79bde93d8b7918d5261284e9",slot:"end"})),t("div",{key:"27026781cce6638bb300be29b7ad685f86cfd4b6",class:"height"}),t("smoothly-input-date",{key:"4091de15bcb914fbde33b04af065b865b29759f6",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"e504eb72a2cd64972ed3ed2b8ce6b61e3747ece8"},"Date"),t("smoothly-input-clear",{key:"dd4d203425dba7c6f4915c2ea9c94a802c19f3d9",slot:"end"})),t("div",{key:"dafd7d8ba6c3110c8a05e972bd13d016b5c9f13a",class:"height"}),t("smoothly-input-date-range",{key:"d0d82374c75edc18dfe14c689a4fec49eb73e456",looks:this.options.looks,readonly:this.options.readonly,color:this.options.color,placeholder:e,showLabel:this.options.showLabel},this.options.showLabel&&t("span",{key:"050227f950e23cb4bb8c0b2cdca392c94a418dac"},"Date Range"),t("smoothly-input-clear",{key:"6d4992842629755749d81375f54f2bd6d41f0348",slot:"end"})),t("div",{key:"483d512b770279fa68b71e30c028e0304b31bad5",class:"height"}),t("div",{key:"e47cf778f5146224ba2308bb0e945ba3b66daead",class:{"guide-lines":true,"show-label":!!this.options.showLabel}},this.options.showLabel?"Aligned labels & values":"Center values")))}get element(){return a(this)}};Sc.style=wc;const Cc='[color=default].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-edit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-edit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-edit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-edit-h{display:inline}[disabled].sc-smoothly-input-edit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-edit-h>a.sc-smoothly-input-edit:empty,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:empty{border-width:0}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-edit{padding:0.8em;min-width:8em}.sc-smoothly-input-edit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-edit{padding:0.6em}[size=icon].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{padding:0.5em}[type=button].sc-smoothly-input-edit-h>a.sc-smoothly-input-edit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:100%}[size=large].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{font-size:130%}.sc-smoothly-input-edit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-edit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-edit-h{width:100%}[expand=full].sc-smoothly-input-edit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-edit-h:not([fill=clear])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-visible,[fill=outline].sc-smoothly-input-edit-h:active>button.sc-smoothly-input-edit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:hover::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:focus-within::before,[fill=outline].sc-smoothly-input-edit-h>button.sc-smoothly-input-edit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:hover,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:focus-visible,.sc-smoothly-input-edit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-edit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-edit-h>button.sc-smoothly-input-edit,.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>smoothly-icon,.sc-smoothly-input-edit-h .sc-smoothly-input-edit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-edit-h{display:none}.sc-smoothly-input-edit-h:not([display]){display:none}[editable].sc-smoothly-input-edit-h{opacity:0.5}.sc-smoothly-input-edit-h[type="input"].sc-smoothly-input-edit-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-edit-h smoothly-icon.default.sc-smoothly-input-edit{transform:translate(.1em, -.1em)}.sc-smoothly-input-edit-h.sc-smoothly-input-edit-s>button>*+smoothly-icon{display:none}';const zc=Cc;const jc=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="tertiary";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=true;this.shape=undefined;this.type="input";this.size=undefined;this.toolTip="Edit"}componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(cr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{this.display=e.readonly}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.edit(true)}render(){var e;return t(s,{key:"4a7251d30dc56d103cce6f4c646e87c1f9dedb2f",title:this.toolTip},t("smoothly-button",{key:"10187eef09463ed960cd9fab4a224c603a3f2ac7",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined},t("slot",{key:"31a06bf95969d56a3d5d4a2214580ffa1a5a054f"}),t("smoothly-icon",{key:"ae6116c6f7ac25efb5a511d14816b489bee3dc1c",class:"default",name:"create-outline",size:"tiny"})))}};jc.style=zc;const _c='.sc-smoothly-input-file-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-file-h[looks="border"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-file-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-file-h{border:transparent solid 1px}.sc-smoothly-input-file-h[looks="line"].sc-smoothly-input-file-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-file-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-file-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-file-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-file-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-file-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-file-h,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-file-h>input.sc-smoothly-input-file,[looks="transparent"].sc-smoothly-input-file-h:not(:focus-within)>input.sc-smoothly-input-file{background:transparent}[looks="transparent"].sc-smoothly-input-file-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-file-h.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h .label.sc-smoothly-input-file{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-file-h.floating-label.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.floating-label .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value.sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h.has-value .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[placeholder] .sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly].sc-smoothly-input-file-s>[slot=label],.sc-smoothly-input-file-h[readonly] .sc-smoothly-input-file-s>[slot=label],.has-value.sc-smoothly-input-file-h .label.sc-smoothly-input-file,[placeholder].sc-smoothly-input-file-h .label.sc-smoothly-input-file,[readonly].sc-smoothly-input-file-h .label.sc-smoothly-input-file,.sc-smoothly-input-file-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-file{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-file-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h{display:flex;align-items:center;flex-wrap:wrap;overflow:hidden;position:relative;width:100%;padding-left:var(--input-padding-side);background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{position:absolute;inset:0;background-color:rgb(var(--smoothly-input-hover-background), 0.6);border-radius:var(--smoothly-input-border-radius);border:0.25rem dashed rgb(var(--smoothly-input-hover-foreground));display:flex;justify-content:center;align-items:center}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file>smoothly-icon.sc-smoothly-input-file{color:rgb(var(--smoothly-input-hover-foreground))}.sc-smoothly-input-file-h:not(.dragging)>div.sc-smoothly-input-file>div.drag-overlay.sc-smoothly-input-file{display:none}.sc-smoothly-input-file-h>div.input.sc-smoothly-input-file>input.sc-smoothly-input-file{overflow:hidden;height:0;width:0;padding:0}.sc-smoothly-input-file-h:not([show-label])>div.input.sc-smoothly-input-file{display:flex;align-items:center;padding-bottom:0.2rem}.sc-smoothly-input-file-h:not([show-label])>smoothly-button.sc-smoothly-input-file:not(:empty){margin-right:1ch}[show-label].sc-smoothly-input-file-h>div.input.sc-smoothly-input-file{display:flex;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom);height:100%;box-sizing:border-box;flex-grow:1}.sc-smoothly-input-file-h>div.sc-smoothly-input-file>smoothly-button.sc-smoothly-input-file{margin:0;border:none}.sc-smoothly-input-file-h>label.sc-smoothly-input-file{left:var(--input-padding-side)}.sc-smoothly-input-file-h,.sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:pointer}[readonly].sc-smoothly-input-file-h,[readonly].sc-smoothly-input-file-h *.sc-smoothly-input-file{cursor:not-allowed}';const Tc=_c;const Ic=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.transfer=new DataTransfer;this.changed=false;this.readonly=false;this.accept=undefined;this.color=undefined;this.looks=undefined;this.camera=undefined;this.name=undefined;this.showLabel=true;this.value=undefined;this.placeholder=undefined;this.dragging=false}get files(){this.transfer.items.clear();this.value&&this.transfer.items.add(this.value);return this.transfer.files}async componentWillLoad(){this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInput.emit({[this.name]:await this.getValue()});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e))}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}async binary(){return true}async valueChanged(){this.changed=this.initialValue!==this.value;this.smoothlyInput.emit({[this.name]:await this.getValue()})}inputHandler(e){var t,o,s;e.stopPropagation();if((o=(t=this.input)===null||t===void 0?void 0:t.files)===null||o===void 0?void 0:o.length)this.value=(s=this.input)===null||s===void 0?void 0:s.files[0]}dropHandler(e){var t;e.preventDefault();e.stopPropagation();this.dragging=false;if((t=e.dataTransfer)===null||t===void 0?void 0:t.files.length)this.value=e.dataTransfer.files[0]}clickHandler(e){var t;if(!this.readonly&&!e.composedPath().find((e=>e==this.input))){(t=this.input)===null||t===void 0?void 0:t.click()}}dragOverHandler(e){e.preventDefault();e.stopPropagation()}dragEnterHandler(e){e.preventDefault();!this.readonly&&(this.dragging=true)}dragLeaveHandler(e){e.stopPropagation();this.dragging=false}render(){var e,o,a;return t(s,{key:"1c91c11701f45734b2d5685bd0c6a543bdbb6fb7",class:{dragging:this.dragging,"has-value":!!this.value},tabindex:0,onClick:e=>this.clickHandler(e),onDragOver:e=>this.dragOverHandler(e),onDragEnter:e=>this.dragEnterHandler(e)},t("label",{key:"f8ab23e372eabeac02168549ceb03f7a9eb5cbc4"},t("slot",{key:"6eba1aa1e14556c55d647c0afdfc8382f4322994",name:"label"})),t("div",{key:"13e73b1c5b9d7e5cd4655237619a94929a2182fd",class:"input"},t("smoothly-button",{key:"6a9f5ae011900e5b80a8106d5ccba3931515f382",type:"button",color:this.color,fill:"clear",size:"flexible"},t("slot",{key:"582510137aca819dc05ccd6b75fa1168a1eefa47",name:"button"})),t("span",{key:"f91cacc327e3643948633cde61974a7fa433c7bb"},(o=(e=this.value)===null||e===void 0?void 0:e.name)!==null&&o!==void 0?o:this.placeholder),t("div",{key:"03b0f3af81ff691b034231a7b9bb159e97d60a43",class:"drag-overlay",onDrop:e=>this.dropHandler(e),onDragLeave:e=>this.dragLeaveHandler(e)},t("smoothly-icon",{key:"8bf1766c10bad401e01a4fa1c7dfbc2aa12af1c4",name:"document-attach-outline"})),t("input",{key:"8884488c624c70a0ff57f030b43f2acdd11d2ea4",ref:e=>this.input=e,type:"file",capture:this.camera=="back"?"environment":"user",accept:(a=this.accept)!==null&&a!==void 0?a:!this.camera?undefined:"image/jpeg",files:this.files,onInput:e=>this.inputHandler(e)})),t("div",{key:"63c67251fd574e731d7b4eb926cd0f92e5bfeafb",class:"end",onClick:e=>e.stopPropagation()},t("slot",{key:"6c880201bcac2587a0e4432015ee9202cf2767a1",name:"end"})))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Ic.style=Tc;const Lc=".sc-smoothly-input-month-h{display:flex;flex-direction:row;justify-content:space-between;background-color:rgb(var(--smoothly-input-background))}.sc-smoothly-input-month-h:not([in-calendar])>smoothly-input-select.sc-smoothly-input-month{display:flex;flex:1}[looks=line].sc-smoothly-input-month-h,[looks=border].sc-smoothly-input-month-h,[looks=transparent].sc-smoothly-input-month-h{gap:2em}.sc-smoothly-input-month-h:not([previous])>smoothly-icon.sc-smoothly-input-month:first-of-type,.sc-smoothly-input-month-h:not([next])>smoothly-icon.sc-smoothly-input-month:last-of-type{display:none}.sc-smoothly-input-month-h>smoothly-icon.sc-smoothly-input-month{display:flex;align-self:center;cursor:pointer}.sc-smoothly-input-month-h>smoothly-icon.disabled.sc-smoothly-input-month{opacity:0.5;cursor:not-allowed}";const Oc=Lc;const Ac=class{constructor(t){e(this,t);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.listener={};this.readonly=undefined;this.color=undefined;this.looks=undefined;this.name=undefined;this.value=k.now();this.max=undefined;this.min=undefined;this.next=false;this.previous=false;this.inCalendar=false;this.showLabel=true;this.allowPreviousMonth=true;this.allowNextMonth=true}componentWillLoad(){this.smoothlyInputLooks.emit((e=>{var t;return this.looks=(t=this.looks)!==null&&t!==void 0?t:e}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.valueChanged()}valueChanged(){this.smoothlyInput.emit({[this.name]:this.value})}adjustMonth(e){var t;if(!this.readonly){const o=k.parse((t=this.value)!==null&&t!==void 0?t:k.now());o.setMonth(o.getMonth()+e);this.value=k.create(o)}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}setAllowPreviousMonth(){var e,t;const o=k.previousMonth((e=this.value)!==null&&e!==void 0?e:k.now()).substring(0,7);const s=(t=this.min)===null||t===void 0?void 0:t.substring(0,7);this.allowPreviousMonth=!s||o>=s}setAllowNextMonth(){var e,t;const o=k.nextMonth((e=this.value)!==null&&e!==void 0?e:k.now()).substring(0,7);const s=(t=this.max)===null||t===void 0?void 0:t.substring(0,7);this.allowNextMonth=!s||o<=s}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var e,t;(e=this.year)===null||e===void 0?void 0:e.clear();(t=this.month)===null||t===void 0?void 0:t.clear()}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){var e,t;(e=this.year)===null||e===void 0?void 0:e.reset();(t=this.month)===null||t===void 0?void 0:t.reset()}async setInitialValue(){var e,t;(e=this.year)===null||e===void 0?void 0:e.setInitialValue();(t=this.month)===null||t===void 0?void 0:t.setInitialValue()}inputHandler(e){if(e.target!=this.element){e.stopPropagation();const t=e.detail[`${this.name}-year`];const o=e.detail[`${this.name}-month`];if(o&&k.is(o))this.value=k.firstOfMonth(o);else if(t&&k.is(t))this.value=k.firstOfMonth(t)}}smoothlyInputLooksHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this.looks,this.color)}}async smoothlyInputLoadHandler(e){if(e.target!=this.element)e.stopPropagation()}render(){var e,o;return t(s,{key:"31a5375f473313057fdee7b8d7b87594ac238550"},t("smoothly-icon",{key:"78271c79baeaa0892cff0ef62be3eddc88574d3c",name:"caret-back-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowPreviousMonth},onClick:()=>this.allowPreviousMonth&&this.adjustMonth(-1)}),t("smoothly-input-select",{key:"ae36fb2b6d31d627f29ff20d5a1cf71ab5648626",ref:e=>this.year=e,name:`${this.name}-year`,readonly:this.readonly,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"14b76d20799c3ffdeee0bd8abc2c17de24a50205",slot:"label"},t("slot",{key:"7a02aaaa7c03963d2a4266fc5f20d595453ff938",name:"year-label"})),it((e=this.value)!==null&&e!==void 0?e:k.now(),this.min,this.max).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-input-select",{key:"d7203269b2e6be8b45120bc9315fcba8a207fe32",ref:e=>this.month=e,name:`${this.name}-month`,readonly:this.readonly,color:this.color,looks:this.looks,changed:this.changed,menuHeight:"5.5items",required:true,ordered:true,inCalendar:this.inCalendar,showLabel:this.showLabel,onSmoothlyInput:e=>this.inputHandler(e),searchDisabled:true},t("div",{key:"b73693770456df31f3eedce66b344775ecc9cb68",slot:"label"},t("slot",{key:"649381e8437b40b805bcd089b06264d83c078629",name:"month-label"})),at((o=this.value)!==null&&o!==void 0?o:k.now()).map((e=>t("smoothly-item",{key:e.date,value:e.date,selected:e.selected||this.value==e.date},e.name)))),t("smoothly-icon",{key:"2d5f6e00759a55b9ab596c45e97421081e83dc55",name:"caret-forward-outline",size:"tiny",color:this.color,fill:"default",class:{disabled:this.readonly||!this.allowNextMonth},onClick:()=>this.allowNextMonth&&this.adjustMonth(1)}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged","setAllowPreviousMonth","setAllowNextMonth"],min:["setAllowPreviousMonth"],max:["setAllowNextMonth"]}}};Ac.style=Oc;const Ec=".sc-smoothly-input-price-demo-h{display:block}";const Dc=Ec;const Mc=class{constructor(t){e(this,t);this.currencies=["EUR","USD","GBP"];this.currency="USD"}render(){return t(s,{key:"bad11b3c20ae711a30e32dbe00b0fd9a4fe2e233"},t("h2",{key:"1f0b35ab38d25f7cf85e5d88a94a1155bd9958c0"},"State demo on smoothly-input"),t("p",{key:"b2f1472ebca834019523652fba825675cbd79c08"},"This demo/test the internal state of the smoothly-input component."),t("p",{key:"0b91d3d13dd721e2cb1f0e597eceef6df7b10664"},"The currency of the price should update when switching between the currencies."),t("smoothly-input-radio",{key:"cfcbe6cb9e757806316b0452e49c621483136391",name:"currency",onSmoothlyInput:e=>this.currency=w.is(e.detail.currency)?e.detail.currency:undefined},this.currencies.map((e=>t("smoothly-input-radio-item",{key:e,selected:e==this.currency,value:e},e)))),t("smoothly-input",{key:"697ee9173e9673c9208193a2becdc7d688fa9e4e",type:"price",currency:this.currency},"price"))}};Mc.style=Dc;const $c='.sc-smoothly-input-radio-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-radio-h[looks="border"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-radio-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-radio-h{border:transparent solid 1px}.sc-smoothly-input-radio-h[looks="line"].sc-smoothly-input-radio-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-radio-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-radio-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-radio-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-radio-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-radio-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-radio-h,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-radio-h>input.sc-smoothly-input-radio,[looks="transparent"].sc-smoothly-input-radio-h:not(:focus-within)>input.sc-smoothly-input-radio{background:transparent}[looks="transparent"].sc-smoothly-input-radio-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-radio-h.floating-label.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.floating-label .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value.sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h.has-value .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[placeholder] .sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly].sc-smoothly-input-radio-s>[slot=label],.sc-smoothly-input-radio-h[readonly] .sc-smoothly-input-radio-s>[slot=label],.has-value.sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[placeholder].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,[readonly].sc-smoothly-input-radio-h .label.sc-smoothly-input-radio,.sc-smoothly-input-radio-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-radio{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-radio-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-radio{display:none}.sc-smoothly-input-radio-h{background-color:rgb(var(--smoothly-input-background));display:flex;align-items:center;padding-left:var(--input-padding-side);box-sizing:border-box}[show-label].sc-smoothly-input-radio-h>div.sc-smoothly-input-radio{position:relative;padding-block:var(--input-value-padding-top) var(--input-value-padding-bottom)}.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio,.sc-smoothly-input-radio-h>div.sc-smoothly-input-radio>div.options.sc-smoothly-input-radio{display:flex;gap:1.5rem}.sc-smoothly-input-radio-h.sc-smoothly-input-radio-s>[slot=end]{margin-right:0;margin-left:auto}[readonly].sc-smoothly-input-radio-h smoothly-input-radio-item.sc-smoothly-input-radio *.sc-smoothly-input-radio{cursor:not-allowed}';const Rc=$c;const Pc=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.valueReceivedOnLoad=false;this.listener={};this.changed=false;this.value=undefined;this.looks=undefined;this.color=undefined;this.clearable=undefined;this.readonly=false;this.name=undefined;this.showLabel=true}componentWillLoad(){var e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){!this.valueReceivedOnLoad&&this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));this.initialValue=this.active}handleRegister(e){e.stopPropagation();e.detail(this.name)}smoothlyInputLoadHandler(e){hr.registerSubAction(this,e)}smoothlyRadioInputHandler(e){var t,o,s;e.stopPropagation();if(!this.readonly||!this.valueReceivedOnLoad){if(this.clearable&&((t=this.active)===null||t===void 0?void 0:t.value)===e.detail.value)this.clear();else if(((o=this.active)===null||o===void 0?void 0:o.value)!==e.detail.value){(s=this.active)===null||s===void 0?void 0:s.select(false);this.active=e.detail;this.value=this.active.value;this.active.select(true)}}!this.valueReceivedOnLoad&&(this.valueReceivedOnLoad=!this.valueReceivedOnLoad)}async listen(e,t){this.listener[e]=t;t(this)}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){var e;if(this.clearable){(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=undefined;this.value=undefined}}async edit(e){this.readonly=!e}async reset(){var e,t,o;(e=this.active)===null||e===void 0?void 0:e.select(false);this.active=this.initialValue;this.value=(t=this.initialValue)===null||t===void 0?void 0:t.value;(o=this.active)===null||o===void 0?void 0:o.select(true)}async setInitialValue(){this.initialValue=this.active;this.valueChanged()}async valueChanged(){var e,t,o;this.valueReceivedOnLoad&&(this.changed=((e=this.initialValue)===null||e===void 0?void 0:e.value)!==this.value);this.smoothlyInput.emit({[this.name]:await this.getValue()});(o=(t=this.listener).changed)===null||o===void 0?void 0:o.call(t,this)}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}render(){return t(s,{key:"84feefdf8a3f79ac031f8f4e12af4eaea6d3b464",class:"floating-label"},t("slot",{key:"5394a95744be929c8a0d5bbce9e09abc53edd8d9",name:"start"}),t("div",{key:"34f00d17365ec06c256338f759e24e6d13592997"},t("slot",{key:"528b489815eb69473529b683965fc79ce80aaad4",name:"label"}),t("div",{key:"42dc1e97f591cef1ba66d1c16e0843c9f6b21c75",class:"options"},t("slot",{key:"9db82fe518bd4790cf7cb95e2dfd083ef8e67795"}))),t("slot",{key:"67ede49d41d2e031da5387f819058031e886e1d1",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"],readonly:["watchingReadonly"]}}};Pc.style=Rc;const Nc=".sc-smoothly-input-radio-item-h{display:flex;align-items:center;position:relative}.sc-smoothly-input-radio-item-h:hover>*.sc-smoothly-input-radio-item{cursor:pointer}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item:focus-visible+smoothly-icon.sc-smoothly-input-radio-item{outline:2px solid rgb(var(--smoothly-primary-color));border-radius:1px}.sc-smoothly-input-radio-item-h>input.sc-smoothly-input-radio-item{opacity:0;z-index:1;width:1.5em;height:1.5em;position:absolute;transform:translateX(50%)}.sc-smoothly-input-radio-item-h>label.sc-smoothly-input-radio-item{padding:0 .3em;white-space:nowrap}";const Fc=Nc;const Hc=class{constructor(t){e(this,t);this.smoothlySelect=o(this,"smoothlySelect",7);this.smoothlyRadioItemRegister=o(this,"smoothlyRadioItemRegister",7);this.value=undefined;this.selected=false;this.looks=undefined;this.name=undefined}componentWillLoad(){this.smoothlyRadioItemRegister.emit((e=>this.name=e));this.selected&&this.inputHandler()}inputHandler(){this.smoothlySelect.emit({value:this.value,selected:this.selected,select:e=>this.selected=e})}render(){return t(s,{key:"e7cf32e18aaa3c68ed5f10ddd837d00c57ce314c",onClick:()=>this.inputHandler()},t("input",{key:"48daeb5ece6f22f24d7ba0d21d6ab1d5ffe050ef",name:this.name,type:"radio",checked:this.selected}),t("smoothly-icon",{key:"981a3f17ce966be3bd90a3030d5eed18ed1ae087",name:this.selected?"checkmark-circle":"ellipse-outline",size:"small",fill:"outline",color:this.selected?"success":"medium",toolTip:"Select"}),t("label",{key:"3c3e288cbd8496bd4c2a62b83865eae8e39019a6"},t("slot",{key:"c660628b0873ef7041a06d90884f1bd88046dfed"})))}get element(){return a(this)}};Hc.style=Fc;const Uc='.sc-smoothly-input-range-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-range-h[looks="border"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-range-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-range-h{border:transparent solid 1px}.sc-smoothly-input-range-h[looks="line"].sc-smoothly-input-range-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-range-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-range-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-range-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-range-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-range-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-range-h,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-range-h>input.sc-smoothly-input-range,[looks="transparent"].sc-smoothly-input-range-h:not(:focus-within)>input.sc-smoothly-input-range{background:transparent}[looks="transparent"].sc-smoothly-input-range-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-range-h.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h .label.sc-smoothly-input-range{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-range-h.floating-label.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.floating-label .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value.sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h.has-value .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[placeholder] .sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly].sc-smoothly-input-range-s>[slot=label],.sc-smoothly-input-range-h[readonly] .sc-smoothly-input-range-s>[slot=label],.has-value.sc-smoothly-input-range-h .label.sc-smoothly-input-range,[placeholder].sc-smoothly-input-range-h .label.sc-smoothly-input-range,[readonly].sc-smoothly-input-range-h .label.sc-smoothly-input-range,.sc-smoothly-input-range-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-range{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-range-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-range{display:none}*.sc-smoothly-input-range{box-sizing:border-box}.sc-smoothly-input-range-h{position:relative;width:100%;justify-content:center;align-items:center;display:flex;background-color:rgb(var(--smoothly-input-background));box-sizing:border-box}.sc-smoothly-input-range-h>div.sc-smoothly-input-range:not([slot]){position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-right:var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{width:12em;--input-min-height:calc(3rem - 2px)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range:focus{outline:none;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{white-space:nowrap}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range{padding:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range{text-align:center;margin-left:var(--input-padding-side);border:none;box-sizing:border-box;width:5em;order:3;margin:0}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-display.sc-smoothly-input-range,.sc-smoothly-input-range-h:not(.output-side-right)>div.sc-smoothly-input-range>label.sc-smoothly-input-range{display:none}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range input.sc-smoothly-input-range{padding:0;text-align:center}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>smoothly-input.sc-smoothly-input-range label.sc-smoothly-input-range{width:100%}.output-side-right.sc-smoothly-input-range-h>div.sc-smoothly-input-range>label.sc-smoothly-input-range{position:static;font-size:inherit;text-align:center;margin:0 var(--input-padding-side)}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range{-webkit-appearance:none;width:100%;background:transparent;height:1.5em;padding:0 .4em}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb{-webkit-appearance:none;height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;margin-top:-.25em;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb{height:0.8em;width:0.8em;border-radius:100%;background-color:rgb(var(--smoothly-primary-color));cursor:pointer;border:none}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{width:100%;height:.3em;cursor:pointer;background-color:rgb(var(--smoothly-primary-color));border-radius:20px}.sc-smoothly-input-range-h:not([value])>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track{background-color:rgb(var(--smoothly-primary-tint))}.sc-smoothly-input-range-h:not([value])>dov.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track{background-color:rgb(var(--smoothly-primary-tint))}[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-thumb,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-webkit-slider-runnable-track,[readonly].sc-smoothly-input-range-h>div.sc-smoothly-input-range>input[type=range].sc-smoothly-input-range::-moz-range-track,[readonly].sc-smoothly-input-range-h,[readonly].sc-smoothly-input-range-h *.sc-smoothly-input-range{cursor:not-allowed}input.sc-smoothly-input-range::-webkit-outer-spin-button,input.sc-smoothly-input-range::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}';const Yc=Uc;const Wc=class{constructor(t){e(this,t);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.listener={};this.initialValue=undefined;this.value=undefined;this.looks=undefined;this.color=undefined;this.changed=false;this.defined=false;this.readonly=false;this.type="text";this.min=0;this.max=100;this.name="range";this.step=undefined;this.outputSide="left";this.label=undefined;this.showInput=false}componentWillLoad(){this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,this.color=t}));this.smoothlyInput.emit({[this.name]:this.value});this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));this.value&&(this.initialValue=this.value);this.valueChanged()}smoothlyInputLoadHandler(e){if(e.target!=this.element){e.stopPropagation();e.detail(this)}}smoothlyInputLooksHandler(e){if(e.target!=this.element)e.stopPropagation()}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return this.value}async clear(){this.value=undefined}async listen(e,t){this.listener[e]=t;t(this)}async edit(e){this.readonly=!e}async reset(){this.value=this.initialValue}async setInitialValue(){this.initialValue=this.value;this.valueChanged()}valueChanged(){var e,t,o,s;const a=!this.step?undefined:(t=(e=this.step.toString().split(".")[1])===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0;this.value=Number.isNaN(this.value)||this.value==undefined?undefined:+this.value.toFixed(a);this.changed=this.initialValue!==this.value;this.defined=typeof this.value==="number";(s=(o=this.listener).changed)===null||s===void 0?void 0:s.call(o,this);this.smoothlyInput.emit({[this.name]:this.value})}setValue(e){var t;if(e==undefined)this.value=undefined;else if(e<this.min)this.value=this.min;else if(e>this.max)this.value=this.max;else this.value=e;this.input&&(this.input.value=this.type=="text"?(t=this.value)===null||t===void 0?void 0:t.toString():this.value)}render(){var e,o,a;return t(s,{key:"54110def7ede46a497e9f89badfa411f2101f9f1",class:{"output-side-right":this.outputSide==="right","show-label":this.outputSide==="left"&&!!this.label}},t("slot",{key:"2a5b1e0011a44f1d61965cf7d5c40fb65810d70e",name:"start"}),t("div",{key:"8d6c07448362f9b14c0fbc5e6d12f14ad7900d18"},t("label",{key:"1f0c9181fcb31bb9481e2831d97807824d0fda3b",htmlFor:this.name},this.label),t("smoothly-input",{key:"5cfa5a192ec52e3b1542c8b902fc0708f9f7f638",ref:e=>this.input=e,looks:undefined,color:this.color,name:this.name,showLabel:this.outputSide==="left"&&!!this.label,type:this.type,onSmoothlyInputLoad:async e=>(e.stopPropagation(),this.setValue(hr.Element.is(e.target)?Number(await e.target.getValue()):undefined)),onSmoothlyBlur:e=>e.stopPropagation(),onSmoothlyInput:async e=>{e.stopPropagation();this.setValue(hr.Element.is(e.target)?Number(await e.target.getValue()):undefined)},value:this.type=="percent"?this.value:(e=this.value)===null||e===void 0?void 0:e.toString(),placeholder:this.outputSide==="right"?"-":undefined,readonly:this.readonly},this.label),t("smoothly-display",{key:"ba0ffa533194066830cbd8644dc56407ca8e98f6",label:(this.type=="percent"?this.min*100:this.min).toString()}),t("input",{key:"89a2f41c2e5b11ad7ca84be16fce678348b05684",name:this.name,part:"range",type:"range",min:this.min,max:this.max,step:(o=this.step)!==null&&o!==void 0?o:"any",disabled:this.readonly,onInput:e=>{e.stopPropagation();this.setValue(e.target.valueAsNumber)},value:(a=this.value)!==null&&a!==void 0?a:this.min}),t("smoothly-display",{key:"bdb12803d40ceb8205d3f34516e9cc7d5f0c55b7",label:(this.type=="percent"?this.max*100:this.max).toString()})),t("slot",{key:"f605bf487c677804bbd6b1da7329fdc10a8f24bd",name:"end"}))}get element(){return a(this)}static get watchers(){return{value:["valueChanged"]}}};Wc.style=Yc;const Bc=class{constructor(t){e(this,t)}render(){return t(s,{key:"c2c0307b8cfb3649b3829935ceac7a239c0a3035"},t("h2",{key:"3dc59277ebd70ee6d2845111fac8cc705ae274af"},"Range"),t("h3",{key:"50b58f50d58c00c86f0746ce5c05b1f57b57efa2"},"Phone Number"),t("smoothly-input-range",{key:"ae8d9c8125beb1790cbd642d9b25ed202635c7a2",min:7e8,max:799999999,step:1,label:"Phone Number"}),t("h3",{key:"7b8e733f33aa344bdd07be2b23cb566485a4d13a"},"Stars out of ten"),t("smoothly-input-range",{key:"55c63696b90405074cabee9694379befd5aa9310",max:10,step:1,label:"Stars"}),t("h3",{key:"27f0e64c163354a5c7669100e1a074ae2d9a141d"},"Percent"),t("smoothly-input-range",{key:"2035cfb5de1eeaf6edc7086417dc00c9dee8c339",type:"percent",max:1,step:.01,label:"Percent"}),t("h3",{key:"04fab376af7923769f62db4246062508c1ef1194"},"With icon at start and clear button"),t("smoothly-input-range",{key:"145a4d0fa6fa5903f5690cb25554af63a28edcef",step:1,name:"range2",label:"Select"},t("smoothly-icon",{key:"2a3ff0a0b93638f49fb59015acc37e30f22f934f",name:"checkmark-circle",slot:"start"}),t("smoothly-input-clear",{key:"33cfa613f632309014a96dfd2a678bf9f71b2b67",size:"icon",slot:"end"})))}};const Vc='[color=default].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-reset{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-reset-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-reset-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-reset-h{display:inline}[disabled].sc-smoothly-input-reset-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-reset-h>a.sc-smoothly-input-reset:empty,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:empty{border-width:0}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-reset{padding:0.8em;min-width:8em}.sc-smoothly-input-reset-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-reset{padding:0.6em}[size=icon].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{padding:0.5em}[type=button].sc-smoothly-input-reset-h>a.sc-smoothly-input-reset{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:100%}[size=large].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{font-size:130%}.sc-smoothly-input-reset-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-reset-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-reset-h{width:100%}[expand=full].sc-smoothly-input-reset-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-reset-h:not([fill=clear])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-visible,[fill=outline].sc-smoothly-input-reset-h:active>button.sc-smoothly-input-reset::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:hover::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:focus-within::before,[fill=outline].sc-smoothly-input-reset-h>button.sc-smoothly-input-reset:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:hover,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:focus-visible,.sc-smoothly-input-reset-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-reset:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-reset-h>button.sc-smoothly-input-reset,.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h .sc-smoothly-input-reset-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-reset-h{display:none}.sc-smoothly-input-reset-h:not([display]){display:none}.sc-smoothly-input-reset-h[type="input"].sc-smoothly-input-reset-s>smoothly-button>button{cursor:pointer;filter:opacity(60%);--smoothly-button-foreground:var(--smoothly-input-foreground);background-color:transparent}.sc-smoothly-input-reset-h.sc-smoothly-input-reset-s>smoothly-button>button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-reset-h{cursor:not-allowed}.sc-smoothly-input-reset-h[type="input"]:hover.sc-smoothly-input-reset-s>smoothly-icon,.sc-smoothly-input-reset-h[type="input"]:hover .sc-smoothly-input-reset-s>smoothly-icon{cursor:pointer;filter:opacity(100%)}';const Gc=Vc;const Kc=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color=undefined;this.expand=undefined;this.fill=undefined;this.disabled=false;this.size="icon";this.shape=undefined;this.display=true;this.type="input";this.tooltip="Reset"}async componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(cr.Element.type.is(e)){this.parent=e;this.readonlyAtLoad=e.readonly;e.listen("changed",(async e=>{if(hr.is(e)){this.display=e.readonly?false:e.changed}if(e instanceof yr){this.display=!e.readonly;this.disabled=!this.readonlyAtLoad&&!e.changed}}))}}))}clickHandler(e){var t,o;e.stopPropagation();(t=this.parent)===null||t===void 0?void 0:t.reset();this.parent instanceof yr&&this.readonlyAtLoad&&((o=this.parent)===null||o===void 0?void 0:o.edit(false))}render(){var e;return t(s,{key:"8542dba163fb848653f31f2559e52aac50826c40",title:this.tooltip},t("smoothly-button",{key:"dcac9b394999e1751be7786f4eb7b3033ce2d5a7",disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:this.color,fill:(e=this.fill)!==null&&e!==void 0?e:this.type=="input"?"clear":undefined,onClick:e=>this.clickHandler(e)},t("slot",{key:"5756f37b4fe0cae8e0f6e0e7d0776cae56f2f002"}),t("smoothly-icon",{key:"aecb2d327ddf0b0441c48660c9b061fa338fdd3b",flip:"x",name:"refresh-outline",size:"tiny"})))}};Kc.style=Gc;var qc;(function(e){let t;(function(e){e.type=S({value:A(),deselectable:z(),selected:z().optional(),filter:c()});e.is=e.type.is})(t=e.Element||(e.Element={}));e.type=t.type.extend({});e.is=e.type.is})(qc||(qc={}));const Zc='.sc-smoothly-input-select-h{--input-padding-side:.5rem;--input-value-padding-top:1.25rem;--input-value-padding-bottom:.25rem;--input-min-height:3rem;min-height:var(--input-min-height);box-sizing:border-box;border-radius:var(--smoothly-input-border-radius)}.sc-smoothly-input-select-h[looks="border"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="border"].sc-smoothly-input-select-h{border:rgb(var(--smoothly-input-border)) solid 1px}[looks="border"][readonly].sc-smoothly-input-select-h{border:transparent solid 1px}.sc-smoothly-input-select-h[looks="line"].sc-smoothly-input-select-s>smoothly-picker-menu smoothly-input,[looks="line"].sc-smoothly-input-select-h{border-bottom:rgb(var(--smoothly-input-border)) solid 1px}[looks="line"][readonly].sc-smoothly-input-select-h{border-bottom:transparent solid 1px}[looks="grid"].sc-smoothly-input-select-h{flex-grow:1;flex-basis:40%;box-shadow:0px 0px 0px 1px rgb(var(--smoothly-input-border));border:none}[looks="grid"][readonly].sc-smoothly-input-select-h{box-shadow:0px 0px 0px 1px rgba(var(--smoothly-input-border-readonly))}[looks="transparent"].sc-smoothly-input-select-h{border:none}[looks="transparent"][readonly].sc-smoothly-input-select-h,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within){background-color:transparent}[looks="transparent"][readonly].sc-smoothly-input-select-h>input.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h:not(:focus-within)>input.sc-smoothly-input-select{background:transparent}[looks="transparent"].sc-smoothly-input-select-h:not([readonly]):focus-within{outline:1px solid rgb(var(--smoothly-input-border))}.sc-smoothly-input-select-h.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h .label.sc-smoothly-input-select{position:absolute;top:.6rem;opacity:0.8;user-select:none;cursor:inherit;transform-origin:top left;transition:transform 100ms ease}.sc-smoothly-input-select-h.floating-label.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.floating-label .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value.sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h.has-value .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[placeholder] .sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly].sc-smoothly-input-select-s>[slot=label],.sc-smoothly-input-select-h[readonly] .sc-smoothly-input-select-s>[slot=label],.has-value.sc-smoothly-input-select-h .label.sc-smoothly-input-select,[placeholder].sc-smoothly-input-select-h .label.sc-smoothly-input-select,[readonly].sc-smoothly-input-select-h .label.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([readonly]):focus-within .label.float-on-focus.sc-smoothly-input-select{top:.2rem;transform:scale(0.8)}.sc-smoothly-input-select-h:not([show-label]):not(.show-label) .label.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h{display:flex;justify-content:space-between;flex-direction:row;position:relative;background-color:rgb(var(--smoothly-input-background));color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));padding-left:var(--input-padding-side)}.open.sc-smoothly-input-select-h{border-radius:var(--smoothly-input-border-radius) var(--smoothly-input-border-radius) 0 0}.icon.sc-smoothly-input-select-h{width:fit-content;flex-direction:column}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{box-sizing:border-box;display:flex;cursor:pointer;padding:var(--input-value-padding-top) 0 var(--input-value-padding-bottom) 0;overflow:hidden;width:100%;white-space:nowrap;gap:1rem;text-overflow:ellipsis}.sc-smoothly-input-select-h:not(:has([slot=label]))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not([show-label])>div.select-display.sc-smoothly-input-select{padding:.6em 0;align-items:center}[readonly].sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select{cursor:not-allowed}.sc-smoothly-input-select-h>div.select-display.sc-smoothly-input-select smoothly-icon.sc-smoothly-input-select{color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground))}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select{display:flex;flex-direction:row;align-items:center}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select-s>smoothly-icon:not("color"){color:rgb(var(--smoothly-input-foreground));fill:rgb(var(--smoothly-input-foreground));stroke:rgb(var(--smoothly-input-foreground));filter:opacity(60%)}.sc-smoothly-input-select-h:hover>div.icons.sc-smoothly-input-select-s>smoothly-icon{filter:opacity(100%)}.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-down-outline].sc-smoothly-input-select,.sc-smoothly-input-select-h>div.icons.sc-smoothly-input-select>smoothly-icon[name=caret-forward-outline].sc-smoothly-input-select{opacity:.7;cursor:pointer;height:100%;box-sizing:content-box;padding-inline:var(--input-padding-side)}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:block}.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.invalid.sc-smoothly-input-select{display:none}.sc-smoothly-input-select-h .label.sc-smoothly-input-select{left:.5rem}.has-value.sc-smoothly-input-select-h:has([slot=label]:not(:empty))>div.select-display.sc-smoothly-input-select,.sc-smoothly-input-select-h:not(.has-value)[placeholder]>div.select-display.sc-smoothly-input-select{overflow:hidden;width:100%}.sc-smoothly-input-select-h>.options.sc-smoothly-input-select{display:flex;flex-direction:column;position:absolute;top:var(--element-height);z-index:10;max-height:var(--menu-height, unset);overflow-x:hidden;overflow-y:auto;background-color:rgb(var(--smoothly-input-background));left:0;right:0;border-radius:0 0 var(--smoothly-input-border-radius) var(--smoothly-input-border-radius);min-width:fit-content;border:rgb(var(--smoothly-input-border, var(--smoothly-color-contrast))) solid 1px;border-top:rgba(var(--smoothly-input-border, var(--smoothly-color-contrast)), .4) solid 1px}[looks="grid"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks=border].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select,[looks="transparent"].sc-smoothly-input-select-h>div.options.sc-smoothly-input-select{left:-1px;right:-1px}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>smoothly-item,.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{padding:.7em .7em .7em .25em}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select-s>div.search-preview{display:flex;gap:1em;background-color:rgba(var(--smoothly-primary-tint), .5);color:rgb(var(--smoothly-color-contrast));fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast))}.sc-smoothly-input-select-h>div.options.sc-smoothly-input-select>div.search-preview.sc-smoothly-input-select>smoothly-icon[name="backspace-outline"].sc-smoothly-input-select{margin-left:auto;margin-right:0}.sc-smoothly-input-select-h>div.options.hidden.sc-smoothly-input-select{display:none}.invalid.sc-smoothly-input-select-h>div.sc-smoothly-input-select>smoothly-icon.sc-smoothly-input-select{display:block}';const Jc=Zc;const Xc=class{constructor(t){e(this,t);this.smoothlyInput=o(this,"smoothlyInput",7);this.smoothlyInputLooks=o(this,"smoothlyInputLooks",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.smoothlyFormDisable=o(this,"smoothlyFormDisable",7);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.initialValue=[];this.initialValueHandled=false;this.listener={};this.items=[];this.lastOpen=false;this.invalid=false;this.name="selected";this.color=undefined;this.looks=undefined;this.showLabel=true;this.showSelected=true;this.readonly=false;this.inCalendar=false;this.ordered=undefined;this.multiple=false;this.clearable=true;this.changed=false;this.defined=false;this.placeholder=undefined;this.menuHeight=undefined;this.required=false;this.searchDisabled=false;this.mutable=false;this.open=false;this.selected=[];this.filter="";this.addedItems=[]}componentWillLoad(){var e,t;this.smoothlyInputLooks.emit(((e,t)=>{var o;return this.looks=(o=this.looks)!==null&&o!==void 0?o:e,!this.color&&(this.color=t)}));this.smoothlyInputLoad.emit((e=>this.parent=e));!this.readonly&&this.smoothlyFormDisable.emit((e=>this.readonly=e));(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}componentDidLoad(){this.selected&&!this.initialValueHandled&&(this.initialValue=[...this.selected]);this.initialValueHandled=true;this.onSelectedChange()}componentDidRender(){var e,t,o,s,a;this.itemHeight===undefined&&(this.itemHeight=(e=this.items.find((e=>e.clientHeight>0)))===null||e===void 0?void 0:e.clientHeight);if(this.menuHeight&&this.itemHeight){(t=this.element)===null||t===void 0?void 0:t.style.setProperty("--menu-height",!this.menuHeight.endsWith("items")||this.items.length==0?this.menuHeight:`${this.itemHeight*+((s=(o=this.menuHeight.match(/^(\d+(\.\d+)?|\.\d+)/g))===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:"10")}px`)}(a=this.element)===null||a===void 0?void 0:a.style.setProperty("--element-height",`${this.element.clientHeight}px`);if(this.ordered&&!this.multiple&&this.open&&!this.lastOpen){this.scrollToSelected()}}async disconnectedCallback(){if(!this.element.isConnected)await this.unregister()}async register(){hr.formAdd(this)}async unregister(){hr.formRemove(this)}async getValue(){return!this.multiple&&this.selected[0]?this.selected[0].value:this.multiple&&this.selected.length>0?this.selected.map((e=>e.value)):undefined}async getItems(){return this.items}async listen(e,t){this.listener[e]=t;t(this)}async reset(){this.selected.forEach((e=>e.selected=e.hidden=false));this.initialValue.forEach((e=>e.selected=true));this.selected=[...this.initialValue];this.displaySelected();this.changed=false;this.open&&this.handleShowOptions()}async clear(){var e;if(this.clearable){this.selected.forEach((e=>e.selected=e.hidden=false));this.selected=[];if(this.displaySelectedElement){this.displaySelectedElement.innerHTML=(e=this.placeholder)!==null&&e!==void 0?e:""}}}async edit(e){this.readonly=!e}async setInitialValue(){this.changed=false;this.initialValue=[...this.selected]}async onSelectedChange(){var e,t;this.initialValueHandled&&(this.changed=!this.areValuesEqual(this.selected,this.initialValue));this.defined=this.selected.length>0;this.smoothlyInput.emit({[this.name]:await this.getValue()});(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}onRequiredChange(){this.items.forEach((e=>e.deselectable=!this.required))}async onFilterChange(e){e=e.toLowerCase();await Promise.all(this.items.map((t=>t.filter(e))))}watchingReadonly(){var e,t;(t=(e=this.listener).changed)===null||t===void 0?void 0:t.call(e,this)}async smoothlyInputLoadHandler(e){if(e.target&&("name"in e.target&&e.target.name!==this.name||e.composedPath().some((e=>e==this.iconsDiv))&&!e.composedPath().some((e=>e==this.toggle)))){e.stopPropagation()}else if(qc.Element.is(e.target)){e.stopPropagation();e.target.deselectable=!this.required;this.items.push(e.target)}hr.registerSubAction(this,e);this.displaySelected()}onWindowClick(e){!e.composedPath().includes(this.element)&&this.open&&this.handleShowOptions()}onItemSelect(e){e.stopPropagation();if(this.multiple){this.selected=e.detail.selected?[...this.selected,e.detail]:this.selected.filter((e=>e.selected))}else if(e.detail.selected||!this.items.some((e=>e.selected))){this.selected[0]&&(this.selected[0].hidden=this.selected[0].selected=false);this.selected=!e.detail.selected?this.selected.filter((e=>e.selected)):[e.detail];!this.showSelected&&e.detail.selected&&(e.detail.hidden=true)}this.displaySelected()}onClosed(e,t){this.lastOpen=t;if(!e){const e=this.items.find((e=>e.marked));if(e){e.marked=false}}}handleShowOptions(e){const t=(e===null||e===void 0?void 0:e.composedPath().some((e=>e==this.iconsDiv)))&&!e.composedPath().some((e=>e==this.toggle));const o=e===null||e===void 0?void 0:e.composedPath().find((e=>"tagName"in e&&e.tagName=="SMOOTHLY-ITEM"));!this.readonly&&!(o&&this.items.includes(o)&&this.multiple)&&!t&&(this.open=!this.open);this.filter=""}areValuesEqual(e,t){return e.length===t.length&&t.every((t=>e.includes(t)))}displaySelected(){var e;const t=this.selected.map((e=>`<div>${e.innerHTML}</div>`)).join("");this.displaySelectedElement&&(this.displaySelectedElement.innerHTML=this.selected.length>0?t:(e=this.placeholder)!==null&&e!==void 0?e:"")}onKeyDown(e){if(!this.searchDisabled){e.stopPropagation();const t=this.items.some((e=>e.getAttribute("hidden")===null));if(e.key!="Tab"&&!e.ctrlKey&&!e.metaKey)e.preventDefault();if(this.open){switch(e.key){case"ArrowUp":t&&this.move(-1);break;case"ArrowDown":t&&this.move(1);break;case"Escape":if(this.filter=="")this.open=false;else this.filter="";break;case"Backspace":this.filter=e.ctrlKey?"":this.filter.slice(0,-1);break;case"Enter":const o=this.items.find((e=>e.marked));if(o===null||o===void 0?void 0:o.value)o.selected=!o.selected;if(!this.multiple){this.open=false;this.filter=""}break;case"Tab":this.open=false;break;default:if(e.key.length==1)this.filter+=e.key;break}}else{switch(e.key){case"Enter":case" ":this.handleShowOptions();break;case"ArrowDown":this.handleShowOptions();this.move(1);break;case"ArrowUp":this.handleShowOptions();this.move(-1);break;case"Tab":break;default:this.handleShowOptions();if(e.key.length==1)this.filter+=e.key;break}}}}scrollToSelected(){const e=this.items.find((e=>e.selected));if(e){this.items.map((e=>e.marked=false));e.marked=true;this.scrollTo(e,"instant")}}move(e){const t=this.items.filter((e=>!e.hidden&&!e.disabled));let o=t.findIndex((e=>e.marked));if(o==-1)o=0;else{t[o].marked=false;o=(o+e+t.length)%t.length}t[o].marked=true;this.scrollTo(t[o],"smooth")}scrollTo(e,t){var o,s,a;(o=this.optionsDiv)===null||o===void 0?void 0:o.scrollTo({top:e.offsetTop+e.offsetHeight/2-((a=(s=this.optionsDiv)===null||s===void 0?void 0:s.clientHeight)!==null&&a!==void 0?a:0)/2,behavior:t})}addItem(){this.addedItems=this.addedItems.concat(t("smoothly-item",{value:this.filter,selected:true},this.filter))}render(){return t(s,{key:"77b737ac05a0d8b9d3fe8db6306fe81f4ee97b39",tabIndex:0,class:{"has-value":this.selected.length!==0,open:this.open,invalid:!!this.invalid},onClick:e=>this.handleShowOptions(e)},t("div",{key:"8f549454e69eb794d47fa643cbc4bad2fc68857e",class:"select-display",ref:e=>this.displaySelectedElement=e},this.placeholder),t("div",{key:"ddd39f505092f309a5d5eb56926df33ddc232935",class:"icons",ref:e=>this.iconsDiv=e},t("slot",{key:"8df456070caa226409275ac6d50bb90b829c50ee",name:"end"}),this.looks=="border"&&!this.readonly&&t("smoothly-icon",{key:"9699f72860c346e361b88817404d4a22edffac5c",ref:e=>this.toggle=e,size:"tiny",name:this.open?"caret-down-outline":"caret-forward-outline"}),t("smoothly-icon",{key:"4f64b8e04265eb823850429fe8e3ba542afb7aa1",class:"invalid",name:"alert-circle",color:"danger",fill:"clear",size:"small"})),t("slot",{key:"b36a00495be201be9d1ea10845e913e16e43473b",name:"label"}),t("div",{key:"19f27845b4447ef076e3af20cf468c26e58abdb2",class:{hidden:!this.open,options:true},ref:e=>this.optionsDiv=e},this.filter.length>0&&t("div",{key:"233c2685b69af4035e5f4c032749739bcef5701c",class:"search-preview"},t("smoothly-icon",{key:"764c0b65b6514ba132e10555a8f657e054b4242a",name:"search-outline",size:"small"}),this.filter,t("smoothly-icon",{key:"aaf77a87b98051aa1afd3cd451656cba9ce2ba07",name:"backspace-outline",size:"small",onClick:e=>{e.stopPropagation();this.filter="";this.element.focus()}}),this.mutable&&t("smoothly-icon",{key:"b8e6dbb740957e94f050717281891d4f72475261",name:"add",size:"small",onClick:e=>{e.stopPropagation();this.addItem()}})),t("slot",{key:"7082316f2573c94e9e05ea2407624b716e93619a"}),this.addedItems))}get element(){return a(this)}static get watchers(){return{selected:["onSelectedChange"],required:["onRequiredChange"],filter:["onFilterChange"],readonly:["watchingReadonly"],open:["onClosed"]}}};Xc.style=Jc;var Qc;(function(e){function t(e){return e&&typeof e=="object"&&typeof e.submit=="function"}e.is=t})(Qc||(Qc={}));const ed='[color=default].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-input-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-input-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-input-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-input-submit-h{display:inline}[disabled].sc-smoothly-input-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-input-submit-h>a.sc-smoothly-input-submit:empty,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:empty{border-width:0}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-input-submit{padding:0.8em;min-width:8em}.sc-smoothly-input-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-input-submit{padding:0.6em}[size=icon].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{padding:0.5em}[type=button].sc-smoothly-input-submit-h>a.sc-smoothly-input-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:100%}[size=large].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{font-size:130%}.sc-smoothly-input-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-input-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-input-submit-h{width:100%}[expand=full].sc-smoothly-input-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-input-submit-h:not([fill=clear])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-visible,[fill=outline].sc-smoothly-input-submit-h:active>button.sc-smoothly-input-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:hover::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:focus-within::before,[fill=outline].sc-smoothly-input-submit-h>button.sc-smoothly-input-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:hover,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:focus-visible,.sc-smoothly-input-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-input-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-input-submit-h>button.sc-smoothly-input-submit,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-icon,.sc-smoothly-input-submit-h .sc-smoothly-input-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-input-submit-h{display:none}.sc-smoothly-input-submit-h{display:flex}.sc-smoothly-input-submit-h:not([display]){display:none}.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button button>*+smoothly-icon,.sc-smoothly-input-submit-h.sc-smoothly-input-submit-s>smoothly-button-confirm button>*+smoothly-icon{display:none}[disabled].sc-smoothly-input-submit-h{cursor:not-allowed}';const td=ed;const od=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.delete=false;this.color=undefined;this.icon="checkmark-outline";this.expand=undefined;this.fill=undefined;this.disabled=false;this.display=false;this.shape=undefined;this.size="icon";this.toolTip=this.delete?"Remove":"Submit"}componentWillLoad(){this.smoothlyInputLoad.emit((e=>{if(Qc.is(e)&&cr.type.is(e)){this.parent=e;e.listen("changed",(async e=>{var t;this.display=!e.readonly;this.disabled=!this.delete&&(e.readonly||"validator"in e&&e.validator instanceof f&&!((t=e.validator)===null||t===void 0?void 0:t.is(h.convertArrays(e.value)))||!e.changed)}))}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit(this.delete)}render(){var e,o;return t(s,{key:"f659d9fcff6418ed79a26b588a0b2392a85affa2",title:this.toolTip},this.delete==true?t("smoothly-button-confirm",{size:this.size,shape:this.shape,expand:this.expand,color:(e=this.color)!==null&&e!==void 0?e:"danger",fill:this.fill,onSmoothlyConfirm:()=>this.clickHandler()},t("slot",null),t("smoothly-icon",{name:"trash-outline",fill:"solid",size:"tiny"})):t("smoothly-button",{disabled:this.disabled,size:this.size,type:"button",shape:this.shape,expand:this.expand,color:(o=this.color)!==null&&o!==void 0?o:"success",fill:this.fill,onClick:()=>this.clickHandler()},t("slot",null),this.icon&&t("smoothly-icon",{name:this.icon,fill:"solid",size:"tiny"})))}};od.style=td;const sd="[selected].sc-smoothly-item-h{background-color:rgb(var(--smoothly-item-selected-background));color:rgb(var(--smoothly-item-selected-foreground));border-left:.3em solid rgb(var(--smoothly-item-selected-border))}[disabled].sc-smoothly-item-h,.sc-smoothly-item-h[disabled].sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-disabled-background));color:rgb(var(--smoothly-item-disabled-foreground));opacity:var(--smoothly-item-disabled-opacity);cursor:not-allowed}.sc-smoothly-item-h{padding:0.5em;cursor:pointer;border-left:.3em solid transparent;color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground));box-sizing:border-box;min-height:3rem}.sc-smoothly-item-h.sc-smoothly-item-s>*{color:rgb(var(--smoothly-item-foreground));fill:rgb(var(--smoothly-item-foreground));stroke:rgb(var(--smoothly-item-foreground))}.sc-smoothly-item-h:not([disabled])[marked],.sc-smoothly-item-h:not([disabled]):hover,.sc-smoothly-item-h:not([disabled])[marked].sc-smoothly-item-s>*,.sc-smoothly-item-h:not([disabled]):hover.sc-smoothly-item-s>*{background-color:rgb(var(--smoothly-item-hover-background));color:rgb(var(--smoothly-item-hover-foreground));fill:rgb(var(--smoothly-item-hover-foreground));stroke:rgb(var(--smoothly-item-hover-foreground))}";const ad=sd;const id=class{constructor(t){e(this,t);this.smoothlyItemSelect=o(this,"smoothlyItemSelect",7);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.value=undefined;this.selected=false;this.marked=undefined;this.disabled=false;this.deselectable=true}clickHandler(){if(!this.disabled&&(!this.selected||this.deselectable))this.selected=!this.selected}selectedWatcher(){this.smoothlyItemSelect.emit(this.element)}componentWillLoad(){this.smoothlyInputLoad.emit((()=>{}))}componentDidLoad(){if(this.selected&&!this.disabled)this.smoothlyItemSelect.emit(this.element)}async filter(e){var t;const o=typeof this.value==="string"?this.value:JSON.stringify((t=this.value)!==null&&t!==void 0?t:"");this.element.hidden=e?!(o.includes(e)||this.element.innerText.toLowerCase().includes(e)):false}render(){return t(s,{key:"51866154258a830cd316996c2995632892c68034",tabIndex:-1},t("slot",{key:"d09f55dd228895f53f8ba4231229ea98aab10b48"}))}get element(){return a(this)}static get watchers(){return{selected:["selectedWatcher"]}}};id.style=ad;const nd=".sc-smoothly-label-h{position:relative;width:max-content;display:flex;justify-content:center;align-items:center;padding:0.15em 0.6em;border-radius:2em;color:rgb(var(--smoothly-default-contrast));background-color:hsl(var(--hue), 85%, 70%)}[shape=rectangle].sc-smoothly-label-h{border-radius:0.3em}";const ld=nd;const rd=class{constructor(t){e(this,t);this.hue=undefined;this.description=undefined;this.shape=undefined}render(){var e;return t(s,{key:"0fc0990f6f3a09be9ba3d964867e6e964725499f",title:this.description,style:{"--hue":(e=this.hue)===null||e===void 0?void 0:e.toString()}},t("slot",{key:"6e1b85b84645891087866414a70a9f91aa90a8db"}))}};rd.style=ld;const cd=".sc-smoothly-lazy-h{display:block}";const dd=cd;const hd=class{constructor(t){e(this,t);this.show=false;this.content=undefined}loadMoreHandler(e){e.stopPropagation();this.show=true}render(){return t(s,{key:"de115abe3101a1fa5d32e3ae3cef919afca90ea4"},t("slot",{key:"61aa5f412fbbeca1c1b2f9bafde7d87bca0a94b9",name:"before"}),t("smoothly-load-more",{key:"6c3bd20f8f1b0d2b8900dcbb640f33dd76c7452a",onSmoothlyLoadMore:e=>this.loadMoreHandler(e)}),this.show&&(typeof this.content=="function"?t(this.content,null):this.content),t("slot",{key:"f0b6bd381a12f5270797494a6eb414c38763e5fd"}))}};hd.style=dd;const md=class{constructor(t){e(this,t);this.smoothlyLoadMore=o(this,"smoothlyLoadMore",7);this.triggerMode="intersection";this.name="";this.multiple=false;this.inView=undefined}checkInView(){if(this.inView)this.smoothlyLoadMore.emit(this.name)}connectedCallback(){var e;this.observer=new IntersectionObserver(((e,t)=>this.observationHandler(t,e)));this.observer.observe(this.element);if(this.triggerMode=="scroll"){this.inView&&this.smoothlyLoadMore.emit(this.name);if(this.multiple||!this.multiple&&!this.inView){this.scrollableParent=n.findParent(this.element);(e=this.scrollableParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.checkInView.bind(this),{once:!this.multiple})}}}disconnectedCallback(){var e;(e=this.scrollableParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.checkInView.bind(this));this.observer.disconnect()}observationHandler(e,t){var o,s;this.inView=((s=(o=t.find((e=>e.target==this.element)))===null||o===void 0?void 0:o.intersectionRatio)!==null&&s!==void 0?s:0)>0;if(this.inView){this.smoothlyLoadMore.emit(this.name);!this.multiple&&(e.unobserve(this.element),e.disconnect())}}render(){return t(s,{key:"7169adeca2956b6f0c85e3a7ceab410a3dddd7f5"})}get element(){return a(this)}};const bd='.sc-smoothly-modal-h{position:fixed;display:flex;justify-content:center;top:0;left:0;width:100%;height:100%;background-color:rgba(var(--smoothly-modal-backdrop));color:rgb(var(--smoothly-modal-foreground));z-index:5}.sc-smoothly-modal-h:not([open]),[hidden].sc-smoothly-modal-h{display:none}[align=center].sc-smoothly-modal-h{align-items:center}[align=top].sc-smoothly-modal-h>div.modal.sc-smoothly-modal{margin-top:calc((100dvh - var(--smoothly-modal-max-height)) / 2)}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal{display:flex;flex-direction:column;padding:2rem;gap:1.5rem;width:var(--smoothly-modal-width, 40rem);max-width:calc(100dvw - 1rem);height:fit-content;max-height:min(var(--smoothly-modal-max-height), 100dvh);background:rgb(var(--smoothly-modal-background, var(--smoothly-color)));border:1px solid rgb(var(--smoothly-modal-border));border-radius:var(--smoothly-modal-border-radius);box-shadow:var(--smoothly-modal-shadow);box-sizing:border-box}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:empty,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal:empty{display:none}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal{display:flex;justify-content:space-between;align-items:center}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal,.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>*.sc-smoothly-modal{margin-block:0}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>*.sc-smoothly-modal:not(.header):not(.actions){overflow-y:auto}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal:not(:has([slot="header"])){justify-content:end}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]){cursor:pointer;opacity:0.7;color:rgb(var(--smoothly-default-contrast))}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.header.sc-smoothly-modal>smoothly-icon.sc-smoothly-modal:not([slot="header"]):hover{opacity:1}.sc-smoothly-modal-h>div.modal.sc-smoothly-modal>div.actions.sc-smoothly-modal{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap}';const yd=bd;const ud=class{constructor(t){e(this,t);this.smoothlyModalChange=o(this,"smoothlyModalChange",7);this.open=false;this.closable=false;this.align="center"}openChanged(){this.smoothlyModalChange.emit(this.open)}render(){return t(s,{key:"583eadffaf2e24575a5c1cc4e1fddd804b184dd5",role:"alertdialog"},t("div",{key:"ca8af6bb11f18895f1899db9facd795c061430c0",class:"modal"},t("div",{key:"bc66d69748c12e5707f7c601717d1f96309ee09d",class:"header"},t("slot",{key:"b41c4051fd74e25efc53334172724b91070a4359",name:"header"}),this.closable&&t("smoothly-icon",{key:"138c5ba8fdcf1d1132d92c36299615ea1fda0f3a",name:"close-outline",fill:"solid",onClick:()=>this.open=false})),t("slot",{key:"0ac2f594b68b53729724f8fc372b9a451d42b909"}),t("div",{key:"05b7d6ca01ee55b0e2a1afd34226505a0f9772c1",class:"actions"},t("slot",{key:"d3395b6b76ace8c9916b9d60e4208bd7a3e8d032",name:"actions"}))))}static get watchers(){return{open:["openChanged"]}}};ud.style=yd;const fd=".sc-smoothly-next-demo-h{display:grid;gap:5rem;box-sizing:border-box;max-width:80rem;width:100%;margin:auto;padding:2rem}";const pd=fd;const gd=class{constructor(t){e(this,t)}render(){return t(s,{key:"60c3283a34f49ab6a4659a41c8eafc515f9c7fd3"},t("smoothly-next-demo-filler-row-demo",{key:"77eaf9cf368e33ca06c60cb2b34f18448027f057"}),t("smoothly-next-demo-group",{key:"b62f7ed677da7d68a0fbff87d484957ae4ea4085"}),t("smoothly-next-demo-colspan",{key:"2672c58491d55006de5eda3dc7bbea3b125671e3"}),t("smoothly-next-demo-simple",{key:"b701d8f0a5524a35a62c48def77524b41a25cc4d"}),t("smoothly-next-demo-nested",{key:"d259132a77f2a87de80cf994b3fa5ddec4563ee6"}),t("smoothly-next-table-demo-filtered",{key:"3a8e47d65dd5c7a6df239724202eac698c1db513"}))}};gd.style=pd;const kd=".sc-smoothly-next-demo-colspan-h{display:block}.sc-smoothly-next-demo-colspan-h smoothly-display.sc-smoothly-next-demo-colspan{display:inline}";const vd=kd;const xd=class{constructor(t){e(this,t)}render(){return t(s,{key:"df964ef528038285bbb443ee142a458d30a90034"},t("smoothly-next-table",{key:"e77a70224fa439572abbdd63cec975210e99cdd1",columns:3},t("smoothly-next-table-head",{key:"6e51cf68461146e3acdf7003f16763039d9dda86"},t("smoothly-next-table-row",{key:"ba54cfc7a0a443491b67660c42cc99006fea80a9"},t("smoothly-next-table-cell",{key:"985a23855b1b57c117370e39f66c0d4ee8f1728e"},"Date"),t("smoothly-next-table-cell",{key:"db397be5b860dfb375116a703129c06aff459c88"},"Skip"),t("smoothly-next-table-cell",{key:"4866035423aeb9be54ecdf4224824736da589e60"},"Total"))),t("smoothly-next-table-body",{key:"3895a9ce7e1e99096e94047986bbaea5e97f4c6b"},t("smoothly-next-table-row",{key:"8e87d59e6ad7375df967a8d8b740cc8239fb417f"},t("smoothly-next-table-cell",{key:"9e5550ddc219055bc3aae5c9c929dfe6933f5530",span:2},t("smoothly-display",{key:"8fc193c4898ff3ab664b6b509b4deab457c99a0a",type:"date",value:"2024-01-01"})),t("smoothly-next-table-cell",{key:"56df306600fad13929a4f08d357c62abe0b1fac3"},t("smoothly-display",{key:"152b90ed8c85136b20ec651d763c154ac8318a0f",type:"price",value:120,currency:"EUR"}))),t("smoothly-next-table-row",{key:"3f1f972cc513a2b0b82b139ed01875d8d101deec"},t("smoothly-next-table-expandable-cell",{key:"297d2e5331445962a77f669d840274d40ab1d200",span:2},t("smoothly-display",{key:"079f748f7c4809c30080862a03f27c9e1daf4fba",type:"date",value:"2024-01-02"}),t("smoothly-lazy",{key:"599db2779c2d88385fff227c7bcc6b3fd508cb9c",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-02T13:37:00.000Z"})})),t("smoothly-next-table-expandable-cell",{key:"9c92e47338583d58c16374a429fac3d2aedcd2bb"},t("smoothly-display",{key:"c072fec08a530cf960f42ad03e6f7c67ef305ef8",type:"price",value:220,currency:"EUR"}),t("smoothly-lazy",{key:"ef79407b764bedefb609a539cbab40360c0a7908",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:120,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:100,currency:"EUR"}))}))),t("smoothly-next-table-row",{key:"947e544357fc6e210b93ee003e321c73f3c82333"},t("smoothly-next-table-cell",{key:"090db5b1929506fe82979753d286cfa8cbd3cb4b"},t("smoothly-display",{key:"8bce5c18a3de593664aebedb6f38d6d362622fa8",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"63d657c27f8ee3eddb380316d4b390e2b52e638e"},"Not Skipped"),t("smoothly-next-table-cell",{key:"3bf06598be8daecb99b231f5112fc5efc16b5931"},t("smoothly-display",{key:"73c7ee768c664d8ad24a6683cfdc063482865305",type:"price",value:320,currency:"EUR"}))))))}};xd.style=vd;const wd=".sc-smoothly-next-demo-filler-row-demo-h{display:block}.sc-smoothly-next-demo-filler-row-demo-h>smoothly-display.sc-smoothly-next-demo-filler-row-demo{font-size:2em}.sc-smoothly-next-demo-filler-row-demo-h>*.sc-smoothly-next-demo-filler-row-demo{margin-bottom:2rem}";const Sd=wd;const Cd=class{constructor(t){e(this,t);this.cats=[]}async componentDidLoad(){window.setTimeout((()=>{this.cats=undefined}),3e3)}render(){return t(s,{key:"c1da7082635613c6a9b96c62a18d2f8fe931c16d"},t("smoothly-display",{key:"f268b945e214f4e6bedadfc8760099c24f1153f8",type:"text",value:"Filler row"}),t("smoothly-next-table",{key:"503113478f8567b748215c8c02ce09013252d5f9",color:"primary",columns:4},t("smoothly-next-table-head",{key:"e3f303b449bf0f456887269cb81d8ee067bdc5df"},t("smoothly-next-table-row",{key:"e16a60bd48e8b2bd43b10d339bb6b97dd514ae3c"},t("smoothly-next-table-cell",{key:"b28228816e03b8bb8cd1f2fc14cebd4fbe6f1d08"},"Breed"),t("smoothly-next-table-cell",{key:"c6b3f0030b283b4ad58dff2abe50f59ae5315893"},"Country"),t("smoothly-next-table-cell",{key:"02ccdd4d8b246affde08d0b4e23f375e0911462a"},"Coat"),t("smoothly-next-table-cell",{key:"d3e2f2581b66cf3af1d477ec54635a562f6a61c5"},"Origin"))),t("smoothly-next-table-body",{key:"1e01764e4db08a222999559d775aa14fee1f5d4f"},this.cats===undefined?t("smoothly-next-table-filler-row",null,"No data to display"):this.cats.length===0?t("smoothly-next-table-filler-row",null,t("smoothly-spinner",{style:{margin:"auto"},color:"default",size:"small"})):this.cats.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,e.breed),t("smoothly-next-table-cell",null,e.country),t("smoothly-next-table-cell",null,e.coat),t("smoothly-next-table-cell",null,e.origin)))))))}};Cd.style=Sd;const zd=".sc-smoothly-next-demo-group-h{display:block}.sc-smoothly-next-demo-group-h smoothly-display.sc-smoothly-next-demo-group{display:inline}.sc-smoothly-next-demo-group-h fake-cell-wrapper.span-2.sc-smoothly-next-demo-group{grid-column:span 2}.sc-smoothly-next-demo-group-h>smoothly-display.sc-smoothly-next-demo-group{display:inherit;font-size:2em}.sc-smoothly-next-demo-group-h>*.sc-smoothly-next-demo-group{margin-bottom:2rem}.sc-smoothly-next-demo-group-h fake-group-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-row-wrapper.sc-smoothly-next-demo-group,.sc-smoothly-next-demo-group-h fake-expandable-row-wrapper.sc-smoothly-next-demo-group{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}.sc-smoothly-next-demo-group-h fake-cell-wrapper.sc-smoothly-next-demo-group{grid-column:span 1;display:block}.sc-smoothly-next-demo-group-h fake-expandable-cell-wrapper.sc-smoothly-next-demo-group{display:contents}";const jd=zd;const _d=class{constructor(t){e(this,t)}render(){return t(s,{key:"73e0d51a0e3941caa16b1283f7f5187faadf13ee"},t("smoothly-display",{key:"9fd00526fbe6993eb98bed95c4e8133f3f504fcf",type:"text",value:"Group"}),t("smoothly-next-table",{key:"c6c937a3fa59c2160ae57bf5a9ef23ba722987dc",color:"primary",columns:2},t("smoothly-next-table-head",{key:"741787df74f06380286cf41f1184f035139d0382"},t("smoothly-next-table-row",{key:"20f9b4b44711073c70949669cb68d0f501bdd3e2"},t("smoothly-next-table-cell",{key:"3546f61d968e85d20b542ea5a92b81a8ce63d645"},"Date"),t("smoothly-next-table-cell",{key:"40bed3b1560bca9dc819fcabc8d33488b7bea127"},"Total"))),t("smoothly-next-table-body",{key:"8a540b22896eb43a08f7020aa8d56508e78ea12b"},t("smoothly-next-table-row-group",{key:"101cf27ef3e9957b4c8254dd9d4f7d41fba2857a",align:true},t("smoothly-display",{key:"9b1630b69a098adc01cc728fe82505c353f1a0e8",slot:"start",type:"date",value:"2024-01-01"}),t("smoothly-display",{key:"433febcf1be2636198111e2ff066d9b968c05cfc",slot:"end",type:"price",currency:"EUR",value:510}),t("smoothly-next-table-expandable-row",{key:"490e20cf154a4061ed1a657edbd96656113b102b"},t("smoothly-next-table-cell",{key:"a0d033cf6d284533ec446061240955d4659e1c65"},t("smoothly-display",{key:"f8ae356be115913eac2ed8f26a0e76855751a604",type:"date-time",value:"2024-01-01T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"6881fa42948499ee14d986cd0cd5a368893e5f5d"},t("smoothly-display",{key:"b2a0fa9795870ae6479f095968f3402d50cfcf5c",type:"price",currency:"EUR",value:250})),t("smoothly-lazy",{key:"43a981cb81cf85e3ab7c67ceed9d316a3003d5f3",slot:"detail",content:t(i,null,"Details of 2024-01-01T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"568e724e4c95b267413e3dc7781e72750b633e11"},t("smoothly-next-table-cell",{key:"6a3d8ba835df4fdd5076ef5a5907694f5811a6ca"},t("smoothly-display",{key:"9b95129e71a0664e6689bd6dc857f4cb31cbb979",type:"date-time",value:"2024-01-01T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"b37ed4086dbfe19631ec46be7e7b1da0859defb7"},t("smoothly-display",{key:"56b504514e11cd5e6e1ceae622996b2027a7dcbf",type:"price",currency:"EUR",value:260})),t("smoothly-lazy",{key:"1bc72a8145f2d9b93a99dce1e29ab0ead788487a",slot:"detail",content:t(i,null,"Details of 2024-01-01T13:37:00.000Z")}))),t("smoothly-next-table-row",{key:"c2c9e92cc455b621889a6eb41e8cdc9687e5c620"},t("smoothly-next-table-cell",{key:"5b5cb852a3ff871701f47866cc37f98c36aba26f"},t("smoothly-display",{key:"0aae4cd0bac3cab1b22ad73de06bf696a333f8d7",type:"date",value:"2024-01-02"})),t("smoothly-next-table-cell",{key:"1192d53740c70a16d01e1e2a8ec03c1d14d9e801"},t("smoothly-display",{key:"c13c4433a0ba620e16604fb47450727d4ba56e5c",type:"price",currency:"EUR",value:130}))),t("smoothly-next-table-row-group",{key:"896fecd9312899190a2ecf4579c50073a31c8272"},t("smoothly-display",{key:"1dbcff7150422fc2153a9816ec874dfba429d229",slot:"start",type:"date",value:"2024-01-03"}),t("smoothly-display",{key:"8af0f60fb62c097a55b1f14c1d9e02a598f139d9",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"5274bbc35439a4d52d970c77082f0d7d886789c0"},t("smoothly-next-table-cell",{key:"18702a617d8766b19f79a1a2934533d7cf2632c0"},t("smoothly-display",{key:"57f2d3ab2d7098d021c9db4631e9cc6b2d898c70",type:"date-time",value:"2024-01-03T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"cdfa422283047bb1afe7fe0defd6b4901ac62747"},t("smoothly-display",{key:"2cded0b74d7b9387f7b729b4c2946915bb0871ae",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"492dd23dbf0ce2c01d5c423d9b1b78a9fe237226",slot:"detail",content:t(i,null,"Details of 2024-01-03T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"70607593f49e8087a182352ddb2699f8eb76b023"},t("smoothly-next-table-cell",{key:"46f7e9ba5e04b3e17c1744c5dbd0b865bf4d6071"},t("smoothly-display",{key:"2366d67e25f1280f7c84b56e05120a4a009e02ea",type:"date-time",value:"2024-01-03T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"fe940858dc68bf595db43924f4089eeae2022b39"},t("smoothly-display",{key:"e95e4585fbc58e8414b4b8500cc0a399f89fce22",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"b20b19c014495f1fdc58a17bb9e4670b450dde24",slot:"detail",content:t(i,null,"Details of 2024-01-03T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"e6372f8af60c8680990326d82e9bc8039d5d2f7b"},t("smoothly-display",{key:"5918a19899072b4c412bb2d19ef3f204eeb51c24",slot:"start",type:"date",value:"2024-01-04"}),t("smoothly-next-table-expandable-row",{key:"a8dd0ade6e75b3332970b5c28dbea16ae872f020"},t("smoothly-next-table-cell",{key:"c543cc174821d05a7d4975486d6419bcfb48ae91"},t("smoothly-display",{key:"733a433dd0ca61e10fea401f34665aeb6ed0989a",type:"date-time",value:"2024-01-04T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"bc86fa504846290f49aa36dd765fbf39a883b657"},t("smoothly-display",{key:"5e0e011989b9b1d75b004961abc9193c98426e1d",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"4eb921562f4dff18d46d375cd7a5186ffd1c18a5",slot:"detail",content:t(i,null,"Details of 2024-01-04T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"821ec4169165ea4e4ffac5e0145cec0204fec6e3"},t("smoothly-next-table-cell",{key:"482c9d096428c376fa64e47aa9ae271875b6f871"},t("smoothly-display",{key:"267bade15f3e214d34342ad317195371c9ab1242",type:"date-time",value:"2024-01-04T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"8bb4e5393b37855c6e00e9a3039017b0e469163f"},t("smoothly-display",{key:"158af69d312342e2307d7be4efbf6d5238f1659b",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"7798eaf8ed6782e1707cfd5c9837f8142d733185",slot:"detail",content:t(i,null,"Details of 2024-01-04T13:37:00.000Z")}))),t("smoothly-next-table-row-group",{key:"9799c11e2626f6a0f7e0e532b781824469d4b6f9"},t("smoothly-display",{key:"f0df60840283455397ad35e452e69abd7b57cb89",slot:"end",type:"price",currency:"EUR",value:720}),t("smoothly-next-table-expandable-row",{key:"b4be64833f56b5d1f8c625d544d24fcba34c03eb"},t("smoothly-next-table-cell",{key:"86c434c87a86ab6b595a22f3de7fa931a090e048"},t("smoothly-display",{key:"819b0da7a8fca04342206ab782a7794726ee556b",type:"date-time",value:"2024-01-05T01:37:00.000Z"})),t("smoothly-next-table-cell",{key:"cb73520ad44afc7502da06c4ec8f6af6adfc2aa0"},t("smoothly-display",{key:"5e65f0ca6614d9831b357f120b8a7ed2eafd0a61",type:"price",currency:"EUR",value:320})),t("smoothly-lazy",{key:"ea9a6fad058b361c77bb84609dd2e7c6b92d9c35",slot:"detail",content:t(i,null,"Details of 2024-01-05T01:37:00.000Z")})),t("smoothly-next-table-expandable-row",{key:"f38de8ba3d30cb2a9d1e7020910d5fe651a2ec4f"},t("smoothly-next-table-cell",{key:"db56a476ca28a0aeef97bbda8f8317079d9898eb"},t("smoothly-display",{key:"65e33d8d3650a6a5423d47dc2ed210b1a7e083e3",type:"date-time",value:"2024-01-05T13:37:00.000Z"})),t("smoothly-next-table-cell",{key:"50fd46d73a79ac39ea9e531191a7bbfc5cadfdd3"},t("smoothly-display",{key:"676a02bce793ce04d4bfe29a57b12abcda9cb674",type:"price",currency:"EUR",value:400})),t("smoothly-lazy",{key:"d49a81b1f0308aed4f9dd0d1a4d11e285f5628e4",slot:"detail",content:t(i,null,"Details of 2024-01-05T13:37:00.000Z")}))),t("fake-group-wrapper",{key:"6172e15917d0c9b07926941c115d0339577b9f6d"},t("smoothly-next-table-row-group",{key:"702cca3f9968b90ca9f60ae7bce2e073fd86d4c7"},t("smoothly-display",{key:"2d3c71c4c17adb59fa8bcb66eb55ee6dd928f240",slot:"start",type:"date",value:"2024-01-06"}),t("smoothly-display",{key:"63ca204543351f120d71ee90a1e6e5207056dba2",slot:"end",type:"price",currency:"EUR",value:720}),t("fake-row-wrapper",{key:"36df63f982fceb5e1b67c2de95dd4ca723e1dd9e"},t("smoothly-next-table-row",{key:"feb2b626f45881f3a3a62a2a80e77f8f0d4d3b15"},t("fake-cell-wrapper",{key:"09a6f0f745d31db96d20c5ba6ac93826e330e005"},t("smoothly-next-table-cell",{key:"33c207294cc202b6a4dddef00c10e09188ace9b5"},t("smoothly-display",{key:"7fedc6e2142345eca9320691d55bfc6a6c68372e",type:"date",value:"2024-01-02"}))),t("fake-expandable-cell-wrapper",{key:"f9bbeba9c8c5b8d3d8a2581640bd87c5d48e1924"},t("smoothly-next-table-expandable-cell",{key:"5480d2f107c282fc1698a4ed5ca58ebb39ff3bd9"},t("smoothly-display",{key:"0132a7d7ba67472992803f43a5ed50732ec6aa1f",type:"price",currency:"EUR",value:130}),t("smoothly-lazy",{key:"48690f2e40c2b6123fb66c7ddd3c963f05856f40",slot:"detail",content:t("span",null,t("smoothly-display",{type:"price",value:100,currency:"EUR"})," + ",t("smoothly-display",{type:"price",value:30,currency:"EUR"}))}))))),t("fake-expandable-row-wrapper",{key:"23ebf8d2daf83e932d7cde68f105dac6059be750"},t("smoothly-next-table-expandable-row",{key:"be8b9c21325679a26baae80c6e833824caf07a5d"},t("fake-cell-wrapper",{key:"ea1bdce957a2e0677664d276bfe5d22ecc4c708f",class:"span-2"},t("smoothly-next-table-cell",{key:"3054bde065a700326ee80abb13a7ce570197898c",span:2},t("smoothly-display",{key:"8dbd6a6fff628c111dba1ffb0138c9126adcd595",type:"date",value:"2024-01-07"}))),t("smoothly-lazy",{key:"4c1dff73ee6eb514fe07e314b37f07013baeb817",slot:"detail",content:t("smoothly-display",{type:"date-time",value:"2024-01-07T13:37:00.000Z"})}))))),t("smoothly-next-table-row-group",{key:"e235f9efbdf19ffe8fb98e68a8689c316762886c"},t("smoothly-display",{key:"42e97b716d151160d2faa8af41e5e5d6aea75196",slot:"start",type:"date",value:"2024-01-08"}),t("smoothly-display",{key:"02d3309510ef2a76491a5b64801a9d4a6079817d",slot:"end",type:"price",currency:"EUR",value:720})))))}};_d.style=jd;const Td=[{id:"667d329f9f4934ecdc4bf9eb",balance:1450.03,age:35,eyeColor:"blue",name:"Glenda Ballard",gender:"female",company:"ZENTIA",registered:"2022-06-13T12:39:15.908",friends:[{id:0,name:"Manning Hunter",age:30,balance:1922.25},{id:1,name:"Mcmillan Oliver",age:32,balance:2440.53},{id:2,name:"Graham Garza",age:33,balance:3712.59},{id:3,name:"Gabrielle Neal",age:36,balance:2519.25},{id:4,name:"Dotson Duncan",age:29,balance:3274.11}]},{id:"667d329f4e07097167ef92a2",balance:2488.91,age:21,eyeColor:"blue",name:"Delaney Haley",gender:"male",company:"COMTOURS",registered:"2018-05-11T08:58:36.197",friends:[{id:0,name:"Elsa Cochran",age:28,balance:2009.45},{id:1,name:"Willis Acevedo",age:33,balance:2198.01},{id:2,name:"Slater Fowler",age:34,balance:2888.16},{id:3,name:"Ashley Wilkerson",age:22,balance:1863.65},{id:4,name:"Ola Lynch",age:23,balance:3649.29}]},{id:"667d329f14a0aeea0d70d5e7",balance:1660.91,age:36,eyeColor:"brown",name:"Riddle Reilly",gender:"male",company:"OPTIQUE",registered:"2016-09-15T09:46:07.962",friends:[{id:0,name:"Hazel Steele",age:33,balance:3129.64},{id:1,name:"Golden Chapman",age:40,balance:2491},{id:2,name:"Solomon Lopez",age:26,balance:1382.71},{id:3,name:"Castro Booth",age:23,balance:1991.6},{id:4,name:"Hernandez Bartlett",age:25,balance:2842.85},{id:5,name:"Lindsay Wagner",age:20,balance:3636.6}]},{id:"667d329f953aaaba19bea98b",balance:1381.34,age:24,eyeColor:"brown",name:"Diana Burns",gender:"female",company:"CODACT",registered:"2023-06-02T09:07:46.478",friends:[{id:0,name:"Tamika Merritt",age:25,balance:2401.06},{id:1,name:"Ballard Buckner",age:36,balance:1986.13},{id:2,name:"Stokes Ramirez",age:25,balance:3521.75},{id:3,name:"Wood Aguirre",age:36,balance:1186.13},{id:4,name:"Sophia Bowen",age:25,balance:2750.95},{id:5,name:"Wilkinson Gordon",age:34,balance:3864.91}]},{id:"667d329f6a753976e21e23b5",balance:3054.74,age:22,eyeColor:"brown",name:"Jackson Burnett",gender:"male",company:"COMCUR",registered:"2019-06-05T09:17:31.312",friends:[{id:0,name:"Atkinson Alston",age:37,balance:1025.72},{id:1,name:"Delia Ford",age:34,balance:3061.87},{id:2,name:"Marylou Hanson",age:33,balance:3255.77},{id:3,name:"Kelly Ray",age:32,balance:3671.73},{id:4,name:"Valdez Weeks",age:38,balance:3911.29},{id:5,name:"Hayes Crawford",age:20,balance:3194.97}]},{id:"667d329fc4805cafac37861e",balance:1173.94,age:20,eyeColor:"green",name:"Stephenson Mcleod",gender:"male",company:"POLARAX",registered:"2015-12-10T07:36:10.267",friends:[{id:0,name:"Kristine Newton",age:26,balance:2713.9},{id:1,name:"Craft Patel",age:40,balance:3822.36},{id:2,name:"Cochran French",age:30,balance:1535.91},{id:3,name:"Bowen Vinson",age:29,balance:2787.01},{id:4,name:"Adrian Ewing",age:21,balance:2319.14},{id:5,name:"Jimmie Mathews",age:31,balance:2869.09},{id:6,name:"Dixon Daugherty",age:24,balance:1496.25}]},{id:"667d329f76318162fe27b208",balance:2977.01,age:24,eyeColor:"blue",name:"Claudette Christensen",gender:"female",company:"PIVITOL",registered:"2021-08-08T07:08:00.936",friends:[{id:0,name:"Parker Lamb",age:36,balance:3409.27},{id:1,name:"Kennedy Bryan",age:34,balance:3904.27},{id:2,name:"Johanna Barton",age:20,balance:3613.79},{id:3,name:"Vazquez Melendez",age:26,balance:3692.31},{id:4,name:"Mendoza Wooten",age:31,balance:2175.64},{id:5,name:"Kelli Hicks",age:21,balance:1326.46},{id:6,name:"Jill Sanchez",age:36,balance:3214.36}]},{id:"667d329ff80a953b7f0a73d2",balance:1993.09,age:20,eyeColor:"green",name:"Buckley Gutierrez",gender:"male",company:"HOUSEDOWN",registered:"2015-04-02T04:53:42.985",friends:[{id:0,name:"Leanne Pennington",age:37,balance:3111.48},{id:1,name:"Juarez Hoover",age:29,balance:2000.62},{id:2,name:"Navarro Mccormick",age:22,balance:3083.93},{id:3,name:"Berry Curry",age:31,balance:3181.41},{id:4,name:"Josefa Howard",age:30,balance:3744.56}]},{id:"667d329f4f53eb59f0512361",balance:2374.56,age:34,eyeColor:"brown",name:"Sallie Mccoy",gender:"female",company:"REALYSIS",registered:"2018-05-11T05:26:36.604",friends:[{id:0,name:"Martina Kirby",age:22,balance:1278.07},{id:1,name:"Macias Lyons",age:20,balance:2991.44},{id:2,name:"Alta Chaney",age:26,balance:1032.71},{id:3,name:"White Manning",age:39,balance:3103.16},{id:4,name:"Mason Rosa",age:31,balance:1384.77},{id:5,name:"Meghan Martin",age:27,balance:1982.09}]},{id:"667d329f8a6cf9319bfdbd30",balance:3220.94,age:23,eyeColor:"blue",name:"Huff Hull",gender:"male",company:"GADTRON",registered:"2023-02-14T01:58:56.938",friends:[{id:0,name:"Rochelle Maldonado",age:28,balance:1548.77},{id:1,name:"Diann Conrad",age:32,balance:1721.33},{id:2,name:"Hope Jarvis",age:38,balance:1265.24},{id:3,name:"Dixie Huffman",age:31,balance:3764.23},{id:4,name:"Erickson Porter",age:27,balance:2958.59},{id:5,name:"Christensen Thomas",age:21,balance:1233.2}]},{id:"667d329f1415ecb1efb216cc",balance:2907.83,age:26,eyeColor:"brown",name:"Hancock Eaton",gender:"male",company:"POLARIUM",registered:"2018-02-25T01:03:11.860",friends:[{id:0,name:"Flynn Gilmore",age:27,balance:2582.57},{id:1,name:"Kline Hickman",age:31,balance:3853.99},{id:2,name:"Hatfield Owens",age:40,balance:2016.57},{id:3,name:"Michael Carson",age:31,balance:1293.03},{id:4,name:"Strickland Lowery",age:23,balance:1367.06},{id:5,name:"Georgia Chavez",age:37,balance:2957.48},{id:6,name:"Alma Berry",age:26,balance:2357.01}]},{id:"667d329f722eb89c82b56dec",balance:1602.02,age:35,eyeColor:"brown",name:"Lorrie Mcpherson",gender:"female",company:"PYRAMIA",registered:"2018-12-07T05:18:34.223",friends:[{id:0,name:"Bridgett Everett",age:37,balance:1438.53},{id:1,name:"Carlene Farley",age:25,balance:1410.54},{id:2,name:"Phoebe Mendez",age:24,balance:1979.36},{id:3,name:"Louella Cox",age:36,balance:3430.55},{id:4,name:"Velez Pugh",age:30,balance:3436.5}]},{id:"667d329ff853efe8c4e0a454",balance:2654.19,age:36,eyeColor:"brown",name:"Luann Jennings",gender:"female",company:"NAXDIS",registered:"2014-02-18T04:25:50.302",friends:[{id:0,name:"Walton Gentry",age:26,balance:1328.43},{id:1,name:"Lucy Koch",age:23,balance:2134.54},{id:2,name:"Toni Meyers",age:31,balance:2572.29},{id:3,name:"Vicki Frost",age:39,balance:3299.36},{id:4,name:"Meadows Baker",age:21,balance:2323.75}]},{id:"667d329f84f3bfbfcc763674",balance:2528.48,age:28,eyeColor:"brown",name:"Michelle Carey",gender:"female",company:"IDEGO",registered:"2016-10-01T04:25:07.187",friends:[{id:0,name:"Roman Sanders",age:40,balance:3551.16},{id:1,name:"Amanda Herman",age:22,balance:3928.02},{id:2,name:"Kay Montgomery",age:26,balance:3241.16},{id:3,name:"Valentine Wilder",age:23,balance:1413.31},{id:4,name:"Brigitte Nixon",age:32,balance:3113.39}]},{id:"667d329f4359ec766055a765",balance:3732.65,age:30,eyeColor:"brown",name:"Beach Maddox",gender:"male",company:"GEEKETRON",registered:"2021-03-24T11:55:31.135",friends:[{id:0,name:"Candy Gibbs",age:20,balance:2602.28},{id:1,name:"Alissa Rosario",age:36,balance:1958.84},{id:2,name:"Imelda Harmon",age:23,balance:3817.79},{id:3,name:"Addie Serrano",age:35,balance:3154.77},{id:4,name:"Jordan Shields",age:26,balance:3566.08}]},{id:"667d329f9ef3817d307e2583",balance:2151.52,age:32,eyeColor:"brown",name:"Whitney Hood",gender:"male",company:"EVENTAGE",registered:"2021-06-17T12:11:56.473",friends:[{id:0,name:"Noel Walsh",age:29,balance:2790.49},{id:1,name:"Barlow Rodriquez",age:35,balance:1664.23},{id:2,name:"Nash Keith",age:23,balance:2285.17},{id:3,name:"Chavez Webster",age:23,balance:3381.55},{id:4,name:"Herminia Chen",age:24,balance:1064.96},{id:5,name:"Susana Glass",age:22,balance:2749.35}]},{id:"667d329f9bd581700cac2dbc",balance:2209.77,age:40,eyeColor:"blue",name:"Tasha Mosley",gender:"female",company:"QUIZKA",registered:"2014-05-11T11:44:55.071",friends:[{id:0,name:"Larsen Wall",age:22,balance:1523.28},{id:1,name:"Holmes Hopkins",age:35,balance:1112.68},{id:2,name:"Giles Espinoza",age:21,balance:2550.95},{id:3,name:"Aimee Rosales",age:26,balance:2195.06},{id:4,name:"Karin Little",age:28,balance:2896.23},{id:5,name:"Angelita Mcfadden",age:25,balance:1051.15}]},{id:"667d329f6e2dbb2002be4b9e",balance:3298.23,age:31,eyeColor:"brown",name:"Schneider Walker",gender:"male",company:"BLEENDOT",registered:"2020-02-11T08:57:29.025",friends:[{id:0,name:"Helena William",age:34,balance:2579.69},{id:1,name:"Silva Ware",age:30,balance:2683.79},{id:2,name:"Enid Oconnor",age:22,balance:1816.46},{id:3,name:"Knowles Goff",age:24,balance:1675.75},{id:4,name:"Carolina Greer",age:29,balance:3337.27}]},{id:"667d329f8c548510c5d4f5ce",balance:2823.51,age:35,eyeColor:"green",name:"Mayo Shepard",gender:"male",company:"KIOSK",registered:"2024-02-24T12:45:57.463",friends:[{id:0,name:"Olga Hester",age:21,balance:3878.21},{id:1,name:"Rogers Sampson",age:23,balance:2669.62},{id:2,name:"Myra Johnson",age:27,balance:3489.32},{id:3,name:"Mcfadden Phillips",age:20,balance:2758.8},{id:4,name:"Park Moody",age:23,balance:3519.08}]},{id:"667d329f6574ada6f090fd54",balance:2631.69,age:40,eyeColor:"blue",name:"Avis Carlson",gender:"female",company:"LINGOAGE",registered:"2016-08-08T08:59:54.752",friends:[{id:0,name:"Mcdonald Dyer",age:25,balance:2262.39},{id:1,name:"Irene Baldwin",age:29,balance:1291.1},{id:2,name:"Rollins Anderson",age:26,balance:1437.04},{id:3,name:"Juliana Larson",age:29,balance:3492.22},{id:4,name:"Michele Gardner",age:20,balance:2003.15},{id:5,name:"Vang Cardenas",age:31,balance:1855.52},{id:6,name:"Puckett Hubbard",age:21,balance:1659.92}]}];const Id=".sc-smoothly-next-demo-nested-h{display:block}.sc-smoothly-next-demo-nested-h>smoothly-display.sc-smoothly-next-demo-nested{font-size:2em}.sc-smoothly-next-demo-nested-h>*.sc-smoothly-next-demo-nested{margin-bottom:2rem}";const Ld=Id;const Od=class{constructor(t){e(this,t)}render(){return t(s,{key:"8d402c4a13f9c2ae7176508216f6232cde00bcc9"},t("smoothly-display",{key:"3ab020c9699a20216585d74a5cfc9adeb73a5406",type:"text",value:"Nested"}),t("smoothly-next-table",{key:"be338a335b25518a43f7e671ac1ed4262c2d4266",color:"primary",columns:8},t("smoothly-next-table-head",{key:"38d7656a7f2d12fdd5ca683d6b4f33d36977f73e"},t("smoothly-next-table-row",{key:"3aaa246a20c21e68a37c8c883ba6d2706f19d15a"},t("smoothly-next-table-cell",{key:"d5a593133612990b2decf038e55ae107dbf9f8cd"},"Id"),t("smoothly-next-table-cell",{key:"0e0f3d8b15b96722ca88ed87125550bd0fb990bc"},"Registered"),t("smoothly-next-table-cell",{key:"34e6651990dc769ba5ef753d28846e65e7ac2ae6"},"Name"),t("smoothly-next-table-cell",{key:"843eee09c7d972d1d4cc0ee7ad199717069b46e9"},"Age"),t("smoothly-next-table-cell",{key:"6f47009c22df7d3efbe4b842dbcb20c21f0a11df"},"Balance"),t("smoothly-next-table-cell",{key:"ea9ed27fb4f2ef95cbc4ed78142bebf30de4c671"},"EyeColor"),t("smoothly-next-table-cell",{key:"ae77adcd3055cd6a8c08df9ca1f60a987bef5454"},"Gender"),t("smoothly-next-table-cell",{key:"e93ff6e84fc354d39ec4631b69f1f99aab9ee03d"},"Company"))),t("smoothly-next-table-body",{key:"afd73ac894bb93aa31bd99fd589a5487049e6051"},Td.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-demo-nested-inner",{color:"secondary",data:e.friends,slot:"detail"}),t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.registered),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance),t("smoothly-next-table-cell",null,e.eyeColor),t("smoothly-next-table-cell",null,e.gender),t("smoothly-next-table-cell",null,e.company))))),t("smoothly-next-table-foot",{key:"23141fcd7197a63216f95a94ecc19cfa68825c4f"},t("smoothly-next-table-row",{key:"546bd6375e4ee101cb4551db132e28f13271eb62"},t("smoothly-next-table-cell",{key:"56649bec5494996c0dcf3ad3a34c24eef081f587"},"Footer Cell"),t("smoothly-next-table-cell",{key:"8b1fba8cc4f995f1247fc8e72aa83efa9cc8a183"},"Footer Cell")))))}};Od.style=Ld;const Ad=".sc-smoothly-next-demo-nested-inner-h{display:block;margin:1em auto;width:60%}";const Ed=Ad;const Dd=class{constructor(t){e(this,t);this.data=undefined}render(){var e;return t(s,{key:"19e0f084a09ccbdfd1b02ad2a303cb4b8fea8b3a"},t("smoothly-next-table",{key:"e3f73d442144d49b9f5c5ec37b53eaa8d32c9fe1",columns:4},t("smoothly-next-table-head",{key:"90b8c436ce8deb7e6fc21749b6bf8446907c120c"},t("smoothly-next-table-row",{key:"3fcb64b37aacd6bf6f2f42e3f72eb7d8cfe4442c"},t("smoothly-next-table-cell",{key:"4df45e5d226a04caaea11e10d6e2913566ccafb5"},"Id"),t("smoothly-next-table-cell",{key:"369eade6f61d7b0b610f27216dfa6cd4a05db40b"},"Name"),t("smoothly-next-table-cell",{key:"c400606b0bdc1467818f1493a0617529cd0e1951"},"Age"),t("smoothly-next-table-cell",{key:"da06335fe3248ed4f6cf96d9878682de78aad286"},"Balance"))),t("smoothly-next-table-body",{key:"28a1b173a15e680aa9c6819fdf61575c86488103"},(e=this.data)===null||e===void 0?void 0:e.map((e=>t("smoothly-next-table-expandable-row",null,t("smoothly-next-table-cell",null,e.id),t("smoothly-next-table-cell",null,e.name),t("smoothly-next-table-cell",null,e.age),t("smoothly-next-table-cell",null,e.balance)))))))}};Dd.style=Ed;const Md=".sc-smoothly-next-demo-simple-h{display:block}.sc-smoothly-next-demo-simple-h>smoothly-display.sc-smoothly-next-demo-simple{font-size:2em}.sc-smoothly-next-demo-simple-h>*.sc-smoothly-next-demo-simple{margin-bottom:2rem}";const $d=Md;const Rd=class{constructor(t){e(this,t)}render(){return t(s,{key:"66b3e68121b5d77bde910b396f198d1753ca8c71"},t("smoothly-display",{key:"25216cd0f6a2d2e14b0492cd430205354adff73a",type:"text",value:"Simple"}),t("smoothly-next-table",{key:"639281176a112a8a5ed55705214570c36a2ecc41",color:"primary",columns:2},t("smoothly-next-table-head",{key:"d99d3f3cbb215bdf5e980f7a32949cfdba6fa89a"},t("smoothly-next-table-row",{key:"9f9d60323cd22f8d3109df3310daf048312d0e99"},t("smoothly-next-table-cell",{key:"43088a1b90e9161e38d951b86124b7b3601c5086"},"Breed"),t("smoothly-next-table-cell",{key:"afe9bb2f57af8e7bafedf4970a4d9ef7b3c6bf7e"},"Coat"))),t("smoothly-next-table-body",{key:"1e7c4ac3d94cea0ee68f82bb8d6808dd46ef256e"},Pd.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country:",t("br",null),e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern))))),t("smoothly-next-table-expandable-row",{key:"016ef5b866f560bb6d5b677cb95d8d172bcae52f"},t("div",{key:"fcb81c069b8c4b46744b40ce427fedf9ae99039f",slot:"detail"},"Content",t("br",{key:"716d0f3cec5a99c3f4be2bf5d637aa79d96895a0"}),"of",t("br",{key:"059b52649e48de5cfe0dab3705dfb2bd6d3eeb7f"}),"the",t("br",{key:"fb6a41055c5f031c7020fdc3acc7850b766da7b3"}),"expandable",t("br",{key:"0e93dabefbe33ee903bbe669565d358ce4a806b5"}),"row"),t("smoothly-next-table-cell",{key:"18a19f3258b40f8599e28cd5982301c149d4f1aa"},"Cell1 in expandable row"),t("smoothly-next-table-cell",{key:"69d677973b55205f30c189df03ea0e9b7bd26bfd"},"Cell2 in expandable row")),t("smoothly-next-table-row",{key:"26ea11b415a30ad7c32ee3d0e4f4d8aea9eda7f6"},t("smoothly-next-table-cell",{key:"8f25926ec015829c5e478622535123318c42f17d"},"Cell5"),t("smoothly-next-table-expandable-cell",{key:"c3f3c58cb1be39d20ede7e9f3e40319edc38c768"},"Expandable Cell",t("div",{key:"96f13cdd7068afb194661942636d9375815ba57b",slot:"detail"},"Content of the expandable cell"))),t("smoothly-next-table-row",{key:"f97abc78791cd5582cc83ce66e21ea2b8495e13b"},t("smoothly-next-table-expandable-cell",{key:"8539c01c7749e704ecf19b07b00a24b49d4abeac"},"Expandable Cell 1",t("div",{key:"d82b27f6a549600cc32c136b20495f73bc54f978",slot:"detail"},"Content of the expandable cell 1")),t("smoothly-next-table-expandable-cell",{key:"a89e91aa1bcb9849f7de2f12f9ffbad0f0035ead"},"Expandable Cell 2",t("div",{key:"b347602a29cc9ab1bd82ad45b8c397daebd47c60",slot:"detail"},"Content of the expandable cell 2")))),t("smoothly-next-table-foot",{key:"dbf4a77570431284f7322090e270d412618dddfc"},t("smoothly-next-table-row",{key:"c89965f6ea56be40b678f41381cb5985748ec4ed"},t("smoothly-next-table-cell",{key:"9557848e7e943309e7132c61736f0ece5141b623"},"Footer Cell"),t("smoothly-next-table-cell",{key:"2111281a0a42972c1c9fed6620b27307e72e6604"},"Footer Cell")))))}};const Pd=[{breed:"Abyssinian",country:"Ethiopia",origin:"Natural/Standard",coat:"Short",pattern:"Ticked"},{breed:"Aegean",country:"Greece",origin:"Natural/Standard",coat:"Semi-long",pattern:"Bi- or tri-colored"},{breed:"American Curl",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Bobtail",country:"United States",origin:"Mutation",coat:"Short/Long",pattern:"All"},{breed:"American Shorthair",country:"United States",origin:"Natural",coat:"Short",pattern:"All but colorpoint"},{breed:"American Wirehair",country:"United States",origin:"Mutation",coat:"Rex",pattern:"All but colorpoint"},{breed:"Arabian Mau",country:"Arabian Peninsula",origin:"Natural",coat:"Short",pattern:""},{breed:"Australian Mist",country:"Australia",origin:"Crossbreed",coat:"Short",pattern:"Spotted and Classic tabby"},{breed:"Asian",country:"developed in the United Kingdom (founding stock from Asia)",origin:"",coat:"Short",pattern:"Evenly solid"},{breed:"Asian Semi-longhair",country:"United Kingdom",origin:"Crossbreed",coat:"Semi-long",pattern:"Solid"}];Rd.style=$d;const Nd=".sc-smoothly-next-table-h{display:grid;grid-template-columns:repeat(var(--columns), auto);color:rgb(var(--smoothly-table-foreground));stroke:rgb(var(--smoothly-table-foreground));fill:rgb(var(--smoothly-table-foreground))}";const Fd=Nd;const Hd=class{constructor(t){e(this,t);this.columns=1}smoothlyNextTableExpandableRowChange(e){e.stopPropagation()}smoothlyNextTableExpandableCellChange(e){e.stopPropagation()}render(){return t(s,{key:"4a0635a7fdb8d4cf9cf69d1a68d0acee29e16868",style:{"--columns":this.columns.toString()}},t("slot",{key:"23b51de6de66bd017f63dac920eb13f1f414d099"}))}};Hd.style=Fd;const Ud=".sc-smoothly-next-table-body-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;color:rgb(var(--smoothly-table-foreground));background-color:rgb(var(--smoothly-table-background))}";const Yd=Ud;const Wd=class{constructor(t){e(this,t)}render(){return t(s,{key:"fb0f615885030954edd781631fbf110eaa61b2ae"},t("slot",{key:"3915d5a2c5479ae421fdcdb854756cdcbf5545af"}))}};Wd.style=Yd;const Bd=".sc-smoothly-next-table-cell-h{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;align-items:center;padding:0.3rem 1.1rem;white-space:nowrap}";const Vd=Bd;const Gd=class{constructor(t){e(this,t);this.span=1}render(){var e;return t(s,{key:"e96e359c49c923816bf0078fa2989916c10b3f17",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("slot",{key:"935ce02ad19e664e7a86be96eb195afd1e4d9789"}))}};Gd.style=Vd;var Kd=undefined&&undefined.__classPrivateFieldGet||function(e,t,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(e):s?s.value:t.get(e)};var qd=undefined&&undefined.__classPrivateFieldSet||function(e,t,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o};var Zd;class Jd{get selected(){var e;return qd(this,Zd,(e=Kd(this,Zd,"f"))!==null&&e!==void 0?e:Object.values(this.data),"f")}constructor(e,t={}){this.key=e;this.data=t;Zd.set(this,void 0)}handle(e){var t;return new Jd(this.key,"check-all"in e?(t=e["check-all"])!==null&&t!==void 0?t:{}:Object.fromEntries(Object.entries(Object.assign(Object.assign({},this.data),e)).filter((([e,t])=>t!=undefined))))}render(e){var o,s,a;return Array.isArray(e)?t("smoothly-checkbox",{name:"check-all",value:Object.fromEntries(e.map((e=>[e[this.key],e]))),intermediate:this.selected.length>0&&this.selected.length<e.length,checked:this.selected.length==e.length?true:this.selected.length==0&&false}):t("smoothly-checkbox",{name:(o=e[this.key])===null||o===void 0?void 0:o.toString(),value:e,checked:!!this.data[(a=(s=e[this.key])===null||s===void 0?void 0:s.toString())!==null&&a!==void 0?a:""]})}static create(e){return new Jd(e)}}Zd=new WeakMap;const Xd='.sc-smoothly-next-table-demo-filtered-h{display:grid;grid-template-columns:auto auto;grid-template-areas:"header filter"\n\t\t"main main";margin-bottom:50em}.sc-smoothly-next-table-demo-filtered-h>smoothly-display.sc-smoothly-next-table-demo-filtered{font-size:2em;grid-area:header}.sc-smoothly-next-table-demo-filtered-h>smoothly-filter.sc-smoothly-next-table-demo-filtered{margin-left:auto;grid-area:filter;height:fit-content}.sc-smoothly-next-table-demo-filtered-h>*.sc-smoothly-next-table-demo-filtered{margin-bottom:2rem;grid-area:main}.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered{grid-template-columns:min-content repeat(calc(var(--columns) - 1), auto)}smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(2),.sc-smoothly-next-table-demo-filtered-h>smoothly-next-table.sc-smoothly-next-table-demo-filtered>smoothly-next-table-head.sc-smoothly-next-table-demo-filtered>smoothly-next-table-row.sc-smoothly-next-table-demo-filtered>smoothly-next-table-cell.sc-smoothly-next-table-demo-filtered:nth-of-type(4){justify-content:end}';const Qd=Xd;const eh=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Jd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await sr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=th[e.country])!==null&&t!==void 0?t:[]}),names:(o=th[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&el(this.criteria,this.cats);return t(s,{key:"447b40076e72611bf082180e871eff0d648c56e1"},t("smoothly-display",{key:"dff28311d67134417c250df087d787521b566bdb",type:"text",value:"Filtered"}),t("smoothly-filter",{key:"1a9d516641da3145ccc8268d7a4510d489721e62"},t("smoothly-filter-toggle",{key:"6f33cb914309d6725e10c6b87a1044612f3c2281",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"5af94424768de9d6e4135142e66ff7e94c3f227f",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"66224dd74c0fd79a2cb40d1d7e99800ed2075752",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"b11fe5181c76b39b319febe34a58d6f20df1c558",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"ac37fbd330512a3860bb0ee98270bc5b3145f4f6",menuHeight:"5items",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"6e682a5a475a91eb40fc726ce5ed4f479bd8794b",slot:"detail"},t("smoothly-form",{key:"9acf2fb857029ce04264aa6674b88fc330515d60",looks:"border"},t("smoothly-filter-select",{key:"bdef0d610c7f49eb118f1101562fff6d2d34ce3e",menuHeight:"5items",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"4b55eeaedb18374dc42d682b52a21e6ba3150455",menuHeight:"5items",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"22a44d8ce6798333b3518cd8469f5ffba0302cb5",menuHeight:"5items",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(th).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"441da24631cc87d3ce523ee5cad032587d670dcd",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"bd5036886b9bb2459b25c8dd21d44df5db651957",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-next-table",{columns:4},t("smoothly-next-table-head",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-cell",null,"Breed"),t("smoothly-next-table-cell",null,"Coat"),t("smoothly-next-table-cell",null,"Price"))),e.map((e=>t("smoothly-next-table-row",null,t("smoothly-next-table-cell",null,this.selector.render(e)),t("smoothly-next-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-next-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-next-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-next-table-foot",null,t("smoothly-next-table-row",null,t("smoothly-next-table-cell",{span:3},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`}))))))}};const th={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};eh.style=Qd;const oh='.sc-smoothly-next-table-expandable-cell-h{display:contents}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell{grid-column:span var(--smoothly-table-cell-span, 1);display:flex;box-sizing:border-box;align-items:center;white-space:nowrap;position:relative}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell:hover::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell::before{rotate:45deg}.sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell:hover{background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground));stroke:rgb(var(--smoothly-table-hover-foreground));fill:rgb(var(--smoothly-table-hover-foreground))}.sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell:first-child{cursor:pointer}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell{grid-column:1/-1;grid-row:2;position:relative}[open].sc-smoothly-next-table-expandable-cell-h>div.content.sc-smoothly-next-table-expandable-cell{box-shadow:1px 1px 1px -1px rgb(var(--smoothly-table-border)) inset, -3px -1px 1px -3px rgb(var(--smoothly-table-border)) inset}[open].sc-smoothly-next-table-expandable-cell-h>div.sc-smoothly-next-table-expandable-cell{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));stroke:rgb(var(--smoothly-table-expanded-foreground));fill:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-next-table-expandable-cell-h:not([open])>div.detail.sc-smoothly-next-table-expandable-cell{display:none}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-expandable-cell-h>div.detail.sc-smoothly-next-table-expandable-cell::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const sh=oh;const ah=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableCellChange=o(this,"smoothlyNextTableExpandableCellChange",7);this.smoothlyNextTableExpandableCellRegister=o(this,"smoothlyNextTableExpandableCellRegister",7);this.span=1;this.open=false}componentWillLoad(){this.smoothlyNextTableExpandableCellRegister.emit()}async close(){this.open=false}clickHandler(){this.open=!this.open}openChange(){this.smoothlyNextTableExpandableCellChange.emit(this.open)}render(){var e;return t(s,{key:"d67b5d0383b0db8f637888a958cb45a9ebacb3ec",style:{"--smoothly-table-cell-span":(e=this.span)===null||e===void 0?void 0:e.toString(10)}},t("div",{key:"ec2421a6122207a28b348ea536bd001e1c7d495c",onClick:()=>this.clickHandler(),class:"content"},t("slot",{key:"24bf9aee3934f2330df446815fb752707ea1bc44"})),t("div",{key:"2f4a5a1694d6e3db393f715a71d66095e09e50a5",class:"detail"},t("slot",{key:"5ed6449464aa6d8dee7ac9c51d7f2b44f48d0c8e",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};ah.style=sh;const ih='.sc-smoothly-next-table-expandable-row-h{grid-column:1/-1;display:grid;grid-template-columns:subgrid;grid-template-rows:auto 0fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-expandable-row-h.sc-smoothly-next-table-expandable-row-s>*{cursor:pointer}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:not(:last-child){background-color:rgb(var(--smoothly-table-hover-background));color:rgb(var(--smoothly-table-hover-foreground))}[open].sc-smoothly-next-table-expandable-row-h{background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground));grid-template-rows:auto 1fr;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border)), 0px 0px 1px rgb(var(--smoothly-table-border)) inset;grid-template-rows:0fr 1fr}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{grid-column:1/-1;cursor:default;position:relative;overflow:hidden;background-color:rgb(var(--smoothly-table-expanded-background));color:rgb(var(--smoothly-table-expanded-foreground))}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child){position:relative}.sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{content:"";display:flex;position:absolute;top:50%;translate:0 -50%;height:0.4em;width:0.4em;left:0.3em;border-bottom:1px solid rgb(var(--smoothly-table-foreground));border-right:1px solid rgb(var(--smoothly-table-foreground));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-next-table-expandable-row-h:has(>.sc-smoothly-next-table-expandable-row:not(:last-child):hover)>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{border-bottom:1px solid rgb(var(--smoothly-table-hover-foreground));border-right:1px solid rgb(var(--smoothly-table-hover-foreground));opacity:1}[open].sc-smoothly-next-table-expandable-row-h>.sc-smoothly-next-table-expandable-row:first-child:not(:last-child)::before{rotate:45deg}[open].sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child{overflow:visible;padding:0.3rem 1.1rem}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child::before{content:"";position:absolute;display:flex;box-sizing:border-box;top:0;bottom:0;left:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));border-left:0.3em solid rgb(var(--smoothly-table-detail-border, var(--smoothly-table-border)));box-shadow:2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-expandable-row-h>div.sc-smoothly-next-table-expandable-row:last-child::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:-1em;width:1em;background-color:rgb(var(--smoothly-table-expanded-background));box-shadow:-2px 0px 0px 0px rgb(var(--smoothly-table-expanded-background)), 0px 0px 1px 0px rgb(var(--smoothly-table-border))}';const nh=ih;const lh=class{constructor(t){e(this,t);this.smoothlyNextTableExpandableRowChange=o(this,"smoothlyNextTableExpandableRowChange",7);this.open=false}clickHandler(e){this.div&&e.composedPath().includes(this.div)||(this.open=!this.open)}openChange(){this.smoothlyNextTableExpandableRowChange.emit(this.open)}render(){return t(s,{key:"6639c71b07e30f5faa471e1f32e2b07aec1c3228",onClick:e=>this.clickHandler(e)},t("slot",{key:"4820aaf170a50c48619000f5853e5248dadb6e34"}),t("div",{key:"829533fe6fbe2605a4a5a985e8c806444e7db14b",ref:e=>this.div=e},t("slot",{key:"1c68b5b9cd4da1d74fd5e6156a1497f18faec232",name:"detail"})))}static get watchers(){return{open:["openChange"]}}};lh.style=nh;const rh=".sc-smoothly-next-table-filler-row-h{grid-column:1 / -1}";const ch=rh;const dh=class{constructor(t){e(this,t)}render(){return t("smoothly-next-table-row",{key:"5f4ba87733659bda82336e0ff7687bde6e5e1030"},t("smoothly-next-table-cell",{key:"48a3a02cebf9872e815357079ac37ea63a34b0a6"},t("slot",{key:"98a43cc284cf931474ac86c4754451b8f5407d97"})))}};dh.style=ch;const hh=".sc-smoothly-next-table-foot-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;position:sticky;z-index:1;bottom:0;background-color:rgb(var(--smoothly-table-footer-background));color:rgb(var(--smoothly-table-footer-foreground));stroke:rgb(var(--smoothly-table-footer-foreground));fill:rgb(var(--smoothly-table-footer-foreground))}";const mh=hh;const bh=class{constructor(t){e(this,t)}render(){return t(s,{key:"11dab87838e468aae34fb0632a64054c4aa61897"},t("slot",{key:"55a6a9600d3b5766d11f7f0cbd6cecfabf6f9161"}))}};bh.style=mh;const yh=".sc-smoothly-next-table-head-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;top:0;position:sticky;z-index:1;--smoothly-color:var(--smoothly-table-header-background);--smoothly-color-contrast:var(--smoothly-table-header-foreground);background-color:rgb(var(--smoothly-table-header-background));color:rgb(var(--smoothly-table-header-foreground));stroke:rgb(var(--smoothly-table-header-foreground));fill:rgb(var(--smoothly-table-header-foreground));font-weight:bold;transition:box-shadow 0.3s ease}.scrolled.sc-smoothly-next-table-head-h{box-shadow:var(--smoothly-table-header-shadow)}";const uh=yh;const fh=class{constructor(t){e(this,t);this.onScroll=e=>{if(e.target instanceof HTMLElement){this.scrollParent=e.target;const t=this.scrollParent.getBoundingClientRect();const o=this.element.getBoundingClientRect();this.scrolled=t.top==o.top}};this.scrolled=undefined}connectedCallback(){var e;this.scrollParent=n.findParent(this.element);(e=this.scrollParent)===null||e===void 0?void 0:e.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var e;(e=this.scrollParent)===null||e===void 0?void 0:e.removeEventListener("scroll",this.onScroll)}render(){return t(s,{key:"0d999556a8df7f00defd5921d5733b7ce0ab7770",class:{scrolled:!!this.scrolled}},t("slot",{key:"e14a7fc873f7763be03e2278d1e734c7fcf90acf"}))}get element(){return a(this)}};fh.style=uh;const ph=".sc-smoothly-next-table-row-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;box-sizing:border-box;box-shadow:0px 1px 1px -1px rgb(var(--smoothly-table-border))}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell){grid-template-rows:auto 0fr 0fr}.sc-smoothly-next-table-row-h:has(smoothly-next-table-expandable-cell[open]){grid-template-rows:auto 1fr 0fr}";const gh=ph;const kh=class{constructor(t){e(this,t);this.expandableCells=new Set}smoothlyNextTableExpandableCellRegisterHandler(e){e.stopPropagation();this.expandableCells.add(e.target)}smoothlyNextTableExpandableCellChangeHandler(e){if(e.detail)for(const t of this.expandableCells)e.target!=t&&t.close()}render(){return t(s,{key:"7375dd10ce7cf0744c2646e8e43dd4f183380cd1"},t("slot",{key:"af9bb64fb0d6e1602c641bd24b5cf3234cd9b40c"}))}};kh.style=gh;const vh=".sc-smoothly-next-table-row-group-h{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;margin-top:1px}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;position:relative;cursor:pointer}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:last-child{grid-column:1 / -1;display:grid;grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{grid-template-columns:subgrid}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group{display:contents}[align].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group>*.sc-smoothly-next-table-row-group{padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child{grid-column:1 / -1;display:grid;grid-template-columns:repeat(2, auto);justify-content:space-between;padding:0.3rem 1.1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child{justify-self:start;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([align])>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:last-child{justify-self:end;display:flex;gap:1rem}.sc-smoothly-next-table-row-group-h:not([open]){grid-template-rows:auto 0fr}.sc-smoothly-next-table-row-group-h:not([open])>div.sc-smoothly-next-table-row-group:last-child{grid-row:2;overflow:hidden}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{content:'';display:flex;position:absolute;top:50%;translate:0 -50%;left:0.3em;height:0.4em;width:0.4em;border-bottom:1px solid rgb(var(--smoothly-default-contrast));border-right:1px solid rgb(var(--smoothly-default-contrast));transition:rotate 200ms ease-in-out;rotate:-45deg;opacity:0.3}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover>div.sc-smoothly-next-table-row-group:first-child::before{opacity:1}[open].sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child>div.sc-smoothly-next-table-row-group:first-child::before{rotate:45deg}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{background-color:rgb(var(--smoothly-default-tint))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child{border-bottom:1px solid rgb(var(--smoothly-default-shade))}.sc-smoothly-next-table-row-group-h>div.sc-smoothly-next-table-row-group:first-child:hover{background-color:rgb(var(--smoothly-default-shade))}";const xh=vh;const wh=class{constructor(t){e(this,t);this.smoothlyNextTableRowGroupChange=o(this,"smoothlyNextTableRowGroupChange",7);this.align=false;this.open=false}clickHandler(){this.open=!this.open;this.smoothlyNextTableRowGroupChange.emit(this.open)}render(){return t(s,{key:"e8fe944298d963c42b3be3ca591718065ffc1a10"},t("div",{key:"d20a811f2f428a88ca5d40c0a13d5f1830920737",onClick:()=>this.clickHandler()},t("div",{key:"0334061d3030bbe6e639ce39824fe6d6dc16c194"},t("slot",{key:"c503323239ebd3c4f4c7eb2dcc71e7ed8aa9ee53",name:"start"})),t("div",{key:"03eb020a4fbd59212089a8cd963d4ddd32750a78"},t("slot",{key:"f0caca039c2d1b074b0dcfa508f15c0bacb2a206",name:"end"}))),t("div",{key:"12a61061ae740af8b67057f086c2f89da12910de"},t("slot",{key:"1d5716ab78a61626330058350483e460c85681fd"})))}};wh.style=xh;const Sh=".sc-smoothly-notification-h{display:block;position:relative;min-width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification,.sc-smoothly-notification-h>span.clean.sc-smoothly-notification{display:flex;justify-content:center;align-self:center}.sc-smoothly-notification-h>span.sc-smoothly-notification{margin:0 2rem 0 1rem}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification{display:flex;width:100%;justify-content:center}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}.sc-smoothly-notification-h>span.icon.sc-smoothly-notification>smoothly-icon.sc-smoothly-notification{margin:0 0.5rem}.sc-smoothly-notification-h>smoothly-trigger.sc-smoothly-notification{font-size:0.7em;position:absolute;right:0}";const Ch=Sh;const zh=class{constructor(t){e(this,t);this.remove=o(this,"remove",7);this.listener=e=>{if(e.state=="closed")this.remove.emit(e);else this.tick={}};this.notice=undefined;this.closable=true;this.icon=undefined;this.tick={}}get properties(){let e;switch(this.notice.state){case"delayed":case"warning":e=["warning","warning-outline"];break;case"success":e=["success","checkmark-circle"];break;case"executing":e=["light","hourglass-outline"];break;case"failed":e=["danger","alert-circle"];break;default:e=["light",undefined];break}return e}onTrigger(e){if(e.detail.name=="close"){e.stopPropagation();this.notice.close()}}onUpdatedNotice(e,t){if(t)t.unlisten(this.listener);e.listen(this.listener)}componentDidLoad(){this.onUpdatedNotice(this.notice)}render(){return t(s,{key:"048bdeec32b7e764a3d116ed5b8e660ba10f745a",color:this.properties[0],fill:"solid"},this.closable&&t("smoothly-trigger",{key:"51bdbda193a605034c8e544305fa96ae4191338f",fill:"clear",name:"close"},t("smoothly-icon",{key:"48eb40e9cf25860cf672b7d6fc423f1720056bff",name:"close-circle-outline"})),t("span",{key:"78535ad469c9226fda035709f07622ed6a49da32",class:this.icon?"icon":"clean"},this.icon&&t("smoothly-icon",{key:"222f816aae59da65bc3b668653dc07a71dcc5126",name:this.properties[1]}),t("p",{key:"8132555c4ea10f5bae91e28da192eef5c4292024"},this.notice.message)))}static get watchers(){return{notice:["onUpdatedNotice"]}}};zh.style=Ch;const jh=".sc-smoothly-notifier-h{display:block}[hidden].sc-smoothly-notifier-h{display:none}.sc-smoothly-notifier-h>aside.sc-smoothly-notifier{display:flex;flex-wrap:wrap-reverse;align-content:stretch;position:fixed;bottom:3rem;left:0;text-align:center;z-index:100}";const _h=jh;const Th=class{constructor(t){e(this,t);this.icon=false;this.notices=[]}onNotice(e){this.notices=[...this.notices,e.detail]}onRemove(e){this.notices=[...this.notices.filter((t=>t!=e.detail))]}render(){return[t("slot",{key:"b806e161fb6393c807902e69f4a87cc6f161c782"}),t("aside",{key:"94dbd9b35bb94cbbe88edf283188ba7538a8967f"},this.notices.map((e=>t("smoothly-notification",{notice:e,icon:this.icon}))))]}};Th.style=_h;const Ih="[hidden].sc-smoothly-spinner-h{display:none}.sc-smoothly-spinner-h{cursor:wait;--spinner-time:1.4s;--spinner-color:var(--smoothly-color-contrast);--spinner-background:var(--smoothly-color);--spinner-background-opacity:var(--smoothly-semitransparent, 0.8);display:block;stroke:rgb(var(--spinner-color));background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}.sc-smoothly-spinner-h:not([overlay]){width:var(--spinner-size);height:var(--spinner-size)}[overlay].sc-smoothly-spinner-h{position:absolute;inset:0;width:100%;height:100%;z-index:4;background-color:rgba(var(--spinner-background), var(--spinner-background-opacity))}[color].sc-smoothly-spinner-h:not([overlay]),[color][overlay].sc-smoothly-spinner-h{background-color:rgba(var(--spinner-background), var(--spinner-background-opacity));stroke:rgb(var(--spinner-color))}[overlay].sc-smoothly-spinner-h>svg.sc-smoothly-spinner{position:absolute;width:var(--spinner-size);left:calc(50% - var(--spinner-size) / 2);top:calc(50% - var(--spinner-size) / 2)}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner{animation:SPIN-SVG var(--spinner-time) linear infinite}.sc-smoothly-spinner-h>svg.sc-smoothly-spinner>circle.sc-smoothly-spinner{transform-origin:center;animation:SPIN-CIRCLE var(--spinner-time) ease-in-out infinite;stroke-dasharray:187;stroke-dashoffset:0}@keyframes SPIN-SVG{0%{transform:rotate(0deg)}100%{transform:rotate(270deg)}}@keyframes SPIN-CIRCLE{0%{stroke-dashoffset:187}50%{stroke-dashoffset:46.75;transform:rotate(135deg)}100%{stroke-dashoffset:187;transform:rotate(450deg)}}";const Lh=Ih;const Oh=class{constructor(t){e(this,t);this.size="large";this.overlay=undefined}render(){const e=this.size=="large"?6:this.size=="medium"?8:this.size=="icon"?8:12;return t(s,{key:"a4a43de76df6f5497a710d6a44c4f08ea8d5a8f3",style:{"--spinner-size":this.size=="large"?"5em":this.size=="medium"?"3em":this.size=="icon"?"1.8em":"1.2em"}},t("svg",{key:"8fe085b56c0f56b0cf18838febb24a93db15fbfa",class:"spinner",viewBox:`0 0 ${60+e} ${60+e}`,xmlns:"http://www.w3.org/2000/svg"},t("circle",{key:"67a588b203385240a0a1084187ca76c3e8c3d64e",class:"path",fill:"none","stroke-width":e,"stroke-linecap":"round",cx:`${30+e/2}`,cy:`${30+e/2}`,r:"30"})))}};Oh.style=Lh;const Ah='[color=default].sc-smoothly-submit{--smoothly-color:var(--smoothly-default-color);--smoothly-color-contrast:var(--smoothly-default-contrast);--smoothly-color-shade:var(--smoothly-default-shade);--smoothly-color-tint:var(--smoothly-default-tint)}[color=primary].sc-smoothly-submit{--smoothly-color:var(--smoothly-primary-color);--smoothly-color-contrast:var(--smoothly-primary-contrast);--smoothly-color-shade:var(--smoothly-primary-shade);--smoothly-color-tint:var(--smoothly-primary-tint)}[color=secondary].sc-smoothly-submit{--smoothly-color:var(--smoothly-secondary-color);--smoothly-color-contrast:var(--smoothly-secondary-contrast);--smoothly-color-shade:var(--smoothly-secondary-shade);--smoothly-color-tint:var(--smoothly-secondary-tint)}[color=tertiary].sc-smoothly-submit{--smoothly-color:var(--smoothly-tertiary-color);--smoothly-color-contrast:var(--smoothly-tertiary-contrast);--smoothly-color-shade:var(--smoothly-tertiary-shade);--smoothly-color-tint:var(--smoothly-tertiary-tint)}[color=success].sc-smoothly-submit{--smoothly-color:var(--smoothly-success-color);--smoothly-color-contrast:var(--smoothly-success-contrast);--smoothly-color-shade:var(--smoothly-success-shade);--smoothly-color-tint:var(--smoothly-success-tint)}[color=warning].sc-smoothly-submit{--smoothly-color:var(--smoothly-warning-color);--smoothly-color-contrast:var(--smoothly-warning-contrast);--smoothly-color-shade:var(--smoothly-warning-shade);--smoothly-color-tint:var(--smoothly-warning-tint)}[color=danger].sc-smoothly-submit{--smoothly-color:var(--smoothly-danger-color);--smoothly-color-contrast:var(--smoothly-danger-contrast);--smoothly-color-shade:var(--smoothly-danger-shade);--smoothly-color-tint:var(--smoothly-danger-tint)}[color=light].sc-smoothly-submit{--smoothly-color:var(--smoothly-light-color);--smoothly-color-contrast:var(--smoothly-light-contrast);--smoothly-color-shade:var(--smoothly-light-shade);--smoothly-color-tint:var(--smoothly-light-tint)}[color=medium].sc-smoothly-submit{--smoothly-color:var(--smoothly-medium-color);--smoothly-color-contrast:var(--smoothly-medium-contrast);--smoothly-color-shade:var(--smoothly-medium-shade);--smoothly-color-tint:var(--smoothly-medium-tint)}[color=dark].sc-smoothly-submit{--smoothly-color:var(--smoothly-dark-color);--smoothly-color-contrast:var(--smoothly-dark-contrast);--smoothly-color-shade:var(--smoothly-dark-shade);--smoothly-color-tint:var(--smoothly-dark-tint)}.sc-smoothly-submit-h{--smoothly-button-border-radius:0.5rem;display:inline-block;box-sizing:border-box;border-radius:var(--smoothly-button-border-radius);cursor:pointer;border:none;outline:none;position:relative}[shape=rounded].sc-smoothly-submit-h{--smoothly-button-border-radius:2rem}[type=link].sc-smoothly-submit-h{display:inline}[disabled].sc-smoothly-submit-h{opacity:0.5;pointer-events:none}.sc-smoothly-submit-h>a.sc-smoothly-submit,.sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:110%;font-weight:400;border:1px solid transparent;outline:none;background-color:transparent;cursor:pointer;display:inline-flex;gap:0.5rem;box-sizing:border-box}.sc-smoothly-submit-h>a.sc-smoothly-submit:empty,.sc-smoothly-submit-h>button.sc-smoothly-submit:empty{border-width:0}.sc-smoothly-submit-h>button.sc-smoothly-submit{font-weight:bold;justify-content:center;height:100%;width:100%;border-radius:var(--smoothly-button-border-radius);align-items:center}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible])>button.sc-smoothly-submit{padding:0.8em;min-width:8em}.sc-smoothly-submit-h:not([size=icon]):not([size=flexible]):has(smoothly-icon)>button.sc-smoothly-submit{padding:0.6em}[size=icon].sc-smoothly-submit-h>button.sc-smoothly-submit{padding:0.5em}[type=button].sc-smoothly-submit-h>a.sc-smoothly-submit{text-align:center;text-decoration:inherit;width:calc(100% - 0.6em)}[size=small].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:100%}[size=large].sc-smoothly-submit-h>button.sc-smoothly-submit{font-size:130%}.sc-smoothly-submit-h:not([size=icon]){min-width:8em}[size=flexible].sc-smoothly-submit-h{min-width:unset;padding:0;margin:0;display:flex;justify-content:center;align-items:center}[size=flexible].sc-smoothly-submit-h>button.sc-smoothly-submit{min-width:unset;padding:0;margin:0}[expand].sc-smoothly-submit-h{width:100%}[expand=full].sc-smoothly-submit-h{border-left:none;border-right:none;--smoothly-button-border-radius:0}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit{background-color:transparent;color:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));border-color:rgb(var(--smoothly-button-foreground))}.sc-smoothly-submit-h:not([fill=clear])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h>button.sc-smoothly-submit:focus-visible,[fill=outline].sc-smoothly-submit-h:active>button.sc-smoothly-submit::before{border-color:rgb(var(--smoothly-button-focus-color))}[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:hover::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:focus-within::before,[fill=outline].sc-smoothly-submit-h>button.sc-smoothly-submit:active::before{content:"";position:absolute;border:2px solid rgb(var(--smoothly-button-focus-border));inset:-1px;border-radius:var(--smoothly-button-border-radius)}.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:hover,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:focus-visible,.sc-smoothly-submit-h:not([fill=clear]):not([fill=outline])>button.sc-smoothly-submit:active{background:rgb(var(--smoothly-button-hover-background))}.sc-smoothly-submit-h>button.sc-smoothly-submit,.sc-smoothly-submit-h.sc-smoothly-submit-s>smoothly-icon,.sc-smoothly-submit-h .sc-smoothly-submit-s>smoothly-icon{color:rgb(var(--smoothly-button-foreground));stroke:rgb(var(--smoothly-button-foreground));fill:rgb(var(--smoothly-button-foreground))}[hidden].sc-smoothly-submit-h{display:none}.sc-smoothly-submit-h{margin:1em 0em}';const Eh=Ah;const Dh=class{constructor(t){e(this,t);this.smoothlyInputLoad=o(this,"smoothlyInputLoad",7);this.color="success";this.expand=undefined;this.fill=undefined;this.disabled=false;this.type=undefined;this.size=undefined;this.shape=undefined;this.prevent=true}async componentWillLoad(){console.warn(`smoothly-submit is deprecated, use smoothly-input-submit instead.\n <smoothly-button type="submit"> can also be used if you're using a regular form.`);this.smoothlyInputLoad.emit((e=>{if(Qc.is(e)){this.parent=e}}))}clickHandler(){var e;(e=this.parent)===null||e===void 0?void 0:e.submit()}render(){return t(We,{key:"38f2af2c012d59b9d0ebb179fc1c85263083764a",disabled:this.disabled,type:this.type},t("slot",{key:"a2254b3fa765ab5b07cf41b323cd9b9842720243"}))}};Dh.style=Eh;const Mh=".sc-smoothly-summary-h{display:grid;grid-template-columns:auto 1fr;column-gap:0.3rem}.sc-smoothly-summary-h>details.sc-smoothly-summary{display:contents}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary{display:grid;grid-template-columns:subgrid;grid-column:1/-1;list-style:none;align-items:center;cursor:pointer}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary:hover>smoothly-icon.sc-smoothly-summary{opacity:1}.sc-smoothly-summary-h>details[open].sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transform:rotate(90deg)}.sc-smoothly-summary-h>details.sc-smoothly-summary-s>[slot=content]{grid-column:2}@media (prefers-reduced-motion){.sc-smoothly-summary-h>details.sc-smoothly-summary>summary.sc-smoothly-summary>smoothly-icon.sc-smoothly-summary{transition:none}}@supports selector(details::details-content){.sc-smoothly-summary-h>details.sc-smoothly-summary::details-content{grid-column:2}}";const $h=Mh;const Rh=class{constructor(t){e(this,t);this.smoothlySummaryOpen=o(this,"smoothlySummaryOpen",7);this.inputs={};this.open=false;this.color=undefined;this.fill="solid";this.size="tiny"}async toggleHandler(e){if(e.target instanceof HTMLDetailsElement){this.open=e.target.open;this.smoothlySummaryOpen.emit(this.open);this.open?await Promise.all(Object.values(this.inputs).map((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}}onInputLoad(e){if(hr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t("details",{key:"db42c69d9d5c12ebf3f4cd44304827a479ada63f",onToggle:e=>this.toggleHandler(e),open:this.open},t("summary",{key:"3c0552d3df2469fb2464612fdad04d7b37aea3d2"},t("smoothly-icon",{key:"1b48642f6cabdcbd8b8e74ff9547c52ee7c8e386",name:"caret-forward",color:this.color,fill:this.fill,size:this.size}),t("slot",{key:"19df2566c29cf0d306ccb59255ae5d2cea8979a1",name:"summary"})),t("slot",{key:"a250c33f1a121c4edd454d74a0f0d127a4e61491",name:"content"}))}};Rh.style=$h;const Ph=".sc-smoothly-tab-h{display:contents;--line-width:3px}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child{grid-column:span 1;background-color:transparent;border-bottom-color:rgb(var(--smoothly-default-shade));border-bottom-width:var(--line-width);border-bottom-style:solid}.sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{display:block;padding:.5rem;width:fit-content;margin:auto;cursor:pointer}[open].sc-smoothly-tab-h>div.sc-smoothly-tab:first-child>label.sc-smoothly-tab{border-bottom:var(--line-width) solid rgb(var(--smoothly-primary-color));margin-bottom:calc(-1 * var(--line-width));position:relative}.sc-smoothly-tab-h>div.sc-smoothly-tab:nth-child(2){grid-row:2 / 3;grid-column:1 / -1}";const Nh=Ph;const Fh=class{constructor(t){e(this,t);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.smoothlyTabLoad=o(this,"smoothlyTabLoad",7);this.inputs={};this.label=undefined;this.open=undefined}async openHandler(){if(this.open)this.smoothlyTabOpen.emit(this.label);this.open?await Promise.all(Object.values(this.inputs).map((e=>e.register()))):await Promise.all(Object.values(this.inputs).map((e=>e.unregister())))}onClick(){this.open=true}connectedCallback(){this.smoothlyTabLoad.emit()}async componentDidLoad(){await this.openHandler()}onInputLoad(e){if(hr.Element.is(e.target)){this.inputs[e.target.name]=e.target;if(!this.open)e.stopPropagation()}}render(){return t(s,{key:"e9abf085f302382337c13ecc659ce455ef0c605a"},t("div",{key:"6215a3bea53670b063afccdcafebba61262b7923"},t("label",{key:"17139bd2eb67fd86ef9cccf069fa426175f66a33"},this.label)),t("div",{key:"cf9e34980ad64f038caffa856713e81f2b24864d",hidden:!this.open},t("slot",{key:"fa720f5aca2c2fd2a2017ada2590aa10f3e446af"})))}static get watchers(){return{open:["openHandler"]}}};Fh.style=Nh;const Hh=".sc-smoothly-table-h{display:table;width:var(--table-width, 80%);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color))}[root].sc-smoothly-table-h{margin-left:1.5rem;margin-right:1.5rem}.sc-smoothly-table-h:not([root]){margin:0;width:100%}";const Uh=Hh;const Yh=class{constructor(t){e(this,t);this.smoothlyNestedTable=o(this,"smoothlyNestedTable",7);this.smoothlySpotlightChange=o(this,"smoothlySpotlightChange",7);this.smoothlyTableLoad=o(this,"smoothlyTableLoad",7);this.expandable=new WeakMap;this.expanded=new Set;this.root=true;this.color=undefined;this.align="middle";this.open=false}componentWillLoad(){this.smoothlyNestedTable.emit((()=>this.root=false));this.smoothlyTableLoad.emit((e=>this.owner=e))}handleExpandableLoaded(e){e.stopPropagation();e.target&&this.expandable.set(e.target,e.detail)}handleExpandableState(e){e.stopPropagation();e.target&&(e.detail?this.expanded.add(e.target):this.expanded.delete(e.target));this.smoothlySpotlightChange.emit({allowSpotlight:!this.expanded.size,owner:this.owner})}handleSpotlightState(e){var t;this.open=!!this.expanded.size;e.target!=this.element&&(e.stopPropagation(),e.detail.owner&&((t=this.expandable.get(e.detail.owner))===null||t===void 0?void 0:t.allowSpotlight(e.detail.allowSpotlight)))}handleNestedTable(e){e.target!=this.element&&(e.stopPropagation(),e.detail())}handleEvents(e){e.stopPropagation()}render(){return[t("slot",{key:"40600ea9817abce274ee559964ded3a4c577e642"})]}get element(){return a(this)}};Yh.style=Uh;const Wh=".sc-smoothly-table-cell-h{display:table-cell;line-height:1.5rem;white-space:nowrap;padding:0.3rem .5rem;box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade))}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:none;width:1em;height:auto;aspect-ratio:1 / 1;margin:0 0.3rem;transition:transform 0.2s, opacity 0.1s;opacity:0.3}.sc-smoothly-table-cell-h:hover>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{opacity:1}smoothly-table-expandable-row>div .sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{display:flex}smoothly-table-expandable-row[open]>div>.sc-smoothly-table-cell-h:last-of-type>div.sc-smoothly-table-cell>smoothly-icon.sc-smoothly-table-cell{transform:rotate(90deg)}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell{display:grid;grid-template-columns:1fr auto;align-items:center}.sc-smoothly-table-cell-h>div.sc-smoothly-table-cell>div.sc-smoothly-table-cell{width:100%}smoothly-table[align=bottom] .sc-smoothly-table-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-cell-h{vertical-align:top}";const Bh=Wh;const Vh=class{constructor(t){e(this,t)}render(){return t(s,{key:"b2e26c5efa6a0998a9e4f2e386008e5d83b9014f"},t("div",{key:"2647d6b541eab5847b74bb8b4b869926f37fac12"},t("div",{key:"a56ae7aa84dae912105aff1957ba487c1de3cea2"},t("slot",{key:"0dac2c08fcf86810abb66e19f68d4e79ee1bfb5f"})),t("smoothly-icon",{key:"02761a618d0eeb45694baca5c992abf8bc3a4d9c",name:"caret-forward-outline",size:"tiny"})))}};Vh.style=Bh;const Gh=".sc-smoothly-table-demo-h{display:flex;flex-direction:column;align-items:center;gap:3rem;padding-bottom:10rem;margin-left:2rem;margin-right:2rem}.content.sc-smoothly-table-demo{display:contents}smoothly-lazy.sc-smoothly-table-demo{width:80%}";const Kh=Gh;const qh=class{constructor(t){e(this,t)}render(){return t(s,{key:"05f202f2465dcb45de996ad8da83d99ab7d80e38"},t("h4",{key:"4fb706f301922f1e9f40fd9a588509bd13a2dc3c"},"Demo table 1: Filtered & Checked Table")," ",t("smoothly-lazy",{key:"01ab63987373e6aeb373b86d6588b0ce5550f59e",content:t("smoothly-table-demo-filtered",null)}),t("h4",{key:"5df16d4cb71fd74b02f716d54c448f8e4a02f208"},"Demo table 2")," ",t("smoothly-table-testing",{key:"b4d3450eee53c6013a6f168fb402605b17443ea7"})," ",t("h4",{key:"9c0b85ef1f56e844a7398609376fee0dbe003f4e"},"Demo table 3"),t("smoothly-table",{key:"2b8d57ac2ffdf810d1adaaead410a1597b099538"},t("smoothly-table-row",{key:"37688f6eae727d327a9567bb2068d85bebfb7d42"},t("smoothly-table-header",{key:"ab7e497e138ab880b9e8a60149de142feaa91ce6"},"Header A"),t("smoothly-table-header",{key:"a650d31e07a5d7c300051a2e7354e49b65ba2d43"},"Header B"),t("smoothly-table-header",{key:"da026fe6de478911c2b91f88f250bdd0482541ba"},"Header C"),t("smoothly-table-header",{key:"6f4096092dd4d635dc5483ecb2dff0a7b6036a6a"},"Header D")),t("smoothly-table-row",{key:"36ebe1ae15329edecf13aa2dc6da44ba418266e7"},t("smoothly-table-expandable-cell",{key:"5f41b80a041ed39936fc448e99d793ced964a88e"},"normal row (exp.cell)",t("div",{key:"56bc2ef683d6a8db7bc059eec0e61bd73912b785",slot:"detail"},"expandable cell 1 content")),t("smoothly-table-expandable-cell",{key:"477ec62e71400eb89f679404831183c440127dcf"},"expandable cell",t("div",{key:"3a654c4d5c05599270bd77769ee67d09667ce35e",slot:"detail"},"expandable cell 2 content")),t("smoothly-table-expandable-cell",{key:"d91a1e8dc0a60e5cd3e7ad55409c38c669b51bee"},"expandable cell",t("div",{key:"a99ddd91b83589fc577ef6c02081e55973453ddd",slot:"detail"},"expandable cell 3 content")),t("smoothly-table-expandable-cell",{key:"fc0ca417ad26488e566ec3a48689b60cdea751b9"},"expandable cell",t("div",{key:"5faff4c747c77ef4fb6c3f760cbf3084bad6ff62",slot:"detail"},"expandable cell 4 content"))),t("smoothly-table-row",{key:"26bbb75af599754893af2877534f52e48da19334"},t("smoothly-table-cell",{key:"7ad4cc1410e3203a6b6f316c3e392a3a8905a660"},'normal row (nor.cell)"'),t("smoothly-table-cell",{key:"2c400cbbefc0bcf889276d0dc65a85384810671e"},"normal cell"),t("smoothly-table-expandable-cell",{key:"9d5e82da00b05b10c9a495be604bdcfd6827b318"},"expandable cell",t("div",{key:"f7850e39aba565986f159f35ca9e0e80ae56d6d1",slot:"detail"},"expandable cell details.")),t("smoothly-table-expandable-cell",{key:"bb98edc0b115bcf830320ab5d188a182a1b73574"},"expandable cell",t("div",{key:"f27137e171c7189a70dc792dc534d649066d71eb",slot:"detail"},"expandable cell details."))),t("smoothly-table-expandable-row",{key:"5e54a7f6c06da4fbe552d66bd21b463546d714b3"},t("smoothly-table-cell",{key:"59121b3d6e411c06b163473eafe2f4c01f56a3e2"},"expandable row (nor.cell)"),t("smoothly-table-cell",{key:"e487d13c983c0363b51078d77862c35026f82528"},"Normal cell"),t("smoothly-table-cell",{key:"e4012866ee117188dd89943b9387c119b71a4329"},"normal cell"),t("smoothly-table-cell",{key:"859122b5626676521e571b35e679a7096a005e45"},"Normal cell"),t("div",{key:"ba54fad8c30b691f352d4e8bd3dc9d0a7458e6c9",slot:"detail"},"expandable row content"))),t("h4",{key:"e4cfbd7da1e63b683d091e0df04cdf7db48ff847"},"Demo table 4"),t("smoothly-table",{key:"d996a18ccbefd79d69d54dd5574e4cc45807989a"},t("smoothly-table-row",{key:"bee281c92bb204afc5a9833cc2fb056b0a9f3ea1"},t("smoothly-table-header",{key:"e6a0fdea2462f8557cc442227005d5d85ae78a35"},"Header A"),t("smoothly-table-expandable-cell",{key:"b0d36ffe7d963dc14b193b0ee2a08faff7029d7d"},"Header expansion",t("div",{key:"4c3eb0fdfb54020bd812d082b981db82ddedaf59",slot:"detail"},"Expansion content"))),t("smoothly-table-expandable-row",{key:"9ca4f969abb65ecb43804ae49ef7ce5e58175a49"},t("smoothly-table-cell",{key:"e4756003dbdbacaafbe1db02e366d1784e84fb34"},"A Content"),t("smoothly-table-cell",{key:"d9bb302411c51434676347f1ab7406b1fa10f082"},"Expansion cell"),t("div",{key:"b507a3600c1f5d13ac7ed4a9894f6cd583a4b10e",slot:"detail"},t("smoothly-tab-switch",{key:"5fad8c37db98a127616d7673e38b38c2d259cba7"},t("smoothly-tab",{key:"efed1b1c8ec802ca4fc40deaf957ffbfe8299ece",label:"innertable 1",open:true},t("smoothly-table",{key:"7f33b79f3e605642f56a65d243672174b221ca35"},t("smoothly-table-row",{key:"86e41722dd4ca2af660ee3896336d1c151894bae"},t("smoothly-table-header",{key:"a45d287ad3983d19c2558342cd7d8893d98e37fc"},"Header B")),t("smoothly-table-expandable-row",{key:"4a21193948f233640b2d6f0118aa2bea80f6bb0f"},"B Content"))),t("smoothly-tab",{key:"68231adbcf106c17f3572982f5a5d58740213c2c",label:"innertable 2"},t("smoothly-table",{key:"19add4adc328f1b744b3ee36d24b0923c1500a0e"},t("smoothly-table-row",{key:"d002836fe5cb9be4020d0c136c1cf7730cd9ec18"},t("smoothly-table-header",{key:"13d4addda48d16e992cf5d2c1c4cffee0165847b"},"Header C")),t("smoothly-table-expandable-row",{key:"6f905a3d79f4f05f33ffa638f684d9ee9a91a7f9"},t("smoothly-table-cell",{key:"fdaa97d08c14401a94f804b9d18b94338c37a33b"},"C Content"))))))),t("smoothly-table-row",{key:"4c81676b6a633c44c81e74c14a55863573f4fb4e"},t("smoothly-table-cell",{key:"2ea26a31ef0f3b2659cc1c2d32e873e6b7e77164"},"A Content"),t("smoothly-table-expandable-cell",{key:"855e772a47a12735845d671ed521f5118a56945b"},"Expandable cell",t("div",{key:"cff1b5a9e6d6a80ba5563cdbe0e798353d1da929",slot:"detail"},"Expansion content")))),t("h4",{key:"dd301800ca3390151a7e2b7552c340871b3ada65"},"Demo table 5"),t("smoothly-table",{key:"ab270e3d69ab0581922073ae676af5c3e4d36c01"},t("smoothly-table-row",{key:"51511e231342b68bcd6bcb6a5408b5cdf0f8bbb9"},t("smoothly-table-header",{key:"1c6f0c1c5b1a0ae641b6e29f0de63287afd6f657"},"A"),t("smoothly-table-header",{key:"b157296178ed172bff8237ea3243737829459f0e"},"B")),t("smoothly-table-expandable-row",{key:"72d21b76a187aea5d3f8d9d0037d95315dda6a1e"},t("smoothly-table-cell",{key:"f72bb26c40ecfc84d9e0d931cdaec94f597690bb"},"nested expandable row"),t("smoothly-table-cell",{key:"6b5a6f9c3246f1cb7d2587f5bffae8d7f2ffea94"},"b row"),t("div",{key:"c6e651dfe3a597ae41f673634e4e81307b779d6e",slot:"detail"},t("smoothly-table",{key:"c3bf5c5dfb33de98b23c5e74f3698dc3b353ad1a"},t("smoothly-table-row",{key:"0e5406f1d24248aa82c8ea7537d032e3de884801"},t("smoothly-table-header",{key:"e465ee0c16a9b35d147e85714e5c1252993b20f2"},"C"),t("smoothly-table-header",{key:"18f38a2f20719e8ae6bcbe6039d25b21fef4b1d4"},"D")),t("smoothly-table-expandable-row",{key:"0e62c20ba70f075d6def447a697354a39a4f38a8"},t("smoothly-table-cell",{key:"c8819381eddda17c7a7f3f08031ebdfbba5fd0d4"},"c"),t("smoothly-table-cell",{key:"a616f2a62a0d1883feb465167bbf108283108220"},"d"),t("div",{key:"71c1a8685c1817f187d15f8b171b3285cfa398bf",slot:"detail"},t("smoothly-table",{key:"97dc04e9fe88fc62f6b492fd596ad39dc8bec9ae"},t("smoothly-table-row",{key:"199501009078d13561494af21c8ec0840ee9d104"},t("smoothly-table-header",{key:"f9e37b800be70c2f480eec874376ce8cbe3f12bc"},"E"),t("smoothly-table-header",{key:"812e05fb00483ac087894496f23264a257fb00de"},"F")),t("smoothly-table-expandable-row",{key:"f32fa191f4fb8c24e0e1889a3313d05e800d0339"},t("smoothly-table-cell",{key:"da620105064652b2fd78ed180848b32562bae6d3"},"e row"),t("smoothly-table-cell",{key:"3f1c00270d76defd41b7e482e6417c3ab1e7b80a"},"f row"),t("div",{key:"abdd6f4a647af8a82f8080f695727687f9bd6e13",slot:"detail"},"nested expandable row expansion e f")))))))),t("smoothly-table-expandable-row",{key:"6b0fed8fd85b5ac6720e9e5bab76d8962611f799"},t("smoothly-table-cell",{key:"75f9071102edb24f72a8170726e7c301a3a3faf4"},t("span",{key:"90fcf7a251ba34793dc66602598ccc056439d5d0"},"one"),t("span",{key:"9a9f1f69a3153527aed737d1e56a20a337df19c2"},"two"),t("span",{key:"5205ead387624f310cd64f301ca17773ab5c1be9"},"three")),t("smoothly-table-cell",{key:"861582eff0124b03a5f97532322913181358c0c7"},"five",t("smoothly-icon",{key:"356d04dbe0cf5b075f5776fe2aa1a784b108a8f0",name:"paper-plane-sharp",size:"small"})),t("div",{key:"8b2f3d2f93d9b8e929032afb282ad982b85eaaa4",slot:"detail"},"four")),t("smoothly-table-row",{key:"226a638694ebf076a5919b431fe31f934c40af6b"},t("smoothly-table-expandable-cell",{key:"7b7815d7615e48097ab17b841fde7cf5127dd862"},t("span",{key:"0d237074de99748f00e5650c21f21bd608277de6"},"nested expandable cells"),t("div",{key:"25c3656aa0a42e9da41fb5c8453ae5b50f5fb073",slot:"detail"},t("smoothly-table",{key:"d04902b2a68e1be3f897a460a4701cee840d4497"},t("smoothly-table-row",{key:"6f8378ca445613c84228bb6f79e33b5c925fda62"},t("smoothly-table-header",{key:"01406ab549f571dc9f1b7c93694976cb998516b0"},"E"),t("smoothly-table-header",{key:"e184ad1947135d32d095739c11e37eb663ed76af"},"F")),t("smoothly-table-row",{key:"dcc40d7510958ceb58f607f1b00bbfdcfa07088d"},t("smoothly-table-expandable-cell",{key:"4bafb838bfce5358ded7456e18bf4e6b01955625"},"e cell",t("div",{key:"a7a29a42cf1498dd930b211a8c13fa61e4e0f5c5",slot:"detail"},t("smoothly-table",{key:"5fd8eb9523d42adcf8beb802f3771551dc460269"},t("smoothly-table-row",{key:"f2186ed8479e075b0a917ab98094cbbef29d4da8"},t("smoothly-table-header",{key:"e0ddb5223b0831808a39d31c8b6e6b2bf57cd423"},"G"),t("smoothly-table-header",{key:"9e3e6fc6f31039d520fa323a7f5549390cc17f76"},"H")),t("smoothly-table-row",{key:"deeefaba22b977edcf0412d7bb8cb0b426bb0e54"},t("smoothly-table-expandable-cell",{key:"88821dd02885d589f8085f23e6f36c80d13b2d17"},"g cell",t("div",{key:"39dbd0b03e45454d7d250e678ecbace797de9a0b",slot:"detail"},"nested expandable cell expansion g")),t("smoothly-table-expandable-cell",{key:"4d37286adc530cbfe80455a4a66b19c1eef62c7d"},"h cell",t("div",{key:"b44f5357b900bb7231516f03f9cb78b5f012abf0",slot:"detail"},"nested expandable cell expansion h")))))),t("smoothly-table-expandable-cell",{key:"6d8088c01c1946415d2e6ecaa452a21d08c0027b"},"f cell",t("div",{key:"55f8999fe29ca292d0aa58568e7ce8a420054f8b",slot:"detail"},"nested expandable cell expansion f")))))),t("smoothly-table-expandable-cell",{key:"d5f68a4ec6b87f8852b1c8e7cf197a6b33d65289"},"b cell",t("div",{key:"0b45b5765eb119e4b040aaf9c269f32cc51f847a",slot:"detail"},t("smoothly-table",{key:"bd483dfee993041149aa77d4b1858662de73542f"},t("smoothly-table-row",{key:"152f5e9742fe66c3d10bb95d697fd89c291e504b"},t("smoothly-table-header",{key:"d10c9873ca10d7d0ec3693bc1170bccd2d6d3950"},"C"),t("smoothly-table-header",{key:"d9b0595ab82b9463074253048186a263a80dbcd4"},"D")),t("smoothly-table-row",{key:"13c97897313ad8ed43bb275a796aff2d946d0956"},t("smoothly-table-expandable-cell",{key:"216b700ed3d29cee790d9040624195981b421b42"},"c cell",t("div",{key:"bffd6278082600b414b1df53d4309b75bc519a7f",slot:"detail"},"nested expandable cell expansion c")),t("smoothly-table-expandable-cell",{key:"63f23114f39b396fd6a2b76bf1b42bd0311dac47"},"d cell",t("div",{key:"1d7b427855aa5171459f09a8d30eb1fd08a7ca5c",slot:"detail"},"nested expandable cell expansion d")))))))),t("h4",{key:"d7d1f71d7dd493aa647ddd78cadafe6c1e2165f4"},"Demo table 6"),t("smoothly-table",{key:"2f54b456aa9dd3df462698ec3574d05629371bdc"},t("smoothly-table-row",{key:"b3e44cf670beb3480231a53bd64f6bfea4a93764"},t("smoothly-table-header",{key:"58fdc45c8f914d6fdddb7c163b386341658ab80d"},"display"),t("smoothly-table-header",{key:"d200bcfe5dc61905e8cac792fc09ccd5868be188"},"contents")),t("smoothly-table-expandable-row",{key:"e0c5ac990df41da2e3af26a8384209eb2f750a34"},t("div",{key:"f8053809f0e8231645c4275586daf98c5a006c67",class:"content"},t("smoothly-table-cell",{key:"d3455132fb39edade7ce473444b8121d2c4bf4b4"},"A"),t("smoothly-table-cell",{key:"a1e1998ec1205c136b14e178d998ce962abd0f9a"},"B")),t("div",{key:"a091c38f2c87095be721d707b5c2311f09cac5dd",slot:"detail"},"expansion"))),t("h4",{key:"a121efde3449fe3b0d137d833b6ae341b504e461"},"Demo table 7")," ",t("span",{key:"1cea473703f5570ec3b831a9b82cf560d626e480"},"nested 1 then normal"),t("smoothly-table",{key:"6e48019d21d7fb678d1b326cc642df179281eb95"},t("smoothly-table-row",{key:"e7802be1bba803eb03a384d9f1c42f62f5d390d2"},t("smoothly-table-header",{key:"40e805e08a0668a530c3bb4689160f8201f6b8ac"},"A"),t("smoothly-table-header",{key:"dc4682e849e8a2ee8404141eaa64bd313bd3f1de"},"B")),t("smoothly-table-expandable-row",{key:"fe90bd61f27a568eb9d08a7608a6f8fa4afb6d50"},t("smoothly-table-cell",{key:"be5a961485f323b6a7adbe07846671ea5e44e8aa"},"a"),t("smoothly-table-cell",{key:"86849f70da4daea9146fe368ada9af469ca0e24e"},"b"),t("div",{key:"536a13f511d78941b60fd0ca66df440dd812d36b",slot:"detail"},t("smoothly-table",{key:"cc64421e35a9b194244bf65f62bf912d45b7473d"},t("smoothly-table-row",{key:"2c779f4ca95c05227dc716da7ce5a6b2bc1478bb"},t("smoothly-table-header",{key:"134c7db01d37c2eacb5657b5a5412ee1c49afad5"},"C"),t("smoothly-table-header",{key:"2ea508f7502be2f0a7346bdab7aea557c70786d2"},"D")),t("smoothly-table-row",{key:"dd7e394bb923e671fd77ec9e92d1e0f988582fcf"},t("smoothly-table-cell",{key:"9b816eb941de433187616b5dc19e298d5531953c"},"c"),t("smoothly-table-cell",{key:"4ecfb6cce1d2f0f7233d7c28ae658bcb102bd393"},"d")),t("smoothly-table-row",{key:"4ee2dd20b58148f56cbc82fbc50e56dc478a1773"},t("smoothly-table-cell",{key:"2cf709ba94dec6405acafc6bf51df9a000442c47"},"ccc"),t("smoothly-table-cell",{key:"191db9f6db47fde77b2ae13a99708281e408a419"},"ddd")),t("smoothly-table-expandable-row",{key:"9348628506f543af56c015787e067845490a5afb"},t("smoothly-table-cell",{key:"5a27eda4518331ebdff51e19f868b54ba81d3db0"},"cccc"),t("smoothly-table-cell",{key:"19491dbe0a49fff575e6f2131f21cd567142664f"},"dddd"),t("div",{key:"0cc05beec1eb2a94276e67e349549b1181c2800d",slot:"detail"},"CONTENT")),t("smoothly-table-row",{key:"6ad3a5ad78d7a13ee874aa1e34454b655151e212"},t("smoothly-table-cell",{key:"5f87aefa8c343fed00ded2056f2a3bb4a7bf81f4"},"ccccc"),t("smoothly-table-cell",{key:"6f4cab1a6e713e9919721e943f3a311babdbc514"},"ddd")),t("smoothly-table-expandable-row",{key:"2ade8194c8c81a2622075119bd0a774a8e895255"},t("smoothly-table-cell",{key:"0ca024ae4bfbc7ca1736740bb99a23fd751eecf5"},"cccc"),t("smoothly-table-cell",{key:"30b6ebead0a09cc72778937cc2c8a09cfaac9264"},"dddd"),t("div",{key:"86684916edf971ccda8b60f99a9b14fca41ef807",slot:"detail"},"CONTENT")))))),t("h4",{key:"a32d1ecac3af32f7d3f1f649e011b08de7d3c169"},"Demo table 8")," ",t("span",{key:"11805bd521860c5331c8b9f0d4a8a406c014ba61"},"not nested"),t("smoothly-table",{key:"4009576336308323853efa04d38751a57700285b"},t("smoothly-table-row",{key:"e2844f71096510bb9b20f4e0bc48d9927671b78f"},t("smoothly-table-header",{key:"a63ac3e592875b8426dede361e956bd6b4662406"},"C"),t("smoothly-table-header",{key:"4c436af23c1b72bea53a2746c284f6a5cd62b1f0"},"D")),t("smoothly-table-row",{key:"f6c7c46e2add524b441b29034577ff598c7f81a8"},t("smoothly-table-cell",{key:"82eaf9546f4fd04ffd199d20139668a9612765a1"},"c"),t("smoothly-table-cell",{key:"131125bdafc52dc560a2def28a0bc9166f2fff79"},"d")),t("smoothly-table-row",{key:"236112fe5d153cdeb63b046273f8cff31cd5b22f"},t("smoothly-table-cell",{key:"688d94753909a1fd3801bd6d1dc3dead99e67b40"},"cc"),t("smoothly-table-cell",{key:"bc1caa7f054e948ec18fec235f4b2d06a32402b1"},"dd")),t("smoothly-table-row",{key:"23b9f9f34f4b2b7da11704a85b9fe375e3fedc79"},t("smoothly-table-cell",{key:"1a126531b75c204a734c9b5e0b1bd3375b0fb6ab"},"ccc"),t("smoothly-table-cell",{key:"a115c869e5d45f6752d7f5e041b4d08a0bab78d0"},"ddd"))),t("h4",{key:"6feebb9f06c57f279ab8a60f5d3243090a912e48"},"Demo table 9"),t("smoothly-table",{key:"29c4d826c117b47c733efa914407f3f29d25701d"},t("smoothly-table-row",{key:"3227be3032ba5f29711afe3269df22685be72a73"},t("smoothly-table-header",{key:"076d1c42e20aebc7584ea5dd5165a33f45382cec"},"First name"),t("smoothly-table-header",{key:"1110901b7d4d40f6c16a9485078640d1148c00f3"},"Last name"),t("smoothly-table-header",{key:"b9e61cf76ad893838d961521611ed26a3fe55c34",style:{width:"1px"}},t("smoothly-icon",{key:"3a9cc9fd79801293bdad68ab70a74e370ac4d132",name:"alert-outline"}))),t("smoothly-table-expandable-row",{key:"1d02f306f52f865ce010e64acb2929228c7bd15e"},t("smoothly-table-cell",{key:"848030e2325ec5ff5fd539752323e8283b131832"},"Jessie"),t("smoothly-table-cell",{key:"30435bba21263764657b3eb41ee0222e15501bb3"},"Doe"),t("smoothly-table-cell",{key:"a6edb66a4e6edaee7fb70bcbbc4b9b41928155f4"}),t("div",{key:"50629ea722f0569758f015bd0437e8a1d66bb045",slot:"detail"},t("p",{key:"87a784ff6f169396885a315e6ad6b0920b22e319"},"This is Jessie")))),t("h4",{key:"0ffdcaa8b0e2b82be3abb880610f323281830765"},"Demo table 9 - Lazy expansion rows"),t("smoothly-table",{key:"193fbefb3e6994c6252b159399a2216304d53c30"},t("smoothly-table-row",{key:"e872ad769cc23dcf369076776b439a7a5913420a"},t("smoothly-table-header",{key:"bb5573cec75c0a96ce64b417a5950ecca09593ab"},"Company")),t("smoothly-table-expandable-row",{key:"c8e12a4f92615c3b1dca5ea5434386d6d608682a"},t("smoothly-table-cell",{key:"0f2496508407c14acb8820c22c05822eb9090f1f"},"Proquse"),t("smoothly-lazy",{key:"5ebe1059422b7b05546f0e684da832f9e66befde",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})})),t("smoothly-table-expandable-row",{key:"19f0e2c1a5003808858d23dbc48547efdc650c95"},t("smoothly-table-cell",{key:"2e2b0d6eff03ac53f522764140249a1a37b4b7ef"},"Pax2Pay"),t("smoothly-lazy",{key:"72de23a4e67b331f5d8cfaea9412945b29a5de37",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})}))),t("h4",{key:"8e3f421528e5484987efef812df2e3856f3b17c6"},"Demo table 10 - Lazy expansion cells"),t("smoothly-table",{key:"a4e8d1cb657daea4266f45f6623e54fdf130977c"},t("smoothly-table-row",{key:"8678c8072d2e3ef513c6425290031678cff5d928"},t("smoothly-table-header",{key:"6bb9b99332a14a4ce86049e0b7aa0165b8a71767"},"Company")),t("smoothly-table-row",{key:"e5a05489897c5407917fa63be289fbb205f2e02f"},t("smoothly-table-expandable-cell",{key:"3180fe43068e9ff3a03dd19099f75adbf6c268ca"},"Proquse",t("smoothly-lazy",{key:"b66009b63c479e33b057c64c447f78c2cb030666",slot:"detail",content:t("img",{src:"https://brand.proquse.com/logo/proquse-black.svg",alt:"Proquse Logotype."})}))),t("smoothly-table-row",{key:"073a56f66b9896ec6b36f4c044046dffc71f5dc7"},t("smoothly-table-expandable-cell",{key:"8fd513b716f561d50e281e51797126bd1dd87952"},"Pax2Pay",t("smoothly-lazy",{key:"61e795ddcfb53acc6b3598bf944b00a5a4254278",slot:"detail",content:()=>t("img",{src:"https://dash.pax2pay.app/assets/pax2pay-dark-horizontal.svg",alt:"Pax2Pay Logotype."})})))),t("h4",{key:"554d064b27480332a853fa3aa74e6b04a7298c06"},"Demo table 11 - expandable cells"),t("smoothly-table",{key:"c99a3f2196512e9037ddbca6ae12de38d2d3b0e0"},t("smoothly-table-row",{key:"dc20930e2fa94a7b6be76b96c780fc308f233104"},t("smoothly-table-header",{key:"41206e45c194741515bec5503db4080b5846ab6d"},"Name"),t("smoothly-table-header",{key:"5c80fb1c5ffc1b9a3a26ac36e052a96b06c352fa"},"Age"),t("smoothly-table-header",{key:"2fac1535bd56aa78fde0c5f68163999f87f19b16"},"Location")),t("smoothly-table-row",{key:"774d89720aac88456620fad2aa294313d3a4026d"},t("smoothly-table-expandable-cell",{key:"c33663348ac58721578053b1e59794d018285725"},"Jessie",t("div",{key:"a06d9bfd6935dec6e35494e4700ce73fc804039a",slot:"detail"},"Doe")),t("smoothly-table-expandable-cell",{key:"286b615fefab1bc4c45e2476541eb2c8379c6bca"},(new Date).getFullYear()-2e3,t("div",{key:"82ec68afb6a3552bb0f323c9074e36689f42e0b5",slot:"detail"},"2000-01-01")),t("smoothly-table-expandable-cell",{key:"745bae86ec773951391956639c035b13d0ff5655"},"UK",t("div",{key:"12d29d81ccf035f307747c50f14ca69663e69181",slot:"detail"},"London")))))}};qh.style=Kh;const Zh=".sc-smoothly-table-demo-filtered-h{display:block;width:80%}smoothly-table-cell.sc-smoothly-table-demo-filtered:nth-of-type(2){text-align:right}td.sc-smoothly-table-demo-filtered{padding-left:1.5em}";const Jh=Zh;const Xh=class{constructor(t){e(this,t);this.criteria={};this.cats=undefined;this.selector=Jd.create("breed")}onFilterUpdate(e){e.stopPropagation();this.criteria=e.detail}smoothlyInputHandler(e){e.stopPropagation();this.selector=this.selector.handle(e.detail)}async componentWillLoad(){const e=await sr("https://catfact.ninja/breeds?limit=15");this.cats=e.status==200&&(await e.body).data.map((e=>{var t,o;return Object.assign(Object.assign({},e),{price:[...e.breed].reduce(((e,t)=>e+t.charCodeAt(0)),0),nested:Object.assign(Object.assign({},e),{names:(t=Qh[e.country])!==null&&t!==void 0?t:[]}),names:(o=Qh[e.country])!==null&&o!==void 0?o:[]})}))}render(){const e=this.cats&&el(this.criteria,this.cats);return t(s,{key:"7c04accc5a76683442261f6cb23a61b553dd1dbc"},t("smoothly-filter",{key:"7a1960d7637718005c16814b825e0717ef6de467"},t("smoothly-filter-toggle",{key:"e545003a8bcb7ad76782d143e3b0d0d52c13deee",properties:{["nested.pattern"]:"Ticked",breed:""},icon:"add",toolTip:"Nested Ticked",slot:"bar"}),t("smoothly-filter-toggle",{key:"1b59e1701b91822da437dd5db289fe72b84e08e4",properties:{pattern:"Ticked",breed:""},icon:"paw",toolTip:"Ticked cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"bb88ce9e07b0d003a1373ada9f3ec21a88361a7a",properties:{breed:"Bombay",pattern:"Solid"},icon:"radio-button-on",toolTip:"Solid bombay cats",slot:"bar"}),t("smoothly-filter-toggle",{key:"35a4c1ea2c4f3538965fbc4611abff257a21c64e",properties:{pattern:"Colorpoint"},not:true,active:true,icon:"alert",toolTip:"Colored cats",slot:"bar"}),t("smoothly-filter-select",{key:"133339d67b5ea09a456eadf89e6b7b836d4a02d1",label:"coat",property:"nested.coat",slot:"bar",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("div",{key:"3520ae0be7fb526fe688e4389fda908369b57c38",slot:"detail"},t("smoothly-form",{key:"bbec4f5d3a7446205e1490fd891851f01a398343",looks:"border"},t("smoothly-filter-select",{key:"923a40b42a516bdf1d8ec11502068de700972cfe",label:"coat",property:"nested.coat",multiple:true},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.nested?Object.assign(Object.assign({},e),{[t.nested.coat]:t}):e),{})).map((e=>{var o;return((o=e.nested)===null||o===void 0?void 0:o.coat)&&t("smoothly-item",{slot:"items",value:e.nested.coat},e.nested.coat)}))),t("smoothly-filter-select",{key:"9bbb2a64f7011c6ce2a496119173f5f7caae7bb4",label:"breed",property:"breed",multiple:false},this.cats&&Object.values(this.cats.reduce(((e,t)=>t.breed?Object.assign(Object.assign({},e),{[t.breed]:t}):e),{})).map((e=>e.breed&&t("smoothly-item",{slot:"items",value:e.breed},e.breed)))),t("smoothly-filter-select",{key:"d1b9d3f942f5307afd5a794e7be82796b748dc17",label:"names",property:"nested.names",multiple:true,type:"array"},Object.keys(Object.values(Qh).flat().reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:true})),{})).flatMap((e=>t("smoothly-item",{slot:"items",value:e},e)))),t("smoothly-filter-input",{key:"a13b4aebd242e36bcb2413573a94d07dddee846f",label:"Coat",property:"coat"}),t("smoothly-filter-input",{key:"75e9f70d0bd04e5b7c87d47f0724095e51d0cc07",label:"Nested Coat",property:"nested.coat"})))),!e?"Failed to load data.":t("smoothly-table",null,t("smoothly-table-row",null,t("smoothly-table-header",null,this.selector.render(e)),t("smoothly-table-header",null,"Breed"),t("smoothly-table-header",null,"Coat"),t("smoothly-table-header",null,"Price")),e.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,this.selector.render(e)),t("smoothly-table-expandable-cell",null,e.breed,t("div",{slot:"detail"},"Country: ",e.country)),t("smoothly-table-expandable-cell",null,e.coat,t("div",{slot:"detail"},"Pattern: ",e.pattern)),t("smoothly-table-cell",null,t("smoothly-display",{type:"price",value:e.price,currency:"SEK"}))))),t("smoothly-table-footer",null,t("td",{colSpan:5},t("smoothly-display",{type:"text",value:`Selected: ${this.selector.selected.length!=0?this.selector.selected.length:e?e.length:"?"}`})))))}};const Qh={"United States":["bill","bob","brad","joe","molly"],Australia:["nigel","bruce","sheila","brad","shane"],"United Kingdom":["nigel","james","molly","shane","bob"],Greece:["dionysius","demetrius","polikarpos"]};Xh.style=Jh;const em='.sc-smoothly-table-expandable-cell-h{display:table-cell;padding:0.3rem 0.5rem 0.3rem 0.2rem;cursor:pointer;line-height:1.5rem}.sc-smoothly-table-expandable-cell-h:not([open]){box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)), 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}[open].sc-smoothly-table-expandable-cell-h{position:relative;z-index:3;background-color:rgb(var(--smoothly-color));box-shadow:1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, 0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{width:1em;padding-right:0.3rem;transition:transform 0.2s, opacity 0.1s;display:flex;height:auto;aspect-ratio:1 / 1;align-self:center;opacity:0.3}.sc-smoothly-table-expandable-cell-h:hover>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{opacity:1}[open].sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell>smoothly-icon.sc-smoothly-table-expandable-cell{transform:rotate(90deg) translateX(3px)}.sc-smoothly-table-expandable-cell-h>div.sc-smoothly-table-expandable-cell{display:grid;grid-template-columns:auto 1fr;align-items:center}.sc-smoothly-table-expandable-cell-h:not([open])>tr.sc-smoothly-table-expandable-cell>td.sc-smoothly-table-expandable-cell{display:none}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 1px);top:1px;left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr.spotlight>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:calc(var(--expansion-border-width)) 0 0 0 rgb(var(--smoothly-tertiary-color)) inset}smoothly-table-row>tr:not(.spotlight)>td.sc-smoothly-table-expandable-cell-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::before{content:"";position:absolute;display:flex;top:-1px;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}smoothly-table-row>tr>td.sc-smoothly-table-expandable-cell-s>*::after{content:"";position:absolute;display:flex;top:-1px;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}smoothly-table[align=bottom] .sc-smoothly-table-expandable-cell-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-expandable-cell-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-expandable-cell-h{vertical-align:top}';const tm=em;const om=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpansionLoad=o(this,"smoothlyExpansionLoad",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}openChanged(e){if(this.expansionElement)if(e)this.beginOpen=true;else this.element.append(this.expansionElement);this.smoothlyExpandableChange.emit(this.open)}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpansionLoad.emit();this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}componentDidRender(){if(this.beginOpen){this.beginOpen=false;this.smoothlyExpansionOpen.emit(this.expansionElement)}}onClick(){this.open=!this.open}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"f411536e1e40a6e88dfe7a9c7629c5b58564f7b5"},t("div",{key:"9d6a7345f698eb817ffffe47193e4a65db4befb8"},t("smoothly-icon",{key:"18c56a090eb5c1badb143ee5eae67c96599f2ba6",name:"caret-forward-outline"}),t("slot",{key:"fa98b3e1e3b995427630691dea8af39cef643da7"})),t("tr",{key:"dbcac9fc20df892fbf8442e44b7d57599ced4acc",class:{spotlight:this.spotlight},ref:e=>this.expansionElement=e},t("td",{key:"7cfd2871877b0a9f6d98f1211eff4c66f1143c8d",colSpan:999},t("slot",{key:"09d2d7c4e768455c322f19042184c17fcebfa44a",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["openChanged","handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};om.style=tm;const sm='.sc-smoothly-table-expandable-row-h{display:contents}.sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{display:table-row;cursor:pointer;line-height:1.5rem}[open].sc-smoothly-table-expandable-row-h>div.sc-smoothly-table-expandable-row{position:relative;z-index:3;background-color:rgb(var(--smoothly-color))}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell,.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s>smoothly-table-cell{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h[open]>div.sc-smoothly-table-expandable-row-s smoothly-table-cell:last-child:first-child{box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)) inset, 1px 0 0 0 rgb(var(--smoothly-color-shade)) inset, -1px 0 0 0 rgb(var(--smoothly-color-shade)) inset}.sc-smoothly-table-expandable-row-h:not([open])>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{display:none}.sc-smoothly-table-expandable-row-h>tr.sc-smoothly-table-expandable-row>td.sc-smoothly-table-expandable-row{position:relative}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*{--expansion-width:1.5rem;--expansion-border-width:3px;position:relative;background-color:rgb(var(--smoothly-color));width:calc(100% + 3rem - 2px);left:calc(-1 * var(--expansion-width) + 1px);box-sizing:border-box;padding:0.5rem calc(var(--expansion-width) - 1px);border-bottom:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr.spotlight>td.sc-smoothly-table-expandable-row-s>*{box-shadow:calc(var(--expansion-border-width)) 0px 0px 0px rgb(var(--smoothly-tertiary-color)) inset}.sc-smoothly-table-expandable-row-h>tr:not(.spotlight)>td.sc-smoothly-table-expandable-row-s>*{box-shadow:-1px 0 0 0 rgb(var(--smoothly-tertiary-color)), 1px 0 0 0 rgb(var(--smoothly-tertiary-color))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::before{content:"";position:absolute;display:flex;top:0;bottom:0;left:-1px;width:calc(var(--expansion-width) + 1px);border-top:1px solid rgb(var(--smoothly-color-shade))}.sc-smoothly-table-expandable-row-h>tr>td.sc-smoothly-table-expandable-row-s>*::after{content:"";position:absolute;display:flex;top:0;bottom:0;right:0;width:calc(var(--expansion-width) - 1px);border-top:1px solid rgb(var(--smoothly-color-shade));border-right:1px solid rgb(var(--smoothly-color-shade))}';const am=sm;const im=class{constructor(t){e(this,t);this.smoothlyExpansionOpen=o(this,"smoothlyExpansionOpen",7);this.smoothlyExpandableChange=o(this,"smoothlyExpandableChange",7);this.smoothlyExpandableLoad=o(this,"smoothlyExpandableLoad",7);this.allowSpotlight=true;this.spotlight=true;this.open=undefined}handleSpotlight(){this.spotlight=this.open&&this.allowSpotlight}componentWillLoad(){this.smoothlyExpandableLoad.emit({allowSpotlight:e=>this.allowSpotlight=e})}handleTableLoaded(e){e.stopPropagation();e.detail(this.element)}render(){return t(s,{key:"e23e27417222e7720baeac8551b60abc10a0842b"},t("div",{key:"eac1bd46882b2df478999e5fc62f1b96dfbb2e99",onClick:()=>this.open=!this.open},t("slot",{key:"7335f2e1e36304a44b749480e052cc9534705c13"})),t("tr",{key:"a7bc18eea142d709203c5424a0a5c630640de4e4",class:{spotlight:this.spotlight}},t("td",{key:"7311c658043396c5b902fa4b1b8afda5c64daa42",colSpan:999},t("slot",{key:"069bcc48a059cb7d4955f01e4a105ff3b55365ed",name:"detail"}))))}get element(){return a(this)}static get watchers(){return{open:["handleSpotlight"],allowSpotlight:["handleSpotlight"]}}};im.style=am;const nm=".sc-smoothly-table-footer-h{display:table-footer-group;position:sticky;bottom:0;background-color:rgb(var(--smoothly-color));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade)),\n\t\tinset 0 1px 0 rgb(var(--smoothly-color-shade));line-height:2.5rem;font-weight:bold}";const lm=nm;const rm=class{constructor(t){e(this,t)}render(){return t("slot",{key:"c8607ab14808db4426066e52b68f3daec99d8d09"})}};rm.style=lm;const cm=".sc-smoothly-table-header-h{display:table-cell;line-height:2.5rem;border-top:1px solid rgb(var(--smoothly-color-shade));box-shadow:0 1px 0 0 rgb(var(--smoothly-color-shade));padding:0 .5rem;font-weight:bold}smoothly-table[align=bottom] .sc-smoothly-table-header-h{vertical-align:bottom}smoothly-table[align=middle] .sc-smoothly-table-header-h{vertical-align:middle}smoothly-table[align=top] .sc-smoothly-table-header-h{vertical-align:top}";const dm=cm;const hm=class{constructor(t){e(this,t);this.name=undefined}render(){return t(s,{key:"fbef0c06051b00b98e84b0e7313b605f53b9d4c0"},t("slot",{key:"0886ac73a5692fd482ff781f08659170cac91640"}))}};hm.style=dm;const mm=".sc-smoothly-table-row-h{display:table-row-group;cursor:default;line-height:1.5rem}.hide.sc-smoothly-table-row{display:none}.sc-smoothly-table-row-h>div.sc-smoothly-table-row{display:contents}";const bm=mm;const ym=class{constructor(t){e(this,t);this.expansions=[];this.open=false}onExpansionLoad(e){this.expansions.push(e.target)}onExpansionChange(){this.open=this.expansions.some((e=>e.open))}onExpansionOpen(e){var t;this.expansions.forEach((t=>{if(t!=e.target)t.open=false}));if(e.detail)(t=this.element)===null||t===void 0?void 0:t.after(e.detail)}render(){return t("div",{key:"977cefc7438a7212a424ab903b2378c1cbe40a71",ref:e=>this.element=e},t("slot",{key:"2b8dab0ef5559cecec9989770a6d012ea6812658"}))}};ym.style=bm;const um=[{type:"cat",name:"Lazie",age:3},{type:"dog",name:"Jessie",age:8},{type:"cat",name:"Snooz",age:5},{type:"bird",name:"Squeak",age:1},{type:"bird",name:"Quirk",age:2}];const fm=".sc-smoothly-table-testing-h{width:100%;display:flex;justify-content:center}smoothly-table.sc-smoothly-table-testing{width:80%}.tableCell.sc-smoothly-table-testing{height:3rem;display:flex;align-items:center}.tableCell.sc-smoothly-table-testing>div.sc-smoothly-table-testing{margin-left:3rem;margin-right:3rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}td.sc-smoothly-table-testing>div.footer.sc-smoothly-table-testing{display:flex;padding-left:1.5em;flex-direction:row;gap:1em}";const pm=fm;const gm=class{constructor(t){e(this,t);this.counter=0}render(){return t(s,{key:"21215a09e085871094148e63d5f5466e03f3bb1f"},t("smoothly-table",{key:"ae858527f73f8383a03ba5434f781711d3afbcb0",color:"dark"},t("smoothly-table-row",{key:"4b1489fdf2a2eb36f7c77b7857ea245ebda37c65"},t("smoothly-table-header",{key:"639831c9d6202b8a281dd8d1a5728e9b4cdfc3b9"},"Type"),t("smoothly-table-header",{key:"90c244060d544ef5added3b185f433ce77bd5199"},"Name"),t("smoothly-table-header",{key:"b99d1ffff751880b5de32e1ea70624e529a57b9d"},"Age")),um.map((e=>t("smoothly-table-expandable-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-cell",null,e.name),t("smoothly-table-cell",null,e.age),t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!"))))),um.map((e=>t("smoothly-table-row",null,t("smoothly-table-cell",null,e.type),t("smoothly-table-expandable-cell",null,e.name,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.name},"Name"),t("smoothly-submit",{slot:"submit"},"Submit!"))),t("smoothly-table-expandable-cell",null,e.age,t("smoothly-form",{slot:"detail",onSmoothlyFormSubmit:()=>this.counter++,looks:"line"},t("smoothly-input",{value:e.type},"Type"),t("smoothly-input",{value:e.name},"Name"),t("smoothly-input",null,e.age),t("smoothly-submit",{slot:"submit"},"Submit!")))))),t("smoothly-table-footer",{key:"d2ebd8cad2d05ad755d59d991af67d0dbde5d686"},t("td",{key:"2ce095b524e4783878894495137474f8944d2fce",colSpan:2},t("div",{key:"6455b857455fc13f7f599a213989e7bcfdfee12e",class:"footer"},"Currently viewing content from:",t("smoothly-display",{key:"9931a3776728423f6df73a042a043544a62cf0f6",type:"date",value:"2023-10-12"}))),t("smoothly-table-header",{key:"f08ab8a84d8cfe3b95c769c2f9741b31798ec1f6"},"Total age: "+um.reduce(((e,t)=>e+t.age),0)))))}};gm.style=pm;const km=".sc-smoothly-tabs-h{display:grid;grid-template-columns:repeat(var(--tabs), auto);grid-template-rows:auto auto}";const vm=km;const xm=class{constructor(t){e(this,t);this.smoothlyTabOpen=o(this,"smoothlyTabOpen",7);this.tabs=[];this.selectedElement=undefined}onInputLoad(e){if(e.target instanceof HTMLElement&&!this.tabs.includes(e.target)){this.tabs=[...this.tabs,e.target]}}openChanged(e){if(e.target!=this.element){e.stopPropagation();this.selectedElement=e.target;this.smoothlyTabOpen.emit(e.detail)}}onSelectedChange(e,t){if(t)t.open=false}render(){return t(s,{key:"a5b7b0582045c02167439c2fcec55f86f4fa9b33",style:{"--tabs":`${this.tabs.length}`}},t("slot",{key:"50e183b3c4b2d4e30408503415186348db3021e1"}))}get element(){return a(this)}static get watchers(){return{selectedElement:["onSelectedChange"]}}};xm.style=vm;const wm=".sc-smoothly-tabs-demo-h{display:block}[hidden].sc-smoothly-tabs-demo-h{display:none}.sc-smoothly-tabs-demo-h>*.sc-smoothly-tabs-demo{margin:auto;max-width:1200px;width:100%}";const Sm=wm;const Cm=class{constructor(t){e(this,t)}render(){return t("smoothly-tabs",{key:"be38f49689f79e21017a0573f3a197e708b9563a"},t("smoothly-tab",{key:"ff0d2c06e9cc5080080eba71891035e0763e11c3",label:"test1",open:true},"Hello world!"),t("smoothly-tab",{key:"fed1c968c786138273891e5ed4a86fe40867bc75",label:"test2"},"this is a test message!"),t("smoothly-tab",{key:"fa1264ff5d40850f4ed5af19f8417e24086b0825",label:"test3"},"this is a test message again!"))}};Cm.style=Sm;const zm=".sc-smoothly-theme-color-h{display:flex;flex-direction:column;align-items:center}.sc-smoothly-theme-color-h>.sc-smoothly-theme-color:first-child{margin-top:0.2rem}";const jm=zm;const _m=class{constructor(t){e(this,t);this.color=undefined}render(){return t(s,{key:"6b62e176f604438b62079881c825805090b1cd06"},this.color,["tint","color","shade"].map((e=>t("smoothly-theme-color-variant",{title:`${this.color} ${e}`,color:this.color,variant:e}))))}};_m.style=jm;const Tm=".sc-smoothly-theme-color-variant-h{display:flex;justify-content:center;align-items:center;width:3em;height:3em;font-weight:900}[color][variant=color].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color))}[color][variant=tint].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-tint))}[color][variant=shade].sc-smoothly-theme-color-variant-h{background:rgb(var(--smoothly-color-shade))}";const Im=Tm;const Lm=class{constructor(t){e(this,t);this.color=undefined;this.variant="color"}render(){return"Aa"}};Lm.style=Im;const Om=".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";const Am=Om;const Em=class{constructor(t){e(this,t)}render(){return["primary","secondary","tertiary","success","warning","danger","light","medium","dark","default"].map((e=>t("smoothly-theme-color",{color:e})))}};Em.style=Am;const Dm=".sc-smoothly-theme-demo-h{display:flex;width:50%;margin:auto;flex-direction:column;gap:2em;margin-top:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>span.sc-smoothly-theme-demo{display:flex;flex-direction:row;gap:10em}";const Mm=Dm;const $m=class{constructor(t){e(this,t)}render(){return t(s,{key:"6cc1af72ad0bde9d00142122a3fa5ffca03bd026"},t("h2",{key:"86c4634e5fe177e7c2e189131abd4a9a2666e6e0"},"Theme"),t("smoothly-theme-picker",{key:"8f7a62dfa572b27ba905d66bf06220f8193b456b"},t("smoothly-item",{key:"729459a73f5e69894914525c052901d5fa9ecd04",selected:true,value:"assets/style/smoothly.css"},"Smoothly"),t("smoothly-item",{key:"106fe641b9432d7e247b2199f0a6b02b0535e16a",value:"https://app.issuefab.com/assets/style/index.css"},"Issuefab"),t("smoothly-item",{key:"c9e620012e86a505b5b5b14ab18d3937fca0dd78",value:"https://app.proquse.com/assets/style/index.css"},"Proquse"),t("smoothly-item",{key:"35b0d982c84685b3a273dd8a95a86f6b88f723e8",value:"https://app.weekmeter.com/assets/style/index.css"},"Weekmeter"),t("smoothly-item",{key:"136f49334873f0712b255ce098b3f0d98266b32d",value:"https://dash.pax2pay.app/p2pdash.css"},"Pax2Pay Dashboard"),t("smoothly-item",{key:"7cd89c94b5fa0d247b41b34968fc5d1399f09c7c",value:"https://ui.pax2pay.app/assets/style/pax2pay.css"},"Pax2Pay Portal"),t("smoothly-item",{key:"c78fe4025f4bf6c5e3e072d80037b310bbcb7ca9",value:"https://theme.payfunc.com/intergiro/index.css"},"Intergiro Monitor"),t("smoothly-item",{key:"afec0e7fbfcf13b58dc27c5f53505eb39b7c16b5",value:"https://theme.payfunc.com/light/index.css"},"Payfunc Light"),t("smoothly-item",{key:"f6f40516ff6ac8b26d66a3208bacdb272a7970ff",value:"https://theme.payfunc.com/dark/index.css"},"Payfunc Dark")),t("span",{key:"b1ef136924f073771ac50bf7c7804e18d2b92610"},t("smoothly-theme-colors",{key:"311644a5f6988d684db4d28ae0b21a604a656a63"}),t("smoothly-theme-guide",{key:"6b2feb5356e74bedc53f8b03cb18c33269ca1830"})),t("smoothly-button",{key:"da921eb58fa407bb306a97648c64a6ecf4695fd0",type:"link",link:"/redirect"},"To redirect"),t("smoothly-button",{key:"f0a9118be465d5f5392cb2d2c6643026f57e714b",type:"link",link:"/redirect"},"To /redirect"),t("smoothly-button",{key:"a4ceb0c7b0c5991b7acd2e7440eb9ea0f4f0f05e",type:"link",link:new URL("/redirect",window.location.origin).href},'To new URL("redirect")'),t("smoothly-button",{key:"cbc41766769adc5c07ff3b7f20c34704abde6587",type:"link",link:"redirect/nested"},"To redirect nested"))}};$m.style=Mm;const Rm="";const Pm=Rm;const Nm=class{constructor(t){e(this,t)}render(){return[t("smoothly-display",{key:"77d5537d9483e58433a0266d3065098bd601951e"},"Tint is used as background to highlight, for example hovering an item in the select menu."),t("br",{key:"1dbf202ca245580dd88f2c421c15cb4dfb26c587"}),t("smoothly-display",{key:"726ff57a55bb51989ba4bf685dff2dbcfe4ef426"},"Color is used as a normal background or as a background to show that something is selected, for example a selected item in the select menu."),t("br",{key:"0adc33d33ac13615ed96d7d27d137e255b4adb08"}),t("smoothly-display",{key:"c94b2390d510756fa9fbd8c4346a2f73be1e30fe"},"Shade is used as border and for symbols in buttons. It works as a semi-low contrast against color and tint."),t("br",{key:"5ef4844dd3f283b53e31a9ef0c7de293a6d7f60f"}),t("smoothly-display",{key:"65a03835a4ea17a28fbddb87494a8a763859040c"},"One can use the ","<smoothly-color>"," component to switch between what color set is used."," "),t("br",{key:"d6780671360b0d3905174dec43a0082eed28639d"})]}};Nm.style=Pm;const Fm="";const Hm=Fm;const Um=class{constructor(t){e(this,t);this.element="smoothly-css"}render(){return t(s,{key:"7e83f623fd4e94e7b476f6373a83405ad9ba2512"},t("smoothly-input-select",{key:"36388d703eaa1c25655ab9bb2734b9e4b91c8ce5",name:"theme",looks:"border",onSmoothlyInput:e=>{const t=document.querySelector(`#${this.element}`);if(t instanceof HTMLLinkElement&&typeof e.detail.theme=="string")t.href=e.detail.theme}},t("label",{key:"6e4b9e3003adc91bbb7aa6402fca451e7aa51d12",slot:"label"},"Select theme"),t("slot",{key:"a585a8dc4713ef8e26a2c6baf95a5503db41fed6"})))}};Um.style=Hm;const Ym=".sc-smoothly-toggle-h{display:inline-block;border:none}.sc-smoothly-toggle-h>button.sc-smoothly-toggle{border:solid white 0.5px;display:flex;padding:0.6em;justify-content:center;font-size:110%;font-weight:400;color:rgb(var(--smoothly-default-tint));background-color:rgb(var(--smoothly-default-shade))}[shape=rounded].sc-smoothly-toggle-h{border-radius:0.6em}[shape=rounded].sc-smoothly-toggle-h>button.sc-smoothly-toggle{border-radius:0.5em}[selected].sc-smoothly-toggle-h>button.sc-smoothly-toggle{color:rgb(var(--smoothly-light-contrast))}.sc-smoothly-toggle-s>smoothly-icon{stroke:rgb(var(--smoothly-default-contrast));fill:rgb(var(--smoothly-default-contrast));font-size:110%}.sc-smoothly-toggle-h:not([selected])>.sc-smoothly-toggle-s>smoothly-icon{color:rgb(var(--smoothly-default-tint));fill:rgb(var(--smoothly-default-tint))}[disabled].sc-smoothly-toggle-h{opacity:0.5;pointer-events:none}";const Wm=Ym;const Bm=class{constructor(t){e(this,t);this.selected=false;this.shape=undefined;this.disabled=false;this.name=undefined;this.value=undefined}onClick(e){this.selected=!this.selected}render(){return t("button",{key:"500f95b2ef0cf7419d29ff7a518c63b0229bcbcc",type:"button"},t("slot",{key:"a16785326bfb15b9a6b3d36d421e18c174064241",name:"icon-slot"}),t("slot",{key:"e78f86bd135d536d8e8c4473976836ea61eaeba8"},this.name))}};Bm.style=Wm;const Vm=".sc-smoothly-toggle-switch-h{display:block;width:3.6em;height:1.8em}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;cursor:pointer;border:none;border-radius:3em;background-color:rgb(var(--smoothly-color))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-color-tint))}.sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{display:flex;justify-content:flex-start;align-items:center;position:absolute;left:0;fill:rgb(var(--smoothly-color-contrast));stroke:rgb(var(--smoothly-color-contrast));font-size:1.2em;transition:100ms ease-in-out}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{fill:rgb(var(--smoothly-success-contrast));stroke:rgb(var(--smoothly-success-contrast))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch{background-color:rgb(var(--smoothly-success-color))}[selected][checkmark].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch:hover{background-color:rgb(var(--smoothly-success-tint))}[selected].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{transform:translateX(100%)}[size=tiny].sc-smoothly-toggle-switch-h{width:2.4em;height:1.2em}[size=small].sc-smoothly-toggle-switch-h{width:3.05em;height:1.5em}[size=large].sc-smoothly-toggle-switch-h{width:5.2em;height:2.5em}[size=tiny].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:.8em}[size=small].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1em}[size=large].sc-smoothly-toggle-switch-h>button.sc-smoothly-toggle-switch>smoothly-icon.sc-smoothly-toggle-switch{font-size:1.75em}";const Gm=Vm;const Km=class{constructor(t){e(this,t);this.smoothlyToggleSwitchChange=o(this,"smoothlyToggleSwitchChange",7);this.checkmark=true;this.selected=false;this.disabled=false;this.size="default";this.color="medium";this.fill="clear"}handleClick(){this.selected=!this.selected;this.smoothlyToggleSwitchChange.emit(this.selected)}render(){return t(s,{key:"fc3ac94f429ce8710d1a256a9cf726fef48ef085"},t("button",{key:"62c6e4e69b9cbdd2067a7dbd44650a2f8a9dd5fb",type:"button",disabled:this.disabled,onClick:()=>this.handleClick()},t("smoothly-icon",{key:"6315f2dd489ba9b549dd71ab234f706e552169fc",color:this.color,name:!this.checkmark?"ellipse":this.selected?"checkmark-circle":"close-circle",fill:"clear",class:{selected:this.selected}})))}};Km.style=Gm;const qm=".sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo{display:grid;grid-template-columns:repeat(5, max-content);gap:1em}.sc-smoothly-toggle-switch-demo-h>div.sc-smoothly-toggle-switch-demo>span.sc-smoothly-toggle-switch-demo>p.sc-smoothly-toggle-switch-demo{margin:0}";const Zm=qm;const Jm=class{constructor(t){e(this,t)}render(){return t(s,{key:"d44e96ed3c64fcf690af376a49719083911dba70"},t("h4",{key:"b8db83476c90da989c5a5352685b8f5a076ca17f"},"Toggle switches"),t("div",{key:"14f1cb978354b9e881eabafbd161085a3af37a95"},t("p",{key:"9f0f7646a271bbc61113f0adc130604f469138d3"},"Checkmark"),t("span",{key:"67e7f43bcbe9c1190254afd40dfbd1b2391f03f6"},t("p",{key:"779eaae2ab25d007b2de1189ce3461906a4df4fd"},"Tiny"),t("smoothly-toggle-switch",{key:"be5f4b74488b119d76964b53329edbbf2179fd29",disabled:false,size:"tiny"})),t("span",{key:"c12231fe652d0fb33cf0636d60ceb48c5c6f0376"},t("p",{key:"0b2333abf721e95981da640bc5ed87f9c89eb350"},"Small"),t("smoothly-toggle-switch",{key:"fdc2dbd57714184aaea52428e085bbdf3233d6ab",disabled:false,size:"small"})),t("span",{key:"21d9ede7fa3fcbef7a37ae6ba3f7c4b8e69fe20b"},t("p",{key:"ba1fdcc8decd7f86bc3f616a3973ac3c33852e6e"},"Standard"),t("smoothly-toggle-switch",{key:"fb02ae9d896a8fb7dafca574e15787bfb674c32f",disabled:false})),t("span",{key:"e3ddae31c4189e48da19fa5b088fbc4ed7414c75"},t("p",{key:"dc8a4999b012325d07f62e31a7f1738ebc0abc1a"},"Large"),t("smoothly-toggle-switch",{key:"8e07d6145eaecdba986368575cce31252e6095fe",disabled:false,size:"large"})),t("p",{key:"01c06d278717e3acd6f31d0776cd889f8201d5bd"},"Colors checkmark"),t("span",{key:"dace9a88be649b8eb1d9a83b2a2921a485741e70"},t("p",{key:"65f3a51605a776c4bc08717dfb2ddd851692286f"},"Danger"),t("smoothly-toggle-switch",{key:"efec024d66830f165c9652c3529dc918953dd26f",color:"danger",disabled:false,size:"small"})),t("span",{key:"f1f20496a7515df4a2c8dceeed09fcb5eb9ad91b"},t("p",{key:"4d377d53265cc5dc9ad78fa3f0365b9fc09cdafd"},"Primary color"),t("smoothly-toggle-switch",{key:"07bc54d2fc990d30da5e69103027d43c04fde84d",color:"primary",disabled:false,size:"small"})),t("span",{key:"ab5f67ca7e2065dff62124333146bd55f3e822cb"},t("p",{key:"c456e032a49febb89187eff9250d079a8582dec3"},"Secondary color"),t("smoothly-toggle-switch",{key:"a30ea32233e7ce9552d1cda9a1a32c93275d8c59",color:"secondary",disabled:false,size:"small"})),t("p",{key:"d4112ad3ca78b9e20083cab4eb4110ceb499f711"}),t("p",{key:"d4db8e46892e0f0b2242f8e9496055b422221b4e"},"Colors no checkmark"),t("span",{key:"d06820b06dcc667ea394694e9d8c35e2433565bd"},t("p",{key:"4b843aa71ff9e222cc66fa344d22514b6a359df4"},"Danger"),t("smoothly-toggle-switch",{key:"239102ce48ce29201ea856b8239e2c834a914610",checkmark:false,color:"danger",disabled:false,size:"small"})),t("span",{key:"d0234b78d0b106a7772e3ee6be1b132190f2b9b3"},t("p",{key:"c3fed6d338021198d517e1feea6f3462932aa13c"},"Primary color"),t("smoothly-toggle-switch",{key:"01d23428b82e7222b5885c099723c89f7b062597",checkmark:false,color:"primary",disabled:false,size:"small"})),t("span",{key:"5c29f75218d1a209f4c5466472ff751c586203a2"},t("p",{key:"785a6a22e4687852a3405faadd6c3a456fb020b1"},"Secondary color"),t("smoothly-toggle-switch",{key:"f7ea7e6e3955d52ea23217758642a7f07b58b45d",checkmark:false,color:"secondary",disabled:false,size:"small"}))))}};Jm.style=Zm;const Xm=".sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}.sc-smoothly-trigger-h>button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([disabled]):hover,.sc-smoothly-trigger-h:not([disabled]):focus,.sc-smoothly-trigger-h:not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=full].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=full].sc-smoothly-trigger-h{border-left:none;border-right:none}";const Qm=Xm;const eb=class{constructor(t){e(this,t);this.trigger=o(this,"trigger",7);this.color=undefined;this.fill=undefined;this.disabled=false;this.type="button";this.name=undefined;this.value=undefined}onClick(e){this.trigger.emit({name:this.name,value:this.value});e.stopPropagation();e.preventDefault()}render(){let e;switch(this.type){case"link":e=this.disabled?t("slot",null):t("a",{onClick:e=>this.onClick(e)},t("slot",null));break;case"button":e=t("button",{key:"9f90f57a800588f874792965f1342ac8fd9da77d",disabled:this.disabled,name:this.name},t("slot",{key:"fc127bbbf5abe08d2fa85682f475e79bf9bc3aad"}));break}return e}};eb.style=Qm;export{R as smoothly_app,P as smoothly_app_demo,Re as smoothly_app_room,Fe as smoothly_back_to_top,Ye as smoothly_burger,qe as smoothly_button,Xe as smoothly_button_confirm,tt as smoothly_button_demo,rt as smoothly_calendar,ht as smoothly_dialog,yt as smoothly_dialog_demo,no as smoothly_display,lo as smoothly_display_demo,co as smoothly_display_demo_json,uo as smoothly_display_json,go as smoothly_display_json_object,xo as smoothly_display_json_primitive,Co as smoothly_display_json_record_key,il as smoothly_filter,rl as smoothly_filter_field,hl as smoothly_filter_input,yl as smoothly_filter_select,pl as smoothly_filter_toggle,yr as smoothly_form,pr as smoothly_form_demo,gr as smoothly_form_demo_all,kr as smoothly_form_demo_card,vr as smoothly_form_demo_controlled,Sr as smoothly_form_demo_date,jr as smoothly_form_demo_date_range,_r as smoothly_form_demo_login,Lr as smoothly_form_demo_pet,Or as smoothly_form_demo_prices,Dr as smoothly_form_demo_schedule,Mr as smoothly_form_demo_transparent,Nr as smoothly_form_demo_typed,Ur as smoothly_frame,Br as smoothly_icon,Kr as smoothly_icon_demo,tc as smoothly_input,ac as smoothly_input_checkbox,lc as smoothly_input_clear,dc as smoothly_input_color,hc as smoothly_input_color_demo,yc as smoothly_input_date,pc as smoothly_input_date_range,vc as smoothly_input_demo,Sc as smoothly_input_demo_standard,jc as smoothly_input_edit,Ic as smoothly_input_file,Ac as smoothly_input_month,Mc as smoothly_input_price_demo,Pc as smoothly_input_radio,Hc as smoothly_input_radio_item,Wc as smoothly_input_range,Bc as smoothly_input_range_demo,Kc as smoothly_input_reset,Xc as smoothly_input_select,od as smoothly_input_submit,id as smoothly_item,rd as smoothly_label,hd as smoothly_lazy,md as smoothly_load_more,ud as smoothly_modal,gd as smoothly_next_demo,xd as smoothly_next_demo_colspan,Cd as smoothly_next_demo_filler_row_demo,_d as smoothly_next_demo_group,Od as smoothly_next_demo_nested,Dd as smoothly_next_demo_nested_inner,Rd as smoothly_next_demo_simple,Hd as smoothly_next_table,Wd as smoothly_next_table_body,Gd as smoothly_next_table_cell,eh as smoothly_next_table_demo_filtered,ah as smoothly_next_table_expandable_cell,lh as smoothly_next_table_expandable_row,dh as smoothly_next_table_filler_row,bh as smoothly_next_table_foot,fh as smoothly_next_table_head,kh as smoothly_next_table_row,wh as smoothly_next_table_row_group,zh as smoothly_notification,Th as smoothly_notifier,Oh as smoothly_spinner,Dh as smoothly_submit,Rh as smoothly_summary,Fh as smoothly_tab,Yh as smoothly_table,Vh as smoothly_table_cell,qh as smoothly_table_demo,Xh as smoothly_table_demo_filtered,om as smoothly_table_expandable_cell,im as smoothly_table_expandable_row,rm as smoothly_table_footer,hm as smoothly_table_header,ym as smoothly_table_row,gm as smoothly_table_testing,xm as smoothly_tabs,Cm as smoothly_tabs_demo,_m as smoothly_theme_color,Lm as smoothly_theme_color_variant,Em as smoothly_theme_colors,$m as smoothly_theme_demo,Nm as smoothly_theme_guide,Um as smoothly_theme_picker,Bm as smoothly_toggle,Km as smoothly_toggle_switch,Jm as smoothly_toggle_switch_demo,eb as smoothly_trigger};
2
+ //# sourceMappingURL=p-6d9cf6a6.entry.js.map