@solid-design-system/components 1.34.0 → 1.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/components/es/accordion-group.js +1 -1
  2. package/dist/components/es/accordion.js +1 -1
  3. package/dist/components/es/badge.js +1 -1
  4. package/dist/components/es/brandshape.js +1 -1
  5. package/dist/components/es/button.js +1 -1
  6. package/dist/components/es/carousel-item.js +1 -1
  7. package/dist/components/es/carousel.js +3 -3
  8. package/dist/components/es/checkbox-group.js +1 -1
  9. package/dist/components/es/checkbox.js +1 -1
  10. package/dist/components/es/component.styles.js +1 -1
  11. package/dist/components/es/default-value.js +1 -1
  12. package/dist/components/es/divider.js +1 -1
  13. package/dist/components/es/drawer.js +1 -1
  14. package/dist/components/es/dropdown.js +1 -1
  15. package/dist/components/es/form-control.styles.js +1 -1
  16. package/dist/components/es/header.js +1 -1
  17. package/dist/components/es/icon.js +3 -3
  18. package/dist/components/es/if-defined.js +2 -2
  19. package/dist/components/es/include.js +1 -1
  20. package/dist/components/es/input.js +1 -1
  21. package/dist/components/es/link.js +1 -1
  22. package/dist/components/es/live.js +1 -1
  23. package/dist/components/es/navigation-item.js +2 -2
  24. package/dist/components/es/notification.js +1 -1
  25. package/dist/components/es/option.js +1 -1
  26. package/dist/components/es/popup.js +1 -1
  27. package/dist/components/es/radio-group.js +1 -1
  28. package/dist/components/es/radio.js +1 -1
  29. package/dist/components/es/select.js +2 -2
  30. package/dist/components/es/solid-components2.js +1 -1
  31. package/dist/components/es/solid-element.js +25 -2
  32. package/dist/components/es/spinner.js +1 -1
  33. package/dist/components/es/static.js +2 -2
  34. package/dist/components/es/switch.js +1 -1
  35. package/dist/components/es/tag.js +1 -1
  36. package/dist/components/es/teaser.js +1 -1
  37. package/dist/components/es/textarea.js +1 -1
  38. package/dist/components/es/tooltip.js +2 -2
  39. package/dist/components/es/video.js +1 -1
  40. package/dist/components/umd/solid-components.js +13 -13
  41. package/dist/custom-elements.json +1 -1
  42. package/dist/package/components/button/button.js +1 -1
  43. package/dist/package/components/carousel/carousel.js +2 -1
  44. package/dist/package/components/carousel-item/carousel-item.js +2 -1
  45. package/dist/package/components/checkbox/checkbox.js +3 -3
  46. package/dist/package/components/checkbox-group/checkbox-group.js +1 -1
  47. package/dist/package/components/divider/divider.js +1 -1
  48. package/dist/package/components/drawer/drawer.js +2 -1
  49. package/dist/package/components/dropdown/dropdown.js +1 -1
  50. package/dist/package/components/header/header.js +1 -1
  51. package/dist/package/components/icon/icon.js +1 -1
  52. package/dist/package/components/include/include.d.ts +1 -2
  53. package/dist/package/components/include/include.js +6 -3
  54. package/dist/package/components/input/input.js +1 -1
  55. package/dist/package/components/link/link.js +1 -1
  56. package/dist/package/components/navigation-item/navigation-item.js +1 -1
  57. package/dist/package/components/option/option.js +1 -1
  58. package/dist/package/components/radio/radio.js +1 -1
  59. package/dist/package/components/radio-group/radio-group.js +1 -1
  60. package/dist/package/components/select/select.js +1 -1
  61. package/dist/package/components/switch/switch.js +1 -1
  62. package/dist/package/components/teaser/teaser.js +1 -1
  63. package/dist/package/components/textarea/textarea.js +6 -5
  64. package/dist/package/components/tooltip/tooltip.js +1 -1
  65. package/dist/package/components/video/video.js +1 -1
  66. package/dist/package/styles/tailwind.css.js +1 -1
  67. package/dist/styles/solid-styles.css +1 -1
  68. package/dist/versioned-components/es/accordion-group.js +1 -1
  69. package/dist/versioned-components/es/accordion.js +1 -1
  70. package/dist/versioned-components/es/badge.js +1 -1
  71. package/dist/versioned-components/es/brandshape.js +1 -1
  72. package/dist/versioned-components/es/button.js +1 -1
  73. package/dist/versioned-components/es/carousel-item.js +1 -1
  74. package/dist/versioned-components/es/carousel.js +3 -3
  75. package/dist/versioned-components/es/checkbox-group.js +1 -1
  76. package/dist/versioned-components/es/checkbox.js +1 -1
  77. package/dist/versioned-components/es/component.styles.js +1 -1
  78. package/dist/versioned-components/es/default-value.js +1 -1
  79. package/dist/versioned-components/es/divider.js +1 -1
  80. package/dist/versioned-components/es/drawer.js +1 -1
  81. package/dist/versioned-components/es/dropdown.js +1 -1
  82. package/dist/versioned-components/es/form-control.styles.js +1 -1
  83. package/dist/versioned-components/es/form.js +1 -1
  84. package/dist/versioned-components/es/header.js +1 -1
  85. package/dist/versioned-components/es/icon.js +3 -3
  86. package/dist/versioned-components/es/if-defined.js +2 -2
  87. package/dist/versioned-components/es/include.js +1 -1
  88. package/dist/versioned-components/es/input.js +1 -1
  89. package/dist/versioned-components/es/link.js +1 -1
  90. package/dist/versioned-components/es/live.js +1 -1
  91. package/dist/versioned-components/es/navigation-item.js +2 -2
  92. package/dist/versioned-components/es/notification.js +1 -1
  93. package/dist/versioned-components/es/option.js +1 -1
  94. package/dist/versioned-components/es/popup.js +1 -1
  95. package/dist/versioned-components/es/radio-group.js +1 -1
  96. package/dist/versioned-components/es/radio.js +1 -1
  97. package/dist/versioned-components/es/select.js +2 -2
  98. package/dist/versioned-components/es/solid-components2.js +1 -1
  99. package/dist/versioned-components/es/solid-element.js +25 -2
  100. package/dist/versioned-components/es/spinner.js +1 -1
  101. package/dist/versioned-components/es/static.js +2 -2
  102. package/dist/versioned-components/es/switch.js +1 -1
  103. package/dist/versioned-components/es/tag.js +1 -1
  104. package/dist/versioned-components/es/teaser.js +1 -1
  105. package/dist/versioned-components/es/textarea.js +1 -1
  106. package/dist/versioned-components/es/tooltip.js +2 -2
  107. package/dist/versioned-components/es/video.js +1 -1
  108. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  109. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  110. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  111. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  112. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  113. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  114. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  115. package/dist/versioned-package/components/badge/badge.js +1 -1
  116. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  117. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  118. package/dist/versioned-package/components/button/button.d.ts +1 -1
  119. package/dist/versioned-package/components/button/button.js +4 -4
  120. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  121. package/dist/versioned-package/components/carousel/carousel.js +7 -6
  122. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  123. package/dist/versioned-package/components/carousel-item/carousel-item.js +3 -2
  124. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  125. package/dist/versioned-package/components/checkbox/checkbox.js +7 -7
  126. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  127. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  128. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  129. package/dist/versioned-package/components/divider/divider.js +2 -2
  130. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  131. package/dist/versioned-package/components/drawer/drawer.js +4 -3
  132. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  133. package/dist/versioned-package/components/dropdown/dropdown.js +9 -9
  134. package/dist/versioned-package/components/header/header.d.ts +1 -1
  135. package/dist/versioned-package/components/header/header.js +4 -4
  136. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  137. package/dist/versioned-package/components/icon/icon.js +2 -2
  138. package/dist/versioned-package/components/include/include.d.ts +2 -3
  139. package/dist/versioned-package/components/include/include.js +7 -4
  140. package/dist/versioned-package/components/input/input.d.ts +1 -1
  141. package/dist/versioned-package/components/input/input.js +5 -5
  142. package/dist/versioned-package/components/link/link.d.ts +1 -1
  143. package/dist/versioned-package/components/link/link.js +2 -2
  144. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  145. package/dist/versioned-package/components/navigation-item/navigation-item.js +4 -4
  146. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  147. package/dist/versioned-package/components/notification/notification.js +5 -5
  148. package/dist/versioned-package/components/option/option.d.ts +1 -1
  149. package/dist/versioned-package/components/option/option.js +3 -3
  150. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  151. package/dist/versioned-package/components/popup/popup.js +1 -1
  152. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  153. package/dist/versioned-package/components/radio/radio.js +3 -3
  154. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  155. package/dist/versioned-package/components/radio-group/radio-group.js +14 -14
  156. package/dist/versioned-package/components/select/select.d.ts +4 -4
  157. package/dist/versioned-package/components/select/select.js +28 -28
  158. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  159. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  160. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  161. package/dist/versioned-package/components/switch/switch.js +3 -3
  162. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  163. package/dist/versioned-package/components/tag/tag.js +2 -2
  164. package/dist/versioned-package/components/teaser/teaser.js +2 -2
  165. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  166. package/dist/versioned-package/components/textarea/textarea.js +8 -7
  167. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  168. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  169. package/dist/versioned-package/components/video/video.d.ts +1 -1
  170. package/dist/versioned-package/components/video/video.js +3 -3
  171. package/dist/versioned-package/internal/form.js +2 -2
  172. package/dist/versioned-package/styles/form-control.styles.js +1 -1
  173. package/dist/versioned-package/styles/tailwind.css.js +1 -1
  174. package/dist/versioned-styles/solid-styles.css +1 -1
  175. package/dist/vscode.html-custom-data.json +31 -31
  176. package/dist/web-types.json +1 -1
  177. package/package.json +3 -2
  178. package/dist/components/es/include.styles.js +0 -1
  179. package/dist/components/es/lit-element.js +0 -23
  180. package/dist/package/components/include/include.styles.d.ts +0 -2
  181. package/dist/package/components/include/include.styles.js +0 -6
  182. package/dist/versioned-components/es/include.styles.js +0 -1
  183. package/dist/versioned-components/es/lit-element.js +0 -23
  184. package/dist/versioned-package/components/include/include.styles.d.ts +0 -2
  185. package/dist/versioned-package/components/include/include.styles.js +0 -6
@@ -1,4 +1,4 @@
1
- var t,e;t=this,e=function(t){var e,i;const o={calendar:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21 2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1ZM6 4v1.667a1 1 0 0 0 2 0V4h8v1.667a1 1 0 0 0 2 0V4h2v4H4V4h2ZM4 20V10h16v10H4Z"/>\n <path d="m7.603 13.263.597.81.31-.25c.31-.25.593-.49.733-.63h.017c-.017.333-.033 1.14-.033 1.647V18h1.223v-6.03H9.353l-1.75 1.293ZM14.667 11.867c-1.543 0-2.26 1-2.26 3.163 0 1.9.667 3.063 2.217 3.063s2.193-1.18 2.193-3.13c-.017-2.063-.743-3.097-2.15-3.097v.001Zm-.044 5.333c-.647 0-1-.76-1-2.28 0-1.44.353-2.173 1-2.173s1 .743 1 2.233c0 1.49-.387 2.227-1.017 2.227l.017-.007Z"/>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n ',clock:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13 11.587V8a1 1 0 0 0-2 0v4c0 .07.007.138.021.203l-.001-.006a.855.855 0 0 0 .029.093l-.002-.006c0 .033 0 .067.03.1a.709.709 0 0 0 .055.103l-.002-.003.037.07c.04.057.081.107.127.153l2.827 2.83a1.002 1.002 0 0 0 1.417-1.417L13 11.587Z"/>\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n </svg>\n ',close:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.707 2.293a1 1 0 0 0-1.414 0L12 10.586 3.707 2.293a1 1 0 0 0-1.413 1.414l-.001-.001 8.293 8.293-8.293 8.293a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.413l8.293 8.293a1 1 0 0 0 1.414 0 1 1 0 0 0 0-1.414l-8.293-8.293 8.293-8.293a1 1 0 0 0 0-1.414z"/></svg>\n </svg>\n ',"closing-round":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n <path d="M16.373 7.627a1 1 0 0 0-1.414 0l-2.96 2.96-2.96-2.96a1 1 0 0 0-1.413 1.414l-.001-.001 2.96 2.96-2.96 2.96a1 1 0 0 0 1.414 1.414l2.96-2.96 2.96 2.96a1 1 0 0 0 1.414-1.414L13.413 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/>\n </svg>',confirm:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.528 2.167a1 1 0 0 0-1.384.277l-.002.004-11.333 17-5.127-5.153a1 1 0 0 0-1.413 1.414l-.001-.001 6 6a.997.997 0 0 0 .707.293h.1c.307-.032.57-.199.731-.44l.002-.004 12-18a1 1 0 0 0-.276-1.388l-.004-.002Z"/>\n </svg>\n ',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n </svg>\n ',"eye-crossed-out":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M3 22a1 1 0 0 1-.707-1.707l18-18a1 1 0 0 1 1.414 1.414l-18 18A.991.991 0 0 1 3 22Z"/>\n </svg>\n ',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M13.333 7.833a1.5 1.5 0 1 1-3.001-.001 1.5 1.5 0 0 1 3.001.001ZM13 11.667a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v2.667h2v-3.667Z"/><path d="M11 16.333v-1h-1a1 1 0 0 0 0 2h2a1 1 0 0 1-1-1Zm3-1h-1v1a1 1 0 0 1-1 1h2a1 1 0 0 0 0-2Z"/><path d="M13 16.333v-1h-2v1a1 1 0 0 0 2 0Z"/></svg>',"status-hook":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none">\n <path fill="currentColor" d="m9.947 1.138-.005.008-.001.003-5.56 8.34-2.434-2.447-.004-.004a.648.648 0 0 0-1.093.475c0 .172.066.328.175.444l.003.004 3 2.999c.117.117.28.19.46.19h.065c.2-.021.37-.13.475-.286l.005-.008.001-.002 5.994-8.992a.65.65 0 0 0-.18-.902l-.007-.005-.002-.002a.65.65 0 0 0-.892.185Z"/>\n </svg>\n ',"status-minus":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">\n <path d="M10 5.375H2C1.65496 5.375 1.375 5.65496 1.375 6C1.375 6.34504 1.65496 6.625 2 6.625H10C10.345 6.625 10.625 6.34504 10.625 6C10.625 5.65496 10.345 5.375 10 5.375Z" fill="currentColor"/>\n </svg>\n ',pause:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 22a.99997.99997 0 0 0 1-1V3a1.00003 1.00003 0 0 0-1-1H5a1.00003 1.00003 0 0 0-1 1v18a.99997.99997 0 0 0 1 1h4ZM6 4h2v16H6V4ZM19 22c.2652 0 .5196-.1054.7071-.2929A1.0001 1.0001 0 0 0 20 21V3a.99997.99997 0 0 0-1-1h-4a.99997.99997 0 0 0-1 1v18c0 .2652.1054.5196.2929.7071S14.7348 22 15 22h4ZM16 4h2v16h-2V4Z"/>\n </svg>\n ',risk:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.893 2.553a1.002 1.002 0 0 0-1.784-.006L2.106 20.553A1 1 0 0 0 3 22h18a1 1 0 0 0 .891-1.452l.003.006-9.001-18.001ZM4.617 20 12 5.237 19.383 20H4.617Z"/>\n <path d="M11 10.667V15a1 1 0 0 0 2 0v-4.333a1 1 0 0 0-2 0ZM13 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/>\n </svg>\n ',start:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\n <path d="m57.44 29.76-37.333-24A2.667 2.667 0 0 0 16 8v48a2.668 2.668 0 0 0 2.667 2.666 2.672 2.672 0 0 0 1.45-.431l-.01.005 37.333-24a2.67 2.67 0 0 0 1.192-2.221c0-.923-.47-1.74-1.184-2.216l-.01-.006.002-.037ZM21.333 51.112V12.89l29.734 19.112-29.734 19.11Z"/>\n </svg>\n ',"confirm-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M15.843 7.473a.999.999 0 0 0-1.367.329l-.002.004-3.667 6.223-1.757-1.753a1 1 0 0 0-1.413 1.414l-.001-.001 2.667 2.667a.997.997 0 0 0 .695.31h.128c.314-.042.578-.223.731-.479l.003-.005 4.333-7.333a1 1 0 0 0-.345-1.374l-.005-.003v.001Z"/></svg>',warning:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.893 2.55295C12.725 2.22395 12.388 2.00195 12 2.00195C11.612 2.00195 11.275 2.22295 11.109 2.54695L2.10598 20.553C2.03998 20.683 2.00098 20.837 2.00098 21C2.00098 21.552 2.44798 21.999 2.99998 22H21C21.552 21.999 21.999 21.552 21.999 21C21.999 20.837 21.96 20.683 21.891 20.548L21.894 20.554L12.893 2.55295ZM4.61698 20L12 5.23695L19.383 20H4.61698Z"/><path d="M11 10.667V15C11 15.552 11.448 16 12 16C12.552 16 13 15.552 13 15V10.667C13 10.115 12.552 9.66695 12 9.66695C11.448 9.66695 11 10.115 11 10.667Z"/><path d="M13 18C13 18.552 12.552 19 12 19C11.448 19 11 18.552 11 18C11 17.448 11.448 17 12 17C12.552 17 13 17.448 13 18Z"/></svg>',"exclamation-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 17C13 17.552 12.552 18 12 18C11.448 18 11 17.552 11 17C11 16.448 11.448 16 12 16C12.552 16 13 16.448 13 17Z"/><path d="M12 6C11.448 6 11 6.448 11 7V13C11 13.552 11.448 14 12 14C12.552 14 13 13.552 13 13V7C13 6.448 12.552 6 12 6Z"/><path d="M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12C20 16.418 16.418 20 12 20Z"/></svg>'},r={name:"system",resolver:t=>t in o?`data:image/svg+xml,${encodeURIComponent(o[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},s=Object.freeze(Object.defineProperty({__proto__:null,default:r,icons:o},Symbol.toStringTag,{value:"Module"}));let a=[r],n=[];function l(t){n.push(t)}function d(t){n=n.filter((e=>e!==t))}function h(t){return a.find((e=>e.name===t))}function c(t,e){p(t),a.push({name:t,resolver:e.resolver,mutator:e.mutator}),n.forEach((e=>{e.library===t&&e.setIcon()}))}function p(t){a=a.filter((e=>e.name!==t))}const u=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:h,registerIconLibrary:c,unregisterIconLibrary:p,unwatchIcon:d,watchIcon:l},Symbol.toStringTag,{value:"Module"})),b=new Set,m=new MutationObserver(w),g=new Map;let v,f=document.documentElement.dir||"ltr",y=document.documentElement.lang||navigator.language;function w(){f=document.documentElement.dir||"ltr",y=document.documentElement.lang||navigator.language,[...b.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}m.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let x=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){b.add(this.host)}hostDisconnected(){b.delete(this.host)}dir(){return`${this.host.dir||f}`.toLowerCase()}lang(){return`${this.host.lang||y}`.toLowerCase()}getTranslationData(t){var e,i;const o=new Intl.Locale(t.replace(/_/g,"-")),r=null==o?void 0:o.language.toLowerCase(),s=null!==(i=null===(e=null==o?void 0:o.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:o,language:r,region:s,primary:g.get(`${r}-${s}`),secondary:g.get(r)}}exists(t,e){var i;const{primary:o,secondary:r}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(o&&o[t]||r&&r[t]||e.includeFallback&&v&&v[t])}term(t,...e){const{primary:i,secondary:o}=this.getTranslationData(this.lang());let r;if(i&&i[t])r=i[t];else if(o&&o[t])r=o[t];else{if(!v||!v[t])return console.error(`No translation found for: ${String(t)}`),String(t);r=v[t]}return"function"==typeof r?r(...e):r}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}};!function(...t){t.map((t=>{const e=t.$code.toLowerCase();g.has(e)?g.set(e,Object.assign(Object.assign({},g.get(e)),t)):g.set(e,t),v||(v=t)})),w()}({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,currentValue:"Current value",hidePassword:"Hide password",loading:"Loading",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showPassword:"Show password",toggleColorFormat:"Toggle color format",carousel:"Carousel",nextSlide:"Next slide",previousSlide:"Previous slide",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,slideNum:t=>`Slide ${t}`});class k extends x{}const C=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>Pe)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Se)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>Me)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>Ue)),"./components/button/button.ts":()=>Promise.resolve().then((()=>ci)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>ui)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>mi)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Oi)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>xi)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>Ti)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>Ui)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>qi)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>so)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>gr)),"./components/header/header.ts":()=>Promise.resolve().then((()=>xr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>le)),"./components/icon/library.system.ts":()=>Promise.resolve().then((()=>s)),"./components/icon/library.ts":()=>Promise.resolve().then((()=>u)),"./components/icon/request.ts":()=>Promise.resolve().then((()=>Ht)),"./components/include/include.styles.ts":()=>Promise.resolve().then((()=>Cr)),"./components/include/include.ts":()=>Promise.resolve().then((()=>Er)),"./components/include/request.ts":()=>Promise.resolve().then((()=>Ut)),"./components/input/input.ts":()=>Promise.resolve().then((()=>Mr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>Ur)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>qr)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>Jr)),"./components/option/option.ts":()=>Promise.resolve().then((()=>os)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>cr)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>bs)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>ys)),"./components/select/select.ts":()=>Promise.resolve().then((()=>zs)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>qe)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>Ds)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>$s)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>Is)),"./components/textarea/textarea.ts":()=>Promise.resolve().then((()=>Ns)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Ys)),"./components/video/video.ts":()=>Promise.resolve().then((()=>ta))});Object.keys(C).forEach((t=>{C[t]()}));
1
+ var t,e;t=this,e=function(t){var e,i;const o={calendar:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21 2H3a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1ZM6 4v1.667a1 1 0 0 0 2 0V4h8v1.667a1 1 0 0 0 2 0V4h2v4H4V4h2ZM4 20V10h16v10H4Z"/>\n <path d="m7.603 13.263.597.81.31-.25c.31-.25.593-.49.733-.63h.017c-.017.333-.033 1.14-.033 1.647V18h1.223v-6.03H9.353l-1.75 1.293ZM14.667 11.867c-1.543 0-2.26 1-2.26 3.163 0 1.9.667 3.063 2.217 3.063s2.193-1.18 2.193-3.13c-.017-2.063-.743-3.097-2.15-3.097v.001Zm-.044 5.333c-.647 0-1-.76-1-2.28 0-1.44.353-2.173 1-2.173s1 .743 1 2.233c0 1.49-.387 2.227-1.017 2.227l.017-.007Z"/>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M20.257 6.333l-8.257 9.173-8.257-9.173c-0.181-0.181-0.431-0.292-0.707-0.292-0.552 0-1 0.448-1 1 0 0.238 0.083 0.456 0.222 0.628l-0.001-0.002 9 10c0.184 0.204 0.449 0.331 0.743 0.331s0.56-0.127 0.743-0.33l0.001-0.001 9-10c0.137-0.17 0.22-0.388 0.22-0.626 0-0.552-0.448-1-1-1-0.276 0-0.526 0.112-0.707 0.293v0z"></path>\n </svg>\n ',"chevron-up":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.743 6.333c-0.188-0.195-0.452-0.316-0.743-0.316s-0.555 0.121-0.743 0.315l-0 0-9 10c-0.137 0.17-0.22 0.388-0.22 0.626 0 0.552 0.448 1 1 1 0.276 0 0.526-0.112 0.707-0.293v0l8.257-9.173 8.257 9.173c0.181 0.181 0.431 0.292 0.707 0.292 0.552 0 1-0.448 1-1 0-0.238-0.083-0.456-0.222-0.628l0.001 0.002z"></path>\n </svg>\n ',clock:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M13 11.587V8a1 1 0 0 0-2 0v4c0 .07.007.138.021.203l-.001-.006a.855.855 0 0 0 .029.093l-.002-.006c0 .033 0 .067.03.1a.709.709 0 0 0 .055.103l-.002-.003.037.07c.04.057.081.107.127.153l2.827 2.83a1.002 1.002 0 0 0 1.417-1.417L13 11.587Z"/>\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n </svg>\n ',close:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.707 2.293a1 1 0 0 0-1.414 0L12 10.586 3.707 2.293a1 1 0 0 0-1.413 1.414l-.001-.001 8.293 8.293-8.293 8.293a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.413l8.293 8.293a1 1 0 0 0 1.414 0 1 1 0 0 0 0-1.414l-8.293-8.293 8.293-8.293a1 1 0 0 0 0-1.414z"/></svg>\n </svg>\n ',"closing-round":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/>\n <path d="M16.373 7.627a1 1 0 0 0-1.414 0l-2.96 2.96-2.96-2.96a1 1 0 0 0-1.413 1.414l-.001-.001 2.96 2.96-2.96 2.96a1 1 0 0 0 1.414 1.414l2.96-2.96 2.96 2.96a1 1 0 0 0 1.414-1.414L13.413 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/>\n </svg>',confirm:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M21.528 2.167a1 1 0 0 0-1.384.277l-.002.004-11.333 17-5.127-5.153a1 1 0 0 0-1.413 1.414l-.001-.001 6 6a.997.997 0 0 0 .707.293h.1c.307-.032.57-.199.731-.44l.002-.004 12-18a1 1 0 0 0-.276-1.388l-.004-.002Z"/>\n </svg>\n ',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n </svg>\n ',"eye-crossed-out":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12 16.107A4.11 4.11 0 0 1 7.893 12 4.11 4.11 0 0 1 12 7.893 4.11 4.11 0 0 1 16.107 12 4.11 4.11 0 0 1 12 16.107Zm0-6.21a2.107 2.107 0 1 0 0 4.213 2.107 2.107 0 0 0 0-4.213Z"/>\n <path d="M12 18.96c-5.263 0-10-5.68-10-6.96 0-1.28 4.737-6.96 10-6.96S22 10.72 22 12c0 1.28-4.737 6.96-10 6.96ZM4.1 12c.76 1.197 4.07 4.96 7.9 4.96s7.14-3.767 7.9-4.96c-.76-1.197-4.07-4.96-7.9-4.96S4.86 10.807 4.1 12Z"/>\n <path d="M3 22a1 1 0 0 1-.707-1.707l18-18a1 1 0 0 1 1.414 1.414l-18 18A.991.991 0 0 1 3 22Z"/>\n </svg>\n ',"info-circle":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M13.333 7.833a1.5 1.5 0 1 1-3.001-.001 1.5 1.5 0 0 1 3.001.001ZM13 11.667a1 1 0 0 0-1-1h-1a1 1 0 0 0 0 2v2.667h2v-3.667Z"/><path d="M11 16.333v-1h-1a1 1 0 0 0 0 2h2a1 1 0 0 1-1-1Zm3-1h-1v1a1 1 0 0 1-1 1h2a1 1 0 0 0 0-2Z"/><path d="M13 16.333v-1h-2v1a1 1 0 0 0 2 0Z"/></svg>',"status-hook":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="none">\n <path fill="currentColor" d="m9.947 1.138-.005.008-.001.003-5.56 8.34-2.434-2.447-.004-.004a.648.648 0 0 0-1.093.475c0 .172.066.328.175.444l.003.004 3 2.999c.117.117.28.19.46.19h.065c.2-.021.37-.13.475-.286l.005-.008.001-.002 5.994-8.992a.65.65 0 0 0-.18-.902l-.007-.005-.002-.002a.65.65 0 0 0-.892.185Z"/>\n </svg>\n ',"status-minus":'\n <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">\n <path d="M10 5.375H2C1.65496 5.375 1.375 5.65496 1.375 6C1.375 6.34504 1.65496 6.625 2 6.625H10C10.345 6.625 10.625 6.34504 10.625 6C10.625 5.65496 10.345 5.375 10 5.375Z" fill="currentColor"/>\n </svg>\n ',pause:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M9 22a.99997.99997 0 0 0 1-1V3a1.00003 1.00003 0 0 0-1-1H5a1.00003 1.00003 0 0 0-1 1v18a.99997.99997 0 0 0 1 1h4ZM6 4h2v16H6V4ZM19 22c.2652 0 .5196-.1054.7071-.2929A1.0001 1.0001 0 0 0 20 21V3a.99997.99997 0 0 0-1-1h-4a.99997.99997 0 0 0-1 1v18c0 .2652.1054.5196.2929.7071S14.7348 22 15 22h4ZM16 4h2v16h-2V4Z"/>\n </svg>\n ',risk:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <path d="M12.893 2.553a1.002 1.002 0 0 0-1.784-.006L2.106 20.553A1 1 0 0 0 3 22h18a1 1 0 0 0 .891-1.452l.003.006-9.001-18.001ZM4.617 20 12 5.237 19.383 20H4.617Z"/>\n <path d="M11 10.667V15a1 1 0 0 0 2 0v-4.333a1 1 0 0 0-2 0ZM13 18a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/>\n </svg>\n ',start:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">\n <path d="m57.44 29.76-37.333-24A2.667 2.667 0 0 0 16 8v48a2.668 2.668 0 0 0 2.667 2.666 2.672 2.672 0 0 0 1.45-.431l-.01.005 37.333-24a2.67 2.67 0 0 0 1.192-2.221c0-.923-.47-1.74-1.184-2.216l-.01-.006.002-.037ZM21.333 51.112V12.89l29.734 19.112-29.734 19.11Z"/>\n </svg>\n ',"confirm-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"/><path d="M15.843 7.473a.999.999 0 0 0-1.367.329l-.002.004-3.667 6.223-1.757-1.753a1 1 0 0 0-1.413 1.414l-.001-.001 2.667 2.667a.997.997 0 0 0 .695.31h.128c.314-.042.578-.223.731-.479l.003-.005 4.333-7.333a1 1 0 0 0-.345-1.374l-.005-.003v.001Z"/></svg>',warning:'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.893 2.55295C12.725 2.22395 12.388 2.00195 12 2.00195C11.612 2.00195 11.275 2.22295 11.109 2.54695L2.10598 20.553C2.03998 20.683 2.00098 20.837 2.00098 21C2.00098 21.552 2.44798 21.999 2.99998 22H21C21.552 21.999 21.999 21.552 21.999 21C21.999 20.837 21.96 20.683 21.891 20.548L21.894 20.554L12.893 2.55295ZM4.61698 20L12 5.23695L19.383 20H4.61698Z"/><path d="M11 10.667V15C11 15.552 11.448 16 12 16C12.552 16 13 15.552 13 15V10.667C13 10.115 12.552 9.66695 12 9.66695C11.448 9.66695 11 10.115 11 10.667Z"/><path d="M13 18C13 18.552 12.552 19 12 19C11.448 19 11 18.552 11 18C11 17.448 11.448 17 12 17C12.552 17 13 17.448 13 18Z"/></svg>',"exclamation-circle":'\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 17C13 17.552 12.552 18 12 18C11.448 18 11 17.552 11 17C11 16.448 11.448 16 12 16C12.552 16 13 16.448 13 17Z"/><path d="M12 6C11.448 6 11 6.448 11 7V13C11 13.552 11.448 14 12 14C12.552 14 13 13.552 13 13V7C13 6.448 12.552 6 12 6Z"/><path d="M12 2C6.477 2 2 6.477 2 12C2 17.523 6.477 22 12 22C17.523 22 22 17.523 22 12C22 6.477 17.523 2 12 2ZM12 20C7.582 20 4 16.418 4 12C4 7.582 7.582 4 12 4C16.418 4 20 7.582 20 12C20 16.418 16.418 20 12 20Z"/></svg>'},r={name:"system",resolver:t=>t in o?`data:image/svg+xml,${encodeURIComponent(o[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},s=Object.freeze(Object.defineProperty({__proto__:null,default:r,icons:o},Symbol.toStringTag,{value:"Module"}));let a=[r],n=[];function l(t){n.push(t)}function d(t){n=n.filter((e=>e!==t))}function c(t){return a.find((e=>e.name===t))}function h(t,e){p(t),a.push({name:t,resolver:e.resolver,mutator:e.mutator}),n.forEach((e=>{e.library===t&&e.setIcon()}))}function p(t){a=a.filter((e=>e.name!==t))}const u=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:c,registerIconLibrary:h,unregisterIconLibrary:p,unwatchIcon:d,watchIcon:l},Symbol.toStringTag,{value:"Module"})),m=new Set,b=new MutationObserver(w),v=new Map;let g,f=document.documentElement.dir||"ltr",y=document.documentElement.lang||navigator.language;function w(){f=document.documentElement.dir||"ltr",y=document.documentElement.lang||navigator.language,[...m.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}b.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let x=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){m.add(this.host)}hostDisconnected(){m.delete(this.host)}dir(){return`${this.host.dir||f}`.toLowerCase()}lang(){return`${this.host.lang||y}`.toLowerCase()}getTranslationData(t){var e,i;const o=new Intl.Locale(t.replace(/_/g,"-")),r=null==o?void 0:o.language.toLowerCase(),s=null!==(i=null===(e=null==o?void 0:o.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:o,language:r,region:s,primary:v.get(`${r}-${s}`),secondary:v.get(r)}}exists(t,e){var i;const{primary:o,secondary:r}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(o&&o[t]||r&&r[t]||e.includeFallback&&g&&g[t])}term(t,...e){const{primary:i,secondary:o}=this.getTranslationData(this.lang());let r;if(i&&i[t])r=i[t];else if(o&&o[t])r=o[t];else{if(!g||!g[t])return console.error(`No translation found for: ${String(t)}`),String(t);r=g[t]}return"function"==typeof r?r(...e):r}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}};!function(...t){t.map((t=>{const e=t.$code.toLowerCase();v.has(e)?v.set(e,Object.assign(Object.assign({},v.get(e)),t)):v.set(e,t),g||(g=t)})),w()}({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,currentValue:"Current value",hidePassword:"Hide password",loading:"Loading",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showPassword:"Show password",toggleColorFormat:"Toggle color format",carousel:"Carousel",nextSlide:"Next slide",previousSlide:"Previous slide",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,slideNum:t=>`Slide ${t}`});class k extends x{}const C=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>Pe)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Se)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>Me)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>Ue)),"./components/button/button.ts":()=>Promise.resolve().then((()=>hi)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>ui)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>bi)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Oi)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>xi)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>Ti)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>Ui)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>qi)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>so)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>vr)),"./components/header/header.ts":()=>Promise.resolve().then((()=>xr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>le)),"./components/icon/library.system.ts":()=>Promise.resolve().then((()=>s)),"./components/icon/library.ts":()=>Promise.resolve().then((()=>u)),"./components/icon/request.ts":()=>Promise.resolve().then((()=>Ht)),"./components/include/include.ts":()=>Promise.resolve().then((()=>_r)),"./components/include/request.ts":()=>Promise.resolve().then((()=>Ut)),"./components/input/input.ts":()=>Promise.resolve().then((()=>Lr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>Vr)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>Hr)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>Xr)),"./components/option/option.ts":()=>Promise.resolve().then((()=>es)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>hr)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>ps)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>gs)),"./components/select/select.ts":()=>Promise.resolve().then((()=>Os)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>qe)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>Ts)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>ks)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>js)),"./components/textarea/textarea.ts":()=>Promise.resolve().then((()=>Rs)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Zs)),"./components/video/video.ts":()=>Promise.resolve().then((()=>Js))});Object.keys(C).forEach((t=>{C[t]()}));
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
@@ -15,7 +15,7 @@ const $=globalThis,S=$.ShadowRoot&&(void 0===$.ShadyCSS||$.ShadyCSS.nativeShadow
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
17
  */
18
- const Z=globalThis,W=Z.trustedTypes,Y=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,X="$lit$",G=`lit$${(Math.random()+"").slice(9)}$`,J="?"+G,Q=`<${J}>`,tt=document,et=()=>tt.createComment(""),it=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ot=Array.isArray,rt="[ \t\n\f\r]",st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,nt=/>/g,lt=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),dt=/'/g,ht=/"/g,ct=/^(?:script|style|textarea|title)$/i,pt=(1,(t,...e)=>({_$litType$:1,strings:t,values:e})),ut=Symbol.for("lit-noChange"),bt=Symbol.for("lit-nothing"),mt=new WeakMap,gt=tt.createTreeWalker(tt,129);function vt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Y?Y.createHTML(e):e}class ft{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const a=t.length-1,n=this.parts,[l,d]=((t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",a=st;for(let e=0;e<i;e++){const i=t[e];let n,l,d=-1,h=0;for(;h<i.length&&(a.lastIndex=h,l=a.exec(i),null!==l);)h=a.lastIndex,a===st?"!--"===l[1]?a=at:void 0!==l[1]?a=nt:void 0!==l[2]?(ct.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=lt):void 0!==l[3]&&(a=lt):a===lt?">"===l[0]?(a=r??st,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,n=l[1],a=void 0===l[3]?lt:'"'===l[3]?ht:dt):a===ht||a===dt?a=lt:a===at||a===nt?a=st:(a=lt,r=void 0);const c=a===lt&&t[e+1].startsWith("/>")?" ":"";s+=a===st?i+Q:d>=0?(o.push(n),i.slice(0,d)+X+i.slice(d)+G+c):i+G+(-2===d?e:c)}return[vt(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ft.createElement(l,i),gt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=gt.nextNode())&&n.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(X)){const e=d[s++],i=o.getAttribute(t).split(G),a=/([.?@])?(.*)/.exec(e);n.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?Ct:"?"===a[1]?$t:"@"===a[1]?St:kt}),o.removeAttribute(t)}else t.startsWith(G)&&(n.push({type:6,index:r}),o.removeAttribute(t));if(ct.test(o.tagName)){const t=o.textContent.split(G),e=t.length-1;if(e>0){o.textContent=W?W.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],et()),gt.nextNode(),n.push({type:2,index:++r});o.append(t[e],et())}}}else if(8===o.nodeType)if(o.data===J)n.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(G,t+1));)n.push({type:7,index:r}),t+=G.length-1}r++}}static createElement(t,e){const i=tt.createElement("template");return i.innerHTML=t,i}}function yt(t,e,i=t,o){var r,s;if(e===ut)return e;let a=void 0!==o?null==(r=i._$Co)?void 0:r[o]:i._$Cl;const n=it(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==n&&(null==(s=null==a?void 0:a._$AO)||s.call(a,!1),void 0===n?a=void 0:(a=new n(t),a._$AT(t,i,o)),void 0!==o?(i._$Co??(i._$Co=[]))[o]=a:i._$Cl=a),void 0!==a&&(e=yt(t,a._$AS(t,e.values),a,o)),e}class wt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=((null==t?void 0:t.creationScope)??tt).importNode(e,!0);gt.currentNode=o;let r=gt.nextNode(),s=0,a=0,n=i[0];for(;void 0!==n;){if(s===n.index){let e;2===n.type?e=new xt(r,r.nextSibling,this,t):1===n.type?e=new n.ctor(r,n.name,n.strings,this,t):6===n.type&&(e=new _t(r,this,t)),this._$AV.push(e),n=i[++a]}s!==(null==n?void 0:n.index)&&(r=gt.nextNode(),s++)}return gt.currentNode=tt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xt{get _$AU(){var t;return(null==(t=this._$AM)?void 0:t._$AU)??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=bt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(null==o?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=yt(this,t,e),it(t)?t===bt||null==t||""===t?(this._$AH!==bt&&this._$AR(),this._$AH=bt):t!==this._$AH&&t!==ut&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ot(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==bt&&it(this._$AH)?this._$AA.nextSibling.data=t:this.$(tt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ft.createElement(vt(o.h,o.h[0]),this.options)),o);if((null==(e=this._$AH)?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new wt(r,this),e=t.u(this.options);t.p(i),this.$(e),this._$AH=t}}_$AC(t){let e=mt.get(t.strings);return void 0===e&&mt.set(t.strings,e=new ft(t)),e}T(t){ot(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new xt(this.k(et()),this.k(et()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class kt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=bt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=bt}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=yt(this,t,e,0),s=!it(t)||t!==this._$AH&&t!==ut,s&&(this._$AH=t);else{const o=t;let a,n;for(t=r[0],a=0;a<r.length-1;a++)n=yt(this,o[i+a],e,a),n===ut&&(n=this._$AH[a]),s||(s=!it(n)||n!==this._$AH[a]),n===bt?t=bt:t!==bt&&(t+=(n??"")+r[a+1]),this._$AH[a]=n}s&&!o&&this.O(t)}O(t){t===bt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ct extends kt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===bt?void 0:t}}class $t extends kt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==bt)}}class St extends kt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=yt(this,t,e,0)??bt)===ut)return;const i=this._$AH,o=t===bt&&i!==bt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==bt&&(i===bt||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;"function"==typeof this._$AH?this._$AH.call((null==(e=this.options)?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){yt(this,t)}}const Ot=Z.litHtmlPolyfillSupport;null==Ot||Ot(ft,xt),(Z.litHtmlVersions??(Z.litHtmlVersions=[])).push("3.0.2");
18
+ const Z=globalThis,W=Z.trustedTypes,Y=W?W.createPolicy("lit-html",{createHTML:t=>t}):void 0,X="$lit$",G=`lit$${(Math.random()+"").slice(9)}$`,J="?"+G,Q=`<${J}>`,tt=document,et=()=>tt.createComment(""),it=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ot=Array.isArray,rt="[ \t\n\f\r]",st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,at=/-->/g,nt=/>/g,lt=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),dt=/'/g,ct=/"/g,ht=/^(?:script|style|textarea|title)$/i,pt=(1,(t,...e)=>({_$litType$:1,strings:t,values:e})),ut=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),bt=new WeakMap,vt=tt.createTreeWalker(tt,129);function gt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Y?Y.createHTML(e):e}class ft{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,s=0;const a=t.length-1,n=this.parts,[l,d]=((t,e)=>{const i=t.length-1,o=[];let r,s=2===e?"<svg>":"",a=st;for(let e=0;e<i;e++){const i=t[e];let n,l,d=-1,c=0;for(;c<i.length&&(a.lastIndex=c,l=a.exec(i),null!==l);)c=a.lastIndex,a===st?"!--"===l[1]?a=at:void 0!==l[1]?a=nt:void 0!==l[2]?(ht.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=lt):void 0!==l[3]&&(a=lt):a===lt?">"===l[0]?(a=r??st,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,n=l[1],a=void 0===l[3]?lt:'"'===l[3]?ct:dt):a===ct||a===dt?a=lt:a===at||a===nt?a=st:(a=lt,r=void 0);const h=a===lt&&t[e+1].startsWith("/>")?" ":"";s+=a===st?i+Q:d>=0?(o.push(n),i.slice(0,d)+X+i.slice(d)+G+h):i+G+(-2===d?e:h)}return[gt(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ft.createElement(l,i),vt.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=vt.nextNode())&&n.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(X)){const e=d[s++],i=o.getAttribute(t).split(G),a=/([.?@])?(.*)/.exec(e);n.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?Ct:"?"===a[1]?$t:"@"===a[1]?St:kt}),o.removeAttribute(t)}else t.startsWith(G)&&(n.push({type:6,index:r}),o.removeAttribute(t));if(ht.test(o.tagName)){const t=o.textContent.split(G),e=t.length-1;if(e>0){o.textContent=W?W.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],et()),vt.nextNode(),n.push({type:2,index:++r});o.append(t[e],et())}}}else if(8===o.nodeType)if(o.data===J)n.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(G,t+1));)n.push({type:7,index:r}),t+=G.length-1}r++}}static createElement(t,e){const i=tt.createElement("template");return i.innerHTML=t,i}}function yt(t,e,i=t,o){var r,s;if(e===ut)return e;let a=void 0!==o?null==(r=i._$Co)?void 0:r[o]:i._$Cl;const n=it(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==n&&(null==(s=null==a?void 0:a._$AO)||s.call(a,!1),void 0===n?a=void 0:(a=new n(t),a._$AT(t,i,o)),void 0!==o?(i._$Co??(i._$Co=[]))[o]=a:i._$Cl=a),void 0!==a&&(e=yt(t,a._$AS(t,e.values),a,o)),e}class wt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=((null==t?void 0:t.creationScope)??tt).importNode(e,!0);vt.currentNode=o;let r=vt.nextNode(),s=0,a=0,n=i[0];for(;void 0!==n;){if(s===n.index){let e;2===n.type?e=new xt(r,r.nextSibling,this,t):1===n.type?e=new n.ctor(r,n.name,n.strings,this,t):6===n.type&&(e=new _t(r,this,t)),this._$AV.push(e),n=i[++a]}s!==(null==n?void 0:n.index)&&(r=vt.nextNode(),s++)}return vt.currentNode=tt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xt{get _$AU(){var t;return(null==(t=this._$AM)?void 0:t._$AU)??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(null==o?void 0:o.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=yt(this,t,e),it(t)?t===mt||null==t||""===t?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==ut&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ot(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==mt&&it(this._$AH)?this._$AA.nextSibling.data=t:this.$(tt.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ft.createElement(gt(o.h,o.h[0]),this.options)),o);if((null==(e=this._$AH)?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new wt(r,this),e=t.u(this.options);t.p(i),this.$(e),this._$AH=t}}_$AC(t){let e=bt.get(t.strings);return void 0===e&&bt.set(t.strings,e=new ft(t)),e}T(t){ot(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new xt(this.k(et()),this.k(et()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class kt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=mt}_$AI(t,e=this,i,o){const r=this.strings;let s=!1;if(void 0===r)t=yt(this,t,e,0),s=!it(t)||t!==this._$AH&&t!==ut,s&&(this._$AH=t);else{const o=t;let a,n;for(t=r[0],a=0;a<r.length-1;a++)n=yt(this,o[i+a],e,a),n===ut&&(n=this._$AH[a]),s||(s=!it(n)||n!==this._$AH[a]),n===mt?t=mt:t!==mt&&(t+=(n??"")+r[a+1]),this._$AH[a]=n}s&&!o&&this.O(t)}O(t){t===mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ct extends kt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}}class $t extends kt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}}class St extends kt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=yt(this,t,e,0)??mt)===ut)return;const i=this._$AH,o=t===mt&&i!==mt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==mt&&(i===mt||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;"function"==typeof this._$AH?this._$AH.call((null==(e=this.options)?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){yt(this,t)}}const Ot=Z.litHtmlPolyfillSupport;null==Ot||Ot(ft,xt),(Z.litHtmlVersions??(Z.litHtmlVersions=[])).push("3.0.2");
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
@@ -56,51 +56,51 @@ let Et=class extends K{constructor(){super(...arguments),this.renderOptions={hos
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */let Kt=class extends qt{constructor(t){if(super(t),this.et=bt,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===bt||null==t)return this.vt=void 0,this.et=t;if(t===ut)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Kt.directiveName="unsafeHTML",Kt.resultType=1;const Zt=Nt(Kt);
59
+ */let Kt=class extends qt{constructor(t){if(super(t),this.et=mt,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===mt||null==t)return this.vt=void 0,this.et=t;if(t===ut)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Kt.directiveName="unsafeHTML",Kt.resultType=1;const Zt=Nt(Kt);
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
- */let Wt=class extends Kt{};Wt.directiveName="unsafeSVG",Wt.resultType=2;const Yt=Nt(Wt);function Xt(t,e){const i={waitUntilFirstUpdate:!1,...e};return(e,o)=>{const{update:r}=e,s=Array.isArray(t)?t:[t];e.update=function(t){s.forEach((e=>{const r=e;if(t.has(r)){const e=t.get(r),s=this[r];e!==s&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[o](e,s)}})),r.call(this,t)}}}const Gt=P`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`;var Jt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,te=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Qt(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Jt(e,i,s),s};const ee=class extends Et{emit(t,e){const i=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(i),i}};ee.styles=z('/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.\\!right-0{right:var(--sd-spacing-0,0)!important}.-top-\\[1px\\]{top:-1px}.bottom-0{bottom:var(--sd-spacing-0,0)}.bottom-auto{bottom:var(--sd-spacing-auto,auto)}.end-0{inset-inline-end:var(--sd-spacing-0,0)}.end-auto{inset-inline-end:var(--sd-spacing-auto,auto)}.left-0{left:var(--sd-spacing-0,0)}.left-1\\/2{left:50%}.right-0{right:var(--sd-spacing-0,0)}.right-2{right:var(--sd-spacing-2,.5rem)}.start-0{inset-inline-start:var(--sd-spacing-0,0)}.start-auto{inset-inline-start:var(--sd-spacing-auto,auto)}.top-0{top:var(--sd-spacing-0,0)}.top-1{top:var(--sd-spacing-1,.25rem)}.top-1\\/2{top:50%}.top-2{top:var(--sd-spacing-2,.5rem)}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.m-0{margin:var(--sd-spacing-0,0)}.m-2{margin:var(--sd-spacing-2,.5rem)}.m-4{margin:var(--sd-spacing-4,1rem)}.mx-auto{margin-left:var(--sd-spacing-auto,auto);margin-right:var(--sd-spacing-auto,auto)}.my-0{margin-bottom:var(--sd-spacing-0,0);margin-top:var(--sd-spacing-0,0)}.\\!ml-6{margin-left:var(--sd-spacing-6,1.5rem)!important}.\\!mr-6{margin-right:var(--sd-spacing-6,1.5rem)!important}.mb-2{margin-bottom:var(--sd-spacing-2,.5rem)}.mb-4{margin-bottom:var(--sd-spacing-4,1rem)}.mb-6{margin-bottom:var(--sd-spacing-6,1.5rem)}.ml-1{margin-left:var(--sd-spacing-1,.25rem)}.ml-2{margin-left:var(--sd-spacing-2,.5rem)}.ml-4{margin-left:var(--sd-spacing-4,1rem)}.ml-6{margin-left:var(--sd-spacing-6,1.5rem)}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-auto{margin-left:var(--sd-spacing-auto,auto)}.mr-1{margin-right:var(--sd-spacing-1,.25rem)}.mr-2{margin-right:var(--sd-spacing-2,.5rem)}.mr-\\[0\\.25em\\]{margin-right:.25em}.mr-\\[0\\.5em\\]{margin-right:.5em}.mt-\\[1px\\]{margin-top:1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.h-2{height:var(--sd-spacing-2,.5rem)}.h-2\\.5{height:var(--sd-spacing-2-5,.625rem)}.h-2\\/3{height:66.666667%}.h-3{height:var(--sd-spacing-3,.75rem)}.h-4{height:var(--sd-spacing-4,1rem)}.h-5{height:var(--sd-spacing-5,1.25rem)}.h-6{height:var(--sd-spacing-6,1.5rem)}.h-8{height:var(--sd-spacing-8,2rem)}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[48px\\]{height:48px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-full{height:100%}.h-varspacing{height:var(--tw-varspacing)}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.w-0{width:var(--sd-spacing-0,0)}.w-1{width:var(--sd-spacing-1,.25rem)}.w-2{width:var(--sd-spacing-2,.5rem)}.w-2\\.5{width:var(--sd-spacing-2-5,.625rem)}.w-2\\/5{width:40%}.w-3{width:var(--sd-spacing-3,.75rem)}.w-4{width:var(--sd-spacing-4,1rem)}.w-5{width:var(--sd-spacing-5,1.25rem)}.w-6{width:var(--sd-spacing-6,1.5rem)}.w-8{width:var(--sd-spacing-8,2rem)}.w-\\[--width\\]{width:var(--width)}.w-\\[48px\\]{width:48px}.w-\\[96px\\]{width:96px}.w-full{width:100%}.w-varspacing{width:var(--tw-varspacing)}.min-w-0{min-width:0}.min-w-\\[16px\\]{min-width:16px}.min-w-\\[20px\\]{min-width:20px}.min-w-\\[8px\\]{min-width:8px}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-full{max-width:100%}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2, .5rem)*-1)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:var(--sd-spacing-2,.5rem)}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.rotate-\\[270deg\\]{--tw-rotate:270deg}.rotate-\\[270deg\\],.scale-y-\\[1\\.5\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes grow{0%{width:0}to{width:100%}}.animate-grow{animation:grow linear}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0{gap:var(--sd-spacing-0,0)}.gap-0\\.5{gap:var(--sd-spacing-0-5,.125rem)}.gap-1{gap:var(--sd-spacing-1,.25rem)}.gap-2{gap:var(--sd-spacing-2,.5rem)}.gap-4{gap:var(--sd-spacing-4,1rem)}.gap-8{gap:var(--sd-spacing-8,2rem)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.overscroll-x-contain{overscroll-behavior-x:contain}.whitespace-nowrap{white-space:nowrap}.\\!rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)!important}.rounded-default{border-radius:var(--sd-border-radius-default,.25rem)}.rounded-full{border-radius:var(--sd-border-radius-full,9999px)}.rounded-md{border-radius:var(--sd-border-radius-md,.375rem)}.rounded-none{border-radius:var(--sd-border-radius-none,0)}.rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)}.rounded-bl-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-bl-none{border-bottom-left-radius:var(--sd-border-radius-none,0)}.rounded-br-default{border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-br-none{border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-tl-default{border-top-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-tl-none{border-top-left-radius:var(--sd-border-radius-none,0)}.rounded-tr-default{border-top-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-tr-none{border-top-right-radius:var(--sd-border-radius-none,0)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[1px\\]{border-width:1px}.border-y-\\[1px\\]{border-bottom-width:1px;border-top-width:1px}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-border-opacity))}.border-neutral-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity))}.border-neutral-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.border-neutral-800{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-border-opacity))}.border-success{--tw-border-opacity:1;border-color:rgb(var(--sd-color-success,54 123 40)/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.65\\)\\]{background-color:#000000a6}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity))}.bg-error{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-bg-opacity))}.bg-info{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-info,21 130 213)/var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-bg-opacity))}.bg-neutral-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-bg-opacity))}.bg-neutral-800\\/75{background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--sd-opacity-75,.75))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.bg-success{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-success,54 123 40)/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-warning,187 141 32)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:var(--sd-opacity-75,.75)}.bg-none{background-image:none}.fill-neutral-100{fill:rgb(var(--sd-color-neutral-100,246 246 246)/1)}.fill-primary{fill:rgb(var(--sd-color-primary,0 53 142)/1)}.fill-white{fill:rgb(var(--sd-color-white,255 255 255)/1)}.p-0{padding:var(--sd-spacing-0,0)}.p-1{padding:var(--sd-spacing-1,.25rem)}.p-4{padding:var(--sd-spacing-4,1rem)}.px-0{padding-left:var(--sd-spacing-0,0);padding-right:var(--sd-spacing-0,0)}.px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.px-2{padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}.px-3{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}.px-4{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.px-6{padding-left:var(--sd-spacing-6,1.5rem);padding-right:var(--sd-spacing-6,1.5rem)}.px-8{padding-left:var(--sd-spacing-8,2rem);padding-right:var(--sd-spacing-8,2rem)}.px-\\[4px\\]{padding-left:4px;padding-right:4px}.px-\\[5px\\]{padding-left:5px;padding-right:5px}.py-1{padding-bottom:var(--sd-spacing-1,.25rem);padding-top:var(--sd-spacing-1,.25rem)}.py-2{padding-bottom:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-2,.5rem)}.py-3{padding-bottom:var(--sd-spacing-3,.75rem);padding-top:var(--sd-spacing-3,.75rem)}.py-4{padding-bottom:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-4,1rem)}.py-6{padding-bottom:var(--sd-spacing-6,1.5rem);padding-top:var(--sd-spacing-6,1.5rem)}.py-8{padding-bottom:var(--sd-spacing-8,2rem);padding-top:var(--sd-spacing-8,2rem)}.py-\\[5px\\]{padding-bottom:5px;padding-top:5px}.pb-1{padding-bottom:var(--sd-spacing-1,.25rem)}.pb-2{padding-bottom:var(--sd-spacing-2,.5rem)}.pb-3{padding-bottom:var(--sd-spacing-3,.75rem)}.pl-3{padding-left:var(--sd-spacing-3,.75rem)}.pl-4{padding-left:var(--sd-spacing-4,1rem)}.pl-8{padding-left:var(--sd-spacing-8,2rem)}.pr-2{padding-right:var(--sd-spacing-2,.5rem)}.pr-3{padding-right:var(--sd-spacing-3,.75rem)}.pr-4{padding-right:var(--sd-spacing-4,1rem)}.pt-3{padding-top:var(--sd-spacing-3,.75rem)}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-base{font-size:var(--sd-font-size-base,1rem)}.text-lg{font-size:var(--sd-font-size-lg,1.25rem)}.text-sm{font-size:var(--sd-font-size-sm,.875rem)}.text-xl{font-size:var(--sd-font-size-xl,1.5rem)}.font-bold{font-weight:700}.leading-\\[calc\\(var\\(--tw-varspacing\\)-2px\\)\\]{line-height:calc(var(--tw-varspacing) - 2px)}.leading-none{line-height:var(--sd-line-height-none,100%)}.leading-normal{line-height:var(--sd-line-height-normal,150%)}.text-black{--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--sd-color-error,204 25 55)/var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.text-success{--tw-text-opacity:1;color:rgb(var(--sd-color-success,54 123 40)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.placeholder-neutral-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.placeholder-neutral-700::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.opacity-0{opacity:var(--sd-opacity-0,0)}.opacity-20{opacity:var(--sd-opacity-20,.2)}.shadow{--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10,2.5rem)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12,3rem)}.varspacing-8{--tw-varspacing:var(--sd-spacing-8,2rem)}.focus-within\\:focus-outline:focus-within{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-within\\:focus-outline-inverted:focus-within{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline-inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:border-neutral-500:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.disabled\\:border-neutral-600:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-border-opacity))}.disabled\\:bg-neutral-500:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.disabled\\:bg-neutral-600:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-bg-opacity))}.disabled\\:text-neutral-500:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.disabled\\:text-neutral-600:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.group:hover .group-hover\\:top-0{top:var(--sd-spacing-0,0)}.group:hover .group-hover\\:h-full{height:100%}.group:hover .group-hover\\:border-accent-550{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.group:hover .group-hover\\:border-error-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.group:hover .group-hover\\:bg-accent-550{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-error-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.peer:focus-visible~.peer-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline-2{outline-width:2px}.peer:focus-visible~.peer-focus-visible\\:outline-offset-2{outline-offset:2px}.peer:focus-visible~.peer-focus-visible\\:outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:border-accent-550:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.hover\\:border-error-400:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.hover\\:border-primary-100:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-border-opacity))}.hover\\:border-primary-500:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity))}.hover\\:bg-accent-300:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-300,108 194 84)/var(--tw-bg-opacity))}.hover\\:bg-accent-550:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.hover\\:bg-error-400:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.hover\\:bg-neutral-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.hover\\:bg-neutral-200:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.hover\\:bg-primary-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.hover\\:bg-primary-500:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.hover\\:text-primary-100:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-text-opacity))}.hover\\:text-primary-200:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.hover\\:text-primary-500:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.active\\:border-primary-200:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-border-opacity))}.active\\:border-primary-800:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-border-opacity))}.active\\:bg-accent-700:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-700,33 87 37)/var(--tw-bg-opacity))}.active\\:bg-primary-200:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-bg-opacity))}.active\\:bg-primary-800:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity))}.active\\:text-primary-200:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.active\\:text-primary-400:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.active\\:text-primary-800:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity))}');let ie=ee;te([Lt()],ie.prototype,"dir",2),te([Lt()],ie.prototype,"lang",2);var oe=Object.defineProperty,re=Object.getOwnPropertyDescriptor,se=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?re(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&oe(e,i,s),s};let ae,ne=class extends ie{constructor(){super(...arguments),this.svg="",this.label="",this.library="default",this.color="currentColor"}connectedCallback(){super.connectedCallback(),l(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),d(this)}getUrl(){const t=h(this.library);return this.name&&t?t.resolver(this.name):this.src}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const e=h(this.library),i=this.getUrl();if(ae||(ae=new DOMParser),i)try{const o=await Rt(i);if(i===this.getUrl())if(o.ok){const i=ae.parseFromString(o.svg,"text/html").body.querySelector("svg");null!==i?(null==(t=null==e?void 0:e.mutator)||t.call(e,i),this.svg=i.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch{this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return pt`${Yt(this.svg)}`}};ne.styles=[Gt,P`:host{display:inline-block;width:1em;height:1em;box-sizing:content-box!important}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-text-opacity,1))}// text-primary :host([color=white]) svg{color:rgb(var(--sd-color-white,255 255 255) / var(--tw-text-opacity,1))}`],se([Dt()],ne.prototype,"svg",2),se([Lt({reflect:!0})],ne.prototype,"name",2),se([Lt()],ne.prototype,"src",2),se([Lt()],ne.prototype,"label",2),se([Lt({reflect:!0})],ne.prototype,"library",2),se([Lt({reflect:!0})],ne.prototype,"color",2),se([Xt("label")],ne.prototype,"handleLabelChange",1),se([Xt(["name","src","library"])],ne.prototype,"setIcon",1),ne=se([Pt("sd-icon")],ne);const le=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ne}},Symbol.toStringTag,{value:"Module"}));function de(t,e,i){return new Promise((o=>{if((null==i?void 0:i.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,{...i,duration:ce()?0:i.duration});r.addEventListener("cancel",o,{once:!0}),r.addEventListener("finish",o,{once:!0})}))}function he(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function ce(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function pe(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{const i=requestAnimationFrame(e);t.addEventListener("cancel",(()=>i),{once:!0}),t.addEventListener("finish",(()=>i),{once:!0}),t.cancel()})))))}function ue(t,e){return t.map((t=>({...t,height:"auto"===t.height?`${e}px`:t.height})))}const be=new Map,me=new WeakMap;function ge(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function ve(t,e){be.set(t,function(t){return t??{keyframes:[],options:{duration:0}}}(e))}function fe(t,e,i){const o=me.get(t);if(null!=o&&o[e])return ge(o[e],i.dir);const r=be.get(e);return r?ge(r,i.dir):{keyframes:[],options:{duration:0}}}function ye(t,e){return new Promise((i=>{t.addEventListener(e,(function o(r){r.target===t&&(t.removeEventListener(e,o),i())}))}))}function we(){let t,e="",i=0;for(;i<arguments.length;)(t=arguments[i++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}var xe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Ce=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ke(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&xe(e,i,s),s};let $e=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0"}handleSummaryClick(){this.header.focus(),this.open?this.hide():this.show()}handleSummaryKeyDown(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),this.open?this.hide():this.show()),("ArrowUp"===t.key||"ArrowLeft"===t.key)&&(t.preventDefault(),this.hide()),("ArrowDown"===t.key||"ArrowRight"===t.key)&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.emit("sd-show",{cancelable:!0}).defaultPrevented)return void(this.open=!1);await pe(this.body),this.body.hidden=!1;const{keyframes:t,options:e}=fe(this,"accordion.show",{dir:this.localize.dir()});await de(this.body,ue(t,this.body.scrollHeight),e),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented)return void(this.open=!0);await pe(this.body);const{keyframes:t,options:e}=fe(this,"accordion.hide",{dir:this.localize.dir()});await de(this.body,ue(t,this.body.scrollHeight),e),this.body.hidden=!0,this.body.style.height="auto",this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}render(){return pt`<div part="base" class="border-y-[1px] border-neutral-400"><header part="header" id="header" class="${we("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 py-3 focus-visible:focus-outline text-primary hover:bg-neutral-200 relative group")}" role="button" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div class="${we(!this.open&&"opacity-0","w-1 bg-accent absolute left-0 transition-all h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${we("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${we(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${we(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></div>`}};$e.styles=[ie.styles,P`:host{display:block}`],Ce([Bt('[part="base"]')],$e.prototype,"accordion",2),Ce([Bt('[part="header"]')],$e.prototype,"header",2),Ce([Bt('[part="content"]')],$e.prototype,"body",2),Ce([Lt({type:Boolean,reflect:!0})],$e.prototype,"open",2),Ce([Lt()],$e.prototype,"summary",2),Ce([Xt("open",{waitUntilFirstUpdate:!0})],$e.prototype,"handleOpenChange",1),$e=Ce([Pt("sd-accordion")],$e),ve("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),ve("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Se=Object.freeze(Object.defineProperty({__proto__:null,get default(){return $e}},Symbol.toStringTag,{value:"Module"}));var _e=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ee=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Oe(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&_e(e,i,s),s};let ze=class extends ie{constructor(){super(...arguments),this.closeOthers=!1,this.handleAccordionShow=t=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach((e=>{e!==t.target&&e.parentNode===t.target.parentNode&&e.removeAttribute("open")}))}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return pt`<div part="base"><slot></slot></div>`}};ze.styles=[Gt,ie.styles,P`:host{display:block}::slotted(sd-accordion:not(:first-of-type)){margin-top:-1px}`],Ee([jt({selector:"sd-accordion"})],ze.prototype,"_accordionsInDefaultSlot",2),Ee([Lt({attribute:"close-others",type:Boolean})],ze.prototype,"closeOthers",2),ze=Ee([Pt("sd-accordion-group")],ze);const Pe=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ze}},Symbol.toStringTag,{value:"Module"}));var Ae=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Le=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Te(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ae(e,i,s),s};let De=class extends ie{constructor(){super(...arguments),this.variant="default",this.size="lg",this.inverted=!1}render(){return pt`<span tabindex="0" role="status" part="base" class="${we("inline-flex items-center justify-center gap-x-[1px] text-center leading-none whitespace-nowrap border rounded-full select-none cursor-[inherit]",{default:this.inverted?"text-primary bg-white border-primary":"text-white bg-primary-500 border-white",success:this.inverted?"text-white bg-success border-primary":"text-white bg-success border-white",error:this.inverted?"text-white bg-error border-primary":"text-white bg-error border-white"}[this.variant],{sm:"h-2 min-w-[8px] text-[10px]",md:"h-4 px-[4px] min-w-[16px] text-[10px]",lg:"h-5 px-[5px] min-w-[20px] text-[12px]"}[this.size])}"><span part="content" class="${we("sm"===this.size&&"hidden")}"><slot></slot></span></span>`}};De.styles=[ie.styles,P`:host{display:inline-flex;align-items:center;justify-content:center}`],Le([Lt({reflect:!0})],De.prototype,"variant",2),Le([Lt({reflect:!0})],De.prototype,"size",2),Le([Lt({type:Boolean,reflect:!0})],De.prototype,"inverted",2),De=Le([Pt("sd-badge")],De);const Me=Object.freeze(Object.defineProperty({__proto__:null,get default(){return De}},Symbol.toStringTag,{value:"Module"}));var Be=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Ve=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?je(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Be(e,i,s),s};let Ie=class extends ie{constructor(){super(...arguments),this.variant="primary",this.shapes=["top","middle","bottom"],this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return"top"===t?pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return"top"===t?pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return"top"===t?pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setBreakpoint())),this.updateComplete.then((()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return pt`<div class="relative" part="shape-top">${1===this.shapes.length?pt`<div class="relative">${this.getSvg(this.componentBreakpoint,"top")}<div part="content" class="absolute bottom-0 right-0 flex items-end w-2/5 h-2/3 px-6 py-4"><slot></slot></div></div>`:this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return pt`<div class="${we({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${we({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="z-10 relative" part="content"><slot></slot></div></div>`}renderBottomBrandshape(){return pt`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return pt`<div class="${we({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}render(){return pt`<div class="${we({"neutral-100":"fill-neutral-100",primary:"fill-primary",white:"fill-white"}[this.variant])}" part="base">${this.shapes.includes("top")?this.renderTopBrandshape():null} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():null} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():null}</div>`}};Ie.styles=[Gt,ie.styles,P`:host{display:block}`],Ve([Bt("[part=base]")],Ie.prototype,"containerElem",2),Ve([Lt({type:String})],Ie.prototype,"variant",2),Ve([Lt({type:Array})],Ie.prototype,"shapes",2),Ve([Dt()],Ie.prototype,"componentBreakpoint",2),Ie=Ve([Pt("sd-brandshape")],Ie);const Ue=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ie}},Symbol.toStringTag,{value:"Module"}));var Fe=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,He=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Re(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fe(e,i,s),s};let Ne=class extends ie{constructor(){super(...arguments),this.color="currentColor",this.localize=new k(this)}render(){return pt`<svg role="progressbar" viewBox="0 0 24 24" class="${we("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};Ne.styles=[ie.styles,P`:host{display:inline-block;width:1em;height:1em}`],He([Lt({reflect:!0})],Ne.prototype,"color",2),Ne=He([Pt("sd-spinner")],Ne);const qe=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ne}},Symbol.toStringTag,{value:"Module"})),Ke=new WeakMap,Ze=new WeakMap,We=new WeakMap,Ye=new WeakMap;class Xe{constructor(t,e){this.handleFormData=t=>{const e=this.options.disabled(this.host),i=this.options.name(this.host),o=this.options.value(this.host),r="sd-button"===this.host.tagName.toLowerCase();!e&&!r&&"string"==typeof i&&i.length>0&&typeof o<"u"&&(Array.isArray(o)?o.forEach((e=>{t.formData.append(i,e.toString())})):t.formData.append(i,o.toString()))},this.handleFormSubmit=t=>{var e;const i=this.options.disabled(this.host),o=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(e=Ke.get(this.form))||e.forEach((t=>{this.setUserInteracted(t,!0)}))),this.form&&!this.form.noValidate&&!i&&!o(this.host)&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Ye.set(this.host,[])},this.handleInteraction=t=>{const e=Ye.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},(this.host=t).addController(this),this.options={form:t=>{if(t.hasAttribute("form")&&""!==t.getAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");if(i)return e.getElementById(i)}return t.closest("form")},name:t=>t.name,value:t=>t.value,defaultValue:t=>t.defaultValue,disabled:t=>t.disabled??!1,reportValidity:t=>"function"!=typeof t.reportValidity||t.reportValidity(),setValue:(t,e)=>t.value=e,assumeInteractionOn:["sd-input"],...e}}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Ye.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),Ye.delete(this.host),this.options.assumeInteractionOn.forEach((t=>{this.host.removeEventListener(t,this.handleInteraction)}))}hostUpdated(){var t;const e=this.options.form(this.host);e||this.detachForm(),e&&this.form!==e&&(this.detachForm(),this.attachForm(e)),this.host.hasUpdated&&this.setValidity(null==(t=this.host)?void 0:t.validity.valid)}attachForm(t){t?(this.form=t,Ke.has(this.form)?Ke.get(this.form).add(this.host):Ke.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Ze.has(this.form)||(Ze.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&(null==(t=Ke.get(this.form))||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Ze.has(this.form)&&(this.form.reportValidity=Ze.get(this.form),Ze.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.reportValidity&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){We.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){const i=document.createElement("button");i.type=t,i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.clipPath="inset(50%)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",e&&(i.name=e.name,i.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&i.setAttribute(t,e.getAttribute(t))}))),this.form.append(i),i.click(),i.remove()}}getForm(){return this.form??null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var e;const i=this.host,o=!!We.get(i),r=!!i.required;null!=(e=this.form)&&e.noValidate?(i.removeAttribute("data-required"),i.removeAttribute("data-optional"),i.removeAttribute("data-invalid"),i.removeAttribute("data-valid"),i.removeAttribute("data-user-invalid"),i.removeAttribute("data-user-valid")):(i.toggleAttribute("data-required",r),i.toggleAttribute("data-optional",!r),i.toggleAttribute("data-invalid",!t),i.toggleAttribute("data-valid",t),i.toggleAttribute("data-user-invalid",!t&&o),i.toggleAttribute("data-user-valid",t&&o))}updateValidity(){const t=this.host;this.setValidity(null==t?void 0:t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||null==t||t.preventDefault()}}const Ge=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Je=Object.freeze({...Ge,valid:!1,valueMissing:!0}),Qe=Object.freeze({...Ge,valid:!1,customError:!0});class ti{constructor(t,...e){this.slotNames=[],(this.host=t).addController(this),this.slotNames=e,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&""!==t.textContent.trim())return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if("sd-visually-hidden"===e.tagName.toLowerCase())return!1;if(!e.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(t){return null!==this.host.querySelector(`:scope > [slot="${t}"]`)}test(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(t){const e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()}}
64
+ */let Wt=class extends Kt{};Wt.directiveName="unsafeSVG",Wt.resultType=2;const Yt=Nt(Wt);function Xt(t,e){const i={waitUntilFirstUpdate:!1,...e};return(e,o)=>{const{update:r}=e,s=Array.isArray(t)?t:[t];e.update=function(t){s.forEach((e=>{const r=e;if(t.has(r)){const e=t.get(r),s=this[r];e!==s&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[o](e,s)}})),r.call(this,t)}}}const Gt=P`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`;var Jt=Object.defineProperty,Qt=Object.getOwnPropertyDescriptor,te=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Qt(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Jt(e,i,s),s};const ee=class extends Et{emit(t,e){const i=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(i),i}};ee.styles=z('/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.\\!right-0{right:var(--sd-spacing-0,0)!important}.-top-\\[1px\\]{top:-1px}.bottom-0{bottom:var(--sd-spacing-0,0)}.bottom-auto{bottom:var(--sd-spacing-auto,auto)}.end-0{inset-inline-end:var(--sd-spacing-0,0)}.end-auto{inset-inline-end:var(--sd-spacing-auto,auto)}.left-0{left:var(--sd-spacing-0,0)}.left-1\\/2{left:50%}.right-0{right:var(--sd-spacing-0,0)}.right-2{right:var(--sd-spacing-2,.5rem)}.start-0{inset-inline-start:var(--sd-spacing-0,0)}.start-auto{inset-inline-start:var(--sd-spacing-auto,auto)}.top-0{top:var(--sd-spacing-0,0)}.top-1{top:var(--sd-spacing-1,.25rem)}.top-1\\/2{top:50%}.top-2{top:var(--sd-spacing-2,.5rem)}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.\\!m-0{margin:var(--sd-spacing-0,0)!important}.m-0{margin:var(--sd-spacing-0,0)}.m-2{margin:var(--sd-spacing-2,.5rem)}.m-4{margin:var(--sd-spacing-4,1rem)}.mx-auto{margin-left:var(--sd-spacing-auto,auto);margin-right:var(--sd-spacing-auto,auto)}.my-0{margin-bottom:var(--sd-spacing-0,0);margin-top:var(--sd-spacing-0,0)}.\\!ml-6{margin-left:var(--sd-spacing-6,1.5rem)!important}.\\!mr-6{margin-right:var(--sd-spacing-6,1.5rem)!important}.mb-2{margin-bottom:var(--sd-spacing-2,.5rem)}.mb-4{margin-bottom:var(--sd-spacing-4,1rem)}.mb-6{margin-bottom:var(--sd-spacing-6,1.5rem)}.ml-0{margin-left:var(--sd-spacing-0,0)}.ml-1{margin-left:var(--sd-spacing-1,.25rem)}.ml-2{margin-left:var(--sd-spacing-2,.5rem)}.ml-4{margin-left:var(--sd-spacing-4,1rem)}.ml-6{margin-left:var(--sd-spacing-6,1.5rem)}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-auto{margin-left:var(--sd-spacing-auto,auto)}.mr-1{margin-right:var(--sd-spacing-1,.25rem)}.mr-2{margin-right:var(--sd-spacing-2,.5rem)}.mr-\\[0\\.25em\\]{margin-right:.25em}.mr-\\[0\\.5em\\]{margin-right:.5em}.mt-\\[1px\\]{margin-top:1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.h-2{height:var(--sd-spacing-2,.5rem)}.h-2\\.5{height:var(--sd-spacing-2-5,.625rem)}.h-2\\/3{height:66.666667%}.h-3{height:var(--sd-spacing-3,.75rem)}.h-4{height:var(--sd-spacing-4,1rem)}.h-5{height:var(--sd-spacing-5,1.25rem)}.h-6{height:var(--sd-spacing-6,1.5rem)}.h-8{height:var(--sd-spacing-8,2rem)}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[48px\\]{height:48px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-full{height:100%}.h-varspacing{height:var(--tw-varspacing)}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.w-0{width:var(--sd-spacing-0,0)}.w-1{width:var(--sd-spacing-1,.25rem)}.w-2{width:var(--sd-spacing-2,.5rem)}.w-2\\.5{width:var(--sd-spacing-2-5,.625rem)}.w-2\\/5{width:40%}.w-3{width:var(--sd-spacing-3,.75rem)}.w-4{width:var(--sd-spacing-4,1rem)}.w-5{width:var(--sd-spacing-5,1.25rem)}.w-6{width:var(--sd-spacing-6,1.5rem)}.w-8{width:var(--sd-spacing-8,2rem)}.w-\\[--width\\]{width:var(--width)}.w-\\[48px\\]{width:48px}.w-\\[96px\\]{width:96px}.w-auto{width:var(--sd-spacing-auto,auto)}.w-full{width:100%}.w-varspacing{width:var(--tw-varspacing)}.min-w-0{min-width:0}.min-w-\\[16px\\]{min-width:16px}.min-w-\\[20px\\]{min-width:20px}.min-w-\\[8px\\]{min-width:8px}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-full{max-width:100%}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:-50%!important}.\\!-translate-x-1\\/2,.\\!-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\\!-translate-y-1\\/2{--tw-translate-y:-50%!important}.\\!translate-x-1\\/2{--tw-translate-x:50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2, .5rem)*-1)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:var(--sd-spacing-2,.5rem)}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.rotate-\\[270deg\\]{--tw-rotate:270deg}.rotate-\\[270deg\\],.scale-y-\\[1\\.5\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes grow{0%{width:0}to{width:100%}}.animate-grow{animation:grow linear}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0{gap:var(--sd-spacing-0,0)}.gap-0\\.5{gap:var(--sd-spacing-0-5,.125rem)}.gap-1{gap:var(--sd-spacing-1,.25rem)}.gap-2{gap:var(--sd-spacing-2,.5rem)}.gap-4{gap:var(--sd-spacing-4,1rem)}.gap-8{gap:var(--sd-spacing-8,2rem)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.overscroll-x-contain{overscroll-behavior-x:contain}.whitespace-nowrap{white-space:nowrap}.\\!rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)!important}.rounded-default{border-radius:var(--sd-border-radius-default,.25rem)}.rounded-full{border-radius:var(--sd-border-radius-full,9999px)}.rounded-md{border-radius:var(--sd-border-radius-md,.375rem)}.rounded-none{border-radius:var(--sd-border-radius-none,0)}.rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)}.rounded-bl-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-bl-none{border-bottom-left-radius:var(--sd-border-radius-none,0)}.rounded-br-default{border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-br-none{border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-tl-default{border-top-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-tl-none{border-top-left-radius:var(--sd-border-radius-none,0)}.rounded-tr-default{border-top-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-tr-none{border-top-right-radius:var(--sd-border-radius-none,0)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[1px\\]{border-width:1px}.border-y-\\[1px\\]{border-bottom-width:1px;border-top-width:1px}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-border-opacity))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-border-opacity))}.border-neutral-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity))}.border-neutral-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.border-neutral-800{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-border-opacity))}.border-success{--tw-border-opacity:1;border-color:rgb(var(--sd-color-success,54 123 40)/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.65\\)\\]{background-color:#000000a6}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity))}.bg-error{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-bg-opacity))}.bg-info{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-info,21 130 213)/var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-bg-opacity))}.bg-neutral-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-bg-opacity))}.bg-neutral-800\\/75{background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--sd-opacity-75,.75))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-bg-opacity))}.bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.bg-success{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-success,54 123 40)/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-warning,187 141 32)/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:var(--sd-opacity-75,.75)}.bg-none{background-image:none}.fill-neutral-100{fill:rgb(var(--sd-color-neutral-100,246 246 246)/1)}.fill-primary{fill:rgb(var(--sd-color-primary,0 53 142)/1)}.fill-white{fill:rgb(var(--sd-color-white,255 255 255)/1)}.p-0{padding:var(--sd-spacing-0,0)}.p-1{padding:var(--sd-spacing-1,.25rem)}.p-4{padding:var(--sd-spacing-4,1rem)}.px-0{padding-left:var(--sd-spacing-0,0);padding-right:var(--sd-spacing-0,0)}.px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.px-2{padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}.px-3{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}.px-4{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.px-6{padding-left:var(--sd-spacing-6,1.5rem);padding-right:var(--sd-spacing-6,1.5rem)}.px-8{padding-left:var(--sd-spacing-8,2rem);padding-right:var(--sd-spacing-8,2rem)}.px-\\[4px\\]{padding-left:4px;padding-right:4px}.px-\\[5px\\]{padding-left:5px;padding-right:5px}.py-1{padding-bottom:var(--sd-spacing-1,.25rem);padding-top:var(--sd-spacing-1,.25rem)}.py-2{padding-bottom:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-2,.5rem)}.py-3{padding-bottom:var(--sd-spacing-3,.75rem);padding-top:var(--sd-spacing-3,.75rem)}.py-4{padding-bottom:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-4,1rem)}.py-6{padding-bottom:var(--sd-spacing-6,1.5rem);padding-top:var(--sd-spacing-6,1.5rem)}.py-8{padding-bottom:var(--sd-spacing-8,2rem);padding-top:var(--sd-spacing-8,2rem)}.py-\\[5px\\]{padding-bottom:5px;padding-top:5px}.pb-1{padding-bottom:var(--sd-spacing-1,.25rem)}.pb-2{padding-bottom:var(--sd-spacing-2,.5rem)}.pb-3{padding-bottom:var(--sd-spacing-3,.75rem)}.pl-3{padding-left:var(--sd-spacing-3,.75rem)}.pl-4{padding-left:var(--sd-spacing-4,1rem)}.pl-8{padding-left:var(--sd-spacing-8,2rem)}.pr-2{padding-right:var(--sd-spacing-2,.5rem)}.pr-3{padding-right:var(--sd-spacing-3,.75rem)}.pr-4{padding-right:var(--sd-spacing-4,1rem)}.pt-3{padding-top:var(--sd-spacing-3,.75rem)}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-base{font-size:var(--sd-font-size-base,1rem)}.text-lg{font-size:var(--sd-font-size-lg,1.25rem)}.text-sm{font-size:var(--sd-font-size-sm,.875rem)}.text-xl{font-size:var(--sd-font-size-xl,1.5rem)}.font-bold{font-weight:700}.leading-\\[calc\\(var\\(--tw-varspacing\\)-2px\\)\\]{line-height:calc(var(--tw-varspacing) - 2px)}.leading-none{line-height:var(--sd-line-height-none,100%)}.leading-normal{line-height:var(--sd-line-height-normal,150%)}.text-black{--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity))}.text-error{--tw-text-opacity:1;color:rgb(var(--sd-color-error,204 25 55)/var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity))}.text-success{--tw-text-opacity:1;color:rgb(var(--sd-color-success,54 123 40)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.placeholder-neutral-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.placeholder-neutral-700::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity))}.opacity-0{opacity:var(--sd-opacity-0,0)}.opacity-20{opacity:var(--sd-opacity-20,.2)}.shadow{--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10,2.5rem)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12,3rem)}.varspacing-8{--tw-varspacing:var(--sd-spacing-8,2rem)}.focus-within\\:focus-outline:focus-within{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-within\\:focus-outline-inverted:focus-within{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline-inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:border-neutral-500:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity))}.disabled\\:border-neutral-600:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-border-opacity))}.disabled\\:bg-neutral-500:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity))}.disabled\\:bg-neutral-600:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-bg-opacity))}.disabled\\:text-neutral-500:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity))}.disabled\\:text-neutral-600:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}.disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.group:hover .group-hover\\:top-0{top:var(--sd-spacing-0,0)}.group:hover .group-hover\\:h-full{height:100%}.group:hover .group-hover\\:border-accent-550{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.group:hover .group-hover\\:border-error-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.group:hover .group-hover\\:bg-accent-550{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-error-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.group:hover .group-hover\\:bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.peer:focus-visible~.peer-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline-2{outline-width:2px}.peer:focus-visible~.peer-focus-visible\\:outline-offset-2{outline-offset:2px}.peer:focus-visible~.peer-focus-visible\\:outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:border-accent-550:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity))}.hover\\:border-error-400:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity))}.hover\\:border-primary-100:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-border-opacity))}.hover\\:border-primary-500:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity))}.hover\\:bg-accent-300:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-300,108 194 84)/var(--tw-bg-opacity))}.hover\\:bg-accent-550:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity))}.hover\\:bg-error-400:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity))}.hover\\:bg-neutral-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity))}.hover\\:bg-neutral-200:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity))}.hover\\:bg-primary-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity))}.hover\\:bg-primary-500:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity))}.hover\\:text-primary-100:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-text-opacity))}.hover\\:text-primary-200:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.hover\\:text-primary-500:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.active\\:border-primary-200:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-border-opacity))}.active\\:border-primary-800:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-border-opacity))}.active\\:bg-accent-700:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-700,33 87 37)/var(--tw-bg-opacity))}.active\\:bg-primary-200:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-bg-opacity))}.active\\:bg-primary-800:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity))}.active\\:text-primary-200:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.active\\:text-primary-400:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.active\\:text-primary-800:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity))}');let ie=ee;te([Lt()],ie.prototype,"dir",2),te([Lt()],ie.prototype,"lang",2);var oe=Object.defineProperty,re=Object.getOwnPropertyDescriptor,se=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?re(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&oe(e,i,s),s};let ae,ne=class extends ie{constructor(){super(...arguments),this.svg="",this.label="",this.library="default",this.color="currentColor"}connectedCallback(){super.connectedCallback(),l(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),d(this)}getUrl(){const t=c(this.library);return this.name&&t?t.resolver(this.name):this.src}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const e=c(this.library),i=this.getUrl();if(ae||(ae=new DOMParser),i)try{const o=await Rt(i);if(i===this.getUrl())if(o.ok){const i=ae.parseFromString(o.svg,"text/html").body.querySelector("svg");null!==i?(null==(t=null==e?void 0:e.mutator)||t.call(e,i),this.svg=i.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch{this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return pt`${Yt(this.svg)}`}};ne.styles=[Gt,P`:host{width:1em;height:1em;box-sizing:content-box!important;display:inline-block}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142) / var(--tw-text-opacity))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255) / var(--tw-text-opacity))}`],se([Dt()],ne.prototype,"svg",2),se([Lt({reflect:!0})],ne.prototype,"name",2),se([Lt()],ne.prototype,"src",2),se([Lt()],ne.prototype,"label",2),se([Lt({reflect:!0})],ne.prototype,"library",2),se([Lt({reflect:!0})],ne.prototype,"color",2),se([Xt("label")],ne.prototype,"handleLabelChange",1),se([Xt(["name","src","library"])],ne.prototype,"setIcon",1),ne=se([Pt("sd-icon")],ne);const le=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ne}},Symbol.toStringTag,{value:"Module"}));function de(t,e,i){return new Promise((o=>{if((null==i?void 0:i.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,{...i,duration:he()?0:i.duration});r.addEventListener("cancel",o,{once:!0}),r.addEventListener("finish",o,{once:!0})}))}function ce(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function he(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function pe(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{const i=requestAnimationFrame(e);t.addEventListener("cancel",(()=>i),{once:!0}),t.addEventListener("finish",(()=>i),{once:!0}),t.cancel()})))))}function ue(t,e){return t.map((t=>({...t,height:"auto"===t.height?`${e}px`:t.height})))}const me=new Map,be=new WeakMap;function ve(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function ge(t,e){me.set(t,function(t){return t??{keyframes:[],options:{duration:0}}}(e))}function fe(t,e,i){const o=be.get(t);if(null!=o&&o[e])return ve(o[e],i.dir);const r=me.get(e);return r?ve(r,i.dir):{keyframes:[],options:{duration:0}}}function ye(t,e){return new Promise((i=>{t.addEventListener(e,(function o(r){r.target===t&&(t.removeEventListener(e,o),i())}))}))}function we(){let t,e="",i=0;for(;i<arguments.length;)(t=arguments[i++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}var xe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Ce=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ke(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&xe(e,i,s),s};let $e=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0"}handleSummaryClick(){this.header.focus(),this.open?this.hide():this.show()}handleSummaryKeyDown(t){("Enter"===t.key||" "===t.key)&&(t.preventDefault(),this.open?this.hide():this.show()),("ArrowUp"===t.key||"ArrowLeft"===t.key)&&(t.preventDefault(),this.hide()),("ArrowDown"===t.key||"ArrowRight"===t.key)&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.emit("sd-show",{cancelable:!0}).defaultPrevented)return void(this.open=!1);await pe(this.body),this.body.hidden=!1;const{keyframes:t,options:e}=fe(this,"accordion.show",{dir:this.localize.dir()});await de(this.body,ue(t,this.body.scrollHeight),e),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented)return void(this.open=!0);await pe(this.body);const{keyframes:t,options:e}=fe(this,"accordion.hide",{dir:this.localize.dir()});await de(this.body,ue(t,this.body.scrollHeight),e),this.body.hidden=!0,this.body.style.height="auto",this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}render(){return pt`<div part="base" class="border-y-[1px] border-neutral-400"><header part="header" id="header" class="${we("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 py-3 focus-visible:focus-outline text-primary hover:bg-neutral-200 relative group")}" role="button" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div class="${we(!this.open&&"opacity-0","w-1 bg-accent absolute left-0 transition-all h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${we("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${we(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${we(!this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot></span></header><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></div>`}};$e.styles=[ie.styles,P`:host{display:block}`],Ce([Bt('[part="base"]')],$e.prototype,"accordion",2),Ce([Bt('[part="header"]')],$e.prototype,"header",2),Ce([Bt('[part="content"]')],$e.prototype,"body",2),Ce([Lt({type:Boolean,reflect:!0})],$e.prototype,"open",2),Ce([Lt()],$e.prototype,"summary",2),Ce([Xt("open",{waitUntilFirstUpdate:!0})],$e.prototype,"handleOpenChange",1),$e=Ce([Pt("sd-accordion")],$e),ge("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),ge("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Se=Object.freeze(Object.defineProperty({__proto__:null,get default(){return $e}},Symbol.toStringTag,{value:"Module"}));var _e=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Ee=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Oe(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&_e(e,i,s),s};let ze=class extends ie{constructor(){super(...arguments),this.closeOthers=!1,this.handleAccordionShow=t=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach((e=>{e!==t.target&&e.parentNode===t.target.parentNode&&e.removeAttribute("open")}))}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return pt`<div part="base"><slot></slot></div>`}};ze.styles=[Gt,ie.styles,P`:host{display:block}::slotted(sd-accordion:not(:first-of-type)){margin-top:-1px}`],Ee([jt({selector:"sd-accordion"})],ze.prototype,"_accordionsInDefaultSlot",2),Ee([Lt({attribute:"close-others",type:Boolean})],ze.prototype,"closeOthers",2),ze=Ee([Pt("sd-accordion-group")],ze);const Pe=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ze}},Symbol.toStringTag,{value:"Module"}));var Ae=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Le=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Te(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ae(e,i,s),s};let De=class extends ie{constructor(){super(...arguments),this.variant="default",this.size="lg",this.inverted=!1}render(){return pt`<span tabindex="0" role="status" part="base" class="${we("inline-flex items-center justify-center gap-x-[1px] text-center leading-none whitespace-nowrap border rounded-full select-none cursor-[inherit]",{default:this.inverted?"text-primary bg-white border-primary":"text-white bg-primary-500 border-white",success:this.inverted?"text-white bg-success border-primary":"text-white bg-success border-white",error:this.inverted?"text-white bg-error border-primary":"text-white bg-error border-white"}[this.variant],{sm:"h-2 min-w-[8px] text-[10px]",md:"h-4 px-[4px] min-w-[16px] text-[10px]",lg:"h-5 px-[5px] min-w-[20px] text-[12px]"}[this.size])}"><span part="content" class="${we("sm"===this.size&&"hidden")}"><slot></slot></span></span>`}};De.styles=[ie.styles,P`:host{display:inline-flex;align-items:center;justify-content:center}`],Le([Lt({reflect:!0})],De.prototype,"variant",2),Le([Lt({reflect:!0})],De.prototype,"size",2),Le([Lt({type:Boolean,reflect:!0})],De.prototype,"inverted",2),De=Le([Pt("sd-badge")],De);const Me=Object.freeze(Object.defineProperty({__proto__:null,get default(){return De}},Symbol.toStringTag,{value:"Module"}));var Be=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Ve=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?je(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Be(e,i,s),s};let Ie=class extends ie{constructor(){super(...arguments),this.variant="primary",this.shapes=["top","middle","bottom"],this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return"top"===t?pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return"top"===t?pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return"top"===t?pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:pt`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.setBreakpoint())),this.updateComplete.then((()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return pt`<div class="relative" part="shape-top">${1===this.shapes.length?pt`<div class="relative">${this.getSvg(this.componentBreakpoint,"top")}<div part="content" class="absolute bottom-0 right-0 flex items-end w-2/5 h-2/3 px-6 py-4"><slot></slot></div></div>`:this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return pt`<div class="${we({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${we({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="z-10 relative" part="content"><slot></slot></div></div>`}renderBottomBrandshape(){return pt`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return pt`<div class="${we({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}render(){return pt`<div class="${we({"neutral-100":"fill-neutral-100",primary:"fill-primary",white:"fill-white"}[this.variant])}" part="base">${this.shapes.includes("top")?this.renderTopBrandshape():null} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():null} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():null}</div>`}};Ie.styles=[Gt,ie.styles,P`:host{display:block}`],Ve([Bt("[part=base]")],Ie.prototype,"containerElem",2),Ve([Lt({type:String})],Ie.prototype,"variant",2),Ve([Lt({type:Array})],Ie.prototype,"shapes",2),Ve([Dt()],Ie.prototype,"componentBreakpoint",2),Ie=Ve([Pt("sd-brandshape")],Ie);const Ue=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ie}},Symbol.toStringTag,{value:"Module"}));var Fe=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,He=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Re(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fe(e,i,s),s};let Ne=class extends ie{constructor(){super(...arguments),this.color="currentColor",this.localize=new k(this)}render(){return pt`<svg role="progressbar" viewBox="0 0 24 24" class="${we("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};Ne.styles=[ie.styles,P`:host{display:inline-block;width:1em;height:1em}`],He([Lt({reflect:!0})],Ne.prototype,"color",2),Ne=He([Pt("sd-spinner")],Ne);const qe=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ne}},Symbol.toStringTag,{value:"Module"})),Ke=new WeakMap,Ze=new WeakMap,We=new WeakMap,Ye=new WeakMap;class Xe{constructor(t,e){this.handleFormData=t=>{const e=this.options.disabled(this.host),i=this.options.name(this.host),o=this.options.value(this.host),r="sd-button"===this.host.tagName.toLowerCase();!e&&!r&&"string"==typeof i&&i.length>0&&typeof o<"u"&&(Array.isArray(o)?o.forEach((e=>{t.formData.append(i,e.toString())})):t.formData.append(i,o.toString()))},this.handleFormSubmit=t=>{var e;const i=this.options.disabled(this.host),o=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(e=Ke.get(this.form))||e.forEach((t=>{this.setUserInteracted(t,!0)}))),this.form&&!this.form.noValidate&&!i&&!o(this.host)&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Ye.set(this.host,[])},this.handleInteraction=t=>{const e=Ye.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},(this.host=t).addController(this),this.options={form:t=>{if(t.hasAttribute("form")&&""!==t.getAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");if(i)return e.getElementById(i)}return t.closest("form")},name:t=>t.name,value:t=>t.value,defaultValue:t=>t.defaultValue,disabled:t=>t.disabled??!1,reportValidity:t=>"function"!=typeof t.reportValidity||t.reportValidity(),setValue:(t,e)=>t.value=e,assumeInteractionOn:["sd-input"],...e}}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Ye.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),Ye.delete(this.host),this.options.assumeInteractionOn.forEach((t=>{this.host.removeEventListener(t,this.handleInteraction)}))}hostUpdated(){var t;const e=this.options.form(this.host);e||this.detachForm(),e&&this.form!==e&&(this.detachForm(),this.attachForm(e)),this.host.hasUpdated&&this.setValidity(null==(t=this.host)?void 0:t.validity.valid)}attachForm(t){t?(this.form=t,Ke.has(this.form)?Ke.get(this.form).add(this.host):Ke.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Ze.has(this.form)||(Ze.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&(null==(t=Ke.get(this.form))||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Ze.has(this.form)&&(this.form.reportValidity=Ze.get(this.form),Ze.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.reportValidity&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){We.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){const i=document.createElement("button");i.type=t,i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.clipPath="inset(50%)",i.style.overflow="hidden",i.style.whiteSpace="nowrap",e&&(i.name=e.name,i.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&i.setAttribute(t,e.getAttribute(t))}))),this.form.append(i),i.click(),i.remove()}}getForm(){return this.form??null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var e;const i=this.host,o=!!We.get(i),r=!!i.required;null!=(e=this.form)&&e.noValidate?(i.removeAttribute("data-required"),i.removeAttribute("data-optional"),i.removeAttribute("data-invalid"),i.removeAttribute("data-valid"),i.removeAttribute("data-user-invalid"),i.removeAttribute("data-user-valid")):(i.toggleAttribute("data-required",r),i.toggleAttribute("data-optional",!r),i.toggleAttribute("data-invalid",!t),i.toggleAttribute("data-valid",t),i.toggleAttribute("data-user-invalid",!t&&o),i.toggleAttribute("data-user-valid",t&&o))}updateValidity(){const t=this.host;this.setValidity(null==t?void 0:t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||null==t||t.preventDefault()}}const Ge=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Je=Object.freeze({...Ge,valid:!1,valueMissing:!0}),Qe=Object.freeze({...Ge,valid:!1,customError:!0});class ti{constructor(t,...e){this.slotNames=[],(this.host=t).addController(this),this.slotNames=e,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&""!==t.textContent.trim())return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if("sd-visually-hidden"===e.tagName.toLowerCase())return!1;if(!e.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(t){return null!==this.host.querySelector(`:scope > [slot="${t}"]`)}test(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(t){const e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()}}
65
65
  /**
66
66
  * @license
67
67
  * Copyright 2020 Google LLC
68
68
  * SPDX-License-Identifier: BSD-3-Clause
69
- */const ei=Symbol.for(""),ii=t=>{if((null==t?void 0:t.r)===ei)return null==t?void 0:t._$litStatic$},oi=(t,...e)=>({_$litStatic$:e.reduce(((e,i,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+t[o+1]),t[0]),r:ei}),ri=new Map,si=(t=>(e,...i)=>{const o=i.length;let r,s;const a=[],n=[];let l,d=0,h=!1;for(;d<o;){for(l=e[d];d<o&&(s=i[d],void 0!==(r=ii(s)));)l+=r+e[++d],h=!0;d!==o&&n.push(s),a.push(l),d++}if(d===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=ri.get(t))&&(a.raw=a,ri.set(t,e=a)),i=n}return t(e,...i)})(pt),ai=t=>t??bt;
69
+ */const ei=Symbol.for(""),ii=t=>{if((null==t?void 0:t.r)===ei)return null==t?void 0:t._$litStatic$},oi=(t,...e)=>({_$litStatic$:e.reduce(((e,i,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+t[o+1]),t[0]),r:ei}),ri=new Map,si=(t=>(e,...i)=>{const o=i.length;let r,s;const a=[],n=[];let l,d=0,c=!1;for(;d<o;){for(l=e[d];d<o&&(s=i[d],void 0!==(r=ii(s)));)l+=r+e[++d],c=!0;d!==o&&n.push(s),a.push(l),d++}if(d===o&&a.push(e[o]),c){const t=a.join("$$lit$$");void 0===(e=ri.get(t))&&(a.raw=a,ri.set(t,e=a)),i=n}return t(e,...i)})(pt),ai=t=>t??mt;
70
70
  /**
71
71
  * @license
72
72
  * Copyright 2018 Google LLC
73
73
  * SPDX-License-Identifier: BSD-3-Clause
74
- */var ni=Object.defineProperty,li=Object.getOwnPropertyDescriptor,di=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?li(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ni(e,i,s),s};let hi=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");return e.getElementById(i)}return t.closest("form")}}),this.hasSlotController=new ti(this,"[default]","icon-left","icon-right"),this.invalid=!1,this.title="",this.variant="primary",this.inverted=!1,this.size="lg",this.disabled=!1,this.loading=!1,this.type="button",this.name="",this.value="",this.href=""}get validity(){return this.isButton()?this.button.validity:Ge}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?oi`a`:oi`button`,i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return si`<${e} part="base" class="${we("font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline\n w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center\n border transition-colors duration-200 ease-in-out rounded-md\n select-none cursor-[inherit]",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",i["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?"text-primary bg-white border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:bg-neutral-600 disabled:text-white":"text-white bg-primary border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:bg-neutral-500",secondary:this.inverted?"text-white border-white\n hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100\n active:text-primary-200 active:bg-primary-800 active:border-primary-200\n disabled:text-neutral-600 disabled:border-neutral-600":"text-primary border-primary\n hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100\n active:text-primary-800 active:border-primary-800 active:bg-primary-200\n disabled:text-neutral-500 disabled:border-neutral-500",tertiary:this.inverted?"text-white border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:text-neutral-600":"text-primary border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:text-neutral-500",cta:`text-white bg-accent border-transparent\n hover:bg-accent-550\n active:bg-accent-700\n ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${ai(t?void 0:this.disabled)}" type="${ai(t?void 0:this.type)}" title="${this.title}" name="${ai(t?void 0:this.name)}" value="${ai(t?void 0:this.value)}" href="${ai(t?this.href:void 0)}" target="${ai(t?this.target:void 0)}" download="${ai(t?this.download:void 0)}" rel="${ai(t&&this.target?"noreferrer noopener":void 0)}" role="${ai(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" 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="${we("flex flex-auto items-center pointer-events-none",i["icon-only"]&&"hidden",this.loading&&"invisible",i["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" class="${we(i["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${we("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",i["icon-only"]&&"hidden",i["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?si`<sd-spinner class="${we("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};hi.styles=[Gt,ie.styles,P`:host{display:inline-block;position:relative;width:auto;cursor:pointer}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){position:absolute;top:0;right:0;translate:50% -50%;pointer-events:none}::slotted(sd-icon),sd-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`],di([Bt("a, button")],hi.prototype,"button",2),di([jt({selector:"sd-icon"})],hi.prototype,"_iconsInDefaultSlot",2),di([Dt()],hi.prototype,"invalid",2),di([Lt()],hi.prototype,"title",2),di([Lt({reflect:!0})],hi.prototype,"variant",2),di([Lt({type:Boolean,reflect:!0})],hi.prototype,"inverted",2),di([Lt({reflect:!0})],hi.prototype,"size",2),di([Lt({type:Boolean,reflect:!0})],hi.prototype,"disabled",2),di([Lt({type:Boolean,reflect:!0})],hi.prototype,"loading",2),di([Lt()],hi.prototype,"type",2),di([Lt()],hi.prototype,"name",2),di([Lt()],hi.prototype,"value",2),di([Lt()],hi.prototype,"href",2),di([Lt()],hi.prototype,"target",2),di([Lt()],hi.prototype,"download",2),di([Lt()],hi.prototype,"form",2),di([Lt({attribute:"formaction"})],hi.prototype,"formAction",2),di([Lt({attribute:"formenctype"})],hi.prototype,"formEnctype",2),di([Lt({attribute:"formmethod"})],hi.prototype,"formMethod",2),di([Lt({attribute:"formnovalidate",type:Boolean})],hi.prototype,"formNoValidate",2),di([Lt({attribute:"formtarget"})],hi.prototype,"formTarget",2),di([Xt("disabled",{waitUntilFirstUpdate:!0})],hi.prototype,"handleDisabledChange",1),hi=di([Pt("sd-button")],hi);const ci=Object.freeze(Object.defineProperty({__proto__:null,get default(){return hi}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty,Object.getOwnPropertyDescriptor;let pi=class extends ie{static isCarouselItem(t){return t instanceof Element&&"slide"===t.getAttribute("aria-roledescription")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return pt`<slot></slot>`}};pi.styles=[ie.styles,P`${Gt}:host{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%;aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always}::slotted(img){width:100%;height:100%;object-fit:cover}`],pi=((t,e,i,o)=>{for(var r,s=e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(s)||s);return s})([Pt("sd-carousel-item")],pi);const ui=Object.freeze(Object.defineProperty({__proto__:null,get default(){return pi}},Symbol.toStringTag,{value:"Module"}));class bi{constructor(t,e){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())},this.controlledPause=()=>{this.paused=!0,this.host.requestUpdate()},this.controlledResume=()=>{this.paused=!1,this.host.requestUpdate()},t.addController(this),this.host=t,this.tickCallback=e}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(t){this.stop(),this.stopped=!1,this.timerId=window.setInterval((()=>{this.paused||this.tickCallback()}),t)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}}const mi=Object.freeze(Object.defineProperty({__proto__:null,AutoplayController:bi},Symbol.toStringTag,{value:"Module"})),gi=Symbol(),vi=t=>(e,i,o)=>{const r=o.value;o.value=function(...e){clearTimeout(this[gi]),this[gi]=window.setTimeout((()=>{r.apply(this,e)}),t)}};var fi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor;class wi{constructor(t){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=t=>{"touch"!==t.pointerType&&(this.pointers.add(t.pointerId),this.mouseDragging&&!this.dragging&&0===t.button&&(t.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove)))},this.handlePointerMove=t=>{const e=this.host.scrollContainer,i=!!t.movementX||!!t.movementY;!this.dragging&&i?(e.setPointerCapture(t.pointerId),this.handleDragStart()):e.hasPointerCapture(t.pointerId)&&this.handleDrag(t)},this.handlePointerUp=t=>{this.pointers.delete(t.pointerId),this.host.scrollContainer.releasePointerCapture(t.pointerId),0===this.pointers.size&&this.handleDragEnd()},this.handleTouchEnd=t=>{for(const e of t.changedTouches)this.pointers.delete(e.identifier)},this.handleTouchStart=t=>{for(const e of t.touches)this.pointers.add(e.identifier)},this.host=t,t.addController(this)}async hostConnected(){const t=this.host;await t.updateComplete;const e=t.scrollContainer;e.addEventListener("scroll",this.handleScroll,{passive:!0}),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){const 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(){const t=this.host;this.dragging=!0,t.scrollContainer.style.setProperty("scroll-snap-type","unset"),t.requestUpdate()}handleDrag(t){this.host.scrollContainer.scrollBy({left:-t.movementX,top:-t.movementY})}async handleDragEnd(){const t=this.host,e=t.scrollContainer;e.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;const i=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type");const r=e.scrollLeft,s=e.scrollTop;e.style.setProperty("scroll-snap-type","unset"),e.scrollTo({left:i,top:o,behavior:"auto"}),e.scrollTo({left:r,top:s,behavior:ce()?"auto":"smooth"}),this.scrolling&&await ye(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),t.requestUpdate()}}((t,e,i,o)=>{for(var r,s=yi(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(e,i,s)||s);s&&fi(e,i,s)})([vi(100)],wi.prototype,"handleScrollEnd");const xi=Object.freeze(Object.defineProperty({__proto__:null,ScrollController:wi},Symbol.toStringTag,{value:"Module"})),ki=".sd-interactive--reset{all:unset;outline:revert}.sd-interactive{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity));cursor:pointer;text-decoration-line:none;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.sd-interactive:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.sd-interactive:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity))}.sd-interactive:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-interactive--inverted{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.sd-interactive--inverted:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.sd-interactive--inverted:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.sd-interactive--inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-interactive--disabled,.sd-interactive[disabled]{cursor:not-allowed}.sd-interactive--disabled,.sd-interactive--disabled:active:not([disabled]),.sd-interactive--disabled:hover:not([disabled]),.sd-interactive[disabled],.sd-interactive[disabled]:active:not([disabled]),.sd-interactive[disabled]:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}";var Ci=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,Si=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?$i(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ci(e,i,s),s};let _i=class extends ie{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.pausedAutoplay=!1,this.autoplayController=new bi(this,(()=>this.next())),this.scrollController=new wi(this),this.slides=this.getElementsByTagName("sd-carousel-item"),this.intersectionObserverEntries=new Map,this.localize=new k(this),this.handleSlotChange=t=>{t.some((t=>[...t.addedNodes,...t.removedNodes].some((t=>pi.isCarouselItem(t)&&!t.hasAttribute("data-clone")))))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));const t=new IntersectionObserver((t=>{t.forEach((t=>{this.intersectionObserverEntries.set(t.target,t);const e=t.target;e.toggleAttribute("inert",!t.isIntersecting),e.classList.toggle("--in-view",t.isIntersecting),e.setAttribute("aria-hidden",t.isIntersecting?"false":"true")}))}),{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach((t=>{this.intersectionObserverEntries.set(t.target,t)}))}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(){return Math.ceil(this.getSlides().length/this.slidesPerPage)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerPage)}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)){const e=t.target,i="rtl"===this.localize.dir(),o=null!==e.closest('[part~="pagination-item"]'),r="ArrowDown"===t.key||!i&&"ArrowRight"===t.key||i&&"ArrowLeft"===t.key,s="ArrowUp"===t.key||!i&&"ArrowLeft"===t.key||i&&"ArrowRight"===t.key;t.preventDefault(),s&&this.previous(),r&&this.next(),"Home"===t.key&&this.goToSlide(0),"End"===t.key&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then((()=>{var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector('[part~="pagination-item--active"]');e&&e.focus()}))}}handleScrollEnd(){const t=this.getSlides(),e=[...this.intersectionObserverEntries.values()].find((t=>t.isIntersecting));if(this.loop&&null!=e&&e.target.hasAttribute("data-clone")){const t=Number(e.target.getAttribute("data-clone"));this.goToSlide(t,"auto")}else e&&(this.activeSlide=t.indexOf(e.target))}handlePausedAutoplay(){this.pausedAutoplay?this.autoplayController.controlledPause():this.autoplay&&this.autoplayController.controlledResume()}initializeSlides(){const t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach(((t,i)=>{e.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",i+1)),t.hasAttribute("data-clone")&&t.remove()})),this.loop){const e=this.slidesPerPage,i=t.slice(-e),o=t.slice(0,e);i.reverse().forEach(((e,i)=>{const o=e.cloneNode(!0);o.setAttribute("data-clone",String(t.length-i-1)),this.prepend(o)})),o.forEach(((t,e)=>{const i=t.cloneNode(!0);i.setAttribute("data-clone",String(e)),this.append(i)}))}this.getSlides({excludeClones:!1}).forEach((t=>{e.observe(t)})),this.goToSlide(this.activeSlide,"auto")}handelSlideChange(){const t=this.getSlides();t.forEach(((t,e)=>{t.classList.toggle("--is-active",e===this.activeSlide)})),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}})}handleSlidesPerMoveChange(){const t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach(((t,i)=>{Math.abs(i-e)%e==0?t.style.removeProperty("scroll-snap-align"):t.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,i=!1;for(;!i&&e>0;)e-=1,i=Math.abs(e-this.slidesPerMove)%this.slidesPerMove==0;this.goToSlide(e,t)}next(t="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,t)}goToSlide(t,e="smooth"){const{slidesPerPage:i,loop:o,scrollContainer:r}=this,s=this.getSlides(),a=this.getSlides({excludeClones:!1}),n=(t+s.length)%s.length;this.activeSlide=n;const l=function(t,e,i){return(t=>Object.is(t,-0)?0:t)(t<0?0:t>i?i:t)}
74
+ */var ni=Object.defineProperty,li=Object.getOwnPropertyDescriptor,di=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?li(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ni(e,i,s),s};let ci=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),i=t.getAttribute("form");return e.getElementById(i)}return t.closest("form")}}),this.hasSlotController=new ti(this,"[default]","icon-left","icon-right"),this.invalid=!1,this.title="",this.variant="primary",this.inverted=!1,this.size="lg",this.disabled=!1,this.loading=!1,this.type="button",this.name="",this.value="",this.href=""}get validity(){return this.isButton()?this.button.validity:Ge}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?oi`a`:oi`button`,i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return si`<${e} part="base" class="${we("font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline\n w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center\n border transition-colors duration-200 ease-in-out rounded-md\n select-none cursor-[inherit]",this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",i["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?"text-primary bg-white border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:bg-neutral-600 disabled:text-white":"text-white bg-primary border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:bg-neutral-500",secondary:this.inverted?"text-white border-white\n hover:text-primary-100 hover:bg-primary-500 hover:border-primary-100\n active:text-primary-200 active:bg-primary-800 active:border-primary-200\n disabled:text-neutral-600 disabled:border-neutral-600":"text-primary border-primary\n hover:text-primary-500 hover:border-primary-500 hover:bg-primary-100\n active:text-primary-800 active:border-primary-800 active:bg-primary-200\n disabled:text-neutral-500 disabled:border-neutral-500",tertiary:this.inverted?"text-white border-transparent\n hover:text-primary-100 hover:bg-primary-500\n active:text-primary-200 active:bg-primary-800\n disabled:text-neutral-600":"text-primary border-transparent\n hover:text-primary-500 hover:bg-primary-100\n active:text-primary-800 active:bg-primary-200\n disabled:text-neutral-500",cta:`text-white bg-accent border-transparent\n hover:bg-accent-550\n active:bg-accent-700\n ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${ai(t?void 0:this.disabled)}" type="${ai(t?void 0:this.type)}" title="${this.title}" name="${ai(t?void 0:this.name)}" value="${ai(t?void 0:this.value)}" href="${ai(t?this.href:void 0)}" target="${ai(t?this.target:void 0)}" download="${ai(t?this.download:void 0)}" rel="${ai(t&&this.target?"noreferrer noopener":void 0)}" role="${ai(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" 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="${we("flex flex-auto items-center pointer-events-none",i["icon-only"]&&"hidden",this.loading&&"invisible",i["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" class="${we(i["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${we("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",i["icon-only"]&&"hidden",i["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?si`<sd-spinner class="${we("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};ci.styles=[Gt,ie.styles,P`:host{position:relative;display:inline-block;width:var(--sd-spacing-auto,auto);cursor:pointer}sd-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-badge){pointer-events:none;position:absolute;top:var(--sd-spacing-0,0);right: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)}`],di([Bt("a, button")],ci.prototype,"button",2),di([jt({selector:"sd-icon"})],ci.prototype,"_iconsInDefaultSlot",2),di([Dt()],ci.prototype,"invalid",2),di([Lt()],ci.prototype,"title",2),di([Lt({reflect:!0})],ci.prototype,"variant",2),di([Lt({type:Boolean,reflect:!0})],ci.prototype,"inverted",2),di([Lt({reflect:!0})],ci.prototype,"size",2),di([Lt({type:Boolean,reflect:!0})],ci.prototype,"disabled",2),di([Lt({type:Boolean,reflect:!0})],ci.prototype,"loading",2),di([Lt()],ci.prototype,"type",2),di([Lt()],ci.prototype,"name",2),di([Lt()],ci.prototype,"value",2),di([Lt()],ci.prototype,"href",2),di([Lt()],ci.prototype,"target",2),di([Lt()],ci.prototype,"download",2),di([Lt()],ci.prototype,"form",2),di([Lt({attribute:"formaction"})],ci.prototype,"formAction",2),di([Lt({attribute:"formenctype"})],ci.prototype,"formEnctype",2),di([Lt({attribute:"formmethod"})],ci.prototype,"formMethod",2),di([Lt({attribute:"formnovalidate",type:Boolean})],ci.prototype,"formNoValidate",2),di([Lt({attribute:"formtarget"})],ci.prototype,"formTarget",2),di([Xt("disabled",{waitUntilFirstUpdate:!0})],ci.prototype,"handleDisabledChange",1),ci=di([Pt("sd-button")],ci);const hi=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ci}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty,Object.getOwnPropertyDescriptor;let pi=class extends ie{static isCarouselItem(t){return t instanceof Element&&"slide"===t.getAttribute("aria-roledescription")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return pt`<slot></slot>`}};pi.styles=[ie.styles,Gt,P`:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],pi=((t,e,i,o)=>{for(var r,s=e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(s)||s);return s})([Pt("sd-carousel-item")],pi);const ui=Object.freeze(Object.defineProperty({__proto__:null,get default(){return pi}},Symbol.toStringTag,{value:"Module"}));class mi{constructor(t,e){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())},this.controlledPause=()=>{this.paused=!0,this.host.requestUpdate()},this.controlledResume=()=>{this.paused=!1,this.host.requestUpdate()},t.addController(this),this.host=t,this.tickCallback=e}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(t){this.stop(),this.stopped=!1,this.timerId=window.setInterval((()=>{this.paused||this.tickCallback()}),t)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}}const bi=Object.freeze(Object.defineProperty({__proto__:null,AutoplayController:mi},Symbol.toStringTag,{value:"Module"})),vi=Symbol(),gi=t=>(e,i,o)=>{const r=o.value;o.value=function(...e){clearTimeout(this[vi]),this[vi]=window.setTimeout((()=>{r.apply(this,e)}),t)}};var fi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor;class wi{constructor(t){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=t=>{"touch"!==t.pointerType&&(this.pointers.add(t.pointerId),this.mouseDragging&&!this.dragging&&0===t.button&&(t.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove)))},this.handlePointerMove=t=>{const e=this.host.scrollContainer,i=!!t.movementX||!!t.movementY;!this.dragging&&i?(e.setPointerCapture(t.pointerId),this.handleDragStart()):e.hasPointerCapture(t.pointerId)&&this.handleDrag(t)},this.handlePointerUp=t=>{this.pointers.delete(t.pointerId),this.host.scrollContainer.releasePointerCapture(t.pointerId),0===this.pointers.size&&this.handleDragEnd()},this.handleTouchEnd=t=>{for(const e of t.changedTouches)this.pointers.delete(e.identifier)},this.handleTouchStart=t=>{for(const e of t.touches)this.pointers.add(e.identifier)},this.host=t,t.addController(this)}async hostConnected(){const t=this.host;await t.updateComplete;const e=t.scrollContainer;e.addEventListener("scroll",this.handleScroll,{passive:!0}),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointerup",this.handlePointerUp),e.addEventListener("pointercancel",this.handlePointerUp),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){const 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(){const t=this.host;this.dragging=!0,t.scrollContainer.style.setProperty("scroll-snap-type","unset"),t.requestUpdate()}handleDrag(t){this.host.scrollContainer.scrollBy({left:-t.movementX,top:-t.movementY})}async handleDragEnd(){const t=this.host,e=t.scrollContainer;e.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;const i=e.scrollLeft,o=e.scrollTop;e.style.removeProperty("scroll-snap-type");const r=e.scrollLeft,s=e.scrollTop;e.style.setProperty("scroll-snap-type","unset"),e.scrollTo({left:i,top:o,behavior:"auto"}),e.scrollTo({left:r,top:s,behavior:he()?"auto":"smooth"}),this.scrolling&&await ye(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),t.requestUpdate()}}((t,e,i,o)=>{for(var r,s=yi(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(s=r(e,i,s)||s);s&&fi(e,i,s)})([gi(100)],wi.prototype,"handleScrollEnd");const xi=Object.freeze(Object.defineProperty({__proto__:null,ScrollController:wi},Symbol.toStringTag,{value:"Module"})),ki=".sd-interactive--reset{all:unset;outline:revert}.sd-interactive{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity));cursor:pointer;text-decoration-line:none;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.sd-interactive:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity))}.sd-interactive:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity))}.sd-interactive:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-interactive--inverted{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity))}.sd-interactive--inverted:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity))}.sd-interactive--inverted:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity))}.sd-interactive--inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-interactive--disabled,.sd-interactive[disabled]{cursor:not-allowed}.sd-interactive--disabled,.sd-interactive--disabled:active:not([disabled]),.sd-interactive--disabled:hover:not([disabled]),.sd-interactive[disabled],.sd-interactive[disabled]:active:not([disabled]),.sd-interactive[disabled]:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity))}";var Ci=Object.defineProperty,$i=Object.getOwnPropertyDescriptor,Si=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?$i(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ci(e,i,s),s};let _i=class extends ie{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.pausedAutoplay=!1,this.autoplayController=new mi(this,(()=>this.next())),this.scrollController=new wi(this),this.slides=this.getElementsByTagName("sd-carousel-item"),this.intersectionObserverEntries=new Map,this.localize=new k(this),this.handleSlotChange=t=>{t.some((t=>[...t.addedNodes,...t.removedNodes].some((t=>pi.isCarouselItem(t)&&!t.hasAttribute("data-clone")))))&&this.initializeSlides(),this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));const t=new IntersectionObserver((t=>{t.forEach((t=>{this.intersectionObserverEntries.set(t.target,t);const e=t.target;e.toggleAttribute("inert",!t.isIntersecting),e.classList.toggle("--in-view",t.isIntersecting),e.setAttribute("aria-hidden",t.isIntersecting?"false":"true")}))}),{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach((t=>{this.intersectionObserverEntries.set(t.target,t)}))}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(){return Math.ceil(this.getSlides().length/this.slidesPerPage)}getCurrentPage(){return Math.ceil(this.activeSlide/this.slidesPerPage)}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)){const e=t.target,i="rtl"===this.localize.dir(),o=null!==e.closest('[part~="pagination-item"]'),r="ArrowDown"===t.key||!i&&"ArrowRight"===t.key||i&&"ArrowLeft"===t.key,s="ArrowUp"===t.key||!i&&"ArrowLeft"===t.key||i&&"ArrowRight"===t.key;t.preventDefault(),s&&this.previous(),r&&this.next(),"Home"===t.key&&this.goToSlide(0),"End"===t.key&&this.goToSlide(this.getSlides().length-1),o&&this.updateComplete.then((()=>{var t;const e=null==(t=this.shadowRoot)?void 0:t.querySelector('[part~="pagination-item--active"]');e&&e.focus()}))}}handleScrollEnd(){const t=this.getSlides(),e=[...this.intersectionObserverEntries.values()].find((t=>t.isIntersecting));if(this.loop&&null!=e&&e.target.hasAttribute("data-clone")){const t=Number(e.target.getAttribute("data-clone"));this.goToSlide(t,"auto")}else e&&(this.activeSlide=t.indexOf(e.target))}handlePausedAutoplay(){this.pausedAutoplay?this.autoplayController.controlledPause():this.autoplay&&this.autoplayController.controlledResume()}initializeSlides(){const t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach(((t,i)=>{e.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",i+1)),t.hasAttribute("data-clone")&&t.remove()})),this.loop){const e=this.slidesPerPage,i=t.slice(-e),o=t.slice(0,e);i.reverse().forEach(((e,i)=>{const o=e.cloneNode(!0);o.setAttribute("data-clone",String(t.length-i-1)),this.prepend(o)})),o.forEach(((t,e)=>{const i=t.cloneNode(!0);i.setAttribute("data-clone",String(e)),this.append(i)}))}this.getSlides({excludeClones:!1}).forEach((t=>{e.observe(t)})),this.goToSlide(this.activeSlide,"auto")}handelSlideChange(){const t=this.getSlides();t.forEach(((t,e)=>{t.classList.toggle("--is-active",e===this.activeSlide)})),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}})}handleSlidesPerMoveChange(){const t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach(((t,i)=>{Math.abs(i-e)%e==0?t.style.removeProperty("scroll-snap-align"):t.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,i=!1;for(;!i&&e>0;)e-=1,i=Math.abs(e-this.slidesPerMove)%this.slidesPerMove==0;this.goToSlide(e,t)}next(t="smooth"){this.goToSlide(this.activeSlide+this.slidesPerMove,t)}goToSlide(t,e="smooth"){const{slidesPerPage:i,loop:o,scrollContainer:r}=this,s=this.getSlides(),a=this.getSlides({excludeClones:!1}),n=(t+s.length)%s.length;this.activeSlide=n;const l=function(t,e,i){return(t=>Object.is(t,-0)?0:t)(t<0?0:t>i?i:t)}
75
75
  /**
76
76
  * @license
77
77
  * Copyright 2021 Google LLC
78
78
  * SPDX-License-Identifier: BSD-3-Clause
79
- */(t+(o?i:0),0,a.length-1),d=a[l],h=r.getBoundingClientRect(),c=d.getBoundingClientRect();r.scrollTo({left:c.left-h.left+r.scrollLeft,top:c.top-h.top+r.scrollTop,behavior:ce()?"auto":e})}render(){const{scrollController:t,slidesPerPage:e}=this,i=this.getPageCount(),o=this.getCurrentPage(),r=this.loop||o>0,s=this.loop||o<i-1,a="ltr"===this.localize.dir();return pt`<div part="base" class="${we("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${we("carousel__slides mb-6\n 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%]\n snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" aria-atomic="true" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${we("w-full flex items-center justify-center relative")}"><div part="navigation" class="${we("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!r}" class="${we("!mr-6 !rounded-sm sd-interactive",!r&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${r?"false":"true"}" @click="${r?()=>this.previous():null}"><slot name="previous-icon"><sd-icon class="${we("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${a?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${"dot"===this.variant?pt`<div part="pagination-dot" role="tablist" class="${we("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${function*(t,e){if(void 0!==t){let i=0;for(const o of t)yield e(o,i++)}}
79
+ */(t+(o?i:0),0,a.length-1),d=a[l],c=r.getBoundingClientRect(),h=d.getBoundingClientRect();r.scrollTo({left:h.left-c.left+r.scrollLeft,top:h.top-c.top+r.scrollTop,behavior:he()?"auto":e})}render(){const{scrollController:t,slidesPerPage:e}=this,i=this.getPageCount(),o=this.getCurrentPage(),r=this.loop||o>0,s=this.loop||o<i-1,a="ltr"===this.localize.dir();return pt`<div part="base" class="${we("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${we("carousel__slides mb-6\n 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%]\n snap-x snap-mandatory overflow-y-hidden")}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" aria-atomic="true" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${we("w-full flex items-center justify-center relative")}"><div part="navigation" class="${we("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!r}" class="${we("!mr-6 !rounded-sm sd-interactive",!r&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${r?"false":"true"}" @click="${r?()=>this.previous():null}"><slot name="previous-icon"><sd-icon class="${we("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${a?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${"dot"===this.variant?pt`<div part="pagination-dot" role="tablist" class="${we("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${function*(t,e){if(void 0!==t){let i=0;for(const o of t)yield e(o,i++)}}
80
80
  /**
81
81
  * @license
82
82
  * Copyright 2021 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */(function*(t,e,i=1){const o=void 0===e?0:t;e??(e=t);for(let t=o;i>0?t<e:e<t;t+=i)yield t}(i),(t=>{const r=t===o;return pt`<button part="pagination-item ${r?"pagination-item--active":""}" class="${we("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",r?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${r?"true":"false"}" aria-label="${this.localize.term("goToSlide",t+1,i)}" @click="${()=>this.goToSlide(t*e)}" @keydown="${this.handleKeyDown}"><span class="${we("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",r&&"bg-accent border-none",r?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`}))}</div>`:pt`<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="${we("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${o+1}</span> <span part="pagination-divider" class="${we("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${we("w-5 text-center",this.inverted?"text-white":"text-black")}">${i}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!s}" class="${we("!ml-6 !rounded-sm sd-interactive ",!s&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${s?"false":"true"}" @click="${s?()=>{console.log("click-next"),this.next()}:null}"><slot name="next-icon"><sd-icon class="${we("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${a?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${we("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" @click="${()=>this.pausedAutoplay=!this.pausedAutoplay}"><slot name="autoplay-start" class="${we(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="${we(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};_i.styles=[ie.styles,z(ki),P`${Gt}: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));grid-auto-columns:var(--slide-size);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__slides--dragging,.carousel__slides--dropping{scroll-snap-type:unset}.carousel__slides::-webkit-scrollbar{display:none}.carousel__navigation{grid-area:navigation}sd-button::part(label){display:flex;flex:1 1 auto;align-items:center;pointer-events:none}`],Si([Lt({type:String,reflect:!0})],_i.prototype,"variant",2),Si([Lt({type:Boolean,reflect:!0})],_i.prototype,"inverted",2),Si([Lt({type:Boolean,reflect:!0})],_i.prototype,"loop",2),Si([Lt({type:Boolean,reflect:!0})],_i.prototype,"autoplay",2),Si([Lt({type:Number,attribute:"slides-per-page"})],_i.prototype,"slidesPerPage",2),Si([Lt({type:Number,attribute:"slides-per-move"})],_i.prototype,"slidesPerMove",2),Si([Bt("slot:not([name])")],_i.prototype,"defaultSlot",2),Si([Bt(".carousel__slides")],_i.prototype,"scrollContainer",2),Si([Bt(".carousel__pagination")],_i.prototype,"paginationContainer",2),Si([Dt()],_i.prototype,"activeSlide",2),Si([Dt()],_i.prototype,"pausedAutoplay",2),Si([Xt("pausedAutoplay")],_i.prototype,"handlePausedAutoplay",1),Si([Xt("loop",{waitUntilFirstUpdate:!0}),Xt("slidesPerPage",{waitUntilFirstUpdate:!0})],_i.prototype,"initializeSlides",1),Si([Xt("activeSlide")],_i.prototype,"handelSlideChange",1),Si([Xt("slidesPerMove")],_i.prototype,"handleSlidesPerMoveChange",1),Si([Xt("autoplay")],_i.prototype,"handleAutoplayChange",1),_i=Si([Pt("sd-carousel")],_i);const Oi=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _i}},Symbol.toStringTag,{value:"Module"}));var Ei=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,Pi=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ei(e,i,s),s};let Ai=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"label"),this.label="",this.size="lg",this.orientation="vertical"}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){const t=this.getAllCheckboxes();await Promise.all(t.map((async t=>{await t.updateComplete,t.size=this.size}))),t.some((t=>t.checked))||(t[0].tabIndex=0)}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then((()=>this.syncCheckboxes()))}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||t,i=pt`<slot @slotchange="${this.syncCheckboxes}"></slot>`;return pt`<fieldset part="form-control" class="${we("border-0 p-0 m-0",{sm:"text-sm",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label"><label part="form-control-label" id="label" class="${we("mb-2 p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${!e}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${we({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${i}</div></fieldset>`}};Ai.styles=[Gt,ie.styles,P`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){margin-bottom:8px;display:flex}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:24px}:host([size=sm]):host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:16px}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:0}`],Pi([Lt()],Ai.prototype,"label",2),Pi([Lt({reflect:!0})],Ai.prototype,"size",2),Pi([Lt({reflect:!0})],Ai.prototype,"orientation",2),Pi([Xt("size",{waitUntilFirstUpdate:!0})],Ai.prototype,"handleSizeChange",1),Pi([Xt("invalid",{waitUntilFirstUpdate:!0})],Ai.prototype,"handleInvalid",1),Ai=Pi([Pt("sd-checkbox-group")],Ai);const Ti=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ai}},Symbol.toStringTag,{value:"Module"})),Li=(t="value")=>(e,i)=>{const o=e.constructor,r=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(e,s,a){const n=o.getPropertyOptions(t);if(e===("string"==typeof n.attribute?n.attribute:t)){const e=n.converter||H,o=("function"==typeof e?e:(null==e?void 0:e.fromAttribute)??H.fromAttribute)(a,n.type);this[t]!==o&&(this[i]=o)}r.call(this,e,s,a)}}
84
+ */(function*(t,e,i=1){const o=void 0===e?0:t;e??(e=t);for(let t=o;i>0?t<e:e<t;t+=i)yield t}(i),(t=>{const r=t===o;return pt`<button part="pagination-item ${r?"pagination-item--active":""}" class="${we("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",r?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${r?"true":"false"}" aria-label="${this.localize.term("goToSlide",t+1,i)}" @click="${()=>this.goToSlide(t*e)}" @keydown="${this.handleKeyDown}"><span class="${we("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",r&&"bg-accent border-none",r?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`}))}</div>`:pt`<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="${we("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${o+1}</span> <span part="pagination-divider" class="${we("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${we("w-5 text-center",this.inverted?"text-white":"text-black")}">${i}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!s}" class="${we("!ml-6 !rounded-sm sd-interactive ",!s&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${s?"false":"true"}" @click="${s?()=>{console.log("click-next"),this.next()}:null}"><slot name="next-icon"><sd-icon class="${we("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${a?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${we("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" @click="${()=>this.pausedAutoplay=!this.pausedAutoplay}"><slot name="autoplay-start" class="${we(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="${we(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};_i.styles=[ie.styles,z(ki),Gt,P`: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));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);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){pointer-events:none;display:flex;flex:1 1 auto;align-items:center}`],Si([Lt({type:String,reflect:!0})],_i.prototype,"variant",2),Si([Lt({type:Boolean,reflect:!0})],_i.prototype,"inverted",2),Si([Lt({type:Boolean,reflect:!0})],_i.prototype,"loop",2),Si([Lt({type:Boolean,reflect:!0})],_i.prototype,"autoplay",2),Si([Lt({type:Number,attribute:"slides-per-page"})],_i.prototype,"slidesPerPage",2),Si([Lt({type:Number,attribute:"slides-per-move"})],_i.prototype,"slidesPerMove",2),Si([Bt("slot:not([name])")],_i.prototype,"defaultSlot",2),Si([Bt(".carousel__slides")],_i.prototype,"scrollContainer",2),Si([Bt(".carousel__pagination")],_i.prototype,"paginationContainer",2),Si([Dt()],_i.prototype,"activeSlide",2),Si([Dt()],_i.prototype,"pausedAutoplay",2),Si([Xt("pausedAutoplay")],_i.prototype,"handlePausedAutoplay",1),Si([Xt("loop",{waitUntilFirstUpdate:!0}),Xt("slidesPerPage",{waitUntilFirstUpdate:!0})],_i.prototype,"initializeSlides",1),Si([Xt("activeSlide")],_i.prototype,"handelSlideChange",1),Si([Xt("slidesPerMove")],_i.prototype,"handleSlidesPerMoveChange",1),Si([Xt("autoplay")],_i.prototype,"handleAutoplayChange",1),_i=Si([Pt("sd-carousel")],_i);const Oi=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _i}},Symbol.toStringTag,{value:"Module"}));var Ei=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,Pi=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ei(e,i,s),s};let Ai=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"label"),this.label="",this.size="lg",this.orientation="vertical"}getAllCheckboxes(){return[...this.querySelectorAll("sd-checkbox")]}async syncCheckboxElements(){const t=this.getAllCheckboxes();await Promise.all(t.map((async t=>{await t.updateComplete,t.size=this.size}))),t.some((t=>t.checked))||(t[0].tabIndex=0)}syncCheckboxes(){customElements.get("sd-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-checkbox").then((()=>this.syncCheckboxes()))}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){const t=this.hasSlotController.test("label"),e=!!this.label||t,i=pt`<slot @slotchange="${this.syncCheckboxes}"></slot>`;return pt`<fieldset part="form-control" class="${we("border-0 p-0 m-0",{sm:"text-sm",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label"><label part="form-control-label" id="label" class="${we("mb-2 p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${!e}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${we({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${i}</div></fieldset>`}};Ai.styles=[Gt,ie.styles,P`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}: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)}`],Pi([Lt()],Ai.prototype,"label",2),Pi([Lt({reflect:!0})],Ai.prototype,"size",2),Pi([Lt({reflect:!0})],Ai.prototype,"orientation",2),Pi([Xt("size",{waitUntilFirstUpdate:!0})],Ai.prototype,"handleSizeChange",1),Pi([Xt("invalid",{waitUntilFirstUpdate:!0})],Ai.prototype,"handleInvalid",1),Ai=Pi([Pt("sd-checkbox-group")],Ai);const Ti=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ai}},Symbol.toStringTag,{value:"Module"})),Li=(t="value")=>(e,i)=>{const o=e.constructor,r=o.prototype.attributeChangedCallback;o.prototype.attributeChangedCallback=function(e,s,a){const n=o.getPropertyOptions(t);if(e===("string"==typeof n.attribute?n.attribute:t)){const e=n.converter||H,o=("function"==typeof e?e:(null==e?void 0:e.fromAttribute)??H.fromAttribute)(a,n.type);this[t]!==o&&(this[i]=o)}r.call(this,e,s,a)}}
85
85
  /**
86
86
  * @license
87
87
  * Copyright 2020 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */,Di={},Mi=Nt(class extends qt{constructor(t){if(super(t),3!==t.type&&1!==t.type&&4!==t.type)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===ut||e===bt)return e;const i=t.element,o=t.name;if(3===t.type){if(e===i[o])return ut}else if(4===t.type){if(!!e===i.hasAttribute(o))return ut}else if(1===t.type&&i.getAttribute(o)===e+"")return ut;return((t,e=Di)=>{t._$AH=e;
89
+ */,Di={},Mi=Nt(class extends qt{constructor(t){if(super(t),3!==t.type&&1!==t.type&&4!==t.type)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===ut||e===mt)return e;const i=t.element,o=t.name;if(3===t.type){if(e===i[o])return ut}else if(4===t.type){if(!!e===i.hasAttribute(o))return ut}else if(1===t.type&&i.getAttribute(o)===e+"")return ut;return((t,e=Di)=>{t._$AH=e;
90
90
  /**
91
91
  * @license
92
92
  * Copyright 2020 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */})(t),e}});var Bi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Vi=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ji(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Bi(e,i,s),s};let Ii=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(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.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){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)}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}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.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return pt`<label part="base" class="${we("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",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="${ai(this.value)}" .indeterminate="${Mi(this.indeterminate)}" .checked="${Mi(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"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="${we("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 \n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 \n peer-focus-visible:outline-primary",{sm:"mt-[2px]",lg:"mt-[3px]"}[this.size],(this.disabled&&this.indeterminate||this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled&&"border-neutral-500")||(this.checked||this.indeterminate)&&"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550"||"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white")}">${this.checked?pt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-icon>`:""} ${!this.checked&&this.indeterminate?pt`<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="${we("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};Ii.styles=[ie.styles,P`:host{display:block}:host(:focus-visible){outline:0}:host([required]) #label::after{content:' *'}:host([data-user-invalid]) #label{color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]) #control{border-color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]):host([indeterminate]) #control{background-color:rgb(var(--sd-color-error,204 25 55))}`],Vi([Bt('input[type="checkbox"]')],Ii.prototype,"input",2),Vi([Lt()],Ii.prototype,"title",2),Vi([Lt()],Ii.prototype,"name",2),Vi([Lt()],Ii.prototype,"value",2),Vi([Lt({reflect:!0})],Ii.prototype,"size",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"disabled",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"checked",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"indeterminate",2),Vi([Li("checked")],Ii.prototype,"defaultChecked",2),Vi([Lt({reflect:!0})],Ii.prototype,"form",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"required",2),Vi([Xt("disabled",{waitUntilFirstUpdate:!0})],Ii.prototype,"handleDisabledChange",1),Vi([Xt(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Ii.prototype,"handleStateChange",1),Ii=Vi([Pt("sd-checkbox")],Ii);const Ui=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ii}},Symbol.toStringTag,{value:"Module"}));var Fi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Hi=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ri(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fi(e,i,s),s};let Ni=class extends ie{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return pt`<hr part="main" class="${we(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};Ni.styles=[Gt,ie.styles,P`:host{margin:0}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],Hi([Lt({reflect:!0})],Ni.prototype,"orientation",2),Hi([Lt({type:Boolean,reflect:!0})],Ni.prototype,"inverted",2),Ni=Hi([Pt("sd-divider")],Ni);const qi=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ni}},Symbol.toStringTag,{value:"Module"})),Ki=new Set;function Zi(t){if(Ki.add(t),!document.body.classList.contains("sd-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${t}px`)}}function Wi(t){Ki.delete(t),0===Ki.size&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Yi(t,e,i="vertical",o="smooth"){const r=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),s=r.top+e.scrollTop,a=r.left+e.scrollLeft,n=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,h=e.scrollTop+e.offsetHeight;("horizontal"===i||"both"===i)&&(a<n?e.scrollTo({left:a,behavior:o}):a+t.clientWidth>l&&e.scrollTo({left:a-e.offsetWidth+t.clientWidth,behavior:o})),("vertical"===i||"both"===i)&&(s<d?e.scrollTo({top:s,behavior:o}):s+t.clientHeight>h&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:o}))}function Xi(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Gi(t){const e=t.tagName.toLowerCase();return!("-1"===t.getAttribute("tabindex")||t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")||"input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked")||null===t.offsetParent||"hidden"===window.getComputedStyle(t).visibility)&&(!!(("audio"===e||"video"===e)&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e))}function Ji(t){const e=[];return function t(i){i instanceof HTMLElement&&(e.push(i),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&t(i.shadowRoot)),[...i.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Gi(t)))??null,end:e.reverse().find((t=>Gi(t)))??null}}let Qi=[];class to{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){Qi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Qi=Qi.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Qi[Qi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Ji(this.element),i="forward"===this.tabDirection?t:e;"function"==typeof(null==i?void 0:i.focus)&&i.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var eo=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?io(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&eo(e,i,s),s};let ro=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"footer"),this.localize=new k(this),this.modal=new to(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),Zi(this)))}disconnectedCallback(){super.disconnectedCallback(),Wi(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=fe(this,"drawer.denyClose",{dir:this.localize.dir()});de(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),Zi(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([pe(this.drawer),pe(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=fe(this,`drawer.show${Xi(this.placement)}`,{dir:this.localize.dir()}),i=fe(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([de(this.panel,e.keyframes,e.options),de(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Wi(this)),await Promise.all([pe(this.drawer),pe(this.overlay)]);const t=fe(this,`drawer.hide${Xi(this.placement)}`,{dir:this.localize.dir()}),e=fe(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([de(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),de(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Zi(this)),this.open&&this.contained&&(this.modal.deactivate(),Wi(this))}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}render(){return pt`<div part="base" class="${we("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${we("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${we("absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.label}" aria-labelledby="${ai(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":pt`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${we(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};ro.styles=[ie.styles,P`${Gt}:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{width:0;height:0}`],oo([Bt("[part=base]")],ro.prototype,"drawer",2),oo([Bt("[part=panel]")],ro.prototype,"panel",2),oo([Bt("[part=overlay]")],ro.prototype,"overlay",2),oo([Lt({type:Boolean,reflect:!0})],ro.prototype,"open",2),oo([Lt({attribute:"label",reflect:!0})],ro.prototype,"label",2),oo([Lt({reflect:!0})],ro.prototype,"placement",2),oo([Lt({type:Boolean,reflect:!0})],ro.prototype,"contained",2),oo([Lt({attribute:"no-header",type:Boolean})],ro.prototype,"noHeader",2),oo([Xt("open",{waitUntilFirstUpdate:!0})],ro.prototype,"handleOpenChange",1),oo([Xt("contained",{waitUntilFirstUpdate:!0})],ro.prototype,"handleNoModalChange",1),ro=oo([Pt("sd-drawer")],ro),ve("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ve("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),ve("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ve("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),ve("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),ve("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ve("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const so=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ro}},Symbol.toStringTag,{value:"Module"})),ao=Math.min,no=Math.max,lo=Math.round,ho=Math.floor,co=t=>({x:t,y:t}),po={left:"right",right:"left",bottom:"top",top:"bottom"},uo={start:"end",end:"start"};function bo(t,e,i){return no(t,ao(e,i))}function mo(t,e){return"function"==typeof t?t(e):t}function go(t){return t.split("-")[0]}function vo(t){return t.split("-")[1]}function fo(t){return"x"===t?"y":"x"}function yo(t){return"y"===t?"height":"width"}function wo(t){return["top","bottom"].includes(go(t))?"y":"x"}function xo(t){return fo(wo(t))}function ko(t){return t.replace(/start|end/g,(t=>uo[t]))}function Co(t){return t.replace(/left|right|bottom|top/g,(t=>po[t]))}function $o(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function So(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function _o(t,e,i){let{reference:o,floating:r}=t;const s=wo(e),a=xo(e),n=yo(a),l=go(e),d="y"===s,h=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,p=o[n]/2-r[n]/2;let u;switch(l){case"top":u={x:h,y:o.y-r.height};break;case"bottom":u={x:h,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:c};break;case"left":u={x:o.x-r.width,y:c};break;default:u={x:o.x,y:o.y}}switch(vo(e)){case"start":u[a]-=p*(i&&d?-1:1);break;case"end":u[a]+=p*(i&&d?-1:1)}return u}async function Oo(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:s,rects:a,elements:n,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:p=!1,padding:u=0}=mo(e,t),b=$o(u),m=n[p?"floating"===c?"reference":"floating":c],g=So(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(m)))||i?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:h,strategy:l})),v="floating"===c?{...a.floating,x:o,y:r}:a.reference,f=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),y=await(null==s.isElement?void 0:s.isElement(f))&&await(null==s.getScale?void 0:s.getScale(f))||{x:1,y:1},w=So(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:f,strategy:l}):v);return{top:(g.top-w.top+b.top)/y.y,bottom:(w.bottom-g.bottom+b.bottom)/y.y,left:(g.left-w.left+b.left)/y.x,right:(w.right-g.right+b.right)/y.x}}const Eo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:o}=e,r=await async function(t,e){const{placement:i,platform:o,elements:r}=t,s=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=go(i),n=vo(i),l="y"===wo(i),d=["left","top"].includes(a)?-1:1,h=s&&l?-1:1,c=mo(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:b}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return n&&"number"==typeof b&&(u="end"===n?-1*b:b),l?{x:u*h,y:p*d}:{x:p*d,y:u*h}}(e,t);return{x:i+r.x,y:o+r.y,data:r}}}},zo=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:o,platform:r,elements:s}=e,{apply:a=(()=>{}),...n}=mo(t,e),l=await Oo(e,n),d=go(i),h=vo(i),c="y"===wo(i),{width:p,height:u}=o.floating;let b,m;"top"===d||"bottom"===d?(b=d,m=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,b="end"===h?"top":"bottom");const g=u-l[b],v=p-l[m],f=!e.middlewareData.shift;let y=g,w=v;if(c){const t=p-l.left-l.right;w=h||f?ao(v,t):t}else{const t=u-l.top-l.bottom;y=h||f?ao(g,t):t}if(f&&!h){const t=no(l.left,0),e=no(l.right,0),i=no(l.top,0),o=no(l.bottom,0);c?w=p-2*(0!==t||0!==e?t+e:no(l.left,l.right)):y=u-2*(0!==i||0!==o?i+o:no(l.top,l.bottom))}await a({...e,availableWidth:w,availableHeight:y});const x=await r.getDimensions(s.floating);return p!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}};function Po(t){return Lo(t)?(t.nodeName||"").toLowerCase():"#document"}function Ao(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function To(t){var e;return null==(e=(Lo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Lo(t){return t instanceof Node||t instanceof Ao(t).Node}function Do(t){return t instanceof Element||t instanceof Ao(t).Element}function Mo(t){return t instanceof HTMLElement||t instanceof Ao(t).HTMLElement}function Bo(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof Ao(t).ShadowRoot)}function jo(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Ro(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Vo(t){return["table","td","th"].includes(Po(t))}function Io(t){const e=Uo(),i=Ro(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Uo(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fo(t){return["html","body","#document"].includes(Po(t))}function Ro(t){return Ao(t).getComputedStyle(t)}function Ho(t){return Do(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function No(t){if("html"===Po(t))return t;const e=t.assignedSlot||t.parentNode||Bo(t)&&t.host||To(t);return Bo(e)?e.host:e}function qo(t){const e=No(t);return Fo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mo(e)&&jo(e)?e:qo(e)}function Ko(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=qo(t),s=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Ao(r);return s?e.concat(a,a.visualViewport||[],jo(r)?r:[],a.frameElement&&i?Ko(a.frameElement):[]):e.concat(r,Ko(r,[],i))}function Zo(t){const e=Ro(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Mo(t),s=r?t.offsetWidth:i,a=r?t.offsetHeight:o,n=lo(i)!==s||lo(o)!==a;return n&&(i=s,o=a),{width:i,height:o,$:n}}function Wo(t){return Do(t)?t:t.contextElement}function Yo(t){const e=Wo(t);if(!Mo(e))return co(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:s}=Zo(e);let a=(s?lo(i.width):i.width)/o,n=(s?lo(i.height):i.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}const Xo=co(0);function Go(t){const e=Ao(t);return Uo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Xo}function Jo(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),s=Wo(t);let a=co(1);e&&(o?Do(o)&&(a=Yo(o)):a=Yo(t));const n=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Ao(t))&&e}(s,i,o)?Go(s):co(0);let l=(r.left+n.x)/a.x,d=(r.top+n.y)/a.y,h=r.width/a.x,c=r.height/a.y;if(s){const t=Ao(s),e=o&&Do(o)?Ao(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Yo(i),e=i.getBoundingClientRect(),o=Ro(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,d*=t.y,h*=t.x,c*=t.y,l+=r,d+=s,i=Ao(i).frameElement}}return So({width:h,height:c,x:l,y:d})}function Qo(t){return Jo(To(t)).left+Ho(t).scrollLeft}function tr(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Ao(t),o=To(t),r=i.visualViewport;let s=o.clientWidth,a=o.clientHeight,n=0,l=0;if(r){s=r.width,a=r.height;const t=Uo();(!t||t&&"fixed"===e)&&(n=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:n,y:l}}(t,i);else if("document"===e)o=function(t){const e=To(t),i=Ho(t),o=t.ownerDocument.body,r=no(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=no(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Qo(t);const n=-i.scrollTop;return"rtl"===Ro(o).direction&&(a+=no(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:n}}(To(t));else if(Do(e))o=function(t,e){const i=Jo(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,s=Mo(t)?Yo(t):co(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:o*s.y}}(e,i);else{const i=Go(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return So(o)}function er(t,e){const i=No(t);return!(i===e||!Do(i)||Fo(i))&&("fixed"===Ro(i).position||er(i,e))}function ir(t,e){const i=e.get(t);if(i)return i;let o=Ko(t,[],!1).filter((t=>Do(t)&&"body"!==Po(t))),r=null;const s="fixed"===Ro(t).position;let a=s?No(t):t;for(;Do(a)&&!Fo(a);){const e=Ro(a),i=Io(a);!i&&"fixed"===e.position&&(r=null),(s?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||jo(a)&&!i&&er(t,a))?o=o.filter((t=>t!==a)):r=e,a=No(a)}return e.set(t,o),o}function or(t,e,i){const o=Mo(e),r=To(e),s="fixed"===i,a=Jo(t,!0,s,e);let n={scrollLeft:0,scrollTop:0};const l=co(0);if(o||!o&&!s)if(("body"!==Po(e)||jo(r))&&(n=Ho(e)),o){const t=Jo(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Qo(r));return{x:a.left+n.scrollLeft-l.x,y:a.top+n.scrollTop-l.y,width:a.width,height:a.height}}function rr(t,e){return Mo(t)&&"fixed"!==Ro(t).position?e?e(t):t.offsetParent:null}function sr(t,e){const i=Ao(t);if(!Mo(t))return i;let o=rr(t,e);for(;o&&Vo(o)&&"static"===Ro(o).position;)o=rr(o,e);return o&&("html"===Po(o)||"body"===Po(o)&&"static"===Ro(o).position&&!Io(o))?i:o||function(t){let e=No(t);for(;Mo(e)&&!Fo(e);){if(Io(e))return e;e=No(e)}return null}(t)||i}const ar={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Mo(i),s=To(i);if(i===s)return e;let a={scrollLeft:0,scrollTop:0},n=co(1);const l=co(0);if((r||!r&&"fixed"!==o)&&(("body"!==Po(i)||jo(s))&&(a=Ho(i)),Mo(i))){const t=Jo(i);n=Yo(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*n.x,height:e.height*n.y,x:e.x*n.x-a.scrollLeft*n.x+l.x,y:e.y*n.y-a.scrollTop*n.y+l.y}},getDocumentElement:To,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const s=[..."clippingAncestors"===i?ir(e,this._c):[].concat(i),o],a=s[0],n=s.reduce(((t,i)=>{const o=tr(e,i,r);return t.top=no(o.top,t.top),t.right=ao(o.right,t.right),t.bottom=ao(o.bottom,t.bottom),t.left=no(o.left,t.left),t}),tr(e,a,r));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}},getOffsetParent:sr,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||sr,s=this.getDimensions;return{reference:or(e,await r(i),o),floating:{x:0,y:0,...await s(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Zo(t)},getScale:Yo,isElement:Do,isRTL:function(t){return"rtl"===Ro(t).direction}};var nr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,dr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?lr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&nr(e,i,s),s};let hr=class extends ie{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((t=>this.handleCurrentPlacementChange(t))),this.mutationObserver.observe(this,{attributes:!0})}handleCurrentPlacementChange(t){return t.forEach((t=>{if("data-current-placement"===t.attributeName){const t=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:t})}}))}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const 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=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=Wo(t),h=r||s?[...d?Ko(d):[],...Ko(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",i,{passive:!0}),s&&t.addEventListener("resize",i)}));const c=d&&n?function(t,e){let i,o=null;const r=To(t);function s(){clearTimeout(i),o&&o.disconnect(),o=null}return function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const{left:d,top:h,width:c,height:p}=t.getBoundingClientRect();if(n||e(),!c||!p)return;const u={rootMargin:-ho(h)+"px "+-ho(r.clientWidth-(d+c))+"px "+-ho(r.clientHeight-(h+p))+"px "+-ho(d)+"px",threshold:no(0,ao(1,l))||1};let b=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!b)return a();e?a(!1,e):i=setTimeout((()=>{a(!1,1e-7)}),100)}b=!1}try{o=new IntersectionObserver(m,{...u,root:r.ownerDocument})}catch{o=new IntersectionObserver(m,u)}o.observe(t)}(!0),s}(d,i):null;let p=-1,u=null;a&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{u&&u.observe(e)}))),i()})),d&&!l&&u.observe(d),u.observe(e));let b,m=l?Jo(t):null;return l&&function e(){const o=Jo(t);m&&(o.x!==m.x||o.y!==m.y||o.width!==m.width||o.height!==m.height)&&i(),m=o,b=requestAnimationFrame(e)}(),i(),()=>{h.forEach((t=>{r&&t.removeEventListener("scroll",i),s&&t.removeEventListener("resize",i)})),c&&c(),u&&u.disconnect(),u=null,l&&cancelAnimationFrame(b)}}(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;const t=[Eo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(zo({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=i?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:n,platform:l,elements:d}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...g}=mo(t,e);if(null!=(i=s.arrow)&&i.alignmentOffset)return{};const v=go(r),f=go(n)===n,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(f||!m?[Co(n)]:function(t){const e=Co(t);return[ko(t),e,ko(e)]}(n));!p&&"none"!==b&&w.push(...function(t,e,i,o){const r=vo(t);let s=function(t,e,i){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}(go(t),"start"===i,o);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(ko)))),s}(n,m,b,y));const x=[n,...w],k=await Oo(e,g),C=[];let $=(null==(o=s.flip)?void 0:o.overflows)||[];if(h&&C.push(k[v]),c){const t=function(t,e,i){void 0===i&&(i=!1);const o=vo(t),r=xo(t),s=yo(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Co(a)),[a,Co(a)]}(r,a,y);C.push(k[t[0]],k[t[1]])}if($=[...$,{placement:r,overflows:C}],!C.every((t=>t<=0))){var S,_;const t=((null==(S=s.flip)?void 0:S.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:$},reset:{placement:e}};let i=null==(_=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:_.placement;if(!i)switch(u){case"bestFit":{var O;const t=null==(O=$.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:O[0];t&&(i=t);break}case"initialPlacement":i=n}if(r!==i)return{reset:{placement:i}}}return{}}}}({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=mo(t,e),d={x:i,y:o},h=await Oo(e,l),c=wo(go(r)),p=fo(c);let u=d[p],b=d[c];if(s){const t="y"===p?"bottom":"right";u=bo(u+h["y"===p?"top":"left"],u,u-h[t])}if(a){const t="y"===c?"bottom":"right";b=bo(b+h["y"===c?"top":"left"],b,b-h[t])}const m=n.fn({...e,[p]:u,[c]:b});return{...m,data:{x:m.x-i,y:m.y-o}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(zo({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}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((t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:r,rects:s,platform:a,elements:n,middlewareData:l}=e,{element:d,padding:h=0}=mo(t,e)||{};if(null==d)return{};const c=$o(h),p={x:i,y:o},u=xo(r),b=yo(u),m=await a.getDimensions(d),g="y"===u,v=g?"top":"left",f=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=s.reference[b]+s.reference[u]-p[u]-s.floating[b],x=p[u]-s.reference[u],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let C=k?k[y]:0;(!C||!await(null==a.isElement?void 0:a.isElement(k)))&&(C=n.floating[y]||s.floating[b]);const $=w/2-x/2,S=C/2-m[b]/2-1,_=ao(c[v],S),O=ao(c[f],S),E=_,z=C-m[b]-O,P=C/2-m[b]/2+$,A=bo(E,P,z),T=!l.arrow&&null!=vo(r)&&P!=A&&s.reference[b]/2-(P<E?_:O)-m[b]/2<0,L=T?P<E?P-E:P-z:0;return{[u]:p[u]+L,data:{[u]:A,centerOffset:P-A-L,...T&&{alignmentOffset:L}},reset:T}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,i)=>{const o=new Map,r={platform:ar,...i},s={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=i,n=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:c}=_o(d,o,l),p=o,u={},b=0;for(let i=0;i<n.length;i++){const{name:s,fn:m}=n[i],{x:g,y:v,data:f,reset:y}=await m({x:h,y:c,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:d,platform:a,elements:{reference:t,floating:e}});h=g??h,c=v??c,u={...u,[s]:{...u[s],...f}},y&&b<=50&&(b++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(d=!0===y.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:h,y:c}=_o(d,p,l))),i=-1)}return{x:h,y:c,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:s})})(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then((({x:t,y:e,middlewareData:i,placement:o})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];if(this.setAttribute("data-current-placement",o),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=i.arrow.x,e=i.arrow.y;let o="",a="",n="",l="";if("start"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=r?i:"",l=r?"":i}else if("end"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=r?"":i,l=r?i:"",n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",o="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",o="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:o,right:a,bottom:n,left:l,[s]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sd-reposition")}render(){return pt`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${we("isolate","fixed"!==this.strategy?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?pt`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};hr.styles=[ie.styles,Gt,P`: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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],dr([Bt('[part="popup"]')],hr.prototype,"popup",2),dr([Bt('[part="arrow"]')],hr.prototype,"arrowEl",2),dr([Lt()],hr.prototype,"anchor",2),dr([Lt({type:Boolean,reflect:!0})],hr.prototype,"active",2),dr([Lt({reflect:!0})],hr.prototype,"placement",2),dr([Lt({reflect:!0})],hr.prototype,"strategy",2),dr([Lt({type:Number})],hr.prototype,"distance",2),dr([Lt({type:Number})],hr.prototype,"skidding",2),dr([Lt({type:Boolean})],hr.prototype,"arrow",2),dr([Lt({attribute:"arrow-placement"})],hr.prototype,"arrowPlacement",2),dr([Lt({attribute:"arrow-padding",type:Number})],hr.prototype,"arrowPadding",2),dr([Lt({type:Boolean})],hr.prototype,"flip",2),dr([Lt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],hr.prototype,"flipFallbackPlacements",2),dr([Lt({attribute:"flip-fallback-strategy"})],hr.prototype,"flipFallbackStrategy",2),dr([Lt({type:Object})],hr.prototype,"flipBoundary",2),dr([Lt({attribute:"flip-padding",type:Number})],hr.prototype,"flipPadding",2),dr([Lt({type:Boolean})],hr.prototype,"shift",2),dr([Lt({type:Object})],hr.prototype,"shiftBoundary",2),dr([Lt({attribute:"shift-padding",type:Number})],hr.prototype,"shiftPadding",2),dr([Lt({attribute:"auto-size"})],hr.prototype,"autoSize",2),dr([Lt()],hr.prototype,"sync",2),dr([Lt({type:Object})],hr.prototype,"autoSizeBoundary",2),dr([Lt({attribute:"auto-size-padding",type:Number})],hr.prototype,"autoSizePadding",2),hr=dr([Pt("sd-popup")],hr);const cr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return hr}},Symbol.toStringTag,{value:"Module"}));var pr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,br=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ur(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&pr(e,i,s),s};let mr=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.open=!1,this.rounded=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.noAutoSize=!1,this.noFlip=!1,this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sd-menu"===t.tagName.toLowerCase()))}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if("Tab"===t.key){if(this.open&&"sd-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,i;const o=(null==(t=this.containingElement)?void 0:t.getRootNode())instanceof ShadowRoot?null==(i=null==(e=document.activeElement)?void 0:e.shadowRoot)?void 0:i.activeElement:document.activeElement;(!this.containingElement||(null==o?void 0:o.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()}))}}handleDocumentMouseDown(t){const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){Yi(t.target,this.panel)}handlePanelSelect(t){const e=t.target;!this.stayOpenOnSelect&&"sd-menu"===e.tagName.toLowerCase()&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const i=e.defaultSlot.assignedElements({flatten:!0}),o=i[0],r=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),i.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(o),o.focus()),("ArrowUp"===t.key||"End"===t.key)&&(e.setCurrentItem(r),r.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Ji(t).start));let e;if(t){switch(t.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":e=t.button;break;default:e=t}e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await pe(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=fe(this,"dropdown.show",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await pe(this);const{keyframes:t,options:e}=fe(this,"dropdown.hide",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return pt`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${we("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};mr.styles=[ie.styles,Gt,P`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],br([Bt("#dropdown")],mr.prototype,"popup",2),br([Bt("[part=trigger]")],mr.prototype,"trigger",2),br([Bt("[part=panel]")],mr.prototype,"panel",2),br([Lt({type:Boolean,reflect:!0})],mr.prototype,"open",2),br([Lt({type:Boolean,reflect:!0})],mr.prototype,"rounded",2),br([Lt({reflect:!0})],mr.prototype,"placement",2),br([Lt({type:Boolean,reflect:!0})],mr.prototype,"disabled",2),br([Lt({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],mr.prototype,"stayOpenOnSelect",2),br([Lt({attribute:!1})],mr.prototype,"containingElement",2),br([Lt({type:Number})],mr.prototype,"distance",2),br([Lt({type:Number})],mr.prototype,"skidding",2),br([Lt({type:Boolean,reflect:!0,attribute:"no-auto-size"})],mr.prototype,"noAutoSize",2),br([Lt({type:Boolean,reflect:!0,attribute:"no-flip"})],mr.prototype,"noFlip",2),br([Lt({type:Boolean})],mr.prototype,"hoist",2),br([Xt("open",{waitUntilFirstUpdate:!0})],mr.prototype,"handleOpenChange",1),mr=br([Pt("sd-dropdown")],mr),ve("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ve("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const gr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return mr}},Symbol.toStringTag,{value:"Module"}));var vr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,yr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?fr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&vr(e,i,s),s};let wr=class extends ie{constructor(){super(...arguments),this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.onResize()})),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return pt`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};wr.styles=[ie.styles,Gt,P`:host{display:block}:host([fixed]){position:fixed;top:0;left:0;width:100%}:host([fixed]) header::after{content:'';position:absolute;left:0;right:0;top:100%;height:8px;background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}`],yr([Lt({reflect:!0,type:Boolean})],wr.prototype,"fixed",2),yr([vi(100)],wr.prototype,"onResize",1),wr=yr([Pt("sd-header")],wr);const xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return wr}},Symbol.toStringTag,{value:"Module"})),kr=P`${Gt}:host{display:block}`,Cr=Object.freeze(Object.defineProperty({__proto__:null,default:kr},Symbol.toStringTag,{value:"Module"}));var $r=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,_r=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Sr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&$r(e,i,s),s};let Or=class extends ie{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach((t=>e.setAttribute(t.name,t.value))),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await It(t,this.mode);if(t!==this.src)return;if(!e.ok)return void this.emit("sd-error",{detail:{status:e.status}});this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((t=>this.executeScript(t))),this.emit("sd-load")}catch{this.emit("sd-error",{detail:{status:-1}})}}render(){return pt`<slot></slot>`}};Or.styles=kr,_r([Lt()],Or.prototype,"src",2),_r([Lt()],Or.prototype,"mode",2),_r([Lt({attribute:"allow-scripts",type:Boolean})],Or.prototype,"allowScripts",2),_r([Xt("src")],Or.prototype,"handleSrcChange",1),Or=_r([Pt("sd-include")],Or);const Er=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Or}},Symbol.toStringTag,{value:"Module"})),zr=P`.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--sd-input-label-color);margin-bottom:var(--sd-spacing-3x-small)}.form-control--has-label.form-control--small .form-control__label{font-size:var(--sd-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--sd-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--sd-input-label-font-size-large)}:host([required]) .form-control--has-label .form-control__label::after{content:var(--sd-input-required-content);margin-inline-start:var(--sd-input-required-content-offset);color:var(--sd-input-required-content-color)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--sd-input-help-text-color);margin-top:var(--sd-spacing-3x-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--sd-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--sd-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--sd-input-help-text-font-size-large)}.form-control--has-help-text.form-control--radio-group .form-control__help-text{margin-top:var(--sd-spacing-2x-small)}`;var Pr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,Tr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ar(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Pr(e,i,s),s};const Lr=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Dr=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this),this.hasSlotController=new ti(this,"help-text","label","left","right","message","placeholder"),this.localize=new k(this),this.hasFocus=!1,this.type="text",this.size="lg",this.value="",this.defaultValue="",this.placeholder="",this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.name="",this.title="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var t;return(null==(t=this.input)?void 0:t.valueAsDate)??null}set valueAsDate(t){const e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(null==(t=this.input)?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(){this.formControlController.setValidity(!1)}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"===t.key&&!e&&setTimeout((()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.input.setRangeText(t,e,i,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return null==(t=this.input)?void 0:t.checkValidity()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),o=this.hasSlotController.test("right"),r=!!this.label||!!t,s=!!this.helpText||!!e,a=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),n=this.required||!!this.pattern||!!this.minlength||!!this.maxlength,l=n&&!this.checkValidity(),d=n&&this.checkValidity(),h=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&l?"activeInvalid":this.hasFocus&&d?"activeValid":this.hasFocus?"active":l?"invalid":d?"valid":"default",c="sm"===this.size?"text-sm":"text-base",p={disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[h],u={disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[h],b=this.disabled?"text-neutral-500":"text-primary",m={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],g={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return pt`<div part="form-control" class="${we("form-control",r&&"form-control--has-label",this.disabled&&"pointer-events-none")}"><label part="form-control-label" id="label" class="${we("form-control-label mb-2",r?"has-label inline-block":"hidden",c)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="form-control-input relative w-full"><div part="border" class="${we("absolute w-full h-full pointer-events-none border rounded-default transition-all",u)}"></div><div part="base" class="${we("px-4 flex flex-row items-center rounded-default transition-all","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100",l&&"form-control-input--invalid",p,!this.value&&"input--empty",this.noSpinButtons&&"input--no-spin-buttons",Lr&&"input--is-firefox")}">${i?pt`<slot name="left" part="left" class="${we("inline-flex","sm"===this.size?"mr-1":"mr-2",b,g)}"></slot>`:""} <input part="input" id="input" class="${we("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",c)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${ai(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ai(this.placeholder)}" minlength="${ai(this.minlength)}" maxlength="${ai(this.maxlength)}" min="${ai(this.min)}" max="${ai(this.max)}" step="${ai(this.step)}" .value="${Mi(this.value)}" autocapitalize="${ai("password"===this.type?"off":this.autocapitalize)}" autocomplete="${ai("password"===this.type?"off":this.autocomplete)}" autocorrect="${ai("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ai(this.pattern)}" enterkeyhint="${ai(this.enterkeyhint)}" inputmode="${ai(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?pt`<button part="clear-button" class="${we("flex justify-center ",m)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${we("text-neutral-500",g)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?pt`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?pt`<slot name="show-password-icon"><sd-icon class="${we(b,m,g)}" library="system" name="eye"></sd-icon></slot>`:pt`<slot name="hide-password-icon"><sd-icon class="${we(b,m,g)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||Lr?"":pt`<sd-icon class="${we(b,m,g)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?pt`<sd-icon class="${we(b,m,g)}" library="system" name="clock"></sd-icon>`:""} ${l?pt`<sd-icon class="${we("text-error",m,g)}" library="system" name="risk"></sd-icon>`:""} ${d?pt`<sd-icon class="${we("text-success",m,g)}" library="system" name="confirm"></sd-icon>`:""} ${o?pt`<slot name="right" part="right" class="${we("inline-flex",b,m,g)}"></slot>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${we("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${s?"false":"true"}">${this.helpText}</slot></div>`}};Dr.styles=[Gt,zr,ie.styles,P`:host{box-sizing:border-box;position:relative;display:inline-block;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label.has-label::after{content:'*';margin-left:2px}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}input[type=date]::-webkit-calendar-picker-indicator{display:none}input[type=datetime-local]::-webkit-calendar-picker-indicator{display:none}`],Tr([Bt("#input")],Dr.prototype,"input",2),Tr([Dt()],Dr.prototype,"hasFocus",2),Tr([Lt({reflect:!0})],Dr.prototype,"type",2),Tr([Lt({reflect:!0})],Dr.prototype,"size",2),Tr([Lt()],Dr.prototype,"inputmode",2),Tr([Lt()],Dr.prototype,"value",2),Tr([Li()],Dr.prototype,"defaultValue",2),Tr([Lt()],Dr.prototype,"placeholder",2),Tr([Lt()],Dr.prototype,"label",2),Tr([Lt({attribute:"help-text"})],Dr.prototype,"helpText",2),Tr([Lt({type:Boolean})],Dr.prototype,"clearable",2),Tr([Lt({type:Boolean,reflect:!0})],Dr.prototype,"disabled",2),Tr([Lt({type:Boolean,reflect:!0})],Dr.prototype,"readonly",2),Tr([Lt({attribute:"password-toggle",type:Boolean})],Dr.prototype,"passwordToggle",2),Tr([Lt({attribute:"password-visible",type:Boolean})],Dr.prototype,"passwordVisible",2),Tr([Lt({attribute:"no-spin-buttons",type:Boolean})],Dr.prototype,"noSpinButtons",2),Tr([Lt({type:Number})],Dr.prototype,"minlength",2),Tr([Lt({type:Number})],Dr.prototype,"maxlength",2),Tr([Lt({type:Number})],Dr.prototype,"min",2),Tr([Lt({type:Number})],Dr.prototype,"max",2),Tr([Lt({reflect:!0})],Dr.prototype,"form",2),Tr([Lt()],Dr.prototype,"name",2),Tr([Lt()],Dr.prototype,"title",2),Tr([Lt({type:Boolean,reflect:!0})],Dr.prototype,"required",2),Tr([Lt()],Dr.prototype,"pattern",2),Tr([Lt()],Dr.prototype,"step",2),Tr([Lt()],Dr.prototype,"autocapitalize",2),Tr([Lt()],Dr.prototype,"autocorrect",2),Tr([Lt()],Dr.prototype,"autocomplete",2),Tr([Lt({type:Boolean})],Dr.prototype,"autofocus",2),Tr([Lt()],Dr.prototype,"enterkeyhint",2),Tr([Lt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Dr.prototype,"spellcheck",2),Tr([Xt("disabled",{waitUntilFirstUpdate:!0})],Dr.prototype,"handleDisabledChange",1),Tr([Xt("step",{waitUntilFirstUpdate:!0})],Dr.prototype,"handleStepChange",1),Tr([Xt("value",{waitUntilFirstUpdate:!0})],Dr.prototype,"handleValueChange",1),Dr=Tr([Pt("sd-input")],Dr);const Mr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Dr}},Symbol.toStringTag,{value:"Module"}));var Br=Object.defineProperty,jr=Object.getOwnPropertyDescriptor,Vr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?jr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Br(e,i,s),s};let Ir=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"[default]","icon-left","icon-right"),this.size="inherit",this.inverted=!1,this.standalone=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return pt`<a part="base" class="${we("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${ai(this.href||void 0)}" target="${ai(this.target||void 0)}" download="${ai(this.download||void 0)}" rel="${ai(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${we("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${we("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Ir.styles=[ie.styles,P`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:1rem}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:1.5rem}`],Vr([Bt("a")],Ir.prototype,"button",2),Vr([Lt({reflect:!0})],Ir.prototype,"size",2),Vr([Lt({type:Boolean,reflect:!0})],Ir.prototype,"inverted",2),Vr([Lt({type:Boolean,reflect:!0})],Ir.prototype,"standalone",2),Vr([Lt()],Ir.prototype,"href",2),Vr([Lt()],Ir.prototype,"target",2),Vr([Lt()],Ir.prototype,"download",2),Ir=Vr([Pt("sd-link")],Ir);const Ur=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ir}},Symbol.toStringTag,{value:"Module"}));var Fr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Hr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Rr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fr(e,i,s),s};let Nr=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"[default]","description","children"),this.href="",this.current=!1,this.disabled=!1,this.size="base",this.vertical=!1,this.chevron=!1,this.indented=!1,this.relaxed=!1,this.divider=!1,this.open=!1}isButton(){return!this.href&&!this.hasSlotController.test("children")}isLink(){return!!this.href}isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}render(){const t=this.isLink(),e=this.isButton(),i=this.isAccordion(),o=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),s=t?oi`a`:i?oi`summary`:oi`button`,a=this.vertical?"pb-3":"pb-2",n=si`<${s} part="base" class="${we("hover:bg-neutral-200 group transition-all min-h-[48px] cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",i?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-[1px]",this.vertical?"px-8":"px-4")}" aria-controls="${ai(i?"navigation-item-details":void 0)}" aria-current="${ai(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${ai(e?this.disabled:void 0)}" href="${ai(this.href||void 0)}" target="${ai(t?this.target:void 0)}" download="${ai(t?this.download:void 0)}" rel="${ai(t&&this.target?"noreferrer noopener":void 0)}" role="${t?"link":"button"}" tabindex="${this.disabled?"-1":"0"}" @click="${i?this.handleClickSummary:e?this.handleClickButton:void 0}"><div class="${we("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150",this.vertical?"border-l-4 h-[calc(100%-8px)] top-1 group-hover:h-full group-hover:top-0":"border-b-4 h-full",this.current?"border-accent":"border-transparent",this.disabled&&"border-neutral-500")}"></div><span class="${we("relative pt-3 inline-flex justify-between items-center",i?"grow":"w-full",o?"pb-1":a,this.calculatePaddingX())}">${this.divider&&this.vertical?si`<sd-divider part="divider" class="${we("w-full transition-all absolute -top-[1px] left-0",this.calculatePaddingX())}"></sd-divider>`:""} <span class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron||r)&&this.vertical?si`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${we("h-6 w-6 ml-2 transition-all",i?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${o&&this.vertical?si`<slot name="description" part="description" class="${we("inline-block text-sm text-left text-black",i?"grow":"w-full",a,this.calculatePaddingX())}"></slot>`:""}</${s}>`;return i?si`<details id="navigation-item-details" ?open="${this.open}" class="relative flex">${n}<slot name="children"></slot></details>`:si`${n}`}};Nr.styles=[Gt,ie.styles,P`:host{box-sizing:border-box;position:relative;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Hr([Lt({reflect:!0})],Nr.prototype,"href",2),Hr([Lt()],Nr.prototype,"target",2),Hr([Lt()],Nr.prototype,"download",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"current",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"disabled",2),Hr([Lt({reflect:!0})],Nr.prototype,"size",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"vertical",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"chevron",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"indented",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"relaxed",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"divider",2),Hr([Lt({type:Boolean,reflect:!0})],Nr.prototype,"open",2),Nr=Hr([(t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})
94
+ */})(t),e}});var Bi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,Vi=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ji(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Bi(e,i,s),s};let Ii=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(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.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){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)}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}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.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return pt`<label part="base" class="${we("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",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="${ai(this.value)}" .indeterminate="${Mi(this.indeterminate)}" .checked="${Mi(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"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="${we("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",{sm:"mt-[2px]",lg:"mt-[3px]"}[this.size],(this.disabled&&this.indeterminate||this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled&&"border-neutral-500")||(this.checked||this.indeterminate)&&"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550"||"border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white")}">${this.checked?pt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-icon>`:""} ${!this.checked&&this.indeterminate?pt`<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="${we("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};Ii.styles=[ie.styles,P`:host{display:block}:host(:focus-visible){outline-width:0}:host([required]) #label::after{content:' *'}:host([data-user-invalid]) #label{color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]) #control{border-color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]):host([indeterminate]) #control{background-color:rgb(var(--sd-color-error,204 25 55))}`],Vi([Bt('input[type="checkbox"]')],Ii.prototype,"input",2),Vi([Lt()],Ii.prototype,"title",2),Vi([Lt()],Ii.prototype,"name",2),Vi([Lt()],Ii.prototype,"value",2),Vi([Lt({reflect:!0})],Ii.prototype,"size",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"disabled",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"checked",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"indeterminate",2),Vi([Li("checked")],Ii.prototype,"defaultChecked",2),Vi([Lt({reflect:!0})],Ii.prototype,"form",2),Vi([Lt({type:Boolean,reflect:!0})],Ii.prototype,"required",2),Vi([Xt("disabled",{waitUntilFirstUpdate:!0})],Ii.prototype,"handleDisabledChange",1),Vi([Xt(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Ii.prototype,"handleStateChange",1),Ii=Vi([Pt("sd-checkbox")],Ii);const Ui=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ii}},Symbol.toStringTag,{value:"Module"}));var Fi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Hi=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ri(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Fi(e,i,s),s};let Ni=class extends ie{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return pt`<hr part="main" class="${we(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};Ni.styles=[Gt,ie.styles,P`:host{margin:var(--sd-spacing-0,0)}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],Hi([Lt({reflect:!0})],Ni.prototype,"orientation",2),Hi([Lt({type:Boolean,reflect:!0})],Ni.prototype,"inverted",2),Ni=Hi([Pt("sd-divider")],Ni);const qi=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ni}},Symbol.toStringTag,{value:"Module"})),Ki=new Set;function Zi(t){if(Ki.add(t),!document.body.classList.contains("sd-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${t}px`)}}function Wi(t){Ki.delete(t),0===Ki.size&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Yi(t,e,i="vertical",o="smooth"){const r=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),s=r.top+e.scrollTop,a=r.left+e.scrollLeft,n=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,c=e.scrollTop+e.offsetHeight;("horizontal"===i||"both"===i)&&(a<n?e.scrollTo({left:a,behavior:o}):a+t.clientWidth>l&&e.scrollTo({left:a-e.offsetWidth+t.clientWidth,behavior:o})),("vertical"===i||"both"===i)&&(s<d?e.scrollTo({top:s,behavior:o}):s+t.clientHeight>c&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:o}))}function Xi(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Gi(t){const e=t.tagName.toLowerCase();return!("-1"===t.getAttribute("tabindex")||t.hasAttribute("disabled")||t.hasAttribute("aria-disabled")&&"false"!==t.getAttribute("aria-disabled")||"input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked")||null===t.offsetParent||"hidden"===window.getComputedStyle(t).visibility)&&(!!(("audio"===e||"video"===e)&&t.hasAttribute("controls")||t.hasAttribute("tabindex")||t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e))}function Ji(t){const e=[];return function t(i){i instanceof HTMLElement&&(e.push(i),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&t(i.shadowRoot)),[...i.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Gi(t)))??null,end:e.reverse().find((t=>Gi(t)))??null}}let Qi=[];class to{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){Qi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Qi=Qi.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Qi[Qi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Ji(this.element),i="forward"===this.tabDirection?t:e;"function"==typeof(null==i?void 0:i.focus)&&i.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var eo=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?io(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&eo(e,i,s),s};let ro=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"footer"),this.localize=new k(this),this.modal=new to(this),this.open=!1,this.label="",this.placement="end",this.contained=!1,this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),Zi(this)))}disconnectedCallback(){super.disconnectedCallback(),Wi(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=fe(this,"drawer.denyClose",{dir:this.localize.dir()});de(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),Zi(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([pe(this.drawer),pe(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame((()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=fe(this,`drawer.show${Xi(this.placement)}`,{dir:this.localize.dir()}),i=fe(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([de(this.panel,e.keyframes,e.options),de(this.overlay,i.keyframes,i.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Wi(this)),await Promise.all([pe(this.drawer),pe(this.overlay)]);const t=fe(this,`drawer.hide${Xi(this.placement)}`,{dir:this.localize.dir()}),e=fe(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([de(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),de(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Zi(this)),this.open&&this.contained&&(this.modal.deactivate(),Wi(this))}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}render(){return pt`<div part="base" class="${we("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${we("block top-0 left-0 right-0 bottom-0 bg-neutral-800/75 pointer-events-auto",this.contained?"absolute":"fixed")}" @click="${()=>this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${we("absolute flex flex-col z-10 max-w-full max-h-full bg-white shadow-lg overflow-auto pointer-events-auto focus:outline-none",{end:"top-0 end-0 bottom-auto start-auto w-[--width] h-full",start:"top-0 end-auto bottom-auto start-0 w-[--width] h-full"}[this.placement])}" role="dialog" aria-modal="true" aria-hidden="${this.open?"false":"true"}" aria-label="${this.label}" aria-labelledby="${ai(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":pt`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-icon name="close" library="system"></sd-icon></sd-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${we(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};ro.styles=[ie.styles,Gt,P`:host{--width:25rem;display:contents}:host([contained]){z-index:initial}:host(:not([contained])){z-index:var(--sd-z-index-drawer,700)}[part=body]{-webkit-overflow-scrolling:touch;overflow-y:scroll;scrollbar-width:none}[part=body]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}`],oo([Bt("[part=base]")],ro.prototype,"drawer",2),oo([Bt("[part=panel]")],ro.prototype,"panel",2),oo([Bt("[part=overlay]")],ro.prototype,"overlay",2),oo([Lt({type:Boolean,reflect:!0})],ro.prototype,"open",2),oo([Lt({attribute:"label",reflect:!0})],ro.prototype,"label",2),oo([Lt({reflect:!0})],ro.prototype,"placement",2),oo([Lt({type:Boolean,reflect:!0})],ro.prototype,"contained",2),oo([Lt({attribute:"no-header",type:Boolean})],ro.prototype,"noHeader",2),oo([Xt("open",{waitUntilFirstUpdate:!0})],ro.prototype,"handleOpenChange",1),oo([Xt("contained",{waitUntilFirstUpdate:!0})],ro.prototype,"handleNoModalChange",1),ro=oo([Pt("sd-drawer")],ro),ge("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ge("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}}),ge("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}}),ge("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}}),ge("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),ge("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ge("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const so=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ro}},Symbol.toStringTag,{value:"Module"})),ao=Math.min,no=Math.max,lo=Math.round,co=Math.floor,ho=t=>({x:t,y:t}),po={left:"right",right:"left",bottom:"top",top:"bottom"},uo={start:"end",end:"start"};function mo(t,e,i){return no(t,ao(e,i))}function bo(t,e){return"function"==typeof t?t(e):t}function vo(t){return t.split("-")[0]}function go(t){return t.split("-")[1]}function fo(t){return"x"===t?"y":"x"}function yo(t){return"y"===t?"height":"width"}function wo(t){return["top","bottom"].includes(vo(t))?"y":"x"}function xo(t){return fo(wo(t))}function ko(t){return t.replace(/start|end/g,(t=>uo[t]))}function Co(t){return t.replace(/left|right|bottom|top/g,(t=>po[t]))}function $o(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function So(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function _o(t,e,i){let{reference:o,floating:r}=t;const s=wo(e),a=xo(e),n=yo(a),l=vo(e),d="y"===s,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[n]/2-r[n]/2;let u;switch(l){case"top":u={x:c,y:o.y-r.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(go(e)){case"start":u[a]-=p*(i&&d?-1:1);break;case"end":u[a]+=p*(i&&d?-1:1)}return u}async function Oo(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:s,rects:a,elements:n,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=bo(e,t),m=$o(u),b=n[p?"floating"===h?"reference":"floating":h],v=So(await s.getClippingRect({element:null==(i=await(null==s.isElement?void 0:s.isElement(b)))||i?b:b.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(n.floating)),boundary:d,rootBoundary:c,strategy:l})),g="floating"===h?{...a.floating,x:o,y:r}:a.reference,f=await(null==s.getOffsetParent?void 0:s.getOffsetParent(n.floating)),y=await(null==s.isElement?void 0:s.isElement(f))&&await(null==s.getScale?void 0:s.getScale(f))||{x:1,y:1},w=So(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:f,strategy:l}):g);return{top:(v.top-w.top+m.top)/y.y,bottom:(w.bottom-v.bottom+m.bottom)/y.y,left:(v.left-w.left+m.left)/y.x,right:(w.right-v.right+m.right)/y.x}}const Eo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:o}=e,r=await async function(t,e){const{placement:i,platform:o,elements:r}=t,s=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=vo(i),n=go(i),l="y"===wo(i),d=["left","top"].includes(a)?-1:1,c=s&&l?-1:1,h=bo(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return n&&"number"==typeof m&&(u="end"===n?-1*m:m),l?{x:u*c,y:p*d}:{x:p*d,y:u*c}}(e,t);return{x:i+r.x,y:o+r.y,data:r}}}},zo=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:i,rects:o,platform:r,elements:s}=e,{apply:a=(()=>{}),...n}=bo(t,e),l=await Oo(e,n),d=vo(i),c=go(i),h="y"===wo(i),{width:p,height:u}=o.floating;let m,b;"top"===d||"bottom"===d?(m=d,b=c===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,m="end"===c?"top":"bottom");const v=u-l[m],g=p-l[b],f=!e.middlewareData.shift;let y=v,w=g;if(h){const t=p-l.left-l.right;w=c||f?ao(g,t):t}else{const t=u-l.top-l.bottom;y=c||f?ao(v,t):t}if(f&&!c){const t=no(l.left,0),e=no(l.right,0),i=no(l.top,0),o=no(l.bottom,0);h?w=p-2*(0!==t||0!==e?t+e:no(l.left,l.right)):y=u-2*(0!==i||0!==o?i+o:no(l.top,l.bottom))}await a({...e,availableWidth:w,availableHeight:y});const x=await r.getDimensions(s.floating);return p!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}};function Po(t){return Lo(t)?(t.nodeName||"").toLowerCase():"#document"}function Ao(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function To(t){var e;return null==(e=(Lo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Lo(t){return t instanceof Node||t instanceof Ao(t).Node}function Do(t){return t instanceof Element||t instanceof Ao(t).Element}function Mo(t){return t instanceof HTMLElement||t instanceof Ao(t).HTMLElement}function Bo(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof Ao(t).ShadowRoot)}function jo(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Ro(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Vo(t){return["table","td","th"].includes(Po(t))}function Io(t){const e=Uo(),i=Ro(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Uo(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fo(t){return["html","body","#document"].includes(Po(t))}function Ro(t){return Ao(t).getComputedStyle(t)}function Ho(t){return Do(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function No(t){if("html"===Po(t))return t;const e=t.assignedSlot||t.parentNode||Bo(t)&&t.host||To(t);return Bo(e)?e.host:e}function qo(t){const e=No(t);return Fo(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mo(e)&&jo(e)?e:qo(e)}function Ko(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=qo(t),s=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Ao(r);return s?e.concat(a,a.visualViewport||[],jo(r)?r:[],a.frameElement&&i?Ko(a.frameElement):[]):e.concat(r,Ko(r,[],i))}function Zo(t){const e=Ro(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Mo(t),s=r?t.offsetWidth:i,a=r?t.offsetHeight:o,n=lo(i)!==s||lo(o)!==a;return n&&(i=s,o=a),{width:i,height:o,$:n}}function Wo(t){return Do(t)?t:t.contextElement}function Yo(t){const e=Wo(t);if(!Mo(e))return ho(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:s}=Zo(e);let a=(s?lo(i.width):i.width)/o,n=(s?lo(i.height):i.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!n||!Number.isFinite(n))&&(n=1),{x:a,y:n}}const Xo=ho(0);function Go(t){const e=Ao(t);return Uo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Xo}function Jo(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),s=Wo(t);let a=ho(1);e&&(o?Do(o)&&(a=Yo(o)):a=Yo(t));const n=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Ao(t))&&e}(s,i,o)?Go(s):ho(0);let l=(r.left+n.x)/a.x,d=(r.top+n.y)/a.y,c=r.width/a.x,h=r.height/a.y;if(s){const t=Ao(s),e=o&&Do(o)?Ao(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=Yo(i),e=i.getBoundingClientRect(),o=Ro(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,d*=t.y,c*=t.x,h*=t.y,l+=r,d+=s,i=Ao(i).frameElement}}return So({width:c,height:h,x:l,y:d})}function Qo(t){return Jo(To(t)).left+Ho(t).scrollLeft}function tr(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Ao(t),o=To(t),r=i.visualViewport;let s=o.clientWidth,a=o.clientHeight,n=0,l=0;if(r){s=r.width,a=r.height;const t=Uo();(!t||t&&"fixed"===e)&&(n=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:n,y:l}}(t,i);else if("document"===e)o=function(t){const e=To(t),i=Ho(t),o=t.ownerDocument.body,r=no(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=no(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Qo(t);const n=-i.scrollTop;return"rtl"===Ro(o).direction&&(a+=no(e.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:n}}(To(t));else if(Do(e))o=function(t,e){const i=Jo(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,s=Mo(t)?Yo(t):ho(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:o*s.y}}(e,i);else{const i=Go(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return So(o)}function er(t,e){const i=No(t);return!(i===e||!Do(i)||Fo(i))&&("fixed"===Ro(i).position||er(i,e))}function ir(t,e){const i=e.get(t);if(i)return i;let o=Ko(t,[],!1).filter((t=>Do(t)&&"body"!==Po(t))),r=null;const s="fixed"===Ro(t).position;let a=s?No(t):t;for(;Do(a)&&!Fo(a);){const e=Ro(a),i=Io(a);!i&&"fixed"===e.position&&(r=null),(s?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||jo(a)&&!i&&er(t,a))?o=o.filter((t=>t!==a)):r=e,a=No(a)}return e.set(t,o),o}function or(t,e,i){const o=Mo(e),r=To(e),s="fixed"===i,a=Jo(t,!0,s,e);let n={scrollLeft:0,scrollTop:0};const l=ho(0);if(o||!o&&!s)if(("body"!==Po(e)||jo(r))&&(n=Ho(e)),o){const t=Jo(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Qo(r));return{x:a.left+n.scrollLeft-l.x,y:a.top+n.scrollTop-l.y,width:a.width,height:a.height}}function rr(t,e){return Mo(t)&&"fixed"!==Ro(t).position?e?e(t):t.offsetParent:null}function sr(t,e){const i=Ao(t);if(!Mo(t))return i;let o=rr(t,e);for(;o&&Vo(o)&&"static"===Ro(o).position;)o=rr(o,e);return o&&("html"===Po(o)||"body"===Po(o)&&"static"===Ro(o).position&&!Io(o))?i:o||function(t){let e=No(t);for(;Mo(e)&&!Fo(e);){if(Io(e))return e;e=No(e)}return null}(t)||i}const ar={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Mo(i),s=To(i);if(i===s)return e;let a={scrollLeft:0,scrollTop:0},n=ho(1);const l=ho(0);if((r||!r&&"fixed"!==o)&&(("body"!==Po(i)||jo(s))&&(a=Ho(i)),Mo(i))){const t=Jo(i);n=Yo(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*n.x,height:e.height*n.y,x:e.x*n.x-a.scrollLeft*n.x+l.x,y:e.y*n.y-a.scrollTop*n.y+l.y}},getDocumentElement:To,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const s=[..."clippingAncestors"===i?ir(e,this._c):[].concat(i),o],a=s[0],n=s.reduce(((t,i)=>{const o=tr(e,i,r);return t.top=no(o.top,t.top),t.right=ao(o.right,t.right),t.bottom=ao(o.bottom,t.bottom),t.left=no(o.left,t.left),t}),tr(e,a,r));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}},getOffsetParent:sr,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||sr,s=this.getDimensions;return{reference:or(e,await r(i),o),floating:{x:0,y:0,...await s(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Zo(t)},getScale:Yo,isElement:Do,isRTL:function(t){return"rtl"===Ro(t).direction}};var nr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,dr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?lr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&nr(e,i,s),s};let cr=class extends ie{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((t=>this.handleCurrentPlacementChange(t))),this.mutationObserver.observe(this,{attributes:!0})}handleCurrentPlacementChange(t){return t.forEach((t=>{if("data-current-placement"===t.attributeName){const t=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:t})}}))}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const 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=function(t,e,i,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=Wo(t),c=r||s?[...d?Ko(d):[],...Ko(e)]:[];c.forEach((t=>{r&&t.addEventListener("scroll",i,{passive:!0}),s&&t.addEventListener("resize",i)}));const h=d&&n?function(t,e){let i,o=null;const r=To(t);function s(){clearTimeout(i),o&&o.disconnect(),o=null}return function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const{left:d,top:c,width:h,height:p}=t.getBoundingClientRect();if(n||e(),!h||!p)return;const u={rootMargin:-co(c)+"px "+-co(r.clientWidth-(d+h))+"px "+-co(r.clientHeight-(c+p))+"px "+-co(d)+"px",threshold:no(0,ao(1,l))||1};let m=!0;function b(t){const e=t[0].intersectionRatio;if(e!==l){if(!m)return a();e?a(!1,e):i=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{o=new IntersectionObserver(b,{...u,root:r.ownerDocument})}catch{o=new IntersectionObserver(b,u)}o.observe(t)}(!0),s}(d,i):null;let p=-1,u=null;a&&(u=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{u&&u.observe(e)}))),i()})),d&&!l&&u.observe(d),u.observe(e));let m,b=l?Jo(t):null;return l&&function e(){const o=Jo(t);b&&(o.x!==b.x||o.y!==b.y||o.width!==b.width||o.height!==b.height)&&i(),b=o,m=requestAnimationFrame(e)}(),i(),()=>{c.forEach((t=>{r&&t.removeEventListener("scroll",i),s&&t.removeEventListener("resize",i)})),h&&h(),u&&u.disconnect(),u=null,l&&cancelAnimationFrame(m)}}(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;const t=[Eo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(zo({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,i="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=i?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:n,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...v}=bo(t,e);if(null!=(i=s.arrow)&&i.alignmentOffset)return{};const g=vo(r),f=vo(n)===n,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(f||!b?[Co(n)]:function(t){const e=Co(t);return[ko(t),e,ko(e)]}(n));!p&&"none"!==m&&w.push(...function(t,e,i,o){const r=go(t);let s=function(t,e,i){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return i?e?r:o:e?o:r;case"left":case"right":return e?s:a;default:return[]}}(vo(t),"start"===i,o);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(ko)))),s}(n,b,m,y));const x=[n,...w],k=await Oo(e,v),C=[];let $=(null==(o=s.flip)?void 0:o.overflows)||[];if(c&&C.push(k[g]),h){const t=function(t,e,i){void 0===i&&(i=!1);const o=go(t),r=xo(t),s=yo(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Co(a)),[a,Co(a)]}(r,a,y);C.push(k[t[0]],k[t[1]])}if($=[...$,{placement:r,overflows:C}],!C.every((t=>t<=0))){var S,_;const t=((null==(S=s.flip)?void 0:S.index)||0)+1,e=x[t];if(e)return{data:{index:t,overflows:$},reset:{placement:e}};let i=null==(_=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:_.placement;if(!i)switch(u){case"bestFit":{var O;const t=null==(O=$.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:O[0];t&&(i=t);break}case"initialPlacement":i=n}if(r!==i)return{reset:{placement:i}}}return{}}}}({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:n={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=bo(t,e),d={x:i,y:o},c=await Oo(e,l),h=wo(vo(r)),p=fo(h);let u=d[p],m=d[h];if(s){const t="y"===p?"bottom":"right";u=mo(u+c["y"===p?"top":"left"],u,u-c[t])}if(a){const t="y"===h?"bottom":"right";m=mo(m+c["y"===h?"top":"left"],m,m-c[t])}const b=n.fn({...e,[p]:u,[h]:m});return{...b,data:{x:b.x-i,y:b.y-o}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(zo({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}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((t=>({name:"arrow",options:t,async fn(e){const{x:i,y:o,placement:r,rects:s,platform:a,elements:n,middlewareData:l}=e,{element:d,padding:c=0}=bo(t,e)||{};if(null==d)return{};const h=$o(c),p={x:i,y:o},u=xo(r),m=yo(u),b=await a.getDimensions(d),v="y"===u,g=v?"top":"left",f=v?"bottom":"right",y=v?"clientHeight":"clientWidth",w=s.reference[m]+s.reference[u]-p[u]-s.floating[m],x=p[u]-s.reference[u],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let C=k?k[y]:0;(!C||!await(null==a.isElement?void 0:a.isElement(k)))&&(C=n.floating[y]||s.floating[m]);const $=w/2-x/2,S=C/2-b[m]/2-1,_=ao(h[g],S),O=ao(h[f],S),E=_,z=C-b[m]-O,P=C/2-b[m]/2+$,A=mo(E,P,z),T=!l.arrow&&null!=go(r)&&P!=A&&s.reference[m]/2-(P<E?_:O)-b[m]/2<0,L=T?P<E?P-E:P-z:0;return{[u]:p[u]+L,data:{[u]:A,centerOffset:P-A-L,...T&&{alignmentOffset:L}},reset:T}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,i)=>{const o=new Map,r={platform:ar,...i},s={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=i,n=s.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let d=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=_o(d,o,l),p=o,u={},m=0;for(let i=0;i<n.length;i++){const{name:s,fn:b}=n[i],{x:v,y:g,data:f,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:d,platform:a,elements:{reference:t,floating:e}});c=v??c,h=g??h,u={...u,[s]:{...u[s],...f}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(d=!0===y.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=_o(d,p,l))),i=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:s})})(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then((({x:t,y:e,middlewareData:i,placement:o})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];if(this.setAttribute("data-current-placement",o),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=i.arrow.x,e=i.arrow.y;let o="",a="",n="",l="";if("start"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";o="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=r?i:"",l=r?"":i}else if("end"===this.arrowPlacement){const i="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=r?"":i,l=r?i:"",n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",o="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",o="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:o,right:a,bottom:n,left:l,[s]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sd-reposition")}render(){return pt`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${we("isolate","fixed"!==this.strategy?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?pt`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};cr.styles=[ie.styles,Gt,P`: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-width:var(--auto-size-available-width,none);max-height:var(--auto-size-available-height,none)}[part=arrow]{width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);background:var(--arrow-color)}`],dr([Bt('[part="popup"]')],cr.prototype,"popup",2),dr([Bt('[part="arrow"]')],cr.prototype,"arrowEl",2),dr([Lt()],cr.prototype,"anchor",2),dr([Lt({type:Boolean,reflect:!0})],cr.prototype,"active",2),dr([Lt({reflect:!0})],cr.prototype,"placement",2),dr([Lt({reflect:!0})],cr.prototype,"strategy",2),dr([Lt({type:Number})],cr.prototype,"distance",2),dr([Lt({type:Number})],cr.prototype,"skidding",2),dr([Lt({type:Boolean})],cr.prototype,"arrow",2),dr([Lt({attribute:"arrow-placement"})],cr.prototype,"arrowPlacement",2),dr([Lt({attribute:"arrow-padding",type:Number})],cr.prototype,"arrowPadding",2),dr([Lt({type:Boolean})],cr.prototype,"flip",2),dr([Lt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],cr.prototype,"flipFallbackPlacements",2),dr([Lt({attribute:"flip-fallback-strategy"})],cr.prototype,"flipFallbackStrategy",2),dr([Lt({type:Object})],cr.prototype,"flipBoundary",2),dr([Lt({attribute:"flip-padding",type:Number})],cr.prototype,"flipPadding",2),dr([Lt({type:Boolean})],cr.prototype,"shift",2),dr([Lt({type:Object})],cr.prototype,"shiftBoundary",2),dr([Lt({attribute:"shift-padding",type:Number})],cr.prototype,"shiftPadding",2),dr([Lt({attribute:"auto-size"})],cr.prototype,"autoSize",2),dr([Lt()],cr.prototype,"sync",2),dr([Lt({type:Object})],cr.prototype,"autoSizeBoundary",2),dr([Lt({attribute:"auto-size-padding",type:Number})],cr.prototype,"autoSizePadding",2),cr=dr([Pt("sd-popup")],cr);const hr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return cr}},Symbol.toStringTag,{value:"Module"}));var pr=Object.defineProperty,ur=Object.getOwnPropertyDescriptor,mr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ur(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&pr(e,i,s),s};let br=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.open=!1,this.rounded=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.noAutoSize=!1,this.noFlip=!1,this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sd-menu"===t.tagName.toLowerCase()))}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if("Tab"===t.key){if(this.open&&"sd-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,i;const o=(null==(t=this.containingElement)?void 0:t.getRootNode())instanceof ShadowRoot?null==(i=null==(e=document.activeElement)?void 0:e.shadowRoot)?void 0:i.activeElement:document.activeElement;(!this.containingElement||(null==o?void 0:o.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()}))}}handleDocumentMouseDown(t){const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){Yi(t.target,this.panel)}handlePanelSelect(t){const e=t.target;!this.stayOpenOnSelect&&"sd-menu"===e.tagName.toLowerCase()&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const i=e.defaultSlot.assignedElements({flatten:!0}),o=i[0],r=i[i.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),i.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(o),o.focus()),("ArrowUp"===t.key||"End"===t.key)&&(e.setCurrentItem(r),r.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Ji(t).start));let e;if(t){switch(t.tagName.toLowerCase()){case"sd-button":case"sd-icon-button":e=t.button;break;default:e=t}e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await pe(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=fe(this,"dropdown.show",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await pe(this);const{keyframes:t,options:e}=fe(this,"dropdown.hide",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return pt`<sd-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${we("shadow bg-white",this.open?"block pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-popup>`}};br.styles=[ie.styles,Gt,P`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],mr([Bt("#dropdown")],br.prototype,"popup",2),mr([Bt("[part=trigger]")],br.prototype,"trigger",2),mr([Bt("[part=panel]")],br.prototype,"panel",2),mr([Lt({type:Boolean,reflect:!0})],br.prototype,"open",2),mr([Lt({type:Boolean,reflect:!0})],br.prototype,"rounded",2),mr([Lt({reflect:!0})],br.prototype,"placement",2),mr([Lt({type:Boolean,reflect:!0})],br.prototype,"disabled",2),mr([Lt({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],br.prototype,"stayOpenOnSelect",2),mr([Lt({attribute:!1})],br.prototype,"containingElement",2),mr([Lt({type:Number})],br.prototype,"distance",2),mr([Lt({type:Number})],br.prototype,"skidding",2),mr([Lt({type:Boolean,reflect:!0,attribute:"no-auto-size"})],br.prototype,"noAutoSize",2),mr([Lt({type:Boolean,reflect:!0,attribute:"no-flip"})],br.prototype,"noFlip",2),mr([Lt({type:Boolean})],br.prototype,"hoist",2),mr([Xt("open",{waitUntilFirstUpdate:!0})],br.prototype,"handleOpenChange",1),br=mr([Pt("sd-dropdown")],br),ge("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ge("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const vr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return br}},Symbol.toStringTag,{value:"Module"}));var gr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,yr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?fr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&gr(e,i,s),s};let wr=class extends ie{constructor(){super(...arguments),this.fixed=!1}connectedCallback(){super.connectedCallback(),this.setCalculatedHeightProperty=this.setCalculatedHeightProperty.bind(this),this.addResizeObserver=this.addResizeObserver.bind(this)}firstUpdated(){this.toggleHeightCalculation()}toggleHeightCalculation(){var t;this.fixed?(this.setCalculatedHeightProperty(),this.addResizeObserver()):(this.setCalculatedHeightProperty(),null==(t=this.resizeObserver)||t.disconnect(),this.resizeObserver=void 0)}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t),t.has("fixed")&&this.toggleHeightCalculation()}onResize(){this.fixed&&this.setCalculatedHeightProperty()}addResizeObserver(){this.resizeObserver=new ResizeObserver((()=>{this.onResize()})),this.refHeaderElement&&this.resizeObserver.observe(this.refHeaderElement)}setCalculatedHeightProperty(){this.fixed&&this.refHeaderElement?document.documentElement.style.setProperty("--sd-header-calculated-height",`${this.refHeaderElement.clientHeight}px`):document.documentElement.style.removeProperty("--sd-header-calculated-height")}render(){return pt`<header class="w-full bg-white relative" role="banner" @slotchange="${this.handleSlotChange}"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`}handleSlotChange(t){t.target.assignedElements().length>0&&(this.refHeaderElement=t.currentTarget,this.setCalculatedHeightProperty())}};wr.styles=[ie.styles,Gt,P`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-header-inner-width);max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px)}`],yr([Lt({reflect:!0,type:Boolean})],wr.prototype,"fixed",2),yr([gi(100)],wr.prototype,"onResize",1),wr=yr([Pt("sd-header")],wr);const xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return wr}},Symbol.toStringTag,{value:"Module"}));var kr=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,$r=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Cr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&kr(e,i,s),s};let Sr=class extends ie{constructor(){super(...arguments),this.mode="cors",this.allowScripts=!1}executeScript(t){const e=document.createElement("script");[...t.attributes].forEach((t=>e.setAttribute(t.name,t.value))),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{const t=this.src,e=await It(t,this.mode);if(t!==this.src)return;if(!e.ok)return void this.emit("sd-error",{detail:{status:e.status}});this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach((t=>this.executeScript(t))),this.emit("sd-load")}catch{this.emit("sd-error",{detail:{status:-1}})}}render(){return pt`<slot></slot>`}};Sr.styles=[Gt,P`:host{display:block}`],$r([Lt()],Sr.prototype,"src",2),$r([Lt()],Sr.prototype,"mode",2),$r([Lt({attribute:"allow-scripts",type:Boolean})],Sr.prototype,"allowScripts",2),$r([Xt("src")],Sr.prototype,"handleSrcChange",1),Sr=$r([Pt("sd-include")],Sr);const _r=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Sr}},Symbol.toStringTag,{value:"Module"})),Or=P`.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--sd-input-label-color);margin-bottom:var(--sd-spacing-3x-small)}.form-control--has-label.form-control--small .form-control__label{font-size:var(--sd-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--sd-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--sd-input-label-font-size-large)}:host([required]) .form-control--has-label .form-control__label::after{content:var(--sd-input-required-content);margin-inline-start:var(--sd-input-required-content-offset);color:var(--sd-input-required-content-color)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--sd-input-help-text-color);margin-top:var(--sd-spacing-3x-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--sd-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--sd-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--sd-input-help-text-font-size-large)}.form-control--has-help-text.form-control--radio-group .form-control__help-text{margin-top:var(--sd-spacing-2x-small)}`;var Er=Object.defineProperty,zr=Object.getOwnPropertyDescriptor,Pr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Er(e,i,s),s};const Ar=!(null==(i=navigator.userAgentData)?void 0:i.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Tr=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this),this.hasSlotController=new ti(this,"help-text","label","left","right","message","placeholder"),this.localize=new k(this),this.hasFocus=!1,this.type="text",this.size="lg",this.value="",this.defaultValue="",this.placeholder="",this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.name="",this.title="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var t;return(null==(t=this.input)?void 0:t.valueAsDate)??null}set valueAsDate(t){const e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t;return(null==(t=this.input)?void 0:t.valueAsNumber)??parseFloat(this.value)}set valueAsNumber(t){const e=document.createElement("input");e.type="number",e.valueAsNumber=t,this.value=e.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(t){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(){this.formControlController.setValidity(!1)}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"===t.key&&!e&&setTimeout((()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,i="none"){this.input.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.input.setRangeText(t,e,i,o),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var t;return null==(t=this.input)?void 0:t.checkValidity()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),o=this.hasSlotController.test("right"),r=!!this.label||!!t,s=!!this.helpText||!!e,a=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),n=this.required||!!this.pattern||!!this.minlength||!!this.maxlength,l=n&&!this.checkValidity(),d=n&&this.checkValidity(),c=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&l?"activeInvalid":this.hasFocus&&d?"activeValid":this.hasFocus?"active":l?"invalid":d?"valid":"default",h="sm"===this.size?"text-sm":"text-base",p={disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[c],u={disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[c],m=this.disabled?"text-neutral-500":"text-primary",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],v={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return pt`<div part="form-control" class="${we("form-control",r&&"form-control--has-label",this.disabled&&"pointer-events-none")}"><label part="form-control-label" id="label" class="${we("form-control-label mb-2",r?"has-label inline-block":"hidden",h)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="form-control-input relative w-full"><div part="border" class="${we("absolute w-full h-full pointer-events-none border rounded-default transition-all",u)}"></div><div part="base" class="${we("px-4 flex flex-row items-center rounded-default transition-all","lg"===this.size?"py-2":"py-1",this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100",l&&"form-control-input--invalid",p,!this.value&&"input--empty",this.noSpinButtons&&"input--no-spin-buttons",Ar&&"input--is-firefox")}">${i?pt`<slot name="left" part="left" class="${we("inline-flex","sm"===this.size?"mr-1":"mr-2",m,v)}"></slot>`:""} <input part="input" id="input" class="${we("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700","sm"===this.size?"h-6":"h-8",h)}" type="${"password"===this.type&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${ai(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ai(this.placeholder)}" minlength="${ai(this.minlength)}" maxlength="${ai(this.maxlength)}" min="${ai(this.min)}" max="${ai(this.max)}" step="${ai(this.step)}" .value="${Mi(this.value)}" autocapitalize="${ai("password"===this.type?"off":this.autocapitalize)}" autocomplete="${ai("password"===this.type?"off":this.autocomplete)}" autocorrect="${ai("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ai(this.pattern)}" enterkeyhint="${ai(this.enterkeyhint)}" inputmode="${ai(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?pt`<button part="clear-button" class="${we("flex justify-center ",b)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${we("text-neutral-500",v)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.passwordToggle&&"password"===this.type?pt`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible?pt`<slot name="show-password-icon"><sd-icon class="${we(m,b,v)}" library="system" name="eye"></sd-icon></slot>`:pt`<slot name="hide-password-icon"><sd-icon class="${we(m,b,v)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||Ar?"":pt`<sd-icon class="${we(m,b,v)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?pt`<sd-icon class="${we(m,b,v)}" library="system" name="clock"></sd-icon>`:""} ${l?pt`<sd-icon class="${we("text-error",b,v)}" library="system" name="risk"></sd-icon>`:""} ${d?pt`<sd-icon class="${we("text-success",b,v)}" library="system" name="confirm"></sd-icon>`:""} ${o?pt`<slot name="right" part="right" class="${we("inline-flex",m,b,v)}"></slot>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${we("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${s?"false":"true"}">${this.helpText}</slot></div>`}};Tr.styles=[Gt,Or,ie.styles,P`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label.has-label::after{content:'*';margin-left:var(--sd-spacing-0-5,.125rem)}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}`],Pr([Bt("#input")],Tr.prototype,"input",2),Pr([Dt()],Tr.prototype,"hasFocus",2),Pr([Lt({reflect:!0})],Tr.prototype,"type",2),Pr([Lt({reflect:!0})],Tr.prototype,"size",2),Pr([Lt()],Tr.prototype,"inputmode",2),Pr([Lt()],Tr.prototype,"value",2),Pr([Li()],Tr.prototype,"defaultValue",2),Pr([Lt()],Tr.prototype,"placeholder",2),Pr([Lt()],Tr.prototype,"label",2),Pr([Lt({attribute:"help-text"})],Tr.prototype,"helpText",2),Pr([Lt({type:Boolean})],Tr.prototype,"clearable",2),Pr([Lt({type:Boolean,reflect:!0})],Tr.prototype,"disabled",2),Pr([Lt({type:Boolean,reflect:!0})],Tr.prototype,"readonly",2),Pr([Lt({attribute:"password-toggle",type:Boolean})],Tr.prototype,"passwordToggle",2),Pr([Lt({attribute:"password-visible",type:Boolean})],Tr.prototype,"passwordVisible",2),Pr([Lt({attribute:"no-spin-buttons",type:Boolean})],Tr.prototype,"noSpinButtons",2),Pr([Lt({type:Number})],Tr.prototype,"minlength",2),Pr([Lt({type:Number})],Tr.prototype,"maxlength",2),Pr([Lt({type:Number})],Tr.prototype,"min",2),Pr([Lt({type:Number})],Tr.prototype,"max",2),Pr([Lt({reflect:!0})],Tr.prototype,"form",2),Pr([Lt()],Tr.prototype,"name",2),Pr([Lt()],Tr.prototype,"title",2),Pr([Lt({type:Boolean,reflect:!0})],Tr.prototype,"required",2),Pr([Lt()],Tr.prototype,"pattern",2),Pr([Lt()],Tr.prototype,"step",2),Pr([Lt()],Tr.prototype,"autocapitalize",2),Pr([Lt()],Tr.prototype,"autocorrect",2),Pr([Lt()],Tr.prototype,"autocomplete",2),Pr([Lt({type:Boolean})],Tr.prototype,"autofocus",2),Pr([Lt()],Tr.prototype,"enterkeyhint",2),Pr([Lt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Tr.prototype,"spellcheck",2),Pr([Xt("disabled",{waitUntilFirstUpdate:!0})],Tr.prototype,"handleDisabledChange",1),Pr([Xt("step",{waitUntilFirstUpdate:!0})],Tr.prototype,"handleStepChange",1),Pr([Xt("value",{waitUntilFirstUpdate:!0})],Tr.prototype,"handleValueChange",1),Tr=Pr([Pt("sd-input")],Tr);const Lr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Tr}},Symbol.toStringTag,{value:"Module"}));var Dr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Br=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Mr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Dr(e,i,s),s};let jr=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"[default]","icon-left","icon-right"),this.size="inherit",this.inverted=!1,this.standalone=!1,this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return pt`<a part="base" class="${we("inline",this.href?"cursor-pointer":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":" text-primary hover:text-primary-500 active:text-primary-800 focus-visible:focus-outline"}[this.href?"enabled":"disabled"],this.standalone&&"flex items-start")}" href="${ai(this.href||void 0)}" target="${ai(this.target||void 0)}" download="${ai(this.download||void 0)}" rel="${ai(this.target?"noreferrer noopener":void 0)}" aria-disabled="${this.href?"false":"true"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"><slot name="icon-left" part="icon-left" class="${we("inline",t["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${we("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};jr.styles=[ie.styles,P`::slotted(sd-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],Br([Bt("a")],jr.prototype,"button",2),Br([Lt({reflect:!0})],jr.prototype,"size",2),Br([Lt({type:Boolean,reflect:!0})],jr.prototype,"inverted",2),Br([Lt({type:Boolean,reflect:!0})],jr.prototype,"standalone",2),Br([Lt()],jr.prototype,"href",2),Br([Lt()],jr.prototype,"target",2),Br([Lt()],jr.prototype,"download",2),jr=Br([Pt("sd-link")],jr);const Vr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jr}},Symbol.toStringTag,{value:"Module"}));var Ir=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Fr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ur(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ir(e,i,s),s};let Rr=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"[default]","description","children"),this.href="",this.current=!1,this.disabled=!1,this.size="base",this.vertical=!1,this.chevron=!1,this.indented=!1,this.relaxed=!1,this.divider=!1,this.open=!1}isButton(){return!this.href&&!this.hasSlotController.test("children")}isLink(){return!!this.href}isAccordion(){return!this.href&&this.hasSlotController.test("children")}handleClickButton(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}handleClickSummary(t){t.preventDefault(),t.stopPropagation(),this.disabled||(this.open?this.hideDetails():this.showDetails())}hideDetails(){this.open=!1,this.emit("sd-hide",{cancelable:!0})}showDetails(){this.open=!0,this.emit("sd-show",{cancelable:!0})}calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}render(){const t=this.isLink(),e=this.isButton(),i=this.isAccordion(),o=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),s=t?oi`a`:i?oi`summary`:oi`button`,a=this.vertical?"pb-3":"pb-2",n=si`<${s} part="base" class="${we("hover:bg-neutral-200 group transition-all min-h-[48px] cursor-pointer relative focus-visible:focus-outline",{base:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",i?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-[1px]",this.vertical?"px-8":"px-4")}" aria-controls="${ai(i?"navigation-item-details":void 0)}" aria-current="${ai(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${ai(e?this.disabled:void 0)}" href="${ai(this.href||void 0)}" target="${ai(t?this.target:void 0)}" download="${ai(t?this.download:void 0)}" rel="${ai(t&&this.target?"noreferrer noopener":void 0)}" role="${t?"link":"button"}" tabindex="${this.disabled?"-1":"0"}" @click="${i?this.handleClickSummary:e?this.handleClickButton:void 0}"><div class="${we("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150",this.vertical?"border-l-4 h-[calc(100%-8px)] top-1 group-hover:h-full group-hover:top-0":"border-b-4 h-full",this.current?"border-accent":"border-transparent",this.disabled&&"border-neutral-500")}"></div><span class="${we("relative pt-3 inline-flex justify-between items-center",i?"grow":"w-full",o?"pb-1":a,this.calculatePaddingX())}">${this.divider&&this.vertical?si`<sd-divider part="divider" class="${we("w-full transition-all absolute -top-[1px] left-0",this.calculatePaddingX())}"></sd-divider>`:""} <span class="inline-flex items-center flex-auto"><slot part="content" class="inline"></slot></span>${(this.chevron||r)&&this.vertical?si`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${we("h-6 w-6 ml-2 transition-all",i?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${o&&this.vertical?si`<slot name="description" part="description" class="${we("inline-block text-sm text-left text-black",i?"grow":"w-full",a,this.calculatePaddingX())}"></slot>`:""}</${s}>`;return i?si`<details id="navigation-item-details" ?open="${this.open}" class="relative flex">${n}<slot name="children"></slot></details>`:si`${n}`}};Rr.styles=[Gt,ie.styles,P`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Fr([Lt({reflect:!0})],Rr.prototype,"href",2),Fr([Lt()],Rr.prototype,"target",2),Fr([Lt()],Rr.prototype,"download",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"current",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"disabled",2),Fr([Lt({reflect:!0})],Rr.prototype,"size",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"vertical",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"chevron",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"indented",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"relaxed",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"divider",2),Fr([Lt({type:Boolean,reflect:!0})],Rr.prototype,"open",2),Rr=Fr([(t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})
95
95
  /**
96
96
  * @license
97
97
  * Copyright 2017 Google LLC
98
98
  * SPDX-License-Identifier: BSD-3-Clause
99
- */("sd-navigation-item")],Nr);const qr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Nr}},Symbol.toStringTag,{value:"Module"}));var Kr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Wr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Zr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Kr(e,i,s),s};const Yr=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Xr=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Gr=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.open=!1,this.closable=!1,this.variant="info",this.toastStack="top-right",this.duration=1/0,this.durationIndicator=!1,this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await pe(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=fe(this,"notification.show",{dir:this.localize.dir()});await de(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await pe(this.base);const{keyframes:t,options:e}=fe(this,"notification.hide",{dir:this.localize.dir()});await de(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Xr:Yr;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return pt`<div part="base" class="${we("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${we("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${we("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?pt`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" label="${this.localize.term("close")}" @click="${this.handleCloseClick}"><sd-icon name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?pt`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${we("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute bg-neutral-400"></div>`:""}</div>`}};Gr.styles=[Gt,ie.styles,P`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],Wr([Bt('[part~="base"]')],Gr.prototype,"base",2),Wr([Lt({type:Boolean,reflect:!0})],Gr.prototype,"open",2),Wr([Lt({type:Boolean,reflect:!0})],Gr.prototype,"closable",2),Wr([Lt({reflect:!0})],Gr.prototype,"variant",2),Wr([Lt({reflect:!0,attribute:"toast-stack"})],Gr.prototype,"toastStack",2),Wr([Lt({type:Number})],Gr.prototype,"duration",2),Wr([Lt({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Gr.prototype,"durationIndicator",2),Wr([Xt("open",{waitUntilFirstUpdate:!0})],Gr.prototype,"handleOpenChange",1),Wr([Xt("duration")],Gr.prototype,"handleDurationChange",1),Gr=Wr([Pt("sd-notification")],Gr),ve("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ve("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const Jr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Gr}},Symbol.toStringTag,{value:"Module"}));var Qr=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,es=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ts(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Qr(e,i,s),s};let is=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"default","left","right"),this.localize=new k(this),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return pt`<div part="base" class="${we("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${we("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?pt`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${we("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?pt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-icon>`:""}</span>`:""} ${t?pt`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?pt`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};is.styles=[Gt,zr,ie.styles,P`:host{outline:0!important;display:block;position:relative;width:100%}`],es([Bt('[part="base"]')],is.prototype,"defaultSlot",2),es([Dt()],is.prototype,"current",2),es([Dt()],is.prototype,"selected",2),es([Dt()],is.prototype,"hasHover",2),es([Lt({reflect:!0})],is.prototype,"size",2),es([Lt({type:Boolean,reflect:!0})],is.prototype,"checkbox",2),es([Lt({type:Boolean,reflect:!0})],is.prototype,"disabled",2),es([Lt({reflect:!0})],is.prototype,"value",2),es([Xt("disabled")],is.prototype,"handleDisabledChange",1),es([Xt("selected")],is.prototype,"handleSelectedChange",1),es([Xt("value")],is.prototype,"handleValueChange",1),is=es([Pt("sd-option")],is);const os=Object.freeze(Object.defineProperty({__proto__:null,get default(){return is}},Symbol.toStringTag,{value:"Module"})),rs=P`${Gt}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var ss=Object.defineProperty,as=Object.getOwnPropertyDescriptor,ns=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?as(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ss(e,i,s),s};let ls=class extends ie{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=ds(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=ds(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=ds(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=ds(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const i=t.indexOf(e),o=ds(e);null!==o&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",0===i),o.classList.toggle("sd-button-group__button--inner",i>0&&i<t.length-1),o.classList.toggle("sd-button-group__button--last",i===t.length-1),o.classList.toggle("sd-button-group__button--radio","sd-radio-button"===o.tagName.toLowerCase()))}))}render(){return pt`<slot part="base" class="button-group" 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>`}};function ds(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}ls.styles=rs,ns([Bt("slot")],ls.prototype,"defaultSlot",2),ns([Dt()],ls.prototype,"disableRole",2),ns([Lt()],ls.prototype,"label",2),ls=ns([Pt("sd-button-group")],ls);var hs=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,ps=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?cs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&hs(e,i,s),s};let us=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this),this.hasSlotController=new ti(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.invalid=!1,this.errorText="",this.label="",this.name="option",this.value="",this.size="lg",this.form="",this.required=!1,this.orientation="vertical"}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?(this.invalid=!0,Qe):t?(this.invalid=!0,Je):(this.invalid=!1,Ge)}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?(console.log("this.customValidityMessage",this.customValidityMessage),this.customValidityMessage):t?(console.log("this.validationInput.validationMessage",this.validationInput),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){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,r=this.value;let s=e.indexOf(i)+o;s<0&&(s=e.length-1),s>e.length-1&&(s=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[s].value,e[s].checked=!0,this.hasButtonGroup?e[s].shadowRoot.querySelector("button").focus():(e[s].tabIndex=0,e[s].focus()),this.value!==r&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}handleLabelClick(){const t=this.getAllRadios(),e=t.find((t=>t.checked))||t[0];e&&e.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t.invalid=this.invalid}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(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((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.errorText=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorText=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("error-text"),i=!!this.label||!!t,o=!!this.errorText||!!e,r=pt`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return pt`<fieldset part="form-control" class="${we("border-0 p-0 m-0",o&&"text-error",{sm:"text-sm",lg:"text-base"}[this.size])}" role="radiogroup" aria-labelledby="label" aria-errormessage="error-text"><label part="form-control-label" id="label" class="${we("mb-2 p-0 font-bold leading-normal text-black",i?"has-label flex":"hidden")}" aria-hidden="${!i}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${we("form-control-input flex",this.invalid&&"form-control-input--invalid text-error",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><div id="error-message" aria-live="assertive">${this.errorText}</div><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${r}</div></fieldset>`}};us.dependencies={"sd-button-group":ls},us.styles=[Gt,ie.styles,P`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:8px;display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:24px}:host([size=sm]):host([orientation=horizontal]) ::slotted(sd-radio){margin-right:16px}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:0}:host([required]) #label.has-label::after{content:'*';margin-left:2px}`],ps([Bt("slot:not([name])")],us.prototype,"defaultSlot",2),ps([Bt("#validation-input")],us.prototype,"validationInput",2),ps([Dt()],us.prototype,"hasButtonGroup",2),ps([Dt()],us.prototype,"defaultValue",2),ps([Dt()],us.prototype,"invalid",2),ps([Dt()],us.prototype,"errorText",2),ps([Lt()],us.prototype,"label",2),ps([Lt()],us.prototype,"name",2),ps([Lt({reflect:!0})],us.prototype,"value",2),ps([Lt({reflect:!0})],us.prototype,"size",2),ps([Lt({reflect:!0})],us.prototype,"form",2),ps([Lt({type:Boolean,reflect:!0})],us.prototype,"required",2),ps([Lt({reflect:!0})],us.prototype,"orientation",2),ps([Xt("size",{waitUntilFirstUpdate:!0})],us.prototype,"handleSizeChange",1),ps([Xt("invalid",{waitUntilFirstUpdate:!0})],us.prototype,"handleInvalidChange",1),ps([Xt("value")],us.prototype,"handleValueChange",1),us=ps([Pt("sd-radio-group")],us);const bs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return us}},Symbol.toStringTag,{value:"Module"}));var ms=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,vs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?gs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ms(e,i,s),s};let fs=class extends ie{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.invalid=!1,this.disabled=!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.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?"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 pt`<span part="base" class="${we("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${we("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",(this.disabled?"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?pt`<span part="checked" class="${we("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",(this.disabled?"bg-neutral-500":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="${we("ml-2 select-none inline-block",(this.disabled?"text-neutral-500":this.invalid&&"text-error")||"text-black")}"></slot></span>`}};fs.styles=[ie.styles,P`:host{display:block}:host(:focus-visible){outline:0}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline:2px solid #00358e;outline-offset:2px}`],vs([Dt()],fs.prototype,"checked",2),vs([Dt()],fs.prototype,"hasFocus",2),vs([Lt({reflect:!0})],fs.prototype,"size",2),vs([Lt({type:Boolean,reflect:!0})],fs.prototype,"invalid",2),vs([Lt({type:Boolean,reflect:!0})],fs.prototype,"disabled",2),vs([Lt()],fs.prototype,"value",2),vs([Xt("checked")],fs.prototype,"handleCheckedChange",1),vs([Xt("disabled",{waitUntilFirstUpdate:!0})],fs.prototype,"handleDisabledChange",1),fs=vs([Pt("sd-radio")],fs);const ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return fs}},Symbol.toStringTag,{value:"Module"}));var ws=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,ks=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?xs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ws(e,i,s),s};let Cs=class extends ie{constructor(){super(...arguments),this.size="lg",this.selected=!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(){const t=this.isLink(),e=t?oi`a`:oi`button`;return si`<${e} part="base" type="${ai(t?void 0:"button")}" href="${ai(t?this.href:void 0)}" rel="${ai(t&&this.target?"noreferrer noopener":void 0)}" target="${ai(t?this.target:void 0)}" download="${ai(t?this.download:void 0)}" ?disabled="${ai(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${we("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?si`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${we({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};Cs.styles=[ie.styles,P`:host{display:inline-block}`],ks([Bt("a, button")],Cs.prototype,"tag",2),ks([Lt({reflect:!0})],Cs.prototype,"size",2),ks([Lt({type:Boolean,reflect:!0})],Cs.prototype,"selected",2),ks([Lt({type:Boolean,reflect:!0})],Cs.prototype,"removable",2),ks([Lt({type:Boolean,reflect:!0})],Cs.prototype,"disabled",2),ks([Lt()],Cs.prototype,"href",2),ks([Lt()],Cs.prototype,"target",2),ks([Lt()],Cs.prototype,"download",2),Cs=ks([Pt("sd-tag")],Cs);const $s=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Cs}},Symbol.toStringTag,{value:"Module"}));var Ss=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,Os=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?_s(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ss(e,i,s),s};let Es=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new ti(this,"help-text","label"),this.localize=new k(this),this.typeToSelectString="",this.hasFocus=!1,this.hasHover=!1,this.displayLabel="",this.selectedOptions=[],this.isValid=!1,this.isInvalid=!1,this.defaultValue="",this.open=!1,this.size="lg",this.label="Label",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.helpText="",this.placement="bottom",this.currentPlacement=this.placement,this.clearable=!1,this.disabled=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.hoist=!1,this.getTag=t=>pt`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
99
+ */("sd-navigation-item")],Rr);const Hr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Rr}},Symbol.toStringTag,{value:"Module"}));var Nr=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Kr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?qr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Nr(e,i,s),s};const Zr=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Wr=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Yr=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.open=!1,this.closable=!1,this.variant="info",this.toastStack="top-right",this.duration=1/0,this.durationIndicator=!1,this.remainingDuration=this.duration,this.startTime=Date.now()}firstUpdated(){this.base.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>{this.hide()}),this.remainingDuration))}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await pe(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=fe(this,"notification.show",{dir:this.localize.dir()});await de(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await pe(this.base);const{keyframes:t,options:e}=fe(this,"notification.hide",{dir:this.localize.dir()});await de(this.base,t,e),this.base.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Wr:Zr;null===e.parentElement&&document.body.append(e),e.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sd-after-hide",(()=>{e.removeChild(this),t(),null===e.querySelector("sd-notification")&&e.remove()}),{once:!0})}))}render(){return pt`<div part="base" class="${we("w-full overflow-hidden flex items-stretch relative m-2")}" role="alert" id="notification" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}"><slot name="icon" part="icon" class="${we("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="system" class="h-6 w-6 text-white"></sd-icon></slot><div part="content" class="${we("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 border-neutral-400")}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable?pt`<sd-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" label="${this.localize.term("close")}" @click="${this.handleCloseClick}"><sd-icon name="close" library="system" color="currentColor"></sd-icon></sd-button>`:""}</div>${this.durationIndicator?pt`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${we("absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute bg-neutral-400"></div>`:""}</div>`}};Yr.styles=[Gt,ie.styles,P`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],Kr([Bt('[part~="base"]')],Yr.prototype,"base",2),Kr([Lt({type:Boolean,reflect:!0})],Yr.prototype,"open",2),Kr([Lt({type:Boolean,reflect:!0})],Yr.prototype,"closable",2),Kr([Lt({reflect:!0})],Yr.prototype,"variant",2),Kr([Lt({reflect:!0,attribute:"toast-stack"})],Yr.prototype,"toastStack",2),Kr([Lt({type:Number})],Yr.prototype,"duration",2),Kr([Lt({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Yr.prototype,"durationIndicator",2),Kr([Xt("open",{waitUntilFirstUpdate:!0})],Yr.prototype,"handleOpenChange",1),Kr([Xt("duration")],Yr.prototype,"handleDurationChange",1),Yr=Kr([Pt("sd-notification")],Yr),ge("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ge("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});const Xr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Yr}},Symbol.toStringTag,{value:"Module"}));var Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Jr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Gr(e,i,s),s};let ts=class extends ie{constructor(){super(...arguments),this.hasSlotController=new ti(this,"default","left","right"),this.localize=new k(this),this.current=!1,this.selected=!1,this.hasHover=!1,this.size="lg",this.checkbox=!1,this.disabled=!1,this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){const t=this.getTextLabel();typeof this.cachedTextLabel>"u"?this.cachedTextLabel=t:t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){return(this.textContent??"").trim()}render(){this.hasSlotController.test("default");const t=this.hasSlotController.test("left"),e=this.hasSlotController.test("right");return pt`<div part="base" class="${we("px-4 flex items-center w-full transition-all text-left text-base relative text-black",{sm:"text-sm py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${we("absolute w-full left-0 top-0 pointer-events-none transition-all duration-150 border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?pt`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${we("relative flex flex-initial items-center justify-center border rounded-sm h-4 w-4 mr-2",this.disabled?"border-neutral-500":this.selected?"bg-accent border-accent":"border-neutral-800")}">${this.selected?pt`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-hook"></sd-icon>`:""}</span>`:""} ${t?pt`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${e?pt`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ts.styles=[Gt,Or,ie.styles,P`:host{position:relative;display:block;width:100%;outline:2px solid transparent!important;outline-offset:2px!important}`],Qr([Bt('[part="base"]')],ts.prototype,"defaultSlot",2),Qr([Dt()],ts.prototype,"current",2),Qr([Dt()],ts.prototype,"selected",2),Qr([Dt()],ts.prototype,"hasHover",2),Qr([Lt({reflect:!0})],ts.prototype,"size",2),Qr([Lt({type:Boolean,reflect:!0})],ts.prototype,"checkbox",2),Qr([Lt({type:Boolean,reflect:!0})],ts.prototype,"disabled",2),Qr([Lt({reflect:!0})],ts.prototype,"value",2),Qr([Xt("disabled")],ts.prototype,"handleDisabledChange",1),Qr([Xt("selected")],ts.prototype,"handleSelectedChange",1),Qr([Xt("value")],ts.prototype,"handleValueChange",1),ts=Qr([Pt("sd-option")],ts);const es=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ts}},Symbol.toStringTag,{value:"Module"})),is=P`${Gt}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var os=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,ss=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?rs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&os(e,i,s),s};let as=class extends ie{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=ns(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=ns(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=ns(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=ns(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const i=t.indexOf(e),o=ns(e);null!==o&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",0===i),o.classList.toggle("sd-button-group__button--inner",i>0&&i<t.length-1),o.classList.toggle("sd-button-group__button--last",i===t.length-1),o.classList.toggle("sd-button-group__button--radio","sd-radio-button"===o.tagName.toLowerCase()))}))}render(){return pt`<slot part="base" class="button-group" 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>`}};function ns(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}as.styles=is,ss([Bt("slot")],as.prototype,"defaultSlot",2),ss([Dt()],as.prototype,"disableRole",2),ss([Lt()],as.prototype,"label",2),as=ss([Pt("sd-button-group")],as);var ls=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,cs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ds(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&ls(e,i,s),s};let hs=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this),this.hasSlotController=new ti(this,"label","error-text"),this.customValidityMessage="",this.hasButtonGroup=!1,this.defaultValue="",this.invalid=!1,this.errorText="",this.label="",this.name="option",this.value="",this.size="lg",this.form="",this.required=!1,this.orientation="vertical"}get validity(){const t=this.required&&!this.value;return""!==this.customValidityMessage?(this.invalid=!0,Qe):t?(this.invalid=!0,Je):(this.invalid=!1,Ge)}get validationMessage(){const t=this.required&&!this.value;return""!==this.customValidityMessage?(console.log("this.customValidityMessage",this.customValidityMessage),this.customValidityMessage):t?(console.log("this.validationInput.validationMessage",this.validationInput),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){const e=t.target.closest("sd-radio, sd-radio-button"),i=this.getAllRadios(),o=this.value;e.disabled||(this.value=e.value,i.forEach((t=>t.checked=t===e)),this.value!==o&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;const e=this.getAllRadios().filter((t=>!t.disabled)),i=e.find((t=>t.checked))??e[0],o=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,r=this.value;let s=e.indexOf(i)+o;s<0&&(s=e.length-1),s>e.length-1&&(s=0),this.getAllRadios().forEach((t=>{t.checked=!1,this.hasButtonGroup||(t.tabIndex=-1)})),this.value=e[s].value,e[s].checked=!0,this.hasButtonGroup?e[s].shadowRoot.querySelector("button").focus():(e[s].tabIndex=0,e[s].focus()),this.value!==r&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}handleLabelClick(){const t=this.getAllRadios(),e=t.find((t=>t.checked))||t[0];e&&e.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){var t,e;const i=this.getAllRadios();if(await Promise.all(i.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t.invalid=this.invalid}))),this.hasButtonGroup=i.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!i.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=i[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else i[0].tabIndex=0;if(this.hasButtonGroup){const t=null==(e=this.shadowRoot)?void 0:e.querySelector("sd-button-group");t&&(t.disableRole=!0)}}syncRadios(){customElements.get("sd-radio")&&customElements.get("sd-radio-button")?this.syncRadioElements():(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((t=>t.checked=t.value===this.value)),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){const t=this.required&&!this.value,e=""!==this.customValidityMessage;return!t&&!e||(this.formControlController.emitInvalidEvent(),!1)}getForm(){return this.formControlController.getForm()}reportValidity(){const t=this.validity.valid;return this.errorText=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout((()=>this.validationInput.hidden=!0),1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorText=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("error-text"),i=!!this.label||!!t,o=!!this.errorText||!!e,r=pt`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return pt`<fieldset part="form-control" class="${we("border-0 p-0 m-0",o&&"text-error",{sm:"text-sm",lg:"text-base"}[this.size])}" role="radiogroup" aria-labelledby="label" aria-errormessage="error-text"><label part="form-control-label" id="label" class="${we("mb-2 p-0 font-bold leading-normal text-black",i?"has-label flex":"hidden")}" aria-hidden="${!i}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${we("form-control-input flex",this.invalid&&"form-control-input--invalid text-error",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><div id="error-message" aria-live="assertive">${this.errorText}</div><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${r}</div></fieldset>`}};hs.dependencies={"sd-button-group":as},hs.styles=[Gt,ie.styles,P`:host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}: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.has-label::after{content:'*';margin-left:var(--sd-spacing-0-5,.125rem)}`],cs([Bt("slot:not([name])")],hs.prototype,"defaultSlot",2),cs([Bt("#validation-input")],hs.prototype,"validationInput",2),cs([Dt()],hs.prototype,"hasButtonGroup",2),cs([Dt()],hs.prototype,"defaultValue",2),cs([Dt()],hs.prototype,"invalid",2),cs([Dt()],hs.prototype,"errorText",2),cs([Lt()],hs.prototype,"label",2),cs([Lt()],hs.prototype,"name",2),cs([Lt({reflect:!0})],hs.prototype,"value",2),cs([Lt({reflect:!0})],hs.prototype,"size",2),cs([Lt({reflect:!0})],hs.prototype,"form",2),cs([Lt({type:Boolean,reflect:!0})],hs.prototype,"required",2),cs([Lt({reflect:!0})],hs.prototype,"orientation",2),cs([Xt("size",{waitUntilFirstUpdate:!0})],hs.prototype,"handleSizeChange",1),cs([Xt("invalid",{waitUntilFirstUpdate:!0})],hs.prototype,"handleInvalidChange",1),cs([Xt("value")],hs.prototype,"handleValueChange",1),hs=cs([Pt("sd-radio-group")],hs);const ps=Object.freeze(Object.defineProperty({__proto__:null,get default(){return hs}},Symbol.toStringTag,{value:"Module"}));var us=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,bs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ms(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&us(e,i,s),s};let vs=class extends ie{constructor(){super(...arguments),this.checked=!1,this.hasFocus=!1,this.size="lg",this.invalid=!1,this.disabled=!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.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?"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 pt`<span part="base" class="${we("sd-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",this.disabled&&"hover:cursor-not-allowed",{sm:"small-size text-sm",lg:"text-base"}[this.size])}"><span part="${this.checked?"control--checked":"control--unchecked"}" class="${we("flex-initial shrink-0 relative inline-flex items-center justify-center border rounded-full bg-white h-4 w-4",(this.disabled?"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?pt`<span part="checked" class="${we("rounded-full inline-flex text-white border bg-accent h-2.5 w-2.5",(this.disabled?"bg-neutral-500":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="${we("ml-2 select-none inline-block",(this.disabled?"text-neutral-500":this.invalid&&"text-error")||"text-black")}"></slot></span>`}};vs.styles=[ie.styles,P`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`],bs([Dt()],vs.prototype,"checked",2),bs([Dt()],vs.prototype,"hasFocus",2),bs([Lt({reflect:!0})],vs.prototype,"size",2),bs([Lt({type:Boolean,reflect:!0})],vs.prototype,"invalid",2),bs([Lt({type:Boolean,reflect:!0})],vs.prototype,"disabled",2),bs([Lt()],vs.prototype,"value",2),bs([Xt("checked")],vs.prototype,"handleCheckedChange",1),bs([Xt("disabled",{waitUntilFirstUpdate:!0})],vs.prototype,"handleDisabledChange",1),vs=bs([Pt("sd-radio")],vs);const gs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return vs}},Symbol.toStringTag,{value:"Module"}));var fs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?ys(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&fs(e,i,s),s};let xs=class extends ie{constructor(){super(...arguments),this.size="lg",this.selected=!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(){const t=this.isLink(),e=t?oi`a`:oi`button`;return si`<${e} part="base" type="${ai(t?void 0:"button")}" href="${ai(t?this.href:void 0)}" rel="${ai(t&&this.target?"noreferrer noopener":void 0)}" target="${ai(t?this.target:void 0)}" download="${ai(t?this.download:void 0)}" ?disabled="${ai(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${we("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?si`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${we({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot>`:""}</${e}>`}};xs.styles=[ie.styles,P`:host{display:inline-block}`],ws([Bt("a, button")],xs.prototype,"tag",2),ws([Lt({reflect:!0})],xs.prototype,"size",2),ws([Lt({type:Boolean,reflect:!0})],xs.prototype,"selected",2),ws([Lt({type:Boolean,reflect:!0})],xs.prototype,"removable",2),ws([Lt({type:Boolean,reflect:!0})],xs.prototype,"disabled",2),ws([Lt()],xs.prototype,"href",2),ws([Lt()],xs.prototype,"target",2),ws([Lt()],xs.prototype,"download",2),xs=ws([Pt("sd-tag")],xs);const ks=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xs}},Symbol.toStringTag,{value:"Module"}));var Cs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,Ss=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?$s(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Cs(e,i,s),s};let _s=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new ti(this,"help-text","label"),this.localize=new k(this),this.typeToSelectString="",this.hasFocus=!1,this.hasHover=!1,this.displayLabel="",this.selectedOptions=[],this.isValid=!1,this.isInvalid=!1,this.defaultValue="",this.open=!1,this.size="lg",this.label="Label",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.helpText="",this.placement="bottom",this.currentPlacement=this.placement,this.clearable=!1,this.disabled=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.hoist=!1,this.getTag=t=>pt`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
100
100
  base:tag__base,
101
101
  content:tag__content,
102
102
  removable-indicator:tag__removable-indicator,
103
- " size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=null!==e.closest(".select__clear"),o=null!==e.closest("sd-icon-button");if(!i&&!o){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),i=e.indexOf(this.currentOption);let o=Math.max(0,i);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(o=i+1,o>e.length-1&&(o=0)):"ArrowUp"===t.key?(o=i-1,o<0&&(o=e.length-1)):"Home"===t.key?o=0:"End"===t.key&&(o=e.length-1),this.setCurrentOption(e[o])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}updated(){this.hasAttribute("data-user-valid")&&this.checkValidity()&&(this.isValid=!0),this.hasAttribute("data-user-invalid")&&!this.checkValidity()&&(this.isInvalid=!0)}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),i=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==i&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),i.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),i.length&&i.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return pt`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof i?Zt(i):i}</div>`}return e===this.maxOptionsVisible?pt`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:pt``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await pe(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:t,options:e}=fe(this,"select.show",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.currentOption&&Yi(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await pe(this);const{keyframes:t,options:e}=fe(this,"select.hide",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,ye(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,ye(this,"sd-after-hide");this.open=!1}checkValidity(){var t;return null==(t=this.valueInput)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){this.hasSlotController.test("[default]");const t=this.hasSlotController.test("label"),e=(this.hasSlotController.test("clear-icon"),this.hasSlotController.test("expand-icon"),this.hasSlotController.test("help-text")),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.clearable&&!this.disabled&&this.value.length>0,s=this.disabled?"disabled":this.hasFocus&&this.isInvalid?"activeInvalid":this.hasFocus&&this.isValid?"activeValid":this.hasFocus||this.open?"active":this.isInvalid?"invalid":this.isValid?"valid":"default",a=this.disabled?"cursor-not-allowed":"cursor-pointer",n={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],l={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return pt`<div part="form-control" class="${we("form-control relative text-left",a,"sm"===this.size?"text-sm":"text-base",{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[s],this.open&&"z-10")}"><label id="label" part="form-control-label" class="${i&&"inline-block mb-2"}" aria-hidden="${i?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label" class="${we(this.disabled&&"text-black")}">${this.label}</slot></label><div part="form-control-input" class="${we("relative w-full bg-white")}"><div part="border" class="${we("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[s],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${we("inline-flex relative w-full","bottom"===this.currentPlacement?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10"><div part="combobox" class="${we("relative w-full px-4 flex flex-row items-center rounded-default",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${we("appearance-none outline-none flex-grow bg-transparent",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?pt`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${we("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?pt`<button part="clear-button" class="${we("select__clear flex justify-center",n)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${we("text-neutral-500",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.isInvalid?pt`<sd-icon class="${we("text-error",n,l)}" library="system" name="risk"></sd-icon>`:""} ${this.isValid?pt`<sd-icon class="${we("text-success",n,l)}" library="system" name="confirm"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${we("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",l)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${we("bg-white px-2 py-3 relative","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>`}};Es.dependencies={"sd-icon":ne,"sd-popup":hr,"sd-tag":Cs},Es.styles=[Gt,zr,ie.styles,P`:host{display:block;position:relative;width:100%}:host([required]) #label::after{content:' *'}sd-popup::part(popup){overflow-y:scroll}sd-tag::part(base){border-radius:4px;padding-left:4px;padding-right:4px}sd-tag[size=lg]::part(base){padding-left:8px;padding-right:8px}sd-tag[disabled=false]::part(base):hover{background-color:rgb(var(--sd-color-primary-100,236 240 249) / 1)}`],Os([jt({selector:"sd-option"})],Es.prototype,"_optionsInDefaultSlot",2),Os([Bt("sd-popup")],Es.prototype,"popup",2),Os([Bt('[part="combobox"]')],Es.prototype,"combobox",2),Os([Bt('[part="display-input"]')],Es.prototype,"displayInput",2),Os([Bt(".value-input")],Es.prototype,"valueInput",2),Os([Bt('[part="listbox"]')],Es.prototype,"listbox",2),Os([Dt()],Es.prototype,"hasFocus",2),Os([Dt()],Es.prototype,"hasHover",2),Os([Dt()],Es.prototype,"displayLabel",2),Os([Dt()],Es.prototype,"currentOption",2),Os([Dt()],Es.prototype,"selectedOptions",2),Os([Dt()],Es.prototype,"isValid",2),Os([Dt()],Es.prototype,"isInvalid",2),Os([Li()],Es.prototype,"defaultValue",2),Os([Lt({type:Boolean,reflect:!0})],Es.prototype,"open",2),Os([Lt({reflect:!0})],Es.prototype,"size",2),Os([Lt()],Es.prototype,"label",2),Os([Lt()],Es.prototype,"placeholder",2),Os([Lt({attribute:"help-text"})],Es.prototype,"helpText",2),Os([Lt({reflect:!0})],Es.prototype,"placement",2),Os([Dt()],Es.prototype,"currentPlacement",2),Os([Lt({type:Boolean})],Es.prototype,"clearable",2),Os([Lt({type:Boolean,reflect:!0})],Es.prototype,"disabled",2),Os([Lt({type:Boolean,reflect:!0})],Es.prototype,"multiple",2),Os([Lt({type:Boolean,reflect:!0})],Es.prototype,"useTags",2),Os([Lt({attribute:"max-options-visible",type:Number})],Es.prototype,"maxOptionsVisible",2),Os([Lt({reflect:!0})],Es.prototype,"form",2),Os([Lt()],Es.prototype,"name",2),Os([Lt({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Es.prototype,"value",2),Os([Lt({type:Boolean,reflect:!0})],Es.prototype,"required",2),Os([Lt({type:Boolean})],Es.prototype,"hoist",2),Os([Lt()],Es.prototype,"getTag",2),Os([Xt("useTags",{waitUntilFirstUpdate:!0})],Es.prototype,"handleUseTagsChange",1),Os([Xt("disabled",{waitUntilFirstUpdate:!0})],Es.prototype,"handleDisabledChange",1),Os([Xt("open",{waitUntilFirstUpdate:!0})],Es.prototype,"handleOpenChange",1),Os([Xt("size",{waitUntilFirstUpdate:!0})],Es.prototype,"applySizeToOptions",1),Os([Xt("value",{waitUntilFirstUpdate:!0})],Es.prototype,"handleValueChange",1),Es=Os([Pt("sd-select")],Es),ve("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ve("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const zs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Es}},Symbol.toStringTag,{value:"Module"}));var Ps=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Ts=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?As(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ps(e,i,s),s};let Ls=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(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.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,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.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return pt`<label part="base" class="${we("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${ai(this.value)}" .checked="${Mi(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"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"}" class="${we("relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",(this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled&&"border-neutral-500")||this.checked&&"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550"||"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${we("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",(this.checked?"translate-x-2 bg-white":this.disabled&&this.checked&&"bg-white")||this.disabled&&"-translate-x-2 bg-neutral-500"||"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${we("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};Ls.styles=[ie.styles,P`:host{display:block}:host(:focus-visible){outline:0}:host([required]) #label::after{content:' *'}:host([data-user-invalid]) #label{color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]) #control{border-color:rgb(var(--sd-color-error,204 25 55));background-color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]) #thumb{background-color:rgb(var(--sd-white,255 255 255))}:host([data-user-invalid]) #input:hover~#control{background-color:rgb(var(--sd-color-error-400,172 25 56))}`],Ts([Bt("input")],Ls.prototype,"input",2),Ts([Lt()],Ls.prototype,"title",2),Ts([Lt()],Ls.prototype,"name",2),Ts([Lt()],Ls.prototype,"value",2),Ts([Lt({type:Boolean,reflect:!0})],Ls.prototype,"disabled",2),Ts([Lt({type:Boolean,reflect:!0})],Ls.prototype,"checked",2),Ts([Li("checked")],Ls.prototype,"defaultChecked",2),Ts([Lt({reflect:!0})],Ls.prototype,"form",2),Ts([Lt({type:Boolean,reflect:!0})],Ls.prototype,"required",2),Ts([Xt("disabled",{waitUntilFirstUpdate:!0})],Ls.prototype,"handleDisabledChange",1),Ts([Xt(["checked"],{waitUntilFirstUpdate:!0})],Ls.prototype,"handleStateChange",1),Ls=Ts([Pt("sd-switch")],Ls);const Ds=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ls}},Symbol.toStringTag,{value:"Module"}));var Ms=Object.defineProperty,Bs=Object.getOwnPropertyDescriptor,js=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Bs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ms(e,i,s),s};let Vs=class extends ie{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new ti(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){const t="white border-neutral-400"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),o=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),pt`<div class="${we("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&t&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${we(!t&&"vertical"===this._orientation&&"mb-4",!i&&"hidden")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(t?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${we("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${we("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${we("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="main" class="${we(!e&&"hidden")}"><slot></slot></div></div></div>`}};Vs.styles=[ie.styles,P`:host{display:block}::slotted(*){margin:0}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:0!important}`],js([Lt({reflect:!0})],Vs.prototype,"variant",2),js([Lt({reflect:!0,type:Number})],Vs.prototype,"breakpoint",2),js([Lt({type:Boolean,reflect:!0})],Vs.prototype,"inset",2),js([Bt('[part="base"]')],Vs.prototype,"teaser",2),js([Dt()],Vs.prototype,"_orientation",2),Vs=js([Pt("sd-teaser")],Vs);const Is=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Vs}},Symbol.toStringTag,{value:"Module"}));var Us=Object.defineProperty,Fs=Object.getOwnPropertyDescriptor,Rs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Fs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Us(e,i,s),s};let Hs=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this),this.hasSlotController=new ti(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="lg",this.label="",this.helpText="",this.placeholder="",this.rows=4,this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.setTextareaHeight()}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.textarea.scrollTop=t.top),void("number"==typeof t.left&&(this.textarea.scrollLeft=t.left))):{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.textarea.setRangeText(t,e,i,o),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return null==(t=this.textarea)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.required||!!this.minlength||!!this.maxlength,s=r&&!this.checkValidity(),a=r&&this.checkValidity(),n=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&s?"activeInvalid":this.hasFocus&&a?"activeValid":this.hasFocus?"active":s?"invalid":a?"valid":"default",l="sm"===this.size?"text-sm":"text-base";return pt`<div part="form-control" class="${we("form-control text-left",i&&"form-control--has-label",o&&"form-control--has-help-text",this.disabled&&"cursor-not-allowed")}"><label part="form-control-label" id="label" class="${we("form-control-label mb-2",i?"has-label inline-block":"hidden",l)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="form-control-input relative w-full"><div part="border" class="${we("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[n])}"></div><div part="base" class="${we("textarea px-4 flex flex-row items-center rounded-default textarea--resize-none",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[n],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100",s&&"form-control-input--invalid",!this.value&&"textarea--empty")}"><textarea part="textarea" id="input" class="${we('textarea__control flex-grow focus:outline-none bg-transparent placeholder-neutral-700"',l)}" title="${this.title}" name="${ai(this.name)}" .value="${Mi(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ai(this.placeholder)}" minlength="${ai(this.minlength)}" maxlength="${ai(this.maxlength)}" rows="${ai(this.rows)}" autocapitalize="${ai(this.autocapitalize)}" autocorrect="${ai(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ai(this.spellcheck)}" enterkeyhint="${ai(this.enterkeyhint)}" inputmode="${ai(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea></div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${we("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>`}};Hs.styles=[zr,ie.styles,P`:host{display:block}:host([required]) #label.has-label::after{content:'*';margin-left:2px}:host([disabled]) .textarea__control{cursor:not-allowed}.no-scrollbar::-webkit-scrollbar{display:none}.textarea--resize-none .textarea__control{resize:none}`],Rs([Bt(".textarea__control")],Hs.prototype,"textarea",2),Rs([Dt()],Hs.prototype,"hasFocus",2),Rs([Lt()],Hs.prototype,"title",2),Rs([Lt()],Hs.prototype,"name",2),Rs([Lt()],Hs.prototype,"value",2),Rs([Lt({reflect:!0})],Hs.prototype,"size",2),Rs([Lt()],Hs.prototype,"label",2),Rs([Lt({attribute:"help-text"})],Hs.prototype,"helpText",2),Rs([Lt()],Hs.prototype,"placeholder",2),Rs([Lt({type:Number})],Hs.prototype,"rows",2),Rs([Lt({type:Boolean,reflect:!0})],Hs.prototype,"disabled",2),Rs([Lt({type:Boolean,reflect:!0})],Hs.prototype,"readonly",2),Rs([Lt({reflect:!0})],Hs.prototype,"form",2),Rs([Lt({type:Boolean,reflect:!0})],Hs.prototype,"required",2),Rs([Lt({type:Number})],Hs.prototype,"minlength",2),Rs([Lt({type:Number})],Hs.prototype,"maxlength",2),Rs([Lt()],Hs.prototype,"autocapitalize",2),Rs([Lt()],Hs.prototype,"autocorrect",2),Rs([Lt()],Hs.prototype,"autocomplete",2),Rs([Lt({type:Boolean})],Hs.prototype,"autofocus",2),Rs([Lt()],Hs.prototype,"enterkeyhint",2),Rs([Lt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Hs.prototype,"spellcheck",2),Rs([Lt()],Hs.prototype,"inputmode",2),Rs([Li()],Hs.prototype,"defaultValue",2),Rs([Xt("disabled",{waitUntilFirstUpdate:!0})],Hs.prototype,"handleDisabledChange",1),Rs([Xt("rows",{waitUntilFirstUpdate:!0})],Hs.prototype,"handleRowsChange",1),Rs([Xt("value",{waitUntilFirstUpdate:!0})],Hs.prototype,"handleValueChange",1),Hs=Rs([Pt("sd-textarea")],Hs);const Ns=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Hs}},Symbol.toStringTag,{value:"Module"}));var qs=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Zs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ks(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&qs(e,i,s),s};let Ws=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.content="",this.placement="top",this.size="lg",this.disabled=!1,this.open=!1,this.trigger="click focus",this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then((()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}))}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.show()}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){const t=he(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=he(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await pe(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=fe(this,"tooltip.show",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await pe(this.body);const{keyframes:t,options:e}=fe(this,"tooltip.hide",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return pt`<sd-popup part="base" exportparts="
103
+ " size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,i=null!==e.closest(".select__clear"),o=null!==e.closest("sd-icon-button");if(!i&&!o){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),i=e.indexOf(this.currentOption);let o=Math.max(0,i);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(o=i+1,o>e.length-1&&(o=0)):"ArrowUp"===t.key?(o=i-1,o<0&&(o=e.length-1)):"Home"===t.key?o=0:"End"===t.key&&(o=e.length-1),this.setCurrentOption(e[o])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}updated(){this.hasAttribute("data-user-valid")&&this.checkValidity()&&(this.isValid=!0),this.hasAttribute("data-user-invalid")&&!this.checkValidity()&&(this.isInvalid=!0)}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),i=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==i&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],i=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),i.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),i=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),i.length&&i.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const i=this.getTag(t,e);return pt`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof i?Zt(i):i}</div>`}return e===this.maxOptionsVisible?pt`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:pt``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await pe(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:t,options:e}=fe(this,"select.show",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.currentOption&&Yi(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await pe(this);const{keyframes:t,options:e}=fe(this,"select.hide",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,ye(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,ye(this,"sd-after-hide");this.open=!1}checkValidity(){var t;return null==(t=this.valueInput)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){this.hasSlotController.test("[default]");const t=this.hasSlotController.test("label"),e=(this.hasSlotController.test("clear-icon"),this.hasSlotController.test("expand-icon"),this.hasSlotController.test("help-text")),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.clearable&&!this.disabled&&this.value.length>0,s=this.disabled?"disabled":this.hasFocus&&this.isInvalid?"activeInvalid":this.hasFocus&&this.isValid?"activeValid":this.hasFocus||this.open?"active":this.isInvalid?"invalid":this.isValid?"valid":"default",a=this.disabled?"cursor-not-allowed":"cursor-pointer",n={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],l={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return pt`<div part="form-control" class="${we("form-control relative text-left",a,"sm"===this.size?"text-sm":"text-base",{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[s],this.open&&"z-10")}"><label id="label" part="form-control-label" class="${i&&"inline-block mb-2"}" aria-hidden="${i?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label" class="${we(this.disabled&&"text-black")}">${this.label}</slot></label><div part="form-control-input" class="${we("relative w-full bg-white")}"><div part="border" class="${we("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[s],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${we("inline-flex relative w-full","bottom"===this.currentPlacement?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10"><div part="combobox" class="${we("relative w-full px-4 flex flex-row items-center rounded-default",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${we("appearance-none outline-none flex-grow bg-transparent",a,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?pt`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${we("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",a)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${r?pt`<button part="clear-button" class="${we("select__clear flex justify-center",n)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${we("text-neutral-500",l)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.isInvalid?pt`<sd-icon class="${we("text-error",n,l)}" library="system" name="risk"></sd-icon>`:""} ${this.isValid?pt`<sd-icon class="${we("text-success",n,l)}" library="system" name="confirm"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${we("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",l)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${we("bg-white px-2 py-3 relative","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${o?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>`}};_s.dependencies={"sd-icon":ne,"sd-popup":cr,"sd-tag":xs},_s.styles=[Gt,Or,ie.styles,P`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}sd-popup::part(popup){overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],Ss([jt({selector:"sd-option"})],_s.prototype,"_optionsInDefaultSlot",2),Ss([Bt("sd-popup")],_s.prototype,"popup",2),Ss([Bt('[part="combobox"]')],_s.prototype,"combobox",2),Ss([Bt('[part="display-input"]')],_s.prototype,"displayInput",2),Ss([Bt(".value-input")],_s.prototype,"valueInput",2),Ss([Bt('[part="listbox"]')],_s.prototype,"listbox",2),Ss([Dt()],_s.prototype,"hasFocus",2),Ss([Dt()],_s.prototype,"hasHover",2),Ss([Dt()],_s.prototype,"displayLabel",2),Ss([Dt()],_s.prototype,"currentOption",2),Ss([Dt()],_s.prototype,"selectedOptions",2),Ss([Dt()],_s.prototype,"isValid",2),Ss([Dt()],_s.prototype,"isInvalid",2),Ss([Li()],_s.prototype,"defaultValue",2),Ss([Lt({type:Boolean,reflect:!0})],_s.prototype,"open",2),Ss([Lt({reflect:!0})],_s.prototype,"size",2),Ss([Lt()],_s.prototype,"label",2),Ss([Lt()],_s.prototype,"placeholder",2),Ss([Lt({attribute:"help-text"})],_s.prototype,"helpText",2),Ss([Lt({reflect:!0})],_s.prototype,"placement",2),Ss([Dt()],_s.prototype,"currentPlacement",2),Ss([Lt({type:Boolean})],_s.prototype,"clearable",2),Ss([Lt({type:Boolean,reflect:!0})],_s.prototype,"disabled",2),Ss([Lt({type:Boolean,reflect:!0})],_s.prototype,"multiple",2),Ss([Lt({type:Boolean,reflect:!0})],_s.prototype,"useTags",2),Ss([Lt({attribute:"max-options-visible",type:Number})],_s.prototype,"maxOptionsVisible",2),Ss([Lt({reflect:!0})],_s.prototype,"form",2),Ss([Lt()],_s.prototype,"name",2),Ss([Lt({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],_s.prototype,"value",2),Ss([Lt({type:Boolean,reflect:!0})],_s.prototype,"required",2),Ss([Lt({type:Boolean})],_s.prototype,"hoist",2),Ss([Lt()],_s.prototype,"getTag",2),Ss([Xt("useTags",{waitUntilFirstUpdate:!0})],_s.prototype,"handleUseTagsChange",1),Ss([Xt("disabled",{waitUntilFirstUpdate:!0})],_s.prototype,"handleDisabledChange",1),Ss([Xt("open",{waitUntilFirstUpdate:!0})],_s.prototype,"handleOpenChange",1),Ss([Xt("size",{waitUntilFirstUpdate:!0})],_s.prototype,"applySizeToOptions",1),Ss([Xt("value",{waitUntilFirstUpdate:!0})],_s.prototype,"handleValueChange",1),_s=Ss([Pt("sd-select")],_s),ge("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ge("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Os=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _s}},Symbol.toStringTag,{value:"Module"}));var Es=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,Ps=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?zs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Es(e,i,s),s};let As=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(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.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false"),this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,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.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return pt`<label part="base" class="${we("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${ai(this.value)}" .checked="${Mi(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"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"}" class="${we("relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100\n peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2\n peer-focus-visible:outline-primary",(this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled&&"border-neutral-500")||this.checked&&"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550"||"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${we("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",(this.checked?"translate-x-2 bg-white":this.disabled&&this.checked&&"bg-white")||this.disabled&&"-translate-x-2 bg-neutral-500"||"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${we("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};As.styles=[ie.styles,P`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}:host([data-user-invalid]) #label{color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]) #control{border-color:rgb(var(--sd-color-error,204 25 55));background-color:rgb(var(--sd-color-error,204 25 55))}:host([data-user-invalid]) #thumb{background-color:rgb(var(--sd-white,255 255 255))}:host([data-user-invalid]) #input:hover~#control{background-color:rgb(var(--sd-color-error-400,172 25 56))}`],Ps([Bt("input")],As.prototype,"input",2),Ps([Lt()],As.prototype,"title",2),Ps([Lt()],As.prototype,"name",2),Ps([Lt()],As.prototype,"value",2),Ps([Lt({type:Boolean,reflect:!0})],As.prototype,"disabled",2),Ps([Lt({type:Boolean,reflect:!0})],As.prototype,"checked",2),Ps([Li("checked")],As.prototype,"defaultChecked",2),Ps([Lt({reflect:!0})],As.prototype,"form",2),Ps([Lt({type:Boolean,reflect:!0})],As.prototype,"required",2),Ps([Xt("disabled",{waitUntilFirstUpdate:!0})],As.prototype,"handleDisabledChange",1),Ps([Xt(["checked"],{waitUntilFirstUpdate:!0})],As.prototype,"handleStateChange",1),As=Ps([Pt("sd-switch")],As);const Ts=Object.freeze(Object.defineProperty({__proto__:null,get default(){return As}},Symbol.toStringTag,{value:"Module"}));var Ls=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Ms=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ds(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ls(e,i,s),s};let Bs=class extends ie{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new ti(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),0===this.breakpoint?this._orientation="horizontal":9999===this.breakpoint?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.updateOrientation())),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){const t="white border-neutral-400"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),i=this.hasSlotController.test("media"),o=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),pt`<div class="${we("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],"vertical"===this._orientation&&"flex-col","horizontal"===this._orientation&&"flex-row gap-8","horizontal"===this._orientation&&t&&"py-8 px-10")}" part="base"><div style="${"horizontal"===this._orientation?"width: var(--distribution-media, 100%);":""}" class="${we(!t&&"vertical"===this._orientation&&"mb-4",!i&&"hidden")}" part="media"><slot name="media"></slot></div><div style="${"horizontal"===this._orientation?"width: var(--distribution-content, 100%); "+(t?"width: var(--distribution-content, calc(100% - 2rem));":""):""}" class="${we("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${we("gap-2 mb-4",!o&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${we("text-lg font-bold m-0","primary"===this.variant?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="main" class="${we(!e&&"hidden")}"><slot></slot></div></div></div>`}};Bs.styles=[ie.styles,P`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){margin:var(--sd-spacing-0,0)!important;font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700}`],Ms([Lt({reflect:!0})],Bs.prototype,"variant",2),Ms([Lt({reflect:!0,type:Number})],Bs.prototype,"breakpoint",2),Ms([Lt({type:Boolean,reflect:!0})],Bs.prototype,"inset",2),Ms([Bt('[part="base"]')],Bs.prototype,"teaser",2),Ms([Dt()],Bs.prototype,"_orientation",2),Bs=Ms([Pt("sd-teaser")],Bs);const js=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Bs}},Symbol.toStringTag,{value:"Module"}));var Vs=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,Us=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Is(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Vs(e,i,s),s};let Fs=class extends ie{constructor(){super(...arguments),this.formControlController=new Xe(this),this.hasSlotController=new ti(this,"help-text","label"),this.hasFocus=!1,this.title="",this.name="",this.value="",this.size="lg",this.label="",this.helpText="",this.placeholder="",this.rows=4,this.disabled=!1,this.readonly=!1,this.form="",this.required=!1,this.spellcheck=!0,this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this.setTextareaHeight()}))}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){return t?("number"==typeof t.top&&(this.textarea.scrollTop=t.top),void("number"==typeof t.left&&(this.textarea.scrollLeft=t.left))):{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,i="none"){this.textarea.setSelectionRange(t,e,i)}setRangeText(t,e,i,o){this.textarea.setRangeText(t,e,i,o),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return null==(t=this.textarea)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),i=!!this.label||!!t,o=!!this.helpText||!!e,r=this.required||!!this.minlength||!!this.maxlength,s=r&&!this.checkValidity(),a=r&&this.checkValidity(),n=this.disabled?"disabled":this.readonly?"readonly":this.hasFocus&&s?"activeInvalid":this.hasFocus&&a?"activeValid":this.hasFocus?"active":s?"invalid":a?"valid":"default",l="sm"===this.size?"text-sm":"text-base";return pt`<div part="form-control" class="${we("form-control text-left",i&&"form-control--has-label",o&&"form-control--has-help-text",this.disabled&&"cursor-not-allowed")}"><label part="form-control-label" id="label" class="${we("form-control-label mb-2",i?"has-label inline-block":"hidden",l)}" for="input" aria-hidden="${i?"false":"true"}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="form-control-input relative w-full"><div part="border" class="${we("absolute w-full h-full pointer-events-none border rounded-default",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[n])}"></div><div part="base" class="${we("textarea px-4 flex flex-row items-center rounded-default",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],{disabled:"text-neutral-500",readonly:"text-black",activeInvalid:"text-error",activeValid:"text-success",active:"text-black",invalid:"text-error",valid:"text-success",default:"text-black"}[n],this.disabled||this.readonly?"":"hover:bg-neutral-200",this.readonly&&"bg-neutral-100",s&&"form-control-input--invalid",!this.value&&"textarea--empty")}"><textarea part="textarea" id="input" class="${we("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",l,this.disabled&&"cursor-not-allowed")}" title="${this.title}" name="${ai(this.name)}" .value="${Mi(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ai(this.placeholder)}" minlength="${ai(this.minlength)}" maxlength="${ai(this.maxlength)}" rows="${ai(this.rows)}" autocapitalize="${ai(this.autocapitalize)}" autocorrect="${ai(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ai(this.spellcheck)}" enterkeyhint="${ai(this.enterkeyhint)}" inputmode="${ai(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea></div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${we("text-sm text-neutral-700",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>`}};Fs.styles=[Or,ie.styles,P`:host{display:block}:host([required]) #label.has-label::after{content:'*';margin-left:var(--sd-spacing-0-5,.125rem)}.no-scrollbar::-webkit-scrollbar{display:none}`],Us([Bt("[part=textarea]")],Fs.prototype,"textarea",2),Us([Dt()],Fs.prototype,"hasFocus",2),Us([Lt()],Fs.prototype,"title",2),Us([Lt()],Fs.prototype,"name",2),Us([Lt()],Fs.prototype,"value",2),Us([Lt({reflect:!0})],Fs.prototype,"size",2),Us([Lt()],Fs.prototype,"label",2),Us([Lt({attribute:"help-text"})],Fs.prototype,"helpText",2),Us([Lt()],Fs.prototype,"placeholder",2),Us([Lt({type:Number})],Fs.prototype,"rows",2),Us([Lt({type:Boolean,reflect:!0})],Fs.prototype,"disabled",2),Us([Lt({type:Boolean,reflect:!0})],Fs.prototype,"readonly",2),Us([Lt({reflect:!0})],Fs.prototype,"form",2),Us([Lt({type:Boolean,reflect:!0})],Fs.prototype,"required",2),Us([Lt({type:Number})],Fs.prototype,"minlength",2),Us([Lt({type:Number})],Fs.prototype,"maxlength",2),Us([Lt()],Fs.prototype,"autocapitalize",2),Us([Lt()],Fs.prototype,"autocorrect",2),Us([Lt()],Fs.prototype,"autocomplete",2),Us([Lt({type:Boolean})],Fs.prototype,"autofocus",2),Us([Lt()],Fs.prototype,"enterkeyhint",2),Us([Lt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Fs.prototype,"spellcheck",2),Us([Lt()],Fs.prototype,"inputmode",2),Us([Li()],Fs.prototype,"defaultValue",2),Us([Xt("disabled",{waitUntilFirstUpdate:!0})],Fs.prototype,"handleDisabledChange",1),Us([Xt("rows",{waitUntilFirstUpdate:!0})],Fs.prototype,"handleRowsChange",1),Us([Xt("value",{waitUntilFirstUpdate:!0})],Fs.prototype,"handleValueChange",1),Fs=Us([Pt("sd-textarea")],Fs);const Rs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fs}},Symbol.toStringTag,{value:"Module"}));var Hs=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,qs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ns(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Hs(e,i,s),s};let Ks=class extends ie{constructor(){super(...arguments),this.localize=new k(this),this.content="",this.placement="top",this.size="lg",this.disabled=!1,this.open=!1,this.trigger="click focus",this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then((()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}))}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){this.hasTrigger("click")&&(this.open?this.hide():this.show())}handleFocus(){this.hasTrigger("focus")&&this.show()}handleKeyDown(t){this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){const t=ce(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=ce(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await pe(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=fe(this,"tooltip.show",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await pe(this.body);const{keyframes:t,options:e}=fe(this,"tooltip.hide",{dir:this.localize.dir()});await de(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,ye(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ye(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return pt`<sd-popup part="base" exportparts="
104
104
  popup:base__popup,
105
105
  arrow:base__arrow
106
- " class="${we(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*("sm"===this.size?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${we("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${we(this.disabled&&"sd-interactive--disabled")}"></sd-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-popup>`}};Ws.styles=[ie.styles,z(ki),P`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-popup{--arrow-color:rgb(var(--sd-color-primary, 0 53 142) / 1);--arrow-size:10px}sd-popup::part(popup){pointer-events:none;z-index:10;box-shadow:0 1px 3px 0 rgb(81 81 81 / 75%)}sd-popup::part(arrow){--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup[placement^=top]::part(popup){transform-origin:bottom}sd-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],Zs([Bt("slot:not([name])")],Ws.prototype,"defaultSlot",2),Zs([Bt("#tooltip")],Ws.prototype,"body",2),Zs([Bt("sd-popup")],Ws.prototype,"popup",2),Zs([Lt()],Ws.prototype,"content",2),Zs([Lt({reflect:!0})],Ws.prototype,"placement",2),Zs([Lt()],Ws.prototype,"size",2),Zs([Lt({type:Boolean,reflect:!0})],Ws.prototype,"disabled",2),Zs([Lt({type:Boolean,reflect:!0})],Ws.prototype,"open",2),Zs([Lt()],Ws.prototype,"trigger",2),Zs([Lt({type:Boolean})],Ws.prototype,"hoist",2),Zs([Xt("open",{waitUntilFirstUpdate:!0})],Ws.prototype,"handleOpenChange",1),Zs([Xt(["content","hoist","placement"])],Ws.prototype,"handleOptionsChange",1),Zs([Xt("disabled")],Ws.prototype,"handleDisabledChange",1),Ws=Zs([Pt("sd-tooltip")],Ws),ve("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),ve("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const Ys=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ws}},Symbol.toStringTag,{value:"Module"}));var Xs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Js=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Gs(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Xs(e,i,s),s};let Qs=class extends ie{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new ti(this,"[default]","play-icon","poster")}get poster(){const t=this.shadowRoot.querySelector("slot[name=poster]");return(null==t?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}play(){this.emit("sd-play"),this.playing=!0,this.fadeoutPoster()}handleKeydown(t){t instanceof KeyboardEvent&&("Enter"===t.key||" "===t.key)&&(this.play(),setTimeout((()=>{var t;null==(t=this.querySelector("video"))||t.focus()})))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.handleButtonResize())),this.updateComplete.then((()=>{this.resizeObserver.observe(this.hostEl)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return pt`<div part="base" aria-label="Video Player" class="cursor-pointer"><button part="play-button" aria-label="Play video" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${we(this.playing&&"pointer-events-none","w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${we(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition")}"><slot name="play-icon" part="play-icon" class="${we(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="system" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?pt`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${we(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[rgba(0,0,0,0.65)] w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};Qs.styles=[ie.styles,P`:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){transition:opacity .3s}::slotted([slot=poster]){position:absolute;left:0;top:0;width:100%;z-index:10}#default-play-icon,::slotted([slot=play-icon]){position:absolute;left:50%;top:50%;translate:-50% -50%}`],Js([Bt("[part=base]")],Qs.prototype,"hostEl",2),Js([Lt({type:Boolean,reflect:!0})],Qs.prototype,"playing",2),Js([Lt({type:Boolean,reflect:!0})],Qs.prototype,"overlay",2),Js([Lt({type:Boolean})],Qs.prototype,"isBelowBreakpoint",2),Qs=Js([Pt("sd-video")],Qs);const ta=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Qs}},Symbol.toStringTag,{value:"Module"}));t.LocalizeController=k,t.registerIconLibrary=c,t.unregisterIconLibrary=p,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})},"object"==typeof exports&&typeof module<"u"?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=typeof globalThis<"u"?globalThis:t||self)["Solid Components"]={});
106
+ " class="${we(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*("sm"===this.size?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${we("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${we(this.disabled&&"sd-interactive--disabled")}"></sd-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-popup>`}};Ks.styles=[ie.styles,z(ki),P`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-popup{--arrow-color:rgb(var(--sd-color-primary, 0 53 142) / 1);--arrow-size:10px}sd-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup::part(arrow){--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-popup[placement^=top]::part(popup){transform-origin:bottom}sd-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}`],qs([Bt("slot:not([name])")],Ks.prototype,"defaultSlot",2),qs([Bt("#tooltip")],Ks.prototype,"body",2),qs([Bt("sd-popup")],Ks.prototype,"popup",2),qs([Lt()],Ks.prototype,"content",2),qs([Lt({reflect:!0})],Ks.prototype,"placement",2),qs([Lt()],Ks.prototype,"size",2),qs([Lt({type:Boolean,reflect:!0})],Ks.prototype,"disabled",2),qs([Lt({type:Boolean,reflect:!0})],Ks.prototype,"open",2),qs([Lt()],Ks.prototype,"trigger",2),qs([Lt({type:Boolean})],Ks.prototype,"hoist",2),qs([Xt("open",{waitUntilFirstUpdate:!0})],Ks.prototype,"handleOpenChange",1),qs([Xt(["content","hoist","placement"])],Ks.prototype,"handleOptionsChange",1),qs([Xt("disabled")],Ks.prototype,"handleDisabledChange",1),Ks=qs([Pt("sd-tooltip")],Ks),ge("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),ge("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const Zs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ks}},Symbol.toStringTag,{value:"Module"}));var Ws=Object.defineProperty,Ys=Object.getOwnPropertyDescriptor,Xs=(t,e,i,o)=>{for(var r,s=o>1?void 0:o?Ys(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o?r(e,i,s):r(s))||s);return o&&s&&Ws(e,i,s),s};let Gs=class extends ie{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new ti(this,"[default]","play-icon","poster")}get poster(){const t=this.shadowRoot.querySelector("slot[name=poster]");return(null==t?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}play(){this.emit("sd-play"),this.playing=!0,this.fadeoutPoster()}handleKeydown(t){t instanceof KeyboardEvent&&("Enter"===t.key||" "===t.key)&&(this.play(),setTimeout((()=>{var t;null==(t=this.querySelector("video"))||t.focus()})))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.handleButtonResize())),this.updateComplete.then((()=>{this.resizeObserver.observe(this.hostEl)}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return pt`<div part="base" aria-label="Video Player" class="cursor-pointer"><button part="play-button" aria-label="Play video" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${we(this.playing&&"pointer-events-none","w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${we(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition")}"><slot name="play-icon" part="play-icon" class="${we(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-icon id="default-play-icon" library="system" name="start"></sd-icon></slot></div></button> ${this.hasSlotController.test("poster")?pt`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${we(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[rgba(0,0,0,0.65)] w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};Gs.styles=[ie.styles,P`:host{position:relative;display:inline-block;overflow:hidden}.play-pause-transition,::slotted([slot=poster]){transition-property:opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1)}::slotted([slot=poster]){position:absolute;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);z-index:10;width:100%}#default-play-icon,::slotted([slot=play-icon]){position:absolute;left:50%;top:50%;--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))}`],Xs([Bt("[part=base]")],Gs.prototype,"hostEl",2),Xs([Lt({type:Boolean,reflect:!0})],Gs.prototype,"playing",2),Xs([Lt({type:Boolean,reflect:!0})],Gs.prototype,"overlay",2),Xs([Lt({type:Boolean})],Gs.prototype,"isBelowBreakpoint",2),Gs=Xs([Pt("sd-video")],Gs);const Js=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Gs}},Symbol.toStringTag,{value:"Module"}));t.LocalizeController=k,t.registerIconLibrary=h,t.unregisterIconLibrary=p,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})},"object"==typeof exports&&typeof module<"u"?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=typeof globalThis<"u"?globalThis:t||self)["Solid Components"]={});