@solid-design-system/components 4.2.2 → 4.2.4

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 (369) hide show
  1. package/cdn/chunks/{chunk.6AT7QBRE.js → chunk.2ZCXWR7E.js} +1 -1
  2. package/cdn/chunks/{chunk.AZ5UMKBM.js → chunk.3NTNY2UH.js} +1 -1
  3. package/cdn/chunks/{chunk.B4OSWTH3.js → chunk.4F44QRA2.js} +1 -1
  4. package/cdn/chunks/{chunk.KME2AZKV.js → chunk.6JTQVPYM.js} +1 -1
  5. package/cdn/chunks/{chunk.CYH3PCNG.js → chunk.6MS466M2.js} +1 -1
  6. package/cdn/chunks/{chunk.CAWYHBD5.js → chunk.75EO36IN.js} +1 -1
  7. package/cdn/chunks/{chunk.M37NO2OL.js → chunk.7QUNXEQK.js} +1 -1
  8. package/cdn/chunks/{chunk.SZMORTHB.js → chunk.7RLRSCXQ.js} +1 -1
  9. package/cdn/chunks/{chunk.CSTIFOAP.js → chunk.7XV3YENR.js} +1 -1
  10. package/cdn/chunks/{chunk.YEIAYEJG.js → chunk.CNH2FBFM.js} +1 -1
  11. package/cdn/chunks/{chunk.PGNO6HV2.js → chunk.DUICZBMU.js} +1 -1
  12. package/cdn/chunks/{chunk.XL3BUCUU.js → chunk.E5MVZNLH.js} +1 -1
  13. package/cdn/chunks/{chunk.GS3QL2OV.js → chunk.EROIZW6X.js} +1 -1
  14. package/cdn/chunks/{chunk.4IFORLFN.js → chunk.EVPT7JK3.js} +1 -1
  15. package/cdn/chunks/{chunk.MLIJR3PY.js → chunk.EZYSQC3V.js} +1 -1
  16. package/cdn/chunks/{chunk.LS53PDIU.js → chunk.FHGJUXJX.js} +1 -1
  17. package/cdn/chunks/{chunk.23IKXZVG.js → chunk.GJMUIRQ2.js} +1 -1
  18. package/cdn/chunks/{chunk.AURWAJH2.js → chunk.GWPLAP5S.js} +1 -1
  19. package/cdn/chunks/{chunk.LRCDXHQL.js → chunk.H6R4QDN2.js} +1 -1
  20. package/cdn/chunks/{chunk.2PA3FZXS.js → chunk.IUWDL2C4.js} +1 -1
  21. package/cdn/chunks/{chunk.QC2KZSKL.js → chunk.J2X6EPLA.js} +1 -1
  22. package/cdn/chunks/{chunk.7SQQCKX5.js → chunk.KMS2GOZX.js} +1 -1
  23. package/cdn/chunks/{chunk.CF4RVCLN.js → chunk.L53H4NRS.js} +1 -1
  24. package/cdn/chunks/{chunk.W72MLMOE.js → chunk.LU3JG42J.js} +1 -1
  25. package/cdn/chunks/{chunk.6ZV2UB2R.js → chunk.LZPV4I3M.js} +1 -1
  26. package/cdn/chunks/{chunk.SRHKA7HE.js → chunk.MQMIFBAP.js} +1 -1
  27. package/cdn/chunks/{chunk.CJNJKNFE.js → chunk.MS332YGT.js} +1 -1
  28. package/cdn/chunks/{chunk.Q5XVXRF6.js → chunk.PY7WAXNJ.js} +1 -1
  29. package/cdn/chunks/{chunk.NMHMV2IL.js → chunk.RLUO45Y5.js} +1 -1
  30. package/cdn/chunks/chunk.SIAG2ZHR.js +1 -0
  31. package/cdn/chunks/{chunk.7CKFXHTE.js → chunk.TU2ZS5QJ.js} +1 -1
  32. package/cdn/chunks/{chunk.UXYQTHQP.js → chunk.U7V4IBUM.js} +1 -1
  33. package/cdn/chunks/{chunk.AXTP2V5W.js → chunk.UPY4N63N.js} +1 -1
  34. package/cdn/chunks/{chunk.QB6ZZCNC.js → chunk.UVMPKHLP.js} +1 -1
  35. package/cdn/chunks/{chunk.CBUVQPJ2.js → chunk.WF3RODYO.js} +1 -1
  36. package/cdn/chunks/{chunk.QQCSHGCT.js → chunk.WGANUF5U.js} +1 -1
  37. package/cdn/chunks/{chunk.IHS6YCNW.js → chunk.WPJYFH2I.js} +1 -1
  38. package/cdn/chunks/{chunk.2BWXU745.js → chunk.WVPFNYMA.js} +1 -1
  39. package/cdn/chunks/{chunk.D6M4QQEX.js → chunk.WVTQW42J.js} +1 -1
  40. package/cdn/chunks/{chunk.VOS6ZTYL.js → chunk.XLPU7RKV.js} +1 -1
  41. package/cdn/chunks/{chunk.UI7L6PX5.js → chunk.ZEAKI2UK.js} +1 -1
  42. package/cdn/chunks/{chunk.M56AX2NQ.js → chunk.ZNGUO7XZ.js} +1 -1
  43. package/cdn/components/accordion/accordion.js +1 -1
  44. package/cdn/components/accordion-group/accordion-group.js +1 -1
  45. package/cdn/components/audio/audio.js +1 -1
  46. package/cdn/components/badge/badge.js +1 -1
  47. package/cdn/components/brandshape/brandshape.js +1 -1
  48. package/cdn/components/button/button.js +1 -1
  49. package/cdn/components/carousel/carousel.js +1 -1
  50. package/cdn/components/checkbox/checkbox.js +1 -1
  51. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  52. package/cdn/components/combobox/combobox.js +1 -1
  53. package/cdn/components/dialog/dialog.js +1 -1
  54. package/cdn/components/divider/divider.js +1 -1
  55. package/cdn/components/drawer/drawer.js +1 -1
  56. package/cdn/components/dropdown/dropdown.js +1 -1
  57. package/cdn/components/expandable/expandable.js +1 -1
  58. package/cdn/components/flipcard/flipcard.js +1 -1
  59. package/cdn/components/input/input.js +1 -1
  60. package/cdn/components/link/link.js +1 -1
  61. package/cdn/components/map-marker/map-marker.js +1 -1
  62. package/cdn/components/navigation-item/navigation-item.js +1 -1
  63. package/cdn/components/notification/notification.js +1 -1
  64. package/cdn/components/optgroup/optgroup.js +1 -1
  65. package/cdn/components/option/option.js +1 -1
  66. package/cdn/components/popup/popup.js +1 -1
  67. package/cdn/components/quickfact/quickfact.js +1 -1
  68. package/cdn/components/radio/radio.js +1 -1
  69. package/cdn/components/radio-button/radio-button.js +1 -1
  70. package/cdn/components/radio-group/radio-group.js +1 -1
  71. package/cdn/components/scrollable/scrollable.js +1 -1
  72. package/cdn/components/select/select.js +1 -1
  73. package/cdn/components/spinner/spinner.js +1 -1
  74. package/cdn/components/step/step.js +1 -1
  75. package/cdn/components/step-group/step-group.js +1 -1
  76. package/cdn/components/switch/switch.js +1 -1
  77. package/cdn/components/tab/tab.js +1 -1
  78. package/cdn/components/tab-group/tab-group.js +1 -1
  79. package/cdn/components/tab-panel/tab-panel.js +1 -1
  80. package/cdn/components/tag/tag.js +1 -1
  81. package/cdn/components/teaser/teaser.js +1 -1
  82. package/cdn/components/teaser-media/teaser-media.js +1 -1
  83. package/cdn/components/textarea/textarea.js +1 -1
  84. package/cdn/components/tooltip/tooltip.js +1 -1
  85. package/cdn/components/video/video.js +1 -1
  86. package/cdn/custom-elements.json +1 -1
  87. package/cdn/solid-components.bundle.js +2 -2
  88. package/cdn/solid-components.iife.js +2 -2
  89. package/cdn/solid-components.js +1 -1
  90. package/cdn/utilities/autocomplete-config.js +1 -1
  91. package/cdn/web-types.json +1 -1
  92. package/cdn-versioned/_components/menu/menu.js +1 -1
  93. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  94. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  95. package/cdn-versioned/chunks/{chunk.6AT7QBRE.js → chunk.2ZCXWR7E.js} +1 -1
  96. package/cdn-versioned/chunks/{chunk.AZ5UMKBM.js → chunk.3NTNY2UH.js} +1 -1
  97. package/cdn-versioned/chunks/{chunk.B4OSWTH3.js → chunk.4F44QRA2.js} +1 -1
  98. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  99. package/cdn-versioned/chunks/{chunk.KME2AZKV.js → chunk.6JTQVPYM.js} +1 -1
  100. package/cdn-versioned/chunks/{chunk.CYH3PCNG.js → chunk.6MS466M2.js} +1 -1
  101. package/cdn-versioned/chunks/{chunk.CAWYHBD5.js → chunk.75EO36IN.js} +1 -1
  102. package/cdn-versioned/chunks/{chunk.M37NO2OL.js → chunk.7QUNXEQK.js} +1 -1
  103. package/cdn-versioned/chunks/{chunk.SZMORTHB.js → chunk.7RLRSCXQ.js} +1 -1
  104. package/cdn-versioned/chunks/chunk.7UYAPC2H.js +1 -1
  105. package/cdn-versioned/chunks/{chunk.CSTIFOAP.js → chunk.7XV3YENR.js} +1 -1
  106. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  107. package/cdn-versioned/chunks/{chunk.YEIAYEJG.js → chunk.CNH2FBFM.js} +2 -2
  108. package/cdn-versioned/chunks/{chunk.PGNO6HV2.js → chunk.DUICZBMU.js} +1 -1
  109. package/cdn-versioned/chunks/{chunk.XL3BUCUU.js → chunk.E5MVZNLH.js} +1 -1
  110. package/cdn-versioned/chunks/{chunk.GS3QL2OV.js → chunk.EROIZW6X.js} +1 -1
  111. package/cdn-versioned/chunks/{chunk.4IFORLFN.js → chunk.EVPT7JK3.js} +4 -4
  112. package/cdn-versioned/chunks/{chunk.MLIJR3PY.js → chunk.EZYSQC3V.js} +1 -1
  113. package/cdn-versioned/chunks/{chunk.LS53PDIU.js → chunk.FHGJUXJX.js} +4 -4
  114. package/cdn-versioned/chunks/chunk.FKNSLPX6.js +1 -1
  115. package/cdn-versioned/chunks/{chunk.23IKXZVG.js → chunk.GJMUIRQ2.js} +1 -1
  116. package/cdn-versioned/chunks/{chunk.AURWAJH2.js → chunk.GWPLAP5S.js} +1 -1
  117. package/cdn-versioned/chunks/{chunk.LRCDXHQL.js → chunk.H6R4QDN2.js} +1 -1
  118. package/cdn-versioned/chunks/chunk.IEPFDM4R.js +1 -1
  119. package/cdn-versioned/chunks/{chunk.2PA3FZXS.js → chunk.IUWDL2C4.js} +1 -1
  120. package/cdn-versioned/chunks/{chunk.QC2KZSKL.js → chunk.J2X6EPLA.js} +1 -1
  121. package/cdn-versioned/chunks/{chunk.7SQQCKX5.js → chunk.KMS2GOZX.js} +1 -1
  122. package/cdn-versioned/chunks/{chunk.CF4RVCLN.js → chunk.L53H4NRS.js} +1 -1
  123. package/cdn-versioned/chunks/{chunk.W72MLMOE.js → chunk.LU3JG42J.js} +1 -1
  124. package/cdn-versioned/chunks/{chunk.6ZV2UB2R.js → chunk.LZPV4I3M.js} +1 -1
  125. package/cdn-versioned/chunks/{chunk.SRHKA7HE.js → chunk.MQMIFBAP.js} +1 -1
  126. package/cdn-versioned/chunks/{chunk.CJNJKNFE.js → chunk.MS332YGT.js} +1 -1
  127. package/cdn-versioned/chunks/{chunk.Q5XVXRF6.js → chunk.PY7WAXNJ.js} +1 -1
  128. package/cdn-versioned/chunks/{chunk.NMHMV2IL.js → chunk.RLUO45Y5.js} +2 -2
  129. package/cdn-versioned/chunks/chunk.SIAG2ZHR.js +1 -0
  130. package/cdn-versioned/chunks/chunk.SLT75PJ7.js +1 -1
  131. package/cdn-versioned/chunks/{chunk.7CKFXHTE.js → chunk.TU2ZS5QJ.js} +4 -4
  132. package/cdn-versioned/chunks/chunk.TW2X7LLC.js +1 -1
  133. package/cdn-versioned/chunks/{chunk.UXYQTHQP.js → chunk.U7V4IBUM.js} +1 -1
  134. package/cdn-versioned/chunks/{chunk.AXTP2V5W.js → chunk.UPY4N63N.js} +1 -1
  135. package/cdn-versioned/chunks/{chunk.QB6ZZCNC.js → chunk.UVMPKHLP.js} +1 -1
  136. package/cdn-versioned/chunks/chunk.VVV2SCQ6.js +1 -1
  137. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  138. package/cdn-versioned/chunks/{chunk.CBUVQPJ2.js → chunk.WF3RODYO.js} +1 -1
  139. package/cdn-versioned/chunks/{chunk.QQCSHGCT.js → chunk.WGANUF5U.js} +2 -2
  140. package/cdn-versioned/chunks/{chunk.IHS6YCNW.js → chunk.WPJYFH2I.js} +1 -1
  141. package/cdn-versioned/chunks/{chunk.2BWXU745.js → chunk.WVPFNYMA.js} +1 -1
  142. package/cdn-versioned/chunks/{chunk.D6M4QQEX.js → chunk.WVTQW42J.js} +1 -1
  143. package/cdn-versioned/chunks/chunk.X77YGX4O.js +1 -1
  144. package/cdn-versioned/chunks/{chunk.VOS6ZTYL.js → chunk.XLPU7RKV.js} +1 -1
  145. package/cdn-versioned/chunks/{chunk.UI7L6PX5.js → chunk.ZEAKI2UK.js} +2 -2
  146. package/cdn-versioned/chunks/{chunk.M56AX2NQ.js → chunk.ZNGUO7XZ.js} +1 -1
  147. package/cdn-versioned/chunks/chunk.ZZFQQH27.js +1 -1
  148. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  149. package/cdn-versioned/components/accordion/accordion.js +1 -1
  150. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  151. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  152. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  153. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  154. package/cdn-versioned/components/audio/audio.js +1 -1
  155. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  156. package/cdn-versioned/components/badge/badge.js +1 -1
  157. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  158. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  159. package/cdn-versioned/components/button/button.d.ts +1 -1
  160. package/cdn-versioned/components/button/button.js +1 -1
  161. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  162. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  163. package/cdn-versioned/components/carousel/carousel.js +1 -1
  164. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  165. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  166. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  167. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  168. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  169. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  170. package/cdn-versioned/components/combobox/combobox.js +1 -1
  171. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  172. package/cdn-versioned/components/dialog/dialog.js +1 -1
  173. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  174. package/cdn-versioned/components/divider/divider.js +1 -1
  175. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  176. package/cdn-versioned/components/drawer/drawer.js +1 -1
  177. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  178. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  179. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  180. package/cdn-versioned/components/expandable/expandable.js +1 -1
  181. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  182. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  183. package/cdn-versioned/components/header/header.d.ts +1 -1
  184. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  185. package/cdn-versioned/components/include/include.d.ts +1 -1
  186. package/cdn-versioned/components/input/input.d.ts +1 -1
  187. package/cdn-versioned/components/input/input.js +1 -1
  188. package/cdn-versioned/components/link/link.d.ts +1 -1
  189. package/cdn-versioned/components/link/link.js +1 -1
  190. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  191. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  192. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  193. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  194. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  195. package/cdn-versioned/components/notification/notification.js +1 -1
  196. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  197. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  198. package/cdn-versioned/components/option/option.d.ts +1 -1
  199. package/cdn-versioned/components/option/option.js +1 -1
  200. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  201. package/cdn-versioned/components/popup/popup.js +1 -1
  202. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  203. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  204. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  205. package/cdn-versioned/components/radio/radio.js +1 -1
  206. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  207. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  208. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  209. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  210. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  211. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  212. package/cdn-versioned/components/select/select.d.ts +4 -4
  213. package/cdn-versioned/components/select/select.js +1 -1
  214. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  215. package/cdn-versioned/components/spinner/spinner.js +1 -1
  216. package/cdn-versioned/components/step/step.d.ts +1 -1
  217. package/cdn-versioned/components/step/step.js +1 -1
  218. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  219. package/cdn-versioned/components/step-group/step-group.js +1 -1
  220. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  221. package/cdn-versioned/components/switch/switch.js +1 -1
  222. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  223. package/cdn-versioned/components/tab/tab.js +1 -1
  224. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  225. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  226. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  227. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  228. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  229. package/cdn-versioned/components/tag/tag.js +1 -1
  230. package/cdn-versioned/components/teaser/teaser.js +1 -1
  231. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  232. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  233. package/cdn-versioned/components/textarea/textarea.js +1 -1
  234. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  235. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  236. package/cdn-versioned/components/video/video.d.ts +1 -1
  237. package/cdn-versioned/components/video/video.js +1 -1
  238. package/cdn-versioned/custom-elements.json +202 -202
  239. package/cdn-versioned/internal/form.js +3 -3
  240. package/cdn-versioned/solid-components.bundle.js +16 -16
  241. package/cdn-versioned/solid-components.css +2 -2
  242. package/cdn-versioned/solid-components.iife.js +16 -16
  243. package/cdn-versioned/solid-components.js +1 -1
  244. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  245. package/cdn-versioned/vscode.html-custom-data.json +80 -80
  246. package/cdn-versioned/web-types.json +137 -137
  247. package/dist/chunks/{chunk.NXMLWQ4F.js → chunk.DLQHVF36.js} +1 -1
  248. package/dist/chunks/{chunk.UWKWJ6WX.js → chunk.XQ7I46XG.js} +1 -1
  249. package/dist/components/checkbox/checkbox.js +1 -1
  250. package/dist/components/radio-group/radio-group.js +1 -1
  251. package/dist/custom-elements.json +1 -1
  252. package/dist/solid-components.js +5 -5
  253. package/dist/web-types.json +1 -1
  254. package/dist-versioned/_components/menu/menu.js +1 -1
  255. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  256. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  257. package/dist-versioned/chunks/chunk.33QCSKQD.js +1 -1
  258. package/dist-versioned/chunks/chunk.5U42A4N2.js +1 -1
  259. package/dist-versioned/chunks/chunk.65GBG62N.js +2 -2
  260. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  261. package/dist-versioned/chunks/chunk.6Q2FPQCD.js +5 -5
  262. package/dist-versioned/chunks/chunk.AEYAUOW5.js +2 -2
  263. package/dist-versioned/chunks/chunk.AQOV7CSX.js +3 -3
  264. package/dist-versioned/chunks/chunk.DKDBS6OJ.js +9 -9
  265. package/dist-versioned/chunks/{chunk.NXMLWQ4F.js → chunk.DLQHVF36.js} +13 -13
  266. package/dist-versioned/chunks/chunk.DQPMDZDZ.js +5 -5
  267. package/dist-versioned/chunks/chunk.F27JSEQZ.js +5 -5
  268. package/dist-versioned/chunks/chunk.F2TZ6DNQ.js +29 -29
  269. package/dist-versioned/chunks/chunk.FG4KLSVA.js +4 -4
  270. package/dist-versioned/chunks/chunk.GEIIXN6O.js +3 -3
  271. package/dist-versioned/chunks/chunk.GXOBJN4Z.js +5 -5
  272. package/dist-versioned/chunks/chunk.I44BFH6N.js +2 -2
  273. package/dist-versioned/chunks/chunk.I6LLIF3A.js +5 -5
  274. package/dist-versioned/chunks/chunk.IHJUIKE5.js +2 -2
  275. package/dist-versioned/chunks/chunk.IHKHCZDI.js +2 -2
  276. package/dist-versioned/chunks/chunk.JCZYHLLG.js +1 -1
  277. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  278. package/dist-versioned/chunks/chunk.LM7G2MP2.js +1 -1
  279. package/dist-versioned/chunks/chunk.LT6DJYQW.js +2 -2
  280. package/dist-versioned/chunks/chunk.LTMUP2IF.js +1 -1
  281. package/dist-versioned/chunks/chunk.M4CPDAKC.js +1 -1
  282. package/dist-versioned/chunks/chunk.MM7UZ56N.js +13 -13
  283. package/dist-versioned/chunks/chunk.MPC4NJ7T.js +2 -2
  284. package/dist-versioned/chunks/chunk.MUTJR3Y5.js +2 -2
  285. package/dist-versioned/chunks/chunk.NKQ5TMZU.js +1 -1
  286. package/dist-versioned/chunks/chunk.NVGI6WK4.js +3 -3
  287. package/dist-versioned/chunks/chunk.OED6NJWG.js +26 -26
  288. package/dist-versioned/chunks/chunk.OVXTOIRH.js +1 -1
  289. package/dist-versioned/chunks/chunk.PHOL2FZ7.js +2 -2
  290. package/dist-versioned/chunks/chunk.PY2NXO6G.js +1 -1
  291. package/dist-versioned/chunks/chunk.Q2OO67VT.js +2 -2
  292. package/dist-versioned/chunks/chunk.QINFB4CI.js +3 -3
  293. package/dist-versioned/chunks/chunk.R7F4MWPK.js +2 -2
  294. package/dist-versioned/chunks/chunk.SL7UXNEP.js +6 -6
  295. package/dist-versioned/chunks/chunk.SUVILVZH.js +1 -1
  296. package/dist-versioned/chunks/chunk.TA2OGXIC.js +1 -1
  297. package/dist-versioned/chunks/chunk.THT3CJM5.js +1 -1
  298. package/dist-versioned/chunks/chunk.UEKILTQF.js +2 -2
  299. package/dist-versioned/chunks/chunk.UGILZRQF.js +5 -5
  300. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  301. package/dist-versioned/chunks/chunk.UTL7JKFI.js +6 -6
  302. package/dist-versioned/chunks/chunk.V27Y42MG.js +2 -2
  303. package/dist-versioned/chunks/chunk.VAA7NUXP.js +2 -2
  304. package/dist-versioned/chunks/chunk.VYPTEJCW.js +2 -2
  305. package/dist-versioned/chunks/chunk.WZK6B3UV.js +11 -11
  306. package/dist-versioned/chunks/chunk.X27M4U7I.js +1 -1
  307. package/dist-versioned/chunks/{chunk.UWKWJ6WX.js → chunk.XQ7I46XG.js} +4 -4
  308. package/dist-versioned/chunks/chunk.XS43N4DL.js +2 -2
  309. package/dist-versioned/chunks/chunk.YHVAW367.js +1 -1
  310. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  311. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  312. package/dist-versioned/components/animation/animation.d.ts +1 -1
  313. package/dist-versioned/components/audio/audio.d.ts +1 -1
  314. package/dist-versioned/components/badge/badge.d.ts +1 -1
  315. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  316. package/dist-versioned/components/button/button.d.ts +1 -1
  317. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  318. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  319. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  320. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  321. package/dist-versioned/components/checkbox/checkbox.js +1 -1
  322. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  323. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  324. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  325. package/dist-versioned/components/divider/divider.d.ts +1 -1
  326. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  327. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  328. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  329. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  330. package/dist-versioned/components/header/header.d.ts +1 -1
  331. package/dist-versioned/components/icon/icon.d.ts +1 -1
  332. package/dist-versioned/components/include/include.d.ts +1 -1
  333. package/dist-versioned/components/input/input.d.ts +1 -1
  334. package/dist-versioned/components/link/link.d.ts +1 -1
  335. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  336. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  337. package/dist-versioned/components/notification/notification.d.ts +1 -1
  338. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  339. package/dist-versioned/components/option/option.d.ts +1 -1
  340. package/dist-versioned/components/popup/popup.d.ts +1 -1
  341. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  342. package/dist-versioned/components/radio/radio.d.ts +1 -1
  343. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  344. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  345. package/dist-versioned/components/radio-group/radio-group.js +1 -1
  346. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  347. package/dist-versioned/components/select/select.d.ts +4 -4
  348. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  349. package/dist-versioned/components/step/step.d.ts +1 -1
  350. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  351. package/dist-versioned/components/switch/switch.d.ts +1 -1
  352. package/dist-versioned/components/tab/tab.d.ts +1 -1
  353. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  354. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  355. package/dist-versioned/components/tag/tag.d.ts +1 -1
  356. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  357. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  358. package/dist-versioned/components/video/video.d.ts +1 -1
  359. package/dist-versioned/custom-elements.json +202 -202
  360. package/dist-versioned/internal/form.js +3 -3
  361. package/dist-versioned/solid-components.css +2 -2
  362. package/dist-versioned/solid-components.js +5 -5
  363. package/dist-versioned/vscode.html-custom-data.json +80 -80
  364. package/dist-versioned/web-types.json +137 -137
  365. package/package.json +10 -10
  366. package/cdn/chunks/chunk.FG4AYCVI.js +0 -1
  367. package/cdn-versioned/chunks/chunk.FG4AYCVI.js +0 -1
  368. /package/cdn/chunks/{chunk.TWQVHGYD.js → chunk.26V4EXHB.js} +0 -0
  369. /package/cdn-versioned/chunks/{chunk.TWQVHGYD.js → chunk.26V4EXHB.js} +0 -0
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.4IFORLFN.js";import"../../chunks/chunk.D6M4QQEX.js";import"../../chunks/chunk.2BWXU745.js";import"../../chunks/chunk.D7TMPF3D.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.65NSSTJE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.A3DKF5BY.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.ZZFQQH27.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.SNS2IHBI.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.EFLL7VXU.js";import"../../chunks/chunk.RQYP7MH5.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.EVPT7JK3.js";import"../../chunks/chunk.WVTQW42J.js";import"../../chunks/chunk.WVPFNYMA.js";import"../../chunks/chunk.D7TMPF3D.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.65NSSTJE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.A3DKF5BY.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.ZZFQQH27.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.SNS2IHBI.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.EFLL7VXU.js";import"../../chunks/chunk.RQYP7MH5.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.2PA3FZXS.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.IUWDL2C4.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.W72MLMOE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.LU3JG42J.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.CJNJKNFE.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.MS332YGT.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.UI7L6PX5.js";import"../../chunks/chunk.5CK64GWQ.js";import"../../chunks/chunk.D7TMPF3D.js";import"../../chunks/chunk.65NSSTJE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.ZEAKI2UK.js";import"../../chunks/chunk.5CK64GWQ.js";import"../../chunks/chunk.D7TMPF3D.js";import"../../chunks/chunk.65NSSTJE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.KME2AZKV.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.6JTQVPYM.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.6ZV2UB2R.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.LZPV4I3M.js";import"../../chunks/chunk.3L472FD4.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.IHS6YCNW.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.WPJYFH2I.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.D6M4QQEX.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.WVTQW42J.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.5ZILM4TA.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.QC2KZSKL.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.J2X6EPLA.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.Q5XVXRF6.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.PY7WAXNJ.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.PGNO6HV2.js";import"../../chunks/chunk.5CK64GWQ.js";import"../../chunks/chunk.D7TMPF3D.js";import"../../chunks/chunk.65NSSTJE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.DUICZBMU.js";import"../../chunks/chunk.5CK64GWQ.js";import"../../chunks/chunk.D7TMPF3D.js";import"../../chunks/chunk.65NSSTJE.js";import"../../chunks/chunk.HE2LNCWW.js";import"../../chunks/chunk.SPDB3L7V.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.NMHMV2IL.js";import"../../chunks/chunk.2BWXU745.js";import"../../chunks/chunk.A3DKF5BY.js";import"../../chunks/chunk.RQYP7MH5.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.RLUO45Y5.js";import"../../chunks/chunk.WVPFNYMA.js";import"../../chunks/chunk.A3DKF5BY.js";import"../../chunks/chunk.RQYP7MH5.js";import"../../chunks/chunk.KLRPP4NQ.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.TNPIUMKG.js";import"../../chunks/chunk.2KVQZ6AF.js";import"../../chunks/chunk.MT6JRSNW.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.XL3BUCUU.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.TWQVHGYD.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.E5MVZNLH.js";import"../../chunks/chunk.6HO6CE4A.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.VVV2SCQ6.js";import"../../chunks/chunk.IRWHG2Q4.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -16981,7 +16981,7 @@
16981
16981
  "package": {
16982
16982
  "name": "@solid-design-system/components",
16983
16983
  "description": "Solid Design System: Components",
16984
- "version": "4.2.2",
16984
+ "version": "4.2.4",
16985
16985
  "author": "Union Investment",
16986
16986
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
16987
16987
  "license": "MIT"
@@ -108,7 +108,7 @@ var tr=Object.defineProperty,go=Object.defineProperties,vo=Object.getOwnProperty
108
108
  disabled:text-neutral-500`,cta:`text-white ${this.visuallyDisabled?"bg-neutral-500 hover:bg-neutral-500 active:bg-neutral-500":"bg-accent-500 border-transparent hover:bg-accent-550 active:bg-accent-700"}
109
109
  ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${E(t?void 0:this.disabled)}" type="${E(t?void 0:this.type)}" title="${this.title}" name="${E(t?void 0:this.name)}" value="${E(t?void 0:this.value)}" href="${E(t?this.href:void 0)}" target="${E(t?this.target:void 0)}" download="${E(t?this.download:void 0)}" rel="${E(t&&this.target?"noreferrer noopener":void 0)}" role="${E(t?void 0:"button")}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${c("flex flex-auto items-center pointer-events-none",r["icon-only"]&&"hidden",this.loading&&"invisible",r["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${c(r["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${c("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",r["icon-only"]&&"hidden",r["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?P`<sd-spinner class="${c("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};U.styles=[...m.styles,v`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/2)}`],o([g("a, button")],U.prototype,"button",2),o([Ke({selector:"sd-icon"})],U.prototype,"_iconsInDefaultSlot",2),o([C()],U.prototype,"invalid",2),o([l()],U.prototype,"title",2),o([l({reflect:!0})],U.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],U.prototype,"inverted",2),o([l({reflect:!0})],U.prototype,"size",2),o([l({type:Boolean,reflect:!0})],U.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],U.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],U.prototype,"loading",2),o([l()],U.prototype,"type",2),o([l()],U.prototype,"name",2),o([l()],U.prototype,"value",2),o([l()],U.prototype,"href",2),o([l()],U.prototype,"target",2),o([l()],U.prototype,"download",2),o([l()],U.prototype,"form",2),o([l({attribute:"formaction"})],U.prototype,"formAction",2),o([l({attribute:"formenctype"})],U.prototype,"formEnctype",2),o([l({attribute:"formmethod"})],U.prototype,"formMethod",2),o([l({attribute:"formnovalidate",type:Boolean})],U.prototype,"formNoValidate",2),o([l({attribute:"formtarget"})],U.prototype,"formTarget",2),o([w("disabled",{waitUntilFirstUpdate:!0})],U.prototype,"handleDisabledChange",1),U=o([y("sd-button")],U);var Fi=class{constructor(i,t){this.timerId=0;this.activeInteractions=0;this.paused=!1;this.stopped=!0;this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())};this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())};i.addController(this),this.host=i,this.tickCallback=t}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(i){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},i)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};function Ts(s,i,t){let e=r=>Object.is(r,-0)?0:r;return s<i?e(i):s>t?e(t):e(s)}function*Ls(s,i){if(s!==void 0){let t=0;for(let e of s)yield i(e,t++)}}function*zs(s,i,t=1){let e=i===void 0?0:s;i!=null||(i=s);for(let r=e;t>0?r<i:i<r;r+=t)yield r}var As=Symbol(),Bi=s=>(i,t,e)=>{let r=e.value;e.value=function(...a){clearTimeout(this[As]),this[As]=window.setTimeout(()=>{r.apply(this,a)},s)}};var ci=class{constructor(i){this.pointers=new Set;this.dragging=!1;this.scrolling=!1;this.mouseDragging=!1;this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate()),this.handleScrollEnd()};this.handlePointerDown=i=>{if(i.pointerType==="touch")return;this.pointers.add(i.pointerId),this.mouseDragging&&!this.dragging&&i.button===0&&(i.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove))};this.handlePointerMove=i=>{let t=this.host.scrollContainer,e=!!i.movementX||!!i.movementY;!this.dragging&&e?(t.setPointerCapture(i.pointerId),this.handleDragStart()):t.hasPointerCapture(i.pointerId)&&this.handleDrag(i)};this.handlePointerUp=i=>{this.pointers.delete(i.pointerId),this.host.scrollContainer.releasePointerCapture(i.pointerId),this.pointers.size===0&&this.handleDragEnd()};this.handleTouchEnd=i=>{for(let t of i.changedTouches)this.pointers.delete(t.identifier)};this.handleTouchStart=i=>{for(let t of i.touches)this.pointers.add(t.identifier)};this.host=i,i.addController(this)}async hostConnected(){let i=this.host;await i.updateComplete;let t=i.scrollContainer;t.addEventListener("scroll",this.handleScroll,{passive:!0}),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointerup",this.handlePointerUp),t.addEventListener("pointercancel",this.handlePointerUp),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),t.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){let t=this.host.scrollContainer;t.removeEventListener("scroll",this.handleScroll),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointerup",this.handlePointerUp),t.removeEventListener("pointercancel",this.handlePointerUp),t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd)}handleScrollEnd(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}handleDragStart(){let i=this.host;this.dragging=!0,i.scrollContainer.style.setProperty("scroll-snap-type","unset"),i.requestUpdate()}handleDrag(i){this.host.scrollContainer.scrollBy({left:-i.movementX,top:-i.movementY})}async handleDragEnd(){let i=this.host,t=i.scrollContainer;t.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;let e=t.scrollLeft,r=t.scrollTop;t.style.removeProperty("scroll-snap-type");let a=t.scrollLeft,n=t.scrollTop;t.style.setProperty("scroll-snap-type","unset"),t.scrollTo({left:e,top:r,behavior:"auto"}),t.scrollTo({left:a,top:n,behavior:ai()?"auto":"smooth"}),this.scrolling&&await R(t,"scrollend"),t.style.removeProperty("scroll-snap-type"),i.requestUpdate()}};o([Bi(100)],ci.prototype,"handleScrollEnd",1);var ne=class extends m{static isCarouselItem(i){return i instanceof Element&&i.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return p`<slot></slot>`}};ne.styles=[...m.styles,v`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`],ne=o([y("sd-carousel-item")],ne);var j=class extends m{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Fi(this,()=>this.next());this.scrollController=new ci(this);this.slides=this.getElementsByTagName("sd-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new F(this);this.userInteracted=!1;this.handleUserInteraction=()=>{this.userInteracted=!0};this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(a=>ne.isCarouselItem(a)&&!a.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel")),["click","keydown"].forEach(e=>this.addEventListener(e,this.handleUserInteraction));let t=new IntersectionObserver(e=>{e.forEach(r=>{this.intersectionObserverEntries.set(r.target,r);let a=r.target;a.toggleAttribute("inert",!r.isIntersecting),a.classList.toggle("--in-view",r.isIntersecting),a.setAttribute("aria-hidden",r.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach(e=>{this.intersectionObserverEntries.set(e.target,e)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),["click","keydown"].forEach(t=>this.removeEventListener(t,this.handleUserInteraction))}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,a){return Math.ceil((t-r)/a)-Math.ceil((t-r-e)/a)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter(e=>!t||!e.hasAttribute("data-clone"))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=t.target,r=this.localize.dir()==="rtl",a=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",d=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),d&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),a&&this.updateComplete.then(()=>{var u;let h=(u=this.shadowRoot)==null?void 0:u.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(a=>a.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let a=Number(r.target.getAttribute("data-clone"));this.goToSlide(a,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),(t=this.autoplayControls)==null||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","true"))}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,a)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",a+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop){let r=this.slidesPerPage,a=t.slice(-r),n=t.slice(0,r);a.reverse().forEach((d,h)=>{let u=d.cloneNode(!0);u.setAttribute("data-clone",String(t.length-h-1)),this.prepend(u)}),n.forEach((d,h)=>{let u=d.cloneNode(!0);u.setAttribute("data-clone",String(h)),this.append(u)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((a,n)=>{a.classList.toggle("--is-active",n===this.activeSlide)});let e=this.getCurrentPage(t.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==e&&(this.currentPage=e),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}});let r=this.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>r&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,a)=>{Math.abs(a-e)%e===0?r.style.removeProperty("scroll-snap-align"):r.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(t="smooth"){let e=this.activeSlide||this.activeSlide-this.slidesPerMove,r=!1;for(;!r&&e>0;)e-=1,r=Math.abs(e-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,t):this.goToSlide(e,t)}next(t="smooth"){this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,t);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){let{slidesPerPage:r,loop:a,scrollContainer:n}=this,d=this.getSlides(),h=this.getSlides({excludeClones:!1}),u=(t+d.length)%d.length;this.activeSlide=u;let f=Ts(t+(a?r:0),0,h.length+1),b=h[f],k=n.getBoundingClientRect(),x=b.getBoundingClientRect();if(n.scrollTo({left:x.left-k.left+n.scrollLeft,top:x.top-k.top+n.scrollTop,behavior:ai()?"auto":e}),this.userInteracted&&!this.loop){let $=this.activeSlide===d.length-1||this.activeSlide===this.slides.length-this.slidesPerPage,z=this.activeSlide===0;$?this.previousButton.focus({preventScroll:!0}):z&&this.nextButton.focus({preventScroll:!0})}}render(){let{scrollController:t,slidesPerMove:e}=this,r=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),a=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||a>1,d=this.loop||a<r,h=this.localize.dir()==="ltr";return p`<div part="base" class="${c("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${c(`carousel__slides mb-6
110
110
  grid max-h-full w-full items-center justify-items-center overflow-auto`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",`overscroll-x-contain grid-flow-col auto-rows-[100%]
111
- snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?p`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${Ls(zs(r),u=>{let f=u+1===a;return p`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${b=>{this.goToSlide(u*e),this.unblockAutoplay(b,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:p`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${u=>{this.pausedAutoplay=!this.pausedAutoplay,u.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};j.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],j.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],j.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],j.prototype,"nextButton",2),o([us('[part~="pagination-item"]')],j.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],j.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],j.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],j.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],j.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],j.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],j.prototype,"slidesPerMove",2),o([g("slot:not([name])")],j.prototype,"defaultSlot",2),o([g(".carousel__slides")],j.prototype,"scrollContainer",2),o([g(".carousel__pagination")],j.prototype,"paginationContainer",2),o([C()],j.prototype,"activeSlide",2),o([C()],j.prototype,"currentPage",2),o([C()],j.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],j.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],j.prototype,"initializeSlides",1),o([w("activeSlide")],j.prototype,"handleSlideChange",1),o([w("slidesPerMove")],j.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],j.prototype,"handleAutoplayChange",1),j=o([y("sd-carousel")],j);var Mt=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(a===u){let b=h.converter||ve,x=(typeof b=="function"?b:(f=b==null?void 0:b.fromAttribute)!=null?f:ve.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:o0}=es;var Vi=s=>s.strings===void 0;var Sn={},Os=(s,i=Sn)=>s._$AH=i;var le=oe(class extends we{constructor(s){if(super(s),s.type!==Lt.PROPERTY&&s.type!==Lt.ATTRIBUTE&&s.type!==Lt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Vi(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===bt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Lt.PROPERTY){if(i===t[e])return bt}else if(s.type===Lt.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return bt}else if(s.type===Lt.ATTRIBUTE&&t.getAttribute(e)===i+"")return bt;return Os(s),i}});var Q=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return p`<label part="base" class="${c("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${E(this.value)}" .indeterminate="${le(this.indeterminate)}" .checked="${le(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Q.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([g('input[type="checkbox"]')],Q.prototype,"input",2),o([g("#invalid-message")],Q.prototype,"invalidMessage",2),o([l()],Q.prototype,"title",2),o([l()],Q.prototype,"name",2),o([l()],Q.prototype,"value",2),o([l({reflect:!0})],Q.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"indeterminate",2),o([Mt("checked")],Q.prototype,"defaultChecked",2),o([l({reflect:!0})],Q.prototype,"form",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"required",2),o([C()],Q.prototype,"showInvalidStyle",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleStateChange",1),Q=o([y("sd-checkbox")],Q);var zt=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,d=this.hasSlotController.test("tooltip");return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${e||d?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${d?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${n}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>`}};zt.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],zt.prototype,"size",2),o([l({reflect:!0})],zt.prototype,"orientation",2),o([l()],zt.prototype,"label",2),o([l({attribute:"help-text"})],zt.prototype,"helpText",2),o([w("size",{waitUntilFirstUpdate:!0})],zt.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],zt.prototype,"handleInvalid",1),zt=o([y("sd-checkbox-group")],zt);var Ms=s=>s;var Er=s=>Array.from(s.assignedElements({flatten:!0})),Hn=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),In=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",Ds=s=>s.map(Hn),_s=s=>s.filter(In),Ri=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function Ss(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Cr=new Set;function Pn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function De(s){if(Cr.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Pn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function _e(s){Cr.delete(s),Cr.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Rt(s,i,t="vertical",e="smooth"){let r=Ss(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<u?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var Jt=Math.min,yt=Math.max,pi=Math.round,ui=Math.floor,Ut=s=>({x:s,y:s}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"},Bn={start:"end",end:"start"};function Ni(s,i,t){return yt(s,Jt(i,t))}function Se(s,i){return typeof s=="function"?s(i):s}function de(s){return s.split("-")[0]}function He(s){return s.split("-")[1]}function $r(s){return s==="x"?"y":"x"}function qi(s){return s==="y"?"height":"width"}function Ee(s){return["top","bottom"].includes(de(s))?"y":"x"}function Ki(s){return $r(Ee(s))}function Hs(s,i,t){t===void 0&&(t=!1);let e=He(s),r=Ki(s),a=qi(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=hi(n)),[n,hi(n)]}function Is(s){let i=hi(s);return[Ui(s),i,Ui(i)]}function Ui(s){return s.replace(/start|end/g,i=>Bn[i])}function Vn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Ps(s,i,t,e){let r=He(s),a=Vn(de(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ui)))),a}function hi(s){return s.replace(/left|right|bottom|top/g,i=>Fn[i])}function Rn(s){return O({top:0,right:0,bottom:0,left:0},s)}function Tr(s){return typeof s!="number"?Rn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Fs(s,i,t){let{reference:e,floating:r}=s,a=Ee(i),n=Ki(i),d=qi(n),h=de(i),u=a==="y",f=e.x+e.width/2-r.width/2,b=e.y+e.height/2-r.height/2,k=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:b};break;case"left":x={x:e.x-r.width,y:b};break;default:x={x:e.x,y:e.y}}switch(He(i)){case"start":x[n]-=k*(t&&u?-1:1);break;case"end":x[n]+=k*(t&&u?-1:1);break}return x}var Bs=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:b}=Fs(u,e,h),k=e,x={},$=0;for(let z=0;z<d.length;z++){let{name:H,fn:_}=d[z],{x:N,y:q,data:J,reset:G}=await _({x:f,y:b,initialPlacement:e,placement:k,strategy:r,middlewareData:x,rects:u,platform:n,elements:{reference:s,floating:i}});f=N!=null?N:f,b=q!=null?q:b,x=it(O({},x),{[H]:O(O({},x[H]),J)}),G&&$<=50&&($++,typeof G=="object"&&(G.placement&&(k=G.placement),G.rects&&(u=G.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):G.rects),{x:f,y:b}=Fs(u,k,h)),z=-1)}return{x:f,y:b,placement:k,strategy:r,middlewareData:x}};async function ji(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:b="floating",altBoundary:k=!1,padding:x=0}=Se(i,s),$=Tr(x),H=d[k?b==="floating"?"reference":"floating":b],_=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(H)))==null||t?H:H.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:u,rootBoundary:f,strategy:h})),N=b==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,q=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),J=await(a.isElement==null?void 0:a.isElement(q))?await(a.getScale==null?void 0:a.getScale(q))||{x:1,y:1}:{x:1,y:1},G=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:q,strategy:h}):N);return{top:(_.top-G.top+$.top)/J.y,bottom:(G.bottom-_.bottom+$.bottom)/J.y,left:(_.left-G.left+$.left)/J.x,right:(G.right-_.right+$.right)/J.x}}var Vs=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:u,padding:f=0}=Se(s,i)||{};if(u==null)return{};let b=Tr(f),k={x:t,y:e},x=Ki(r),$=qi(x),z=await n.getDimensions(u),H=x==="y",_=H?"top":"left",N=H?"bottom":"right",q=H?"clientHeight":"clientWidth",J=a.reference[$]+a.reference[x]-k[x]-a.floating[$],G=k[x]-a.reference[x],Pt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),ft=Pt?Pt[q]:0;(!ft||!await(n.isElement==null?void 0:n.isElement(Pt)))&&(ft=d.floating[q]||a.floating[$]);let ee=J/2-G/2,Zt=ft/2-z[$]/2-1,Ft=Jt(b[_],Zt),ue=Jt(b[N],Zt),Xt=Ft,me=ft-z[$]-ue,Tt=ft/2-z[$]/2+ee,Bt=Ni(Xt,Tt,me),Re=!h.arrow&&He(r)!=null&&Tt!==Bt&&a.reference[$]/2-(Tt<Xt?Ft:ue)-z[$]/2<0,ie=Re?Tt<Xt?Tt-Xt:Tt-me:0;return{[x]:k[x]+ie,data:O({[x]:Bt,centerOffset:Tt-Bt-ie},Re&&{alignmentOffset:ie}),reset:Re}}});var Rs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:u}=i,Tt=Se(s,i),{mainAxis:f=!0,crossAxis:b=!0,fallbackPlacements:k,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:z=!0}=Tt,H=wi(Tt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let _=de(r),N=Ee(d),q=de(d)===d,J=await(h.isRTL==null?void 0:h.isRTL(u.floating)),G=k||(q||!z?[hi(d)]:Is(d)),Pt=$!=="none";!k&&Pt&&G.push(...Ps(d,z,$,J));let ft=[d,...G],ee=await ji(i,H),Zt=[],Ft=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Zt.push(ee[_]),b){let Bt=Hs(r,n,J);Zt.push(ee[Bt[0]],ee[Bt[1]])}if(Ft=[...Ft,{placement:r,overflows:Zt}],!Zt.every(Bt=>Bt<=0)){var ue,Xt;let Bt=(((ue=a.flip)==null?void 0:ue.index)||0)+1,Re=ft[Bt];if(Re)return{data:{index:Bt,overflows:Ft},reset:{placement:Re}};let ie=(Xt=Ft.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,fe)=>Ue.overflows[1]-fe.overflows[1])[0])==null?void 0:Xt.placement;if(!ie)switch(x){case"bestFit":{var me;let Ue=(me=Ft.filter(fe=>{if(Pt){let be=Ee(fe.placement);return be===N||be==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(be=>be>0).reduce((be,bo)=>be+bo,0)]).sort((fe,be)=>fe[1]-be[1])[0])==null?void 0:me[0];Ue&&(ie=Ue);break}case"initialPlacement":ie=d;break}if(r!==ie)return{reset:{placement:ie}}}return{}}}};async function Un(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=de(t),d=He(t),h=Ee(t)==="y",u=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,b=Se(i,s),{mainAxis:k,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:k*u}:{x:k*u,y:x*f}}var Us=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await Un(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:it(O({},h),{placement:n})}}}},Ns=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,H=Se(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:_=>{let{x:N,y:q}=_;return{x:N,y:q}}}}=H,h=wi(H,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},f=await ji(i,h),b=Ee(de(r)),k=$r(b),x=u[k],$=u[b];if(a){let _=k==="y"?"top":"left",N=k==="y"?"bottom":"right",q=x+f[_],J=x-f[N];x=Ni(q,x,J)}if(n){let _=b==="y"?"top":"left",N=b==="y"?"bottom":"right",q=$+f[_],J=$-f[N];$=Ni(q,$,J)}let z=d.fn(it(O({},i),{[k]:x,[b]:$}));return it(O({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[k]:a,[b]:n}}})}}};var qs=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Ft=Se(s,i),{apply:h=()=>{}}=Ft,u=wi(Ft,["apply"]),f=await ji(i,u),b=de(r),k=He(r),x=Ee(r)==="y",{width:$,height:z}=a.floating,H,_;b==="top"||b==="bottom"?(H=b,_=k===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(_=b,H=k==="end"?"top":"bottom");let N=z-f.top-f.bottom,q=$-f.left-f.right,J=Jt(z-f[H],N),G=Jt($-f[_],q),Pt=!i.middlewareData.shift,ft=J,ee=G;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ee=q),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(ft=N),Pt&&!k){let ue=yt(f.left,0),Xt=yt(f.right,0),me=yt(f.top,0),Tt=yt(f.bottom,0);x?ee=$-2*(ue!==0||Xt!==0?ue+Xt:yt(f.left,f.right)):ft=z-2*(me!==0||Tt!==0?me+Tt:yt(f.top,f.bottom))}await h(it(O({},i),{availableWidth:ee,availableHeight:ft}));let Zt=await n.getDimensions(d.floating);return $!==Zt.width||z!==Zt.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window!="undefined"}function Pe(s){return js(s)?(s.nodeName||"").toLowerCase():"#document"}function kt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function Nt(s){var i;return(i=(js(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function js(s){return Yi()?s instanceof Node||s instanceof kt(s).Node:!1}function Dt(s){return Yi()?s instanceof Element||s instanceof kt(s).Element:!1}function qt(s){return Yi()?s instanceof HTMLElement||s instanceof kt(s).HTMLElement:!1}function Ks(s){return!Yi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof kt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=_t(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ys(s){return["table","td","th"].includes(Pe(s))}function mi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Zi(s){let i=Xi(),t=Dt(s)?_t(s):s;return["transform","translate","scale","rotate","perspective"].some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function Zs(s){let i=ce(s);for(;qt(i)&&!Fe(i);){if(Zi(i))return i;if(mi(i))return null;i=ce(i)}return null}function Xi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(Pe(s))}function _t(s){return kt(s).getComputedStyle(s)}function fi(s){return Dt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ce(s){if(Pe(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ks(s)&&s.host||Nt(s);return Ks(i)?i.host:i}function Xs(s){let i=ce(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:qt(i)&&Xe(i)?i:Xs(i)}function Ze(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Xs(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=kt(r);if(a){let d=Wi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?Ze(d):[])}return i.concat(r,Ze(r,[],t))}function Wi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Js(s){let i=_t(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=qt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=pi(t)!==a||pi(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function zr(s){return Dt(s)?s:s.contextElement}function We(s){let i=zr(s);if(!qt(i))return Ut(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=Js(i),n=(a?pi(t.width):t.width)/e,d=(a?pi(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var Nn=Ut(0);function Gs(s){let i=kt(s);return!Xi()||!i.visualViewport?Nn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function qn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==kt(s)?!1:i}function Be(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=zr(s),n=Ut(1);i&&(e?Dt(e)&&(n=We(e)):n=We(s));let d=qn(a,t,e)?Gs(a):Ut(0),h=(r.left+d.x)/n.x,u=(r.top+d.y)/n.y,f=r.width/n.x,b=r.height/n.y;if(a){let k=kt(a),x=e&&Dt(e)?kt(e):e,$=k,z=Wi($);for(;z&&e&&x!==$;){let H=We(z),_=z.getBoundingClientRect(),N=_t(z),q=_.left+(z.clientLeft+parseFloat(N.paddingLeft))*H.x,J=_.top+(z.clientTop+parseFloat(N.paddingTop))*H.y;h*=H.x,u*=H.y,f*=H.x,b*=H.y,h+=q,u+=J,$=kt(z),z=Wi($)}}return Ie({width:f,height:b,x:h,y:u})}function Ar(s,i){let t=fi(s).scrollLeft;return i?i.left+t:Be(Nt(s)).left+t}function to(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Ar(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Kn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=Nt(e),d=i?mi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},u=Ut(1),f=Ut(0),b=qt(e);if((b||!b&&!a)&&((Pe(e)!=="body"||Xe(n))&&(h=fi(e)),qt(e))){let x=Be(e);u=We(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let k=n&&!b&&!a?to(n,h,!0):Ut(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+f.x+k.x,y:t.y*u.y-h.scrollTop*u.y+f.y+k.y}}function jn(s){return Array.from(s.getClientRects())}function Yn(s){let i=Nt(s),t=fi(s),e=s.ownerDocument.body,r=yt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=yt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Ar(s),d=-t.scrollTop;return _t(e).direction==="rtl"&&(n+=yt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Zn(s,i){let t=kt(s),e=Nt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let u=Xi();(!u||u&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Xn(s,i){let t=Be(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=qt(s)?We(s):Ut(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,u=e*a.y;return{width:n,height:d,x:h,y:u}}function Ws(s,i,t){let e;if(i==="viewport")e=Zn(s,t);else if(i==="document")e=Yn(Nt(s));else if(Dt(i))e=Xn(i,t);else{let r=Gs(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function eo(s,i){let t=ce(s);return t===i||!Dt(t)||Fe(t)?!1:_t(t).position==="fixed"||eo(t,i)}function Wn(s,i){let t=i.get(s);if(t)return t;let e=Ze(s,[],!1).filter(d=>Dt(d)&&Pe(d)!=="body"),r=null,a=_t(s).position==="fixed",n=a?ce(s):s;for(;Dt(n)&&!Fe(n);){let d=_t(n),h=Zi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&eo(s,n))?e=e.filter(f=>f!==n):r=d,n=ce(n)}return i.set(s,e),e}function Qn(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?mi(i)?[]:Wn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((u,f)=>{let b=Ws(i,f,r);return u.top=yt(b.top,u.top),u.right=Jt(b.right,u.right),u.bottom=Jt(b.bottom,u.bottom),u.left=yt(b.left,u.left),u},Ws(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Jn(s){let{width:i,height:t}=Js(s);return{width:i,height:t}}function Gn(s,i,t){let e=qt(i),r=Nt(i),a=t==="fixed",n=Be(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Ut(0);if(e||!e&&!a)if((Pe(i)!=="body"||Xe(r))&&(d=fi(i)),e){let k=Be(i,!0,a,i);h.x=k.x+i.clientLeft,h.y=k.y+i.clientTop}else r&&(h.x=Ar(r));let u=r&&!e&&!a?to(r,d):Ut(0),f=n.left+d.scrollLeft-h.x-u.x,b=n.top+d.scrollTop-h.y-u.y;return{x:f,y:b,width:n.width,height:n.height}}function Lr(s){return _t(s).position==="static"}function Qs(s,i){if(!qt(s)||_t(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return Nt(s)===t&&(t=t.ownerDocument.body),t}function io(s,i){let t=kt(s);if(mi(s))return t;if(!qt(s)){let r=ce(s);for(;r&&!Fe(r);){if(Dt(r)&&!Lr(r))return r;r=ce(r)}return t}let e=Qs(s,i);for(;e&&Ys(e)&&Lr(e);)e=Qs(e,i);return e&&Fe(e)&&Lr(e)&&!Zi(e)?t:e||Zs(s)||t}var tl=async function(s){let i=this.getOffsetParent||io,t=this.getDimensions,e=await t(s.floating);return{reference:Gn(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function el(s){return _t(s).direction==="rtl"}var il={convertOffsetParentRelativeRectToViewportRelativeRect:Kn,getDocumentElement:Nt,getClippingRect:Qn,getOffsetParent:io,getElementRects:tl,getClientRects:jn,getDimensions:Jn,getScale:We,isElement:Dt,isRTL:el};function ro(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function rl(s,i){let t=null,e,r=Nt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let u=s.getBoundingClientRect(),{left:f,top:b,width:k,height:x}=u;if(d||i(),!k||!x)return;let $=ui(b),z=ui(r.clientWidth-(f+k)),H=ui(r.clientHeight-(b+x)),_=ui(f),q={rootMargin:-$+"px "+-z+"px "+-H+"px "+-_+"px",threshold:yt(0,Jt(1,h))||1},J=!0;function G(Pt){let ft=Pt[0].intersectionRatio;if(ft!==h){if(!J)return n();ft?n(!1,ft):e=setTimeout(()=>{n(!1,1e-7)},1e3)}ft===1&&!ro(u,s.getBoundingClientRect())&&n(),J=!1}try{t=new IntersectionObserver(G,it(O({},q),{root:r.ownerDocument}))}catch(Pt){t=new IntersectionObserver(G,q)}t.observe(s)}return n(!0),a}function so(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=zr(s),f=r||a?[...u?Ze(u):[],...Ze(i)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});let b=u&&d?rl(u,t):null,k=-1,x=null;n&&(x=new ResizeObserver(_=>{let[N]=_;N&&N.target===u&&x&&(x.unobserve(i),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var q;(q=x)==null||q.observe(i)})),t()}),u&&!h&&x.observe(u),x.observe(i));let $,z=h?Be(s):null;h&&H();function H(){let _=Be(s);z&&!ro(z,_)&&t(),z=_,$=requestAnimationFrame(H)}return t(),()=>{var _;f.forEach(N=>{r&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame($)}}var oo=Us;var ao=Ns,no=Rs,Or=qs;var lo=Vs;var co=(s,i,t)=>{let e=new Map,r=O({platform:il},t),a=it(O({},r.platform),{_c:e});return Bs(s,i,it(O({},r),{platform:a}))};var I=class extends m{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=so(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[oo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Or({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(no({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ao({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Or({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(lo({element:this.arrowEl,padding:this.arrowPadding})),co(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let u=a.arrow.x,f=a.arrow.y,b="",k="",x="",$="";if(this.arrowPlacement==="start"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",k=d?z:"",$=d?"":z}else if(this.arrowPlacement==="end"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";k=d?"":z,$=d?z:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof u=="number"?`${u}px`:"",b=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:b,right:k,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};I.styles=[...m.styles,v`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([g('[part="popup"]')],I.prototype,"popup",2),o([g('[part="arrow"]')],I.prototype,"arrowEl",2),o([l()],I.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],I.prototype,"active",2),o([l({reflect:!0})],I.prototype,"placement",2),o([l({reflect:!0})],I.prototype,"strategy",2),o([l({type:Number})],I.prototype,"distance",2),o([l({type:Number})],I.prototype,"skidding",2),o([l({type:Boolean})],I.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],I.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],I.prototype,"arrowPadding",2),o([l({type:Boolean})],I.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],I.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],I.prototype,"flipFallbackStrategy",2),o([l({type:Object})],I.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],I.prototype,"flipPadding",2),o([l({type:Boolean})],I.prototype,"shift",2),o([l({type:Object})],I.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],I.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],I.prototype,"autoSize",2),o([l()],I.prototype,"sync",2),o([l({type:Object})],I.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],I.prototype,"autoSizePadding",2),I=o([y("sd-popup")],I);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){let t=this.isLink(),e=t?X`a`:X`button`;return P`<${e} part="base" type="${E(t?void 0:"button")}" href="${E(t?this.href:void 0)}" rel="${E(t&&this.target?"noreferrer noopener":void 0)}" target="${E(t?this.target:void 0)}" download="${E(t?this.download:void 0)}" ?disabled="${E(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${E(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?P`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([g("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new F(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=Ms;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Ri(t.value),a=Ri(t.getTextLabel()),n=Ri(e);return r.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
111
+ snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?u=>{this.previous(),this.unblockAutoplay(u,this.previousButton)}:null}"><slot name="previous-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${this.variant==="dot"?p`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${Ls(zs(r),u=>{let f=u+1===a;return p`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",u+1,r)}" @click="${b=>{this.goToSlide(u*e),this.unblockAutoplay(b,this.paginationItems[u])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:p`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?u=>{this.next(),this.unblockAutoplay(u,this.nextButton)}:null}"><slot name="next-icon"><sd-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${u=>{this.pausedAutoplay=!this.pausedAutoplay,u.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};j.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([g('[part~="autoplay-controls"]')],j.prototype,"autoplayControls",2),o([g('[part~="navigation-button--previous"]')],j.prototype,"previousButton",2),o([g('[part~="navigation-button--next"]')],j.prototype,"nextButton",2),o([us('[part~="pagination-item"]')],j.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],j.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],j.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],j.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],j.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],j.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],j.prototype,"slidesPerMove",2),o([g("slot:not([name])")],j.prototype,"defaultSlot",2),o([g(".carousel__slides")],j.prototype,"scrollContainer",2),o([g(".carousel__pagination")],j.prototype,"paginationContainer",2),o([C()],j.prototype,"activeSlide",2),o([C()],j.prototype,"currentPage",2),o([C()],j.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],j.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],j.prototype,"initializeSlides",1),o([w("activeSlide")],j.prototype,"handleSlideChange",1),o([w("slidesPerMove")],j.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],j.prototype,"handleAutoplayChange",1),j=o([y("sd-carousel")],j);var Mt=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),u=typeof h.attribute=="string"?h.attribute:s;if(a===u){let b=h.converter||ve,x=(typeof b=="function"?b:(f=b==null?void 0:b.fromAttribute)!=null?f:ve.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:o0}=es;var Vi=s=>s.strings===void 0;var Sn={},Os=(s,i=Sn)=>s._$AH=i;var le=oe(class extends we{constructor(s){if(super(s),s.type!==Lt.PROPERTY&&s.type!==Lt.ATTRIBUTE&&s.type!==Lt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Vi(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===bt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Lt.PROPERTY){if(i===t[e])return bt}else if(s.type===Lt.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return bt}else if(s.type===Lt.ATTRIBUTE&&t.getAttribute(e)===i+"")return bt;return Os(s),i}});var Q=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false"),this.formControlController.setValidity(t)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return p`<label part="base" class="${c("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${E(this.value)}" .indeterminate="${le(this.indeterminate)}" .checked="${le(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${c("relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4",this.visuallyDisabled?"":"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400",invalid:"border-error group-hover:bg-neutral-200",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[t])}">${this.checked?p`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?p`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};Q.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([g('input[type="checkbox"]')],Q.prototype,"input",2),o([g("#invalid-message")],Q.prototype,"invalidMessage",2),o([l()],Q.prototype,"title",2),o([l()],Q.prototype,"name",2),o([l()],Q.prototype,"value",2),o([l({reflect:!0})],Q.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],Q.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"indeterminate",2),o([Mt("checked")],Q.prototype,"defaultChecked",2),o([l({reflect:!0})],Q.prototype,"form",2),o([l({type:Boolean,reflect:!0})],Q.prototype,"required",2),o([C()],Q.prototype,"showInvalidStyle",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Q.prototype,"handleStateChange",1),Q=o([y("sd-checkbox")],Q);var zt=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"label","help-text");this.size="lg";this.orientation="vertical";this.label="";this.helpText=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:r,n=p`<slot @slotchange="${this.syncCheckboxes}"></slot>`,d=this.hasSlotController.test("tooltip");return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label">${e||d?p`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label> ${d?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${n}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>`}};zt.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],zt.prototype,"size",2),o([l({reflect:!0})],zt.prototype,"orientation",2),o([l()],zt.prototype,"label",2),o([l({attribute:"help-text"})],zt.prototype,"helpText",2),o([w("size",{waitUntilFirstUpdate:!0})],zt.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],zt.prototype,"handleInvalid",1),zt=o([y("sd-checkbox-group")],zt);var Ms=s=>s;var Er=s=>Array.from(s.assignedElements({flatten:!0})),Hn=s=>s.tagName.toLocaleLowerCase()==="sd-option"?s:Array.from(s.querySelectorAll(":scope > sd-option")),In=s=>s.tagName.toLocaleLowerCase()==="sd-optgroup",Ds=s=>s.map(Hn),_s=s=>s.filter(In),Ri=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function Ss(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Cr=new Set;function Pn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function De(s){if(Cr.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Pn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function _e(s){Cr.delete(s),Cr.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Rt(s,i,t="vertical",e="smooth"){let r=Ss(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,u=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<u?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var Jt=Math.min,yt=Math.max,pi=Math.round,ui=Math.floor,Ut=s=>({x:s,y:s}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"},Bn={start:"end",end:"start"};function Ni(s,i,t){return yt(s,Jt(i,t))}function Se(s,i){return typeof s=="function"?s(i):s}function de(s){return s.split("-")[0]}function He(s){return s.split("-")[1]}function $r(s){return s==="x"?"y":"x"}function qi(s){return s==="y"?"height":"width"}function Ee(s){return["top","bottom"].includes(de(s))?"y":"x"}function Ki(s){return $r(Ee(s))}function Hs(s,i,t){t===void 0&&(t=!1);let e=He(s),r=Ki(s),a=qi(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=hi(n)),[n,hi(n)]}function Is(s){let i=hi(s);return[Ui(s),i,Ui(i)]}function Ui(s){return s.replace(/start|end/g,i=>Bn[i])}function Vn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Ps(s,i,t,e){let r=He(s),a=Vn(de(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ui)))),a}function hi(s){return s.replace(/left|right|bottom|top/g,i=>Fn[i])}function Rn(s){return O({top:0,right:0,bottom:0,left:0},s)}function Tr(s){return typeof s!="number"?Rn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Fs(s,i,t){let{reference:e,floating:r}=s,a=Ee(i),n=Ki(i),d=qi(n),h=de(i),u=a==="y",f=e.x+e.width/2-r.width/2,b=e.y+e.height/2-r.height/2,k=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:b};break;case"left":x={x:e.x-r.width,y:b};break;default:x={x:e.x,y:e.y}}switch(He(i)){case"start":x[n]-=k*(t&&u?-1:1);break;case"end":x[n]+=k*(t&&u?-1:1);break}return x}var Bs=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),u=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:b}=Fs(u,e,h),k=e,x={},$=0;for(let z=0;z<d.length;z++){let{name:H,fn:_}=d[z],{x:N,y:q,data:J,reset:G}=await _({x:f,y:b,initialPlacement:e,placement:k,strategy:r,middlewareData:x,rects:u,platform:n,elements:{reference:s,floating:i}});f=N!=null?N:f,b=q!=null?q:b,x=it(O({},x),{[H]:O(O({},x[H]),J)}),G&&$<=50&&($++,typeof G=="object"&&(G.placement&&(k=G.placement),G.rects&&(u=G.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):G.rects),{x:f,y:b}=Fs(u,k,h)),z=-1)}return{x:f,y:b,placement:k,strategy:r,middlewareData:x}};async function ji(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:b="floating",altBoundary:k=!1,padding:x=0}=Se(i,s),$=Tr(x),H=d[k?b==="floating"?"reference":"floating":b],_=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(H)))==null||t?H:H.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:u,rootBoundary:f,strategy:h})),N=b==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,q=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),J=await(a.isElement==null?void 0:a.isElement(q))?await(a.getScale==null?void 0:a.getScale(q))||{x:1,y:1}:{x:1,y:1},G=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:N,offsetParent:q,strategy:h}):N);return{top:(_.top-G.top+$.top)/J.y,bottom:(G.bottom-_.bottom+$.bottom)/J.y,left:(_.left-G.left+$.left)/J.x,right:(G.right-_.right+$.right)/J.x}}var Vs=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:u,padding:f=0}=Se(s,i)||{};if(u==null)return{};let b=Tr(f),k={x:t,y:e},x=Ki(r),$=qi(x),z=await n.getDimensions(u),H=x==="y",_=H?"top":"left",N=H?"bottom":"right",q=H?"clientHeight":"clientWidth",J=a.reference[$]+a.reference[x]-k[x]-a.floating[$],G=k[x]-a.reference[x],Pt=await(n.getOffsetParent==null?void 0:n.getOffsetParent(u)),ft=Pt?Pt[q]:0;(!ft||!await(n.isElement==null?void 0:n.isElement(Pt)))&&(ft=d.floating[q]||a.floating[$]);let ee=J/2-G/2,Zt=ft/2-z[$]/2-1,Ft=Jt(b[_],Zt),ue=Jt(b[N],Zt),Xt=Ft,me=ft-z[$]-ue,Tt=ft/2-z[$]/2+ee,Bt=Ni(Xt,Tt,me),Re=!h.arrow&&He(r)!=null&&Tt!==Bt&&a.reference[$]/2-(Tt<Xt?Ft:ue)-z[$]/2<0,ie=Re?Tt<Xt?Tt-Xt:Tt-me:0;return{[x]:k[x]+ie,data:O({[x]:Bt,centerOffset:Tt-Bt-ie},Re&&{alignmentOffset:ie}),reset:Re}}});var Rs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:u}=i,Tt=Se(s,i),{mainAxis:f=!0,crossAxis:b=!0,fallbackPlacements:k,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:z=!0}=Tt,H=wi(Tt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let _=de(r),N=Ee(d),q=de(d)===d,J=await(h.isRTL==null?void 0:h.isRTL(u.floating)),G=k||(q||!z?[hi(d)]:Is(d)),Pt=$!=="none";!k&&Pt&&G.push(...Ps(d,z,$,J));let ft=[d,...G],ee=await ji(i,H),Zt=[],Ft=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Zt.push(ee[_]),b){let Bt=Hs(r,n,J);Zt.push(ee[Bt[0]],ee[Bt[1]])}if(Ft=[...Ft,{placement:r,overflows:Zt}],!Zt.every(Bt=>Bt<=0)){var ue,Xt;let Bt=(((ue=a.flip)==null?void 0:ue.index)||0)+1,Re=ft[Bt];if(Re)return{data:{index:Bt,overflows:Ft},reset:{placement:Re}};let ie=(Xt=Ft.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,fe)=>Ue.overflows[1]-fe.overflows[1])[0])==null?void 0:Xt.placement;if(!ie)switch(x){case"bestFit":{var me;let Ue=(me=Ft.filter(fe=>{if(Pt){let be=Ee(fe.placement);return be===N||be==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(be=>be>0).reduce((be,bo)=>be+bo,0)]).sort((fe,be)=>fe[1]-be[1])[0])==null?void 0:me[0];Ue&&(ie=Ue);break}case"initialPlacement":ie=d;break}if(r!==ie)return{reset:{placement:ie}}}return{}}}};async function Un(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=de(t),d=He(t),h=Ee(t)==="y",u=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,b=Se(i,s),{mainAxis:k,crossAxis:x,alignmentAxis:$}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:k*u}:{x:k*u,y:x*f}}var Us=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await Un(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:it(O({},h),{placement:n})}}}},Ns=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,H=Se(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:_=>{let{x:N,y:q}=_;return{x:N,y:q}}}}=H,h=wi(H,["mainAxis","crossAxis","limiter"]),u={x:t,y:e},f=await ji(i,h),b=Ee(de(r)),k=$r(b),x=u[k],$=u[b];if(a){let _=k==="y"?"top":"left",N=k==="y"?"bottom":"right",q=x+f[_],J=x-f[N];x=Ni(q,x,J)}if(n){let _=b==="y"?"top":"left",N=b==="y"?"bottom":"right",q=$+f[_],J=$-f[N];$=Ni(q,$,J)}let z=d.fn(it(O({},i),{[k]:x,[b]:$}));return it(O({},z),{data:{x:z.x-t,y:z.y-e,enabled:{[k]:a,[b]:n}}})}}};var qs=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Ft=Se(s,i),{apply:h=()=>{}}=Ft,u=wi(Ft,["apply"]),f=await ji(i,u),b=de(r),k=He(r),x=Ee(r)==="y",{width:$,height:z}=a.floating,H,_;b==="top"||b==="bottom"?(H=b,_=k===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(_=b,H=k==="end"?"top":"bottom");let N=z-f.top-f.bottom,q=$-f.left-f.right,J=Jt(z-f[H],N),G=Jt($-f[_],q),Pt=!i.middlewareData.shift,ft=J,ee=G;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ee=q),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(ft=N),Pt&&!k){let ue=yt(f.left,0),Xt=yt(f.right,0),me=yt(f.top,0),Tt=yt(f.bottom,0);x?ee=$-2*(ue!==0||Xt!==0?ue+Xt:yt(f.left,f.right)):ft=z-2*(me!==0||Tt!==0?me+Tt:yt(f.top,f.bottom))}await h(it(O({},i),{availableWidth:ee,availableHeight:ft}));let Zt=await n.getDimensions(d.floating);return $!==Zt.width||z!==Zt.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window!="undefined"}function Pe(s){return js(s)?(s.nodeName||"").toLowerCase():"#document"}function kt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function Nt(s){var i;return(i=(js(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function js(s){return Yi()?s instanceof Node||s instanceof kt(s).Node:!1}function Dt(s){return Yi()?s instanceof Element||s instanceof kt(s).Element:!1}function qt(s){return Yi()?s instanceof HTMLElement||s instanceof kt(s).HTMLElement:!1}function Ks(s){return!Yi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof kt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=_t(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ys(s){return["table","td","th"].includes(Pe(s))}function mi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Zi(s){let i=Xi(),t=Dt(s)?_t(s):s;return["transform","translate","scale","rotate","perspective"].some(e=>t[e]?t[e]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function Zs(s){let i=ce(s);for(;qt(i)&&!Fe(i);){if(Zi(i))return i;if(mi(i))return null;i=ce(i)}return null}function Xi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(Pe(s))}function _t(s){return kt(s).getComputedStyle(s)}function fi(s){return Dt(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ce(s){if(Pe(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ks(s)&&s.host||Nt(s);return Ks(i)?i.host:i}function Xs(s){let i=ce(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:qt(i)&&Xe(i)?i:Xs(i)}function Ze(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Xs(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=kt(r);if(a){let d=Wi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?Ze(d):[])}return i.concat(r,Ze(r,[],t))}function Wi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Js(s){let i=_t(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=qt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=pi(t)!==a||pi(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function zr(s){return Dt(s)?s:s.contextElement}function We(s){let i=zr(s);if(!qt(i))return Ut(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=Js(i),n=(a?pi(t.width):t.width)/e,d=(a?pi(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var Nn=Ut(0);function Gs(s){let i=kt(s);return!Xi()||!i.visualViewport?Nn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function qn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==kt(s)?!1:i}function Be(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=zr(s),n=Ut(1);i&&(e?Dt(e)&&(n=We(e)):n=We(s));let d=qn(a,t,e)?Gs(a):Ut(0),h=(r.left+d.x)/n.x,u=(r.top+d.y)/n.y,f=r.width/n.x,b=r.height/n.y;if(a){let k=kt(a),x=e&&Dt(e)?kt(e):e,$=k,z=Wi($);for(;z&&e&&x!==$;){let H=We(z),_=z.getBoundingClientRect(),N=_t(z),q=_.left+(z.clientLeft+parseFloat(N.paddingLeft))*H.x,J=_.top+(z.clientTop+parseFloat(N.paddingTop))*H.y;h*=H.x,u*=H.y,f*=H.x,b*=H.y,h+=q,u+=J,$=kt(z),z=Wi($)}}return Ie({width:f,height:b,x:h,y:u})}function Ar(s,i){let t=fi(s).scrollLeft;return i?i.left+t:Be(Nt(s)).left+t}function to(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Ar(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Kn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=Nt(e),d=i?mi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},u=Ut(1),f=Ut(0),b=qt(e);if((b||!b&&!a)&&((Pe(e)!=="body"||Xe(n))&&(h=fi(e)),qt(e))){let x=Be(e);u=We(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let k=n&&!b&&!a?to(n,h,!0):Ut(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-h.scrollLeft*u.x+f.x+k.x,y:t.y*u.y-h.scrollTop*u.y+f.y+k.y}}function jn(s){return Array.from(s.getClientRects())}function Yn(s){let i=Nt(s),t=fi(s),e=s.ownerDocument.body,r=yt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=yt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Ar(s),d=-t.scrollTop;return _t(e).direction==="rtl"&&(n+=yt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Zn(s,i){let t=kt(s),e=Nt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let u=Xi();(!u||u&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Xn(s,i){let t=Be(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=qt(s)?We(s):Ut(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,u=e*a.y;return{width:n,height:d,x:h,y:u}}function Ws(s,i,t){let e;if(i==="viewport")e=Zn(s,t);else if(i==="document")e=Yn(Nt(s));else if(Dt(i))e=Xn(i,t);else{let r=Gs(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function eo(s,i){let t=ce(s);return t===i||!Dt(t)||Fe(t)?!1:_t(t).position==="fixed"||eo(t,i)}function Wn(s,i){let t=i.get(s);if(t)return t;let e=Ze(s,[],!1).filter(d=>Dt(d)&&Pe(d)!=="body"),r=null,a=_t(s).position==="fixed",n=a?ce(s):s;for(;Dt(n)&&!Fe(n);){let d=_t(n),h=Zi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&eo(s,n))?e=e.filter(f=>f!==n):r=d,n=ce(n)}return i.set(s,e),e}function Qn(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?mi(i)?[]:Wn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((u,f)=>{let b=Ws(i,f,r);return u.top=yt(b.top,u.top),u.right=Jt(b.right,u.right),u.bottom=Jt(b.bottom,u.bottom),u.left=yt(b.left,u.left),u},Ws(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function Jn(s){let{width:i,height:t}=Js(s);return{width:i,height:t}}function Gn(s,i,t){let e=qt(i),r=Nt(i),a=t==="fixed",n=Be(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Ut(0);if(e||!e&&!a)if((Pe(i)!=="body"||Xe(r))&&(d=fi(i)),e){let k=Be(i,!0,a,i);h.x=k.x+i.clientLeft,h.y=k.y+i.clientTop}else r&&(h.x=Ar(r));let u=r&&!e&&!a?to(r,d):Ut(0),f=n.left+d.scrollLeft-h.x-u.x,b=n.top+d.scrollTop-h.y-u.y;return{x:f,y:b,width:n.width,height:n.height}}function Lr(s){return _t(s).position==="static"}function Qs(s,i){if(!qt(s)||_t(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return Nt(s)===t&&(t=t.ownerDocument.body),t}function io(s,i){let t=kt(s);if(mi(s))return t;if(!qt(s)){let r=ce(s);for(;r&&!Fe(r);){if(Dt(r)&&!Lr(r))return r;r=ce(r)}return t}let e=Qs(s,i);for(;e&&Ys(e)&&Lr(e);)e=Qs(e,i);return e&&Fe(e)&&Lr(e)&&!Zi(e)?t:e||Zs(s)||t}var tl=async function(s){let i=this.getOffsetParent||io,t=this.getDimensions,e=await t(s.floating);return{reference:Gn(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function el(s){return _t(s).direction==="rtl"}var il={convertOffsetParentRelativeRectToViewportRelativeRect:Kn,getDocumentElement:Nt,getClippingRect:Qn,getOffsetParent:io,getElementRects:tl,getClientRects:jn,getDimensions:Jn,getScale:We,isElement:Dt,isRTL:el};function ro(s,i){return s.x===i.x&&s.y===i.y&&s.width===i.width&&s.height===i.height}function rl(s,i){let t=null,e,r=Nt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let u=s.getBoundingClientRect(),{left:f,top:b,width:k,height:x}=u;if(d||i(),!k||!x)return;let $=ui(b),z=ui(r.clientWidth-(f+k)),H=ui(r.clientHeight-(b+x)),_=ui(f),q={rootMargin:-$+"px "+-z+"px "+-H+"px "+-_+"px",threshold:yt(0,Jt(1,h))||1},J=!0;function G(Pt){let ft=Pt[0].intersectionRatio;if(ft!==h){if(!J)return n();ft?n(!1,ft):e=setTimeout(()=>{n(!1,1e-7)},1e3)}ft===1&&!ro(u,s.getBoundingClientRect())&&n(),J=!1}try{t=new IntersectionObserver(G,it(O({},q),{root:r.ownerDocument}))}catch(Pt){t=new IntersectionObserver(G,q)}t.observe(s)}return n(!0),a}function so(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,u=zr(s),f=r||a?[...u?Ze(u):[],...Ze(i)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),a&&_.addEventListener("resize",t)});let b=u&&d?rl(u,t):null,k=-1,x=null;n&&(x=new ResizeObserver(_=>{let[N]=_;N&&N.target===u&&x&&(x.unobserve(i),cancelAnimationFrame(k),k=requestAnimationFrame(()=>{var q;(q=x)==null||q.observe(i)})),t()}),u&&!h&&x.observe(u),x.observe(i));let $,z=h?Be(s):null;h&&H();function H(){let _=Be(s);z&&!ro(z,_)&&t(),z=_,$=requestAnimationFrame(H)}return t(),()=>{var _;f.forEach(N=>{r&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,h&&cancelAnimationFrame($)}}var oo=Us;var ao=Ns,no=Rs,Or=qs;var lo=Vs;var co=(s,i,t)=>{let e=new Map,r=O({platform:il},t),a=it(O({},r.platform),{_c:e});return Bs(s,i,it(O({},r),{platform:a}))};var I=class extends m{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="absolute";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start(),this.setupMutationObserver()}disconnectedCallback(){this.stop(),this.mutationObserver&&this.mutationObserver.disconnect()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof HTMLElement?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=so(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[oo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Or({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(no({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ao({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Or({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(lo({element:this.arrowEl,padding:this.arrowPadding})),co(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let u=a.arrow.x,f=a.arrow.y,b="",k="",x="",$="";if(this.arrowPlacement==="start"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";b=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",k=d?z:"",$=d?"":z}else if(this.arrowPlacement==="end"){let z=typeof u=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";k=d?"":z,$=d?z:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof u=="number"?"calc(50% - var(--arrow-size-diagonal))":"",b=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof u=="number"?`${u}px`:"",b=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:b,right:k,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return p`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?p`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};I.styles=[...m.styles,v`:host{--arrow-color:var(--sd-color-neutral-1000);--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size)*0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}[part=popup]{max-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([g('[part="popup"]')],I.prototype,"popup",2),o([g('[part="arrow"]')],I.prototype,"arrowEl",2),o([l()],I.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],I.prototype,"active",2),o([l({reflect:!0})],I.prototype,"placement",2),o([l({reflect:!0})],I.prototype,"strategy",2),o([l({type:Number})],I.prototype,"distance",2),o([l({type:Number})],I.prototype,"skidding",2),o([l({type:Boolean})],I.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],I.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],I.prototype,"arrowPadding",2),o([l({type:Boolean})],I.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],I.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],I.prototype,"flipFallbackStrategy",2),o([l({type:Object})],I.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],I.prototype,"flipPadding",2),o([l({type:Boolean})],I.prototype,"shift",2),o([l({type:Object})],I.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],I.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],I.prototype,"autoSize",2),o([l()],I.prototype,"sync",2),o([l({type:Object})],I.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],I.prototype,"autoSizePadding",2),I=o([y("sd-popup")],I);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!1;this.removable=!1;this.disabled=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleRemoveClick(){this.emit("sd-remove")}isLink(){return!!this.href}click(){this.tag.click()}focus(t){this.tag.focus(t)}blur(){this.tag.blur()}render(){let t=this.isLink(),e=t?X`a`:X`button`;return P`<${e} part="base" type="${E(t?void 0:"button")}" href="${E(t?this.href:void 0)}" rel="${E(t&&this.target?"noreferrer noopener":void 0)}" target="${E(t?this.target:void 0)}" download="${E(t?this.download:void 0)}" ?disabled="${E(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${E(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("inline-flex border box-border rounded-full items-center leading-none whitespace-nowrap focus-visible:focus-outline",{lg:"h-8 text-base gap-2",sm:"h-6 text-sm gap-1"}[this.size],{lg:this.removable?"pl-4 pr-3 py-2":"px-4 py-2",sm:this.removable?"pl-3 pr-2 py-2":"px-3 py-[5px]"}[this.size],this.selected?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500":"border-primary text-primary hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500 disabled:border-neutral-500 disabled:text-neutral-500",this.disabled&&!t&&"cursor-not-allowed")}"><slot part="content"></slot>${this.removable?P`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([g("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new F(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=Ms;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Ri(t.value),a=Ri(t.getTextLabel()),n=Ri(e);return r.includes(n)||a.includes(n)};this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
112
112
  base:tag__base,
113
113
  content:tag__content,
114
114
  removable-indicator:tag__removable-indicator,
@@ -157,7 +157,7 @@ var tr=Object.defineProperty,go=Object.defineProperties,vo=Object.getOwnProperty
157
157
  <slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot>
158
158
  </div>
159
159
  </${t}>
160
- `}};Ce.styles=[...gt.styles,v`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],o([l({type:Boolean,reflect:!0})],Ce.prototype,"expandable",2),Ce=o([y("sd-quickfact")],Ce);S("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});S("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var pt=class extends m{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return p`<span part="base" class="${c("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?p`<span part="checked" class="${c("rounded-full inline-flex text-white bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.visuallyDisabled?"bg-white":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${c("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};pt.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible),:host([visually-disabled]:focus-visible) [part=control--checked],:host([visually-disabled]:focus-visible) [part=control--unchecked]{outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],o([C()],pt.prototype,"checked",2),o([C()],pt.prototype,"hasFocus",2),o([l({reflect:!0})],pt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],pt.prototype,"visuallyDisabled",2),o([l()],pt.prototype,"value",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"invalid",2),o([w("checked")],pt.prototype,"handleCheckedChange",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],pt.prototype,"handleDisabledChange",1),pt=o([y("sd-radio")],pt);var vt=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return p`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.visuallyDisabled&&"focus-visible:outline-none",this.checked&&!this.disabled&&!this.visuallyDisabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":(this.disabled||this.visuallyDisabled)&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":(this.disabled||this.visuallyDisabled)&&this.checked?"text-neutral-500 border-neutral-500 hover:cursor-not-allowed ":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",r)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${E(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?p`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};vt.styles=[...m.styles,v`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],o([g(".button")],vt.prototype,"input",2),o([g(".hidden-input")],vt.prototype,"hiddenInput",2),o([C()],vt.prototype,"hasFocus",2),o([l({reflect:!0})],vt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],vt.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"checked",2),o([l()],vt.prototype,"value",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],vt.prototype,"handleDisabledChange",1),vt=o([y("sd-radio-button")],vt);var Yt=class extends m{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=vi(t.target);e==null||e.classList.add("sd-button-group__button--focus")}handleBlur(t){let e=vi(t.target);e==null||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){let e=vi(t.target);e==null||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){let e=vi(t.target);e==null||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),a=vi(e);a!==null&&(a.classList.add("sd-button-group__button"),a.classList.toggle("sd-button-group__button--first",r===0),a.classList.toggle("sd-button-group__button--inner",r>0&&r<t.length-1),a.classList.toggle("sd-button-group__button--last",r===t.length-1),a.classList.toggle("sd-button-group__button--radio",a.tagName.toLowerCase()==="sd-radio-button"))})}render(){return p`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};Yt.styles=[...m.styles,v`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],o([g("slot")],Yt.prototype,"defaultSlot",2),o([C()],Yt.prototype,"disableRole",2),o([l()],Yt.prototype,"label",2),Yt=o([y("sd-button-group")],Yt);function vi(s){var t;let i="sd-button, sd-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var Z=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new D(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?$s:t?Cs:Ye}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-radio, sd-radio-button"),r=this.getAllRadios(),a=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==a&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(u=>!u.disabled),r=(h=e.find(u=>u.checked))!=null?h:e[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,d=e.indexOf(r)+a;d<0&&(d=e.length-1),d>e.length-1&&(d=0),this.getAllRadios().forEach(u=>{u.checked=!1,this.hasButtonGroup||(u.tabIndex=-1)}),this.value=e[d].value,e[d].checked=!0,this.hasButtonGroup?e[d].shadowRoot.querySelector("button").focus():(e[d].tabIndex=0,e[d].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(a=>a.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async a=>{await a.updateComplete,a.checked=a.value===this.value,a.size=this.size,a instanceof pt&&(a.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(a=>a.tagName.toLowerCase()==="sd-radio-button"),!t.some(a=>a.checked))if(this.hasButtonGroup){let a=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");a&&(a.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let a=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-button-group");a&&(a.disableRole=!0)}}syncRadios(){if(customElements.get("sd-radio")&&customElements.get("sd-radio-button")){this.syncRadioElements();return}customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then(()=>this.syncRadios()),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:!!r,n=this.hasSlotController.test("tooltip"),d=p`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message">${e||n?p`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("p-0 leading-normal text-black text-left",e?"flex":"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?p`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${d}</sd-button-group>`:d}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`}};Z.dependencies={"sd-button-group":Yt},Z.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([g("slot:not([name])")],Z.prototype,"defaultSlot",2),o([g("#validation-input")],Z.prototype,"validationInput",2),o([g("#invalid-message")],Z.prototype,"invalidMessage",2),o([C()],Z.prototype,"hasButtonGroup",2),o([C()],Z.prototype,"defaultValue",2),o([C()],Z.prototype,"showInvalidStyle",2),o([l({reflect:!0})],Z.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"required",2),o([l({reflect:!0})],Z.prototype,"orientation",2),o([l()],Z.prototype,"label",2),o([l({attribute:"help-text"})],Z.prototype,"helpText",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"boldLabel",2),o([l()],Z.prototype,"name",2),o([l({reflect:!0})],Z.prototype,"value",2),o([l({reflect:!0})],Z.prototype,"form",2),o([w("size",{waitUntilFirstUpdate:!0})],Z.prototype,"handleSizeChange",1),o([w("showInvalidStyle",{waitUntilFirstUpdate:!0})],Z.prototype,"handleInvalidChange",1),o([w("value")],Z.prototype,"handleValueChange",1),Z=o([y("sd-radio-group")],Z);var mt=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1;this.isKeyboardNavigation=!1;this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollIndicatorVisibility()}),this.updateComplete.then(()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)})}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){let t=this.container;if(!t)return;let e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,r=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,a=this.isScrollVerticalEnabled&&t.scrollTop>0,n=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,d=this.renderRoot.querySelector('[part="button-start"]'),h=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:r,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:a,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:n};let u=e||a,f=r||n;u&&this.dispatchEvent(new CustomEvent("start")),f&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(d&&(d.hidden=!u),d&&u&&!(n||r)&&d.focus(),h&&(h.hidden=!f),h&&f&&!(a||e)&&h.focus())}handleScroll(t,e){var h;let r=t==="left"||t==="up"?-this.step:this.step,a=t==="left"||t==="right"?"left":"top";this.isKeyboardNavigation=(e==null?void 0:e.pointerType)!=="mouse";let n={behavior:"smooth"};n[a]=r,(h=this.scrollContainer)==null||h.scrollBy(n);let d=`button-${t}`;this.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0}))}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return p`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.orientation==="horizontal"&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",this.orientation==="vertical"&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",this.orientation==="auto"&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("left",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?p`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("right",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("up",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?p`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("down",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?p`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?p`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};mt.styles=[...m.styles,v`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],o([l({type:String,reflect:!0})],mt.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"scrollbars",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"buttons",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"shadows",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"inset",2),o([l({type:Number,reflect:!0})],mt.prototype,"step",2),o([C()],mt.prototype,"canScroll",2),o([C()],mt.prototype,"isScrollHorizontalEnabled",2),o([C()],mt.prototype,"isScrollVerticalEnabled",2),o([C()],mt.prototype,"isKeyboardNavigation",2),mt=o([y("sd-scrollable")],mt);var L=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new F(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
160
+ `}};Ce.styles=[...gt.styles,v`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],o([l({type:Boolean,reflect:!0})],Ce.prototype,"expandable",2),Ce=o([y("sd-quickfact")],Ce);S("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});S("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var pt=class extends m{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return p`<span part="base" class="${c("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?"border-error hover:border-error-400 group-hover:border-error-400":this.checked?"border-accent hover:border-accent-550 group-hover:border-accent-550":"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200")}">${this.checked?p`<span part="checked" class="${c("rounded-full inline-flex text-white bg-accent h-2.5 w-2.5",this.disabled?"bg-neutral-500":this.visuallyDisabled?"bg-white":this.invalid?"bg-error hover:bg-error-400 group-hover:bg-error-400":this.checked?"bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"bg-neutral-800")}"></span>`:""}</span><slot part="label" class="${c("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};pt.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible),:host([visually-disabled]:focus-visible) [part=control--checked],:host([visually-disabled]:focus-visible) [part=control--unchecked]{outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],o([C()],pt.prototype,"checked",2),o([C()],pt.prototype,"hasFocus",2),o([l({reflect:!0})],pt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],pt.prototype,"visuallyDisabled",2),o([l()],pt.prototype,"value",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"invalid",2),o([w("checked")],pt.prototype,"handleCheckedChange",1),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],pt.prototype,"handleDisabledChange",1),pt=o([y("sd-radio")],pt);var vt=class extends m{constructor(){super(...arguments);this.hasSlotController=new D(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled||this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}this.checked=!0}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleDisabledChange(){let t=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",t?"true":"false")}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return p`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"text-sm":"text-base",this.visuallyDisabled&&"focus-visible:outline-none",this.checked&&!this.disabled&&!this.visuallyDisabled?"bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500":(this.disabled||this.visuallyDisabled)&&!this.checked?"border-neutral-500 text-neutral-500 hover:cursor-not-allowed":(this.disabled||this.visuallyDisabled)&&this.checked?"text-neutral-500 border-neutral-500 hover:cursor-not-allowed ":"bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",t&&"px-4",this.hasFocus&&"focused-class",t&&"button--has-label",e&&"button--has-icon flex gap-2",r)}" aria-disabled="${this.disabled||this.visuallyDisabled}" type="button" value="${E(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?p`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};vt.styles=[...m.styles,v`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-button-group__button--first:not(.sd-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button--last:not(.sd-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-button-group__button:not(.sd-button-group__button--first)){margin-inline-start:-1px}:host(.sd-button-group__button--hover){z-index:10}:host(.sd-button-group__button--focus),:host(.sd-button-group__button[checked]){z-index:20}`],o([g(".button")],vt.prototype,"input",2),o([g(".hidden-input")],vt.prototype,"hiddenInput",2),o([C()],vt.prototype,"hasFocus",2),o([l({reflect:!0})],vt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],vt.prototype,"visuallyDisabled",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"checked",2),o([l()],vt.prototype,"value",2),o([w(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],vt.prototype,"handleDisabledChange",1),vt=o([y("sd-radio-button")],vt);var Yt=class extends m{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=vi(t.target);e==null||e.classList.add("sd-button-group__button--focus")}handleBlur(t){let e=vi(t.target);e==null||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){let e=vi(t.target);e==null||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){let e=vi(t.target);e==null||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),a=vi(e);a!==null&&(a.classList.add("sd-button-group__button"),a.classList.toggle("sd-button-group__button--first",r===0),a.classList.toggle("sd-button-group__button--inner",r>0&&r<t.length-1),a.classList.toggle("sd-button-group__button--last",r===t.length-1),a.classList.toggle("sd-button-group__button--radio",a.tagName.toLowerCase()==="sd-radio-button"))})}render(){return p`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};Yt.styles=[...m.styles,v`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],o([g("slot")],Yt.prototype,"defaultSlot",2),o([C()],Yt.prototype,"disableRole",2),o([l()],Yt.prototype,"label",2),Yt=o([y("sd-button-group")],Yt);function vi(s){var t;let i="sd-button, sd-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var Z=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new D(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?$s:t?Cs:Ye}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("sd-radio, sd-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-radio, sd-radio-button"),r=this.getAllRadios(),a=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==a&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(u=>!u.disabled),r=(h=e.find(u=>u.checked))!=null?h:e[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,d=e.indexOf(r)+a;d<0&&(d=e.length-1),d>e.length-1&&(d=0),this.getAllRadios().forEach(u=>{u.checked=!1,this.hasButtonGroup||(u.tabIndex=-1)}),this.value=e[d].value,e[d].checked=!0,this.hasButtonGroup?e[d].shadowRoot.querySelector("button").focus():(e[d].tabIndex=0,e[d].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(a=>a.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async a=>{await a.updateComplete,a.checked=a.value===this.value,a.size=this.size,a instanceof pt&&(a.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(a=>a.tagName.toLowerCase()==="sd-radio-button"),!t.some(a=>a.checked))if(this.hasButtonGroup){let a=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");a&&(a.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let a=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-button-group");a&&(a.disableRole=!0)}}syncRadios(){if(customElements.get("sd-radio")&&customElements.get("sd-radio-button")){this.syncRadioElements();return}customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then(()=>this.syncRadios()),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=this.hasSlotController.test("help-text"),a=this.helpText?!0:!!r,n=this.hasSlotController.test("tooltip"),d=p`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return p`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message">${e||n?p`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("p-0 leading-normal text-black text-left",e?"flex":"hidden",this.boldLabel&&"font-bold")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?p`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${c("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?p`<sd-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${d}</sd-button-group>`:d}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-2",a?"block":"hidden")}" aria-hidden="${!a}">${this.helpText}</slot>${this.formControlController.renderInvalidMessage()}`}};Z.dependencies={"sd-button-group":Yt},Z.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([g("slot:not([name])")],Z.prototype,"defaultSlot",2),o([g("#validation-input")],Z.prototype,"validationInput",2),o([g("#invalid-message")],Z.prototype,"invalidMessage",2),o([C()],Z.prototype,"hasButtonGroup",2),o([C()],Z.prototype,"defaultValue",2),o([C()],Z.prototype,"showInvalidStyle",2),o([l({reflect:!0})],Z.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"required",2),o([l({reflect:!0})],Z.prototype,"orientation",2),o([l()],Z.prototype,"label",2),o([l({attribute:"help-text"})],Z.prototype,"helpText",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"boldLabel",2),o([l()],Z.prototype,"name",2),o([l({reflect:!0})],Z.prototype,"value",2),o([l({reflect:!0})],Z.prototype,"form",2),o([w("size",{waitUntilFirstUpdate:!0})],Z.prototype,"handleSizeChange",1),o([w("showInvalidStyle",{waitUntilFirstUpdate:!0})],Z.prototype,"handleInvalidChange",1),o([w("value")],Z.prototype,"handleValueChange",1),Z=o([y("sd-radio-group")],Z);var mt=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1;this.isKeyboardNavigation=!1;this.scrollContainer=null}connectedCallback(){super.connectedCallback(),this.updateScrollEnabledFlags(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollIndicatorVisibility()}),this.updateComplete.then(()=>{this.scrollContainer=this.renderRoot.querySelector(".scroll-container"),this.scrollContainer&&this.resizeObserver.observe(this.scrollContainer)})}disconnectedCallback(){super.disconnectedCallback(),this.scrollContainer&&this.resizeObserver.unobserve(this.scrollContainer)}updated(t){super.updated(t),(t.has("orientation")||t.has("buttons")||t.has("shadows"))&&(this.updateScrollEnabledFlags(),this.updateScrollIndicatorVisibility())}updateScrollEnabledFlags(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){let t=this.container;if(!t)return;let e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,r=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,a=this.isScrollVerticalEnabled&&t.scrollTop>0,n=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,d=this.renderRoot.querySelector('[part="button-start"]'),h=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:r,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:a,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:n};let u=e||a,f=r||n;u&&this.dispatchEvent(new CustomEvent("start")),f&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(d&&(d.hidden=!u),d&&u&&!(n||r)&&d.focus(),h&&(h.hidden=!f),h&&f&&!(a||e)&&h.focus())}handleScroll(t,e){var h;let r=t==="left"||t==="up"?-this.step:this.step,a=t==="left"||t==="right"?"left":"top";this.isKeyboardNavigation=(e==null?void 0:e.pointerType)!=="mouse";let n={behavior:"smooth"};n[a]=r,(h=this.scrollContainer)==null||h.scrollBy(n);let d=`button-${t}`;this.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0}))}render(){let t="relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg",e="scroll-shadow absolute z-10 pointer-events-none";return p`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.orientation==="horizontal"&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",this.orientation==="vertical"&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",this.orientation==="auto"&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("left",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.right?p`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("right",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${c(t)}" @click="${r=>this.handleScroll("up",r)}"><slot name="icon-start"><sd-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-icon></slot></button></div>`:null} ${this.canScroll.down?p`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${c(t)}" @click="${r=>this.handleScroll("down",r)}"><slot name="icon-end"><sd-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?p`${this.isScrollHorizontalEnabled?p`${this.canScroll.left?p`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?p`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?p`${this.canScroll.up?p`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?p`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};mt.styles=[...m.styles,v`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-icon--top{align-self:flex-start}.sd-icon--down{align-self:flex-end}`],o([l({type:String,reflect:!0})],mt.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"scrollbars",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"buttons",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"shadows",2),o([l({type:Boolean,reflect:!0})],mt.prototype,"inset",2),o([l({type:Number,reflect:!0})],mt.prototype,"step",2),o([C()],mt.prototype,"canScroll",2),o([C()],mt.prototype,"isScrollHorizontalEnabled",2),o([C()],mt.prototype,"isScrollVerticalEnabled",2),o([C()],mt.prototype,"isKeyboardNavigation",2),mt=o([y("sd-scrollable")],mt);var L=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new D(this,"help-text","label");this.localize=new F(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!1;this.multiple=!1;this.useTags=!1;this.maxOptionsVisible=3;this.form="";this.name="";this.value="";this.required=!1;this.styleOnValid=!1;this.hoist=!1;this.getTag=t=>p`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
161
161
  base:tag__base,
162
162
  content:tag__content,
163
163
  removable-indicator:tag__removable-indicator,