@solid-design-system/components 1.28.0 → 1.30.0

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 (107) hide show
  1. package/dist/components/es/interactive.js +1 -1
  2. package/dist/components/es/solid-element.js +2 -2
  3. package/dist/components/es/teaser.js +1 -1
  4. package/dist/components/umd/solid-components.js +10 -10
  5. package/dist/custom-elements.json +1 -1
  6. package/dist/package/components/teaser/teaser.d.ts +1 -1
  7. package/dist/package/components/teaser/teaser.js +2 -2
  8. package/dist/package/internal/solid-element.js +5 -4
  9. package/dist/package/styles/tailwind.css.js +1 -1
  10. package/dist/styles/solid-styles.css +1 -1
  11. package/dist/versioned-components/es/accordion-group.js +1 -1
  12. package/dist/versioned-components/es/accordion.js +1 -1
  13. package/dist/versioned-components/es/badge.js +1 -1
  14. package/dist/versioned-components/es/brandshape.js +1 -1
  15. package/dist/versioned-components/es/button.js +1 -1
  16. package/dist/versioned-components/es/carousel-item.js +1 -1
  17. package/dist/versioned-components/es/carousel.js +3 -3
  18. package/dist/versioned-components/es/checkbox-group.js +1 -1
  19. package/dist/versioned-components/es/checkbox.js +1 -1
  20. package/dist/versioned-components/es/divider.js +1 -1
  21. package/dist/versioned-components/es/drawer.js +1 -1
  22. package/dist/versioned-components/es/dropdown.js +1 -1
  23. package/dist/versioned-components/es/form.js +1 -1
  24. package/dist/versioned-components/es/header.js +1 -1
  25. package/dist/versioned-components/es/icon.js +1 -1
  26. package/dist/versioned-components/es/include.js +1 -1
  27. package/dist/versioned-components/es/input.js +1 -1
  28. package/dist/versioned-components/es/interactive.js +1 -1
  29. package/dist/versioned-components/es/link.js +1 -1
  30. package/dist/versioned-components/es/navigation-item.js +1 -1
  31. package/dist/versioned-components/es/notification.js +1 -1
  32. package/dist/versioned-components/es/popup.js +1 -1
  33. package/dist/versioned-components/es/radio-group.js +1 -1
  34. package/dist/versioned-components/es/radio.js +1 -1
  35. package/dist/versioned-components/es/solid-element.js +2 -2
  36. package/dist/versioned-components/es/spinner.js +1 -1
  37. package/dist/versioned-components/es/switch.js +1 -1
  38. package/dist/versioned-components/es/tag.js +1 -1
  39. package/dist/versioned-components/es/teaser.js +1 -1
  40. package/dist/versioned-components/es/tooltip.js +2 -2
  41. package/dist/versioned-components/es/video.js +1 -1
  42. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  43. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  44. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  45. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  46. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  47. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  48. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  49. package/dist/versioned-package/components/badge/badge.js +1 -1
  50. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  51. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  52. package/dist/versioned-package/components/button/button.d.ts +1 -1
  53. package/dist/versioned-package/components/button/button.js +4 -4
  54. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  55. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  56. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  57. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  58. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  59. package/dist/versioned-package/components/checkbox/checkbox.js +4 -4
  60. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  61. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  62. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  63. package/dist/versioned-package/components/divider/divider.js +2 -2
  64. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  65. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  66. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  67. package/dist/versioned-package/components/dropdown/dropdown.js +6 -6
  68. package/dist/versioned-package/components/header/header.d.ts +1 -1
  69. package/dist/versioned-package/components/header/header.js +4 -4
  70. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  71. package/dist/versioned-package/components/icon/icon.js +1 -1
  72. package/dist/versioned-package/components/include/include.d.ts +1 -1
  73. package/dist/versioned-package/components/include/include.js +1 -1
  74. package/dist/versioned-package/components/input/input.d.ts +1 -1
  75. package/dist/versioned-package/components/input/input.js +4 -4
  76. package/dist/versioned-package/components/link/link.d.ts +1 -1
  77. package/dist/versioned-package/components/link/link.js +2 -2
  78. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  79. package/dist/versioned-package/components/navigation-item/navigation-item.js +3 -3
  80. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  81. package/dist/versioned-package/components/notification/notification.js +5 -5
  82. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  83. package/dist/versioned-package/components/popup/popup.js +1 -1
  84. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  85. package/dist/versioned-package/components/radio/radio.js +2 -2
  86. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  87. package/dist/versioned-package/components/radio-group/radio-group.js +14 -14
  88. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  89. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  90. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  91. package/dist/versioned-package/components/switch/switch.js +2 -2
  92. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  93. package/dist/versioned-package/components/tag/tag.js +2 -2
  94. package/dist/versioned-package/components/teaser/teaser.d.ts +1 -1
  95. package/dist/versioned-package/components/teaser/teaser.js +3 -3
  96. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  97. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  98. package/dist/versioned-package/components/video/video.d.ts +1 -1
  99. package/dist/versioned-package/components/video/video.js +2 -2
  100. package/dist/versioned-package/internal/form.js +2 -2
  101. package/dist/versioned-package/internal/solid-element.js +5 -4
  102. package/dist/versioned-package/styles/form-control.styles.js +1 -1
  103. package/dist/versioned-package/styles/tailwind.css.js +1 -1
  104. package/dist/versioned-styles/solid-styles.css +1 -1
  105. package/dist/vscode.html-custom-data.json +32 -32
  106. package/dist/web-types.json +5 -5
  107. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- var t,e;t=this,e=function(t){var e,o;const i={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 i?`data:image/svg+xml,${encodeURIComponent(i[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},s=Object.freeze(Object.defineProperty({__proto__:null,default:r,icons:i},Symbol.toStringTag,{value:"Module"}));let n=[r],a=[];function l(t){a.push(t)}function d(t){a=a.filter((e=>e!==t))}function c(t){return n.find((e=>e.name===t))}function h(t,e){p(t),n.push({name:t,resolver:e.resolver,mutator:e.mutator}),a.forEach((e=>{e.library===t&&e.setIcon()}))}function p(t){n=n.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,g=new MutationObserver(w),b=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,[...m.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}g.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,o;const i=new Intl.Locale(t.replace(/_/g,"-")),r=null==i?void 0:i.language.toLowerCase(),s=null!==(o=null===(e=null==i?void 0:i.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==o?o:"";return{locale:i,language:r,region:s,primary:b.get(`${r}-${s}`),secondary:b.get(r)}}exists(t,e){var o;const{primary:i,secondary:r}=this.getTranslationData(null!==(o=e.lang)&&void 0!==o?o:this.lang());return e=Object.assign({includeFallback:!1},e),!!(i&&i[t]||r&&r[t]||e.includeFallback&&v&&v[t])}term(t,...e){const{primary:o,secondary:i}=this.getTranslationData(this.lang());let r;if(o&&o[t])r=o[t];else if(i&&i[t])r=i[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,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(t,e)}};!function(...t){t.map((t=>{const e=t.$code.toLowerCase();b.has(e)?b.set(e,Object.assign(Object.assign({},b.get(e)),t)):b.set(e,t),v||(v=t)})),w()}({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,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",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 $=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>Pe)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>$e)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>Me)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>Ve)),"./components/button/button.ts":()=>Promise.resolve().then((()=>co)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>po)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>mo)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>_o)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>wo)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>Oo)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>Uo)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>No)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>ii)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>ur)),"./components/header/header.ts":()=>Promise.resolve().then((()=>fr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>ne)),"./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((()=>wr)),"./components/include/include.ts":()=>Promise.resolve().then((()=>Sr)),"./components/include/request.ts":()=>Promise.resolve().then((()=>Rt)),"./components/input/input.ts":()=>Promise.resolve().then((()=>Tr)),"./components/link/link.ts":()=>Promise.resolve().then((()=>jr)),"./components/navigation-item/navigation-item.ts":()=>Promise.resolve().then((()=>Ir)),"./components/notification/notification.ts":()=>Promise.resolve().then((()=>Yr)),"./components/popup/popup.ts":()=>Promise.resolve().then((()=>lr)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>ns)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>hs)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>He)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>bs)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>xs)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>_s)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Os)),"./components/video/video.ts":()=>Promise.resolve().then((()=>Ds))});Object.keys($).forEach((t=>{$[t]()}));
1
+ var t,e;t=this,e=function(t){var e,o;const i={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 i?`data:image/svg+xml,${encodeURIComponent(i[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},s=Object.freeze(Object.defineProperty({__proto__:null,default:r,icons:i},Symbol.toStringTag,{value:"Module"}));let n=[r],a=[];function l(t){a.push(t)}function d(t){a=a.filter((e=>e!==t))}function c(t){return n.find((e=>e.name===t))}function h(t,e){p(t),n.push({name:t,resolver:e.resolver,mutator:e.mutator}),a.forEach((e=>{e.library===t&&e.setIcon()}))}function p(t){n=n.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,g=new MutationObserver(w),b=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,[...m.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}g.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,o;const i=new Intl.Locale(t.replace(/_/g,"-")),r=null==i?void 0:i.language.toLowerCase(),s=null!==(o=null===(e=null==i?void 0:i.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==o?o:"";return{locale:i,language:r,region:s,primary:b.get(`${r}-${s}`),secondary:b.get(r)}}exists(t,e){var o;const{primary:i,secondary:r}=this.getTranslationData(null!==(o=e.lang)&&void 0!==o?o:this.lang());return e=Object.assign({includeFallback:!1},e),!!(i&&i[t]||r&&r[t]||e.includeFallback&&v&&v[t])}term(t,...e){const{primary:o,secondary:i}=this.getTranslationData(this.lang());let r;if(o&&o[t])r=o[t];else if(i&&i[t])r=i[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,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(t,e)}};!function(...t){t.map((t=>{const e=t.$code.toLowerCase();b.has(e)?b.set(e,Object.assign(Object.assign({},b.get(e)),t)):b.set(e,t),v||(v=t)})),w()}({$code:"en",$name:"English",$dir:"ltr",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,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",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 $=Object.assign({"./components/accordion-group/accordion-group.ts":()=>Promise.resolve().then((()=>ze)),"./components/accordion/accordion.ts":()=>Promise.resolve().then((()=>Ce)),"./components/badge/badge.ts":()=>Promise.resolve().then((()=>Le)),"./components/brandshape/brandshape.ts":()=>Promise.resolve().then((()=>Ue)),"./components/button/button.ts":()=>Promise.resolve().then((()=>ho)),"./components/carousel-item/carousel-item.ts":()=>Promise.resolve().then((()=>uo)),"./components/carousel/autoplay-controller.ts":()=>Promise.resolve().then((()=>go)),"./components/carousel/carousel.ts":()=>Promise.resolve().then((()=>Eo)),"./components/carousel/scroll-controller.ts":()=>Promise.resolve().then((()=>xo)),"./components/checkbox-group/checkbox-group.ts":()=>Promise.resolve().then((()=>To)),"./components/checkbox/checkbox.ts":()=>Promise.resolve().then((()=>Ro)),"./components/divider/divider.ts":()=>Promise.resolve().then((()=>qo)),"./components/drawer/drawer.ts":()=>Promise.resolve().then((()=>ri)),"./components/dropdown/dropdown.ts":()=>Promise.resolve().then((()=>mr)),"./components/header/header.ts":()=>Promise.resolve().then((()=>yr)),"./components/icon/icon.ts":()=>Promise.resolve().then((()=>ae)),"./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((()=>xr)),"./components/include/include.ts":()=>Promise.resolve().then((()=>_r)),"./components/include/request.ts":()=>Promise.resolve().then((()=>Rt)),"./components/input/input.ts":()=>Promise.resolve().then((()=>Mr)),"./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/popup/popup.ts":()=>Promise.resolve().then((()=>dr)),"./components/radio-group/radio-group.ts":()=>Promise.resolve().then((()=>as)),"./components/radio/radio.ts":()=>Promise.resolve().then((()=>ps)),"./components/spinner/spinner.ts":()=>Promise.resolve().then((()=>Ne)),"./components/switch/switch.ts":()=>Promise.resolve().then((()=>vs)),"./components/tag/tag.ts":()=>Promise.resolve().then((()=>ks)),"./components/teaser/teaser.ts":()=>Promise.resolve().then((()=>Es)),"./components/tooltip/tooltip.ts":()=>Promise.resolve().then((()=>Ts)),"./components/video/video.ts":()=>Promise.resolve().then((()=>js))});Object.keys($).forEach((t=>{$[t]()}));
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
@@ -62,42 +62,42 @@ let Pt=class extends Z{constructor(){super(...arguments),this.renderOptions={hos
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- let Kt=class extends Zt{};Kt.directiveName="unsafeSVG",Kt.resultType=2;const Wt=Nt(Kt);function Yt(t,e){const o={waitUntilFirstUpdate:!1,...e};return(e,i)=>{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&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[i](e,s)}})),r.call(this,t)}}}const Xt=A`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`;var Gt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,Qt=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Jt(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Gt(e,o,s),s};class te extends Pt{emit(t,e){const o=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(o),o}}te.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-\\[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}.-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}.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)}.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-4{border-left-width:4px}.border-t{border-top-width:1px}.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-300{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-300,218 218 218)/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-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-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{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))}\n'),Qt([Mt()],te.prototype,"dir",2),Qt([Mt()],te.prototype,"lang",2);var ee=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,ie=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?oe(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ee(e,o,s),s};let re,se=class extends te{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),o=this.getUrl();if(re||(re=new DOMParser),o)try{const i=await It(o);if(o===this.getUrl())if(i.ok){const o=re.parseFromString(i.svg,"text/html").body.querySelector("svg");null!==o?(null==(t=null==e?void 0:e.mutator)||t.call(e,o),this.svg=o.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`${Wt(this.svg)}`}};se.styles=[Xt,A`: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))}`],ie([Lt()],se.prototype,"svg",2),ie([Mt({reflect:!0})],se.prototype,"name",2),ie([Mt()],se.prototype,"src",2),ie([Mt()],se.prototype,"label",2),ie([Mt({reflect:!0})],se.prototype,"library",2),ie([Mt({reflect:!0})],se.prototype,"color",2),ie([Yt("label")],se.prototype,"handleLabelChange",1),ie([Yt(["name","src","library"])],se.prototype,"setIcon",1),se=ie([At("sd-icon")],se);const ne=Object.freeze(Object.defineProperty({__proto__:null,get default(){return se}},Symbol.toStringTag,{value:"Module"}));function ae(t,e,o){return new Promise((i=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,{...o,duration:de()?0:o.duration});r.addEventListener("cancel",i,{once:!0}),r.addEventListener("finish",i,{once:!0})}))}function le(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function de(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ce(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{const o=requestAnimationFrame(e);t.addEventListener("cancel",(()=>o),{once:!0}),t.addEventListener("finish",(()=>o),{once:!0}),t.cancel()})))))}function he(t,e){return t.map((t=>({...t,height:"auto"===t.height?`${e}px`:t.height})))}const pe=new Map,ue=new WeakMap;function me(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function ge(t,e){pe.set(t,function(t){return t??{keyframes:[],options:{duration:0}}}(e))}function be(t,e,o){const i=ue.get(t);if(null!=i&&i[e])return me(i[e],o.dir);const r=pe.get(e);return r?me(r,o.dir):{keyframes:[],options:{duration:0}}}function ve(t,e){return new Promise((o=>{t.addEventListener(e,(function i(r){r.target===t&&(t.removeEventListener(e,i),o())}))}))}function fe(){let t,e="",o=0;for(;o<arguments.length;)(t=arguments[o++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,xe=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?we(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ye(e,o,s),s};let ke=class extends te{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 ce(this.body),this.body.hidden=!1;const{keyframes:t,options:e}=be(this,"accordion.show",{dir:this.localize.dir()});await ae(this.body,he(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 ce(this.body);const{keyframes:t,options:e}=be(this,"accordion.hide",{dir:this.localize.dir()});await ae(this.body,he(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,ve(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ve(this,"sd-after-hide")}render(){return pt`<div part="base" class="border-y-[1px] border-neutral-400"><header part="header" id="header" class="${fe("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="${fe(!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="${fe("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="${fe(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${fe(!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>`}};ke.styles=[te.styles,A`:host{display:block}`],xe([Dt('[part="base"]')],ke.prototype,"accordion",2),xe([Dt('[part="header"]')],ke.prototype,"header",2),xe([Dt('[part="content"]')],ke.prototype,"body",2),xe([Mt({type:Boolean,reflect:!0})],ke.prototype,"open",2),xe([Mt()],ke.prototype,"summary",2),xe([Yt("open",{waitUntilFirstUpdate:!0})],ke.prototype,"handleOpenChange",1),ke=xe([At("sd-accordion")],ke),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 $e=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ke}},Symbol.toStringTag,{value:"Module"}));var Ce=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,_e=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Se(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ce(e,o,s),s};let Ee=class extends te{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>`}};Ee.styles=[Xt,te.styles,A`:host{display:block}::slotted(sd-accordion:not(:first-of-type)){margin-top:-1px}`],_e([jt({selector:"sd-accordion"})],Ee.prototype,"_accordionsInDefaultSlot",2),_e([Mt({attribute:"close-others",type:Boolean})],Ee.prototype,"closeOthers",2),Ee=_e([At("sd-accordion-group")],Ee);const Pe=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ee}},Symbol.toStringTag,{value:"Module"}));var ze=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Oe=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Ae(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ze(e,o,s),s};let Te=class extends te{constructor(){super(...arguments),this.variant="default",this.size="lg",this.inverted=!1}render(){return pt`<span tabindex="0" role="status" part="base" class="${fe("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="${fe("sm"===this.size&&"hidden")}"><slot></slot></span></span>`}};Te.styles=[te.styles,A`:host{display:inline-flex;align-items:center;justify-content:center}`],Oe([Mt({reflect:!0})],Te.prototype,"variant",2),Oe([Mt({reflect:!0})],Te.prototype,"size",2),Oe([Mt({type:Boolean,reflect:!0})],Te.prototype,"inverted",2),Te=Oe([At("sd-badge")],Te);const Me=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Te}},Symbol.toStringTag,{value:"Module"}));var Le=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,De=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Be(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Le(e,o,s),s};let je=class extends te{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="${fe({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="${fe({"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="${fe({"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="${fe({"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>`}};je.styles=[Xt,te.styles,A`:host{display:block}`],De([Dt("[part=base]")],je.prototype,"containerElem",2),De([Mt({type:String})],je.prototype,"variant",2),De([Mt({type:Array})],je.prototype,"shapes",2),De([Lt()],je.prototype,"componentBreakpoint",2),je=De([At("sd-brandshape")],je);const Ve=Object.freeze(Object.defineProperty({__proto__:null,get default(){return je}},Symbol.toStringTag,{value:"Module"}));var Ue=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,Fe=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Re(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ue(e,o,s),s};let Ie=class extends te{constructor(){super(...arguments),this.color="currentColor",this.localize=new k(this)}render(){return pt`<svg role="progressbar" viewBox="0 0 24 24" class="${fe("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>`}};Ie.styles=[te.styles,A`:host{display:inline-block;width:1em;height:1em}`],Fe([Mt({reflect:!0})],Ie.prototype,"color",2),Ie=Fe([At("sd-spinner")],Ie);const He=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ie}},Symbol.toStringTag,{value:"Module"})),Ne=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Ke=new WeakMap;class We{constructor(t,e){this.handleFormData=t=>{const e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),r="sd-button"===this.host.tagName.toLowerCase();!e&&!r&&"string"==typeof o&&o.length>0&&typeof i<"u"&&(Array.isArray(i)?i.forEach((e=>{t.formData.append(o,e.toString())})):t.formData.append(o,i.toString()))},this.handleFormSubmit=t=>{var e;const o=this.options.disabled(this.host),i=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(e=Ne.get(this.form))||e.forEach((t=>{this.setUserInteracted(t,!0)}))),this.form&&!this.form.noValidate&&!o&&!i(this.host)&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Ke.set(this.host,[])},this.handleInteraction=t=>{const e=Ke.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(),o=t.getAttribute("form");if(o)return e.getElementById(o)}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),Ke.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),Ke.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,Ne.has(this.form)?Ne.get(this.form).add(this.host):Ne.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),qe.has(this.form)||(qe.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&(null==(t=Ne.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),qe.has(this.form)&&(this.form.reportValidity=qe.get(this.form),qe.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){Ze.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&o.setAttribute(t,e.getAttribute(t))}))),this.form.append(o),o.click(),o.remove()}}getForm(){return this.form??null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var e;const o=this.host,i=!!Ze.get(o),r=!!o.required;null!=(e=this.form)&&e.noValidate?(o.removeAttribute("data-required"),o.removeAttribute("data-optional"),o.removeAttribute("data-invalid"),o.removeAttribute("data-valid"),o.removeAttribute("data-user-invalid"),o.removeAttribute("data-user-valid")):(o.toggleAttribute("data-required",r),o.toggleAttribute("data-optional",!r),o.toggleAttribute("data-invalid",!t),o.toggleAttribute("data-valid",t),o.toggleAttribute("data-user-invalid",!t&&i),o.toggleAttribute("data-user-valid",t&&i))}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 Ye=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Xe=Object.freeze({...Ye,valid:!1,valueMissing:!0}),Ge=Object.freeze({...Ye,valid:!1,customError:!0});class Je{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
+ let Kt=class extends Zt{};Kt.directiveName="unsafeSVG",Kt.resultType=2;const Wt=Nt(Kt);function Yt(t,e){const o={waitUntilFirstUpdate:!1,...e};return(e,i)=>{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&&(!o.waitUntilFirstUpdate||this.hasUpdated)&&this[i](e,s)}})),r.call(this,t)}}}const Xt=A`:host{box-sizing:border-box}:host *,:host ::after,:host ::before{box-sizing:inherit}[hidden]{display:none!important}`;var Gt=Object.defineProperty,Jt=Object.getOwnPropertyDescriptor,Qt=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Jt(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Gt(e,o,s),s};const te=class extends Pt{emit(t,e){const o=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...e});return this.dispatchEvent(o),o}};te.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-\\[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}.-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}.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)}.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-4{border-left-width:4px}.border-t{border-top-width:1px}.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-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-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{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 ee=te;Qt([Mt()],ee.prototype,"dir",2),Qt([Mt()],ee.prototype,"lang",2);var oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,re=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ie(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&oe(e,o,s),s};let se,ne=class extends ee{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),o=this.getUrl();if(se||(se=new DOMParser),o)try{const i=await It(o);if(o===this.getUrl())if(i.ok){const o=se.parseFromString(i.svg,"text/html").body.querySelector("svg");null!==o?(null==(t=null==e?void 0:e.mutator)||t.call(e,o),this.svg=o.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`${Wt(this.svg)}`}};ne.styles=[Xt,A`: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))}`],re([Lt()],ne.prototype,"svg",2),re([Mt({reflect:!0})],ne.prototype,"name",2),re([Mt()],ne.prototype,"src",2),re([Mt()],ne.prototype,"label",2),re([Mt({reflect:!0})],ne.prototype,"library",2),re([Mt({reflect:!0})],ne.prototype,"color",2),re([Yt("label")],ne.prototype,"handleLabelChange",1),re([Yt(["name","src","library"])],ne.prototype,"setIcon",1),ne=re([At("sd-icon")],ne);const ae=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ne}},Symbol.toStringTag,{value:"Module"}));function le(t,e,o){return new Promise((i=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,{...o,duration:ce()?0:o.duration});r.addEventListener("cancel",i,{once:!0}),r.addEventListener("finish",i,{once:!0})}))}function de(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 he(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{const o=requestAnimationFrame(e);t.addEventListener("cancel",(()=>o),{once:!0}),t.addEventListener("finish",(()=>o),{once:!0}),t.cancel()})))))}function pe(t,e){return t.map((t=>({...t,height:"auto"===t.height?`${e}px`:t.height})))}const ue=new Map,me=new WeakMap;function ge(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function be(t,e){ue.set(t,function(t){return t??{keyframes:[],options:{duration:0}}}(e))}function ve(t,e,o){const i=me.get(t);if(null!=i&&i[e])return ge(i[e],o.dir);const r=ue.get(e);return r?ge(r,o.dir):{keyframes:[],options:{duration:0}}}function fe(t,e){return new Promise((o=>{t.addEventListener(e,(function i(r){r.target===t&&(t.removeEventListener(e,i),o())}))}))}function ye(){let t,e="",o=0;for(;o<arguments.length;)(t=arguments[o++])&&"string"==typeof t&&(e&&(e+=" "),e+=t);return e}var we=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,ke=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?xe(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&we(e,o,s),s};let $e=class extends ee{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 he(this.body),this.body.hidden=!1;const{keyframes:t,options:e}=ve(this,"accordion.show",{dir:this.localize.dir()});await le(this.body,pe(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 he(this.body);const{keyframes:t,options:e}=ve(this,"accordion.hide",{dir:this.localize.dir()});await le(this.body,pe(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,fe(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,fe(this,"sd-after-hide")}render(){return pt`<div part="base" class="border-y-[1px] border-neutral-400"><header part="header" id="header" class="${ye("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="${ye(!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="${ye("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="${ye(this.open&&"hidden")}"><sd-icon library="system" name="chevron-down"></sd-icon></slot><slot name="collapse-icon" class="${ye(!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=[ee.styles,A`:host{display:block}`],ke([Dt('[part="base"]')],$e.prototype,"accordion",2),ke([Dt('[part="header"]')],$e.prototype,"header",2),ke([Dt('[part="content"]')],$e.prototype,"body",2),ke([Mt({type:Boolean,reflect:!0})],$e.prototype,"open",2),ke([Mt()],$e.prototype,"summary",2),ke([Yt("open",{waitUntilFirstUpdate:!0})],$e.prototype,"handleOpenChange",1),$e=ke([At("sd-accordion")],$e),be("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}}),be("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});const Ce=Object.freeze(Object.defineProperty({__proto__:null,get default(){return $e}},Symbol.toStringTag,{value:"Module"}));var Se=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Ee=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?_e(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Se(e,o,s),s};let Pe=class extends ee{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>`}};Pe.styles=[Xt,ee.styles,A`:host{display:block}::slotted(sd-accordion:not(:first-of-type)){margin-top:-1px}`],Ee([jt({selector:"sd-accordion"})],Pe.prototype,"_accordionsInDefaultSlot",2),Ee([Mt({attribute:"close-others",type:Boolean})],Pe.prototype,"closeOthers",2),Pe=Ee([At("sd-accordion-group")],Pe);const ze=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Pe}},Symbol.toStringTag,{value:"Module"}));var Ae=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,Te=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Oe(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ae(e,o,s),s};let Me=class extends ee{constructor(){super(...arguments),this.variant="default",this.size="lg",this.inverted=!1}render(){return pt`<span tabindex="0" role="status" part="base" class="${ye("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="${ye("sm"===this.size&&"hidden")}"><slot></slot></span></span>`}};Me.styles=[ee.styles,A`:host{display:inline-flex;align-items:center;justify-content:center}`],Te([Mt({reflect:!0})],Me.prototype,"variant",2),Te([Mt({reflect:!0})],Me.prototype,"size",2),Te([Mt({type:Boolean,reflect:!0})],Me.prototype,"inverted",2),Me=Te([At("sd-badge")],Me);const Le=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Me}},Symbol.toStringTag,{value:"Module"}));var Be=Object.defineProperty,De=Object.getOwnPropertyDescriptor,je=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?De(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Be(e,o,s),s};let Ve=class extends ee{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="${ye({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="${ye({"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="${ye({"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="${ye({"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>`}};Ve.styles=[Xt,ee.styles,A`:host{display:block}`],je([Dt("[part=base]")],Ve.prototype,"containerElem",2),je([Mt({type:String})],Ve.prototype,"variant",2),je([Mt({type:Array})],Ve.prototype,"shapes",2),je([Lt()],Ve.prototype,"componentBreakpoint",2),Ve=je([At("sd-brandshape")],Ve);const Ue=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ve}},Symbol.toStringTag,{value:"Module"}));var Re=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ie=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Fe(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Re(e,o,s),s};let He=class extends ee{constructor(){super(...arguments),this.color="currentColor",this.localize=new k(this)}render(){return pt`<svg role="progressbar" viewBox="0 0 24 24" class="${ye("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>`}};He.styles=[ee.styles,A`:host{display:inline-block;width:1em;height:1em}`],Ie([Mt({reflect:!0})],He.prototype,"color",2),He=Ie([At("sd-spinner")],He);const Ne=Object.freeze(Object.defineProperty({__proto__:null,get default(){return He}},Symbol.toStringTag,{value:"Module"})),qe=new WeakMap,Ze=new WeakMap,Ke=new WeakMap,We=new WeakMap;class Ye{constructor(t,e){this.handleFormData=t=>{const e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),r="sd-button"===this.host.tagName.toLowerCase();!e&&!r&&"string"==typeof o&&o.length>0&&typeof i<"u"&&(Array.isArray(i)?i.forEach((e=>{t.formData.append(o,e.toString())})):t.formData.append(o,i.toString()))},this.handleFormSubmit=t=>{var e;const o=this.options.disabled(this.host),i=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(e=qe.get(this.form))||e.forEach((t=>{this.setUserInteracted(t,!0)}))),this.form&&!this.form.noValidate&&!o&&!i(this.host)&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),We.set(this.host,[])},this.handleInteraction=t=>{const e=We.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(),o=t.getAttribute("form");if(o)return e.getElementById(o)}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),We.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),We.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,qe.has(this.form)?qe.get(this.form).add(this.host):qe.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=qe.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){Ke.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&o.setAttribute(t,e.getAttribute(t))}))),this.form.append(o),o.click(),o.remove()}}getForm(){return this.form??null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var e;const o=this.host,i=!!Ke.get(o),r=!!o.required;null!=(e=this.form)&&e.noValidate?(o.removeAttribute("data-required"),o.removeAttribute("data-optional"),o.removeAttribute("data-invalid"),o.removeAttribute("data-valid"),o.removeAttribute("data-user-invalid"),o.removeAttribute("data-user-valid")):(o.toggleAttribute("data-required",r),o.toggleAttribute("data-optional",!r),o.toggleAttribute("data-invalid",!t),o.toggleAttribute("data-valid",t),o.toggleAttribute("data-user-invalid",!t&&i),o.toggleAttribute("data-user-valid",t&&i))}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 Xe=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Ge=Object.freeze({...Xe,valid:!1,valueMissing:!0}),Je=Object.freeze({...Xe,valid:!1,customError:!0});class Qe{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()}}
66
66
  /**
67
67
  * @license
68
68
  * Copyright 2020 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */const Qe=Symbol.for(""),to=t=>{if((null==t?void 0:t.r)===Qe)return null==t?void 0:t._$litStatic$},eo=(t,...e)=>({_$litStatic$:e.reduce(((e,o,i)=>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.`)})(o)+t[i+1]),t[0]),r:Qe}),oo=new Map,io=(t=>(e,...o)=>{const i=o.length;let r,s;const n=[],a=[];let l,d=0,c=!1;for(;d<i;){for(l=e[d];d<i&&(s=o[d],void 0!==(r=to(s)));)l+=r+e[++d],c=!0;d!==i&&a.push(s),n.push(l),d++}if(d===i&&n.push(e[i]),c){const t=n.join("$$lit$$");void 0===(e=oo.get(t))&&(n.raw=n,oo.set(t,e=n)),o=a}return t(e,...o)})(pt),ro=t=>t??mt;
70
+ */const to=Symbol.for(""),eo=t=>{if((null==t?void 0:t.r)===to)return null==t?void 0:t._$litStatic$},oo=(t,...e)=>({_$litStatic$:e.reduce(((e,o,i)=>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.`)})(o)+t[i+1]),t[0]),r:to}),io=new Map,ro=(t=>(e,...o)=>{const i=o.length;let r,s;const n=[],a=[];let l,d=0,c=!1;for(;d<i;){for(l=e[d];d<i&&(s=o[d],void 0!==(r=eo(s)));)l+=r+e[++d],c=!0;d!==i&&a.push(s),n.push(l),d++}if(d===i&&n.push(e[i]),c){const t=n.join("$$lit$$");void 0===(e=io.get(t))&&(n.raw=n,io.set(t,e=n)),o=a}return t(e,...o)})(pt),so=t=>t??mt;
71
71
  /**
72
72
  * @license
73
73
  * Copyright 2018 Google LLC
74
74
  * SPDX-License-Identifier: BSD-3-Clause
75
- */var so=Object.defineProperty,no=Object.getOwnPropertyDescriptor,ao=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?no(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&so(e,o,s),s};let lo=class extends te{constructor(){super(...arguments),this.formControlController=new We(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");return e.getElementById(o)}return t.closest("form")}}),this.hasSlotController=new Je(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:Ye}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?eo`a`:eo`button`,o={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 io`<${e} part="base" class="${fe("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",o["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="${ro(t?void 0:this.disabled)}" type="${ro(t?void 0:this.type)}" title="${this.title}" name="${ro(t?void 0:this.name)}" value="${ro(t?void 0:this.value)}" href="${ro(t?this.href:void 0)}" target="${ro(t?this.target:void 0)}" download="${ro(t?this.download:void 0)}" rel="${ro(t&&this.target?"noreferrer noopener":void 0)}" role="${ro(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="${fe("flex flex-auto items-center pointer-events-none",o["icon-only"]&&"hidden",this.loading&&"invisible",o["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" class="${fe(o["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${fe("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",o["icon-only"]&&"hidden",o["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?io`<sd-spinner class="${fe("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};lo.styles=[Xt,te.styles,A`: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)}`],ao([Dt("a, button")],lo.prototype,"button",2),ao([jt({selector:"sd-icon"})],lo.prototype,"_iconsInDefaultSlot",2),ao([Lt()],lo.prototype,"invalid",2),ao([Mt()],lo.prototype,"title",2),ao([Mt({reflect:!0})],lo.prototype,"variant",2),ao([Mt({type:Boolean,reflect:!0})],lo.prototype,"inverted",2),ao([Mt({reflect:!0})],lo.prototype,"size",2),ao([Mt({type:Boolean,reflect:!0})],lo.prototype,"disabled",2),ao([Mt({type:Boolean,reflect:!0})],lo.prototype,"loading",2),ao([Mt()],lo.prototype,"type",2),ao([Mt()],lo.prototype,"name",2),ao([Mt()],lo.prototype,"value",2),ao([Mt()],lo.prototype,"href",2),ao([Mt()],lo.prototype,"target",2),ao([Mt()],lo.prototype,"download",2),ao([Mt()],lo.prototype,"form",2),ao([Mt({attribute:"formaction"})],lo.prototype,"formAction",2),ao([Mt({attribute:"formenctype"})],lo.prototype,"formEnctype",2),ao([Mt({attribute:"formmethod"})],lo.prototype,"formMethod",2),ao([Mt({attribute:"formnovalidate",type:Boolean})],lo.prototype,"formNoValidate",2),ao([Mt({attribute:"formtarget"})],lo.prototype,"formTarget",2),ao([Yt("disabled",{waitUntilFirstUpdate:!0})],lo.prototype,"handleDisabledChange",1),lo=ao([At("sd-button")],lo);const co=Object.freeze(Object.defineProperty({__proto__:null,get default(){return lo}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty,Object.getOwnPropertyDescriptor;let ho=class extends te{static isCarouselItem(t){return t instanceof Element&&"slide"===t.getAttribute("aria-roledescription")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return pt`<slot></slot>`}};ho.styles=[te.styles,A`${Xt}: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}`],ho=((t,e,o,i)=>{for(var r,s=e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=r(s)||s);return s})([At("sd-carousel-item")],ho);const po=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ho}},Symbol.toStringTag,{value:"Module"}));class uo{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 mo=Object.freeze(Object.defineProperty({__proto__:null,AutoplayController:uo},Symbol.toStringTag,{value:"Module"})),go=Symbol(),bo=t=>(e,o,i)=>{const r=i.value;i.value=function(...e){clearTimeout(this[go]),this[go]=window.setTimeout((()=>{r.apply(this,e)}),t)}};var vo=Object.defineProperty,fo=Object.getOwnPropertyDescriptor;class yo{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,o=!!t.movementX||!!t.movementY;!this.dragging&&o?(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 o=e.scrollLeft,i=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:o,top:i,behavior:"auto"}),e.scrollTo({left:r,top:s,behavior:de()?"auto":"smooth"}),this.scrolling&&await ve(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),t.requestUpdate()}}((t,e,o,i)=>{for(var r,s=fo(e,o),n=t.length-1;n>=0;n--)(r=t[n])&&(s=r(e,o,s)||s);s&&vo(e,o,s)})([bo(100)],yo.prototype,"handleScrollEnd");const wo=Object.freeze(Object.defineProperty({__proto__:null,ScrollController:yo},Symbol.toStringTag,{value:"Module"})),xo=".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))}\n";var ko=Object.defineProperty,$o=Object.getOwnPropertyDescriptor,Co=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?$o(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ko(e,o,s),s};let So=class extends te{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 uo(this,(()=>this.next())),this.scrollController=new yo(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=>ho.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,o="rtl"===this.localize.dir(),i=null!==e.closest('[part~="pagination-item"]'),r="ArrowDown"===t.key||!o&&"ArrowRight"===t.key||o&&"ArrowLeft"===t.key,s="ArrowUp"===t.key||!o&&"ArrowLeft"===t.key||o&&"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),i&&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,o)=>{e.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",o+1)),t.hasAttribute("data-clone")&&t.remove()})),this.loop){const e=this.slidesPerPage,o=t.slice(-e),i=t.slice(0,e);o.reverse().forEach(((e,o)=>{const i=e.cloneNode(!0);i.setAttribute("data-clone",String(t.length-o-1)),this.prepend(i)})),i.forEach(((t,e)=>{const o=t.cloneNode(!0);o.setAttribute("data-clone",String(e)),this.append(o)}))}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,o)=>{Math.abs(o-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,o=!1;for(;!o&&e>0;)e-=1,o=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:o,loop:i,scrollContainer:r}=this,s=this.getSlides(),n=this.getSlides({excludeClones:!1}),a=(t+s.length)%s.length;this.activeSlide=a;const l=function(t,e,o){return(t=>Object.is(t,-0)?0:t)(t<0?0:t>o?o:t)}
75
+ */var no=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,lo=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ao(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&no(e,o,s),s};let co=class extends ee{constructor(){super(...arguments),this.formControlController=new Ye(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");return e.getElementById(o)}return t.closest("form")}}),this.hasSlotController=new Qe(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:Xe}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?oo`a`:oo`button`,o={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 ro`<${e} part="base" class="${ye("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",o["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="${so(t?void 0:this.disabled)}" type="${so(t?void 0:this.type)}" title="${this.title}" name="${so(t?void 0:this.name)}" value="${so(t?void 0:this.value)}" href="${so(t?this.href:void 0)}" target="${so(t?this.target:void 0)}" download="${so(t?this.download:void 0)}" rel="${so(t&&this.target?"noreferrer noopener":void 0)}" role="${so(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="${ye("flex flex-auto items-center pointer-events-none",o["icon-only"]&&"hidden",this.loading&&"invisible",o["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" class="${ye(o["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${ye("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",o["icon-only"]&&"hidden",o["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?ro`<sd-spinner class="${ye("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-spinner>`:""}</${e}>`}};co.styles=[Xt,ee.styles,A`: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)}`],lo([Dt("a, button")],co.prototype,"button",2),lo([jt({selector:"sd-icon"})],co.prototype,"_iconsInDefaultSlot",2),lo([Lt()],co.prototype,"invalid",2),lo([Mt()],co.prototype,"title",2),lo([Mt({reflect:!0})],co.prototype,"variant",2),lo([Mt({type:Boolean,reflect:!0})],co.prototype,"inverted",2),lo([Mt({reflect:!0})],co.prototype,"size",2),lo([Mt({type:Boolean,reflect:!0})],co.prototype,"disabled",2),lo([Mt({type:Boolean,reflect:!0})],co.prototype,"loading",2),lo([Mt()],co.prototype,"type",2),lo([Mt()],co.prototype,"name",2),lo([Mt()],co.prototype,"value",2),lo([Mt()],co.prototype,"href",2),lo([Mt()],co.prototype,"target",2),lo([Mt()],co.prototype,"download",2),lo([Mt()],co.prototype,"form",2),lo([Mt({attribute:"formaction"})],co.prototype,"formAction",2),lo([Mt({attribute:"formenctype"})],co.prototype,"formEnctype",2),lo([Mt({attribute:"formmethod"})],co.prototype,"formMethod",2),lo([Mt({attribute:"formnovalidate",type:Boolean})],co.prototype,"formNoValidate",2),lo([Mt({attribute:"formtarget"})],co.prototype,"formTarget",2),lo([Yt("disabled",{waitUntilFirstUpdate:!0})],co.prototype,"handleDisabledChange",1),co=lo([At("sd-button")],co);const ho=Object.freeze(Object.defineProperty({__proto__:null,get default(){return co}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty,Object.getOwnPropertyDescriptor;let po=class extends ee{static isCarouselItem(t){return t instanceof Element&&"slide"===t.getAttribute("aria-roledescription")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return pt`<slot></slot>`}};po.styles=[ee.styles,A`${Xt}: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}`],po=((t,e,o,i)=>{for(var r,s=e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=r(s)||s);return s})([At("sd-carousel-item")],po);const uo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return po}},Symbol.toStringTag,{value:"Module"}));class mo{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 go=Object.freeze(Object.defineProperty({__proto__:null,AutoplayController:mo},Symbol.toStringTag,{value:"Module"})),bo=Symbol(),vo=t=>(e,o,i)=>{const r=i.value;i.value=function(...e){clearTimeout(this[bo]),this[bo]=window.setTimeout((()=>{r.apply(this,e)}),t)}};var fo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor;class wo{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,o=!!t.movementX||!!t.movementY;!this.dragging&&o?(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 o=e.scrollLeft,i=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:o,top:i,behavior:"auto"}),e.scrollTo({left:r,top:s,behavior:ce()?"auto":"smooth"}),this.scrolling&&await fe(e,"scrollend"),e.style.removeProperty("scroll-snap-type"),t.requestUpdate()}}((t,e,o,i)=>{for(var r,s=yo(e,o),n=t.length-1;n>=0;n--)(r=t[n])&&(s=r(e,o,s)||s);s&&fo(e,o,s)})([vo(100)],wo.prototype,"handleScrollEnd");const xo=Object.freeze(Object.defineProperty({__proto__:null,ScrollController:wo},Symbol.toStringTag,{value:"Module"})),ko=".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 $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,So=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Co(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&$o(e,o,s),s};let _o=class extends ee{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 mo(this,(()=>this.next())),this.scrollController=new wo(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=>po.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,o="rtl"===this.localize.dir(),i=null!==e.closest('[part~="pagination-item"]'),r="ArrowDown"===t.key||!o&&"ArrowRight"===t.key||o&&"ArrowLeft"===t.key,s="ArrowUp"===t.key||!o&&"ArrowLeft"===t.key||o&&"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),i&&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,o)=>{e.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",this.localize.term("slideNum",o+1)),t.hasAttribute("data-clone")&&t.remove()})),this.loop){const e=this.slidesPerPage,o=t.slice(-e),i=t.slice(0,e);o.reverse().forEach(((e,o)=>{const i=e.cloneNode(!0);i.setAttribute("data-clone",String(t.length-o-1)),this.prepend(i)})),i.forEach(((t,e)=>{const o=t.cloneNode(!0);o.setAttribute("data-clone",String(e)),this.append(o)}))}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,o)=>{Math.abs(o-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,o=!1;for(;!o&&e>0;)e-=1,o=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:o,loop:i,scrollContainer:r}=this,s=this.getSlides(),n=this.getSlides({excludeClones:!1}),a=(t+s.length)%s.length;this.activeSlide=a;const l=function(t,e,o){return(t=>Object.is(t,-0)?0:t)(t<0?0:t>o?o:t)}
76
76
  /**
77
77
  * @license
78
78
  * Copyright 2021 Google LLC
79
79
  * SPDX-License-Identifier: BSD-3-Clause
80
- */(t+(i?o:0),0,n.length-1),d=n[l],c=r.getBoundingClientRect(),h=d.getBoundingClientRect();r.scrollTo({left:h.left-c.left+r.scrollLeft,top:h.top-c.top+r.scrollTop,behavior:de()?"auto":e})}render(){const{scrollController:t,slidesPerPage:e}=this,o=this.getPageCount(),i=this.getCurrentPage(),r=this.loop||i>0,s=this.loop||i<o-1,n="ltr"===this.localize.dir();return pt`<div part="base" class="${fe("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${fe("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="${fe("w-full flex items-center justify-center relative")}"><div part="navigation" class="${fe("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!r}" class="${fe("!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="${fe("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${n?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${"dot"===this.variant?pt`<div part="pagination-dot" role="tablist" class="${fe("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${function*(t,e){if(void 0!==t){let o=0;for(const i of t)yield e(i,o++)}}
80
+ */(t+(i?o:0),0,n.length-1),d=n[l],c=r.getBoundingClientRect(),h=d.getBoundingClientRect();r.scrollTo({left:h.left-c.left+r.scrollLeft,top:h.top-c.top+r.scrollTop,behavior:ce()?"auto":e})}render(){const{scrollController:t,slidesPerPage:e}=this,o=this.getPageCount(),i=this.getCurrentPage(),r=this.loop||i>0,s=this.loop||i<o-1,n="ltr"===this.localize.dir();return pt`<div part="base" class="${ye("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${ye("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="${ye("w-full flex items-center justify-center relative")}"><div part="navigation" class="${ye("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!r}" class="${ye("!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="${ye("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${n?"chevron-down":"chevron-up"}"></sd-icon></slot></button> ${"dot"===this.variant?pt`<div part="pagination-dot" role="tablist" class="${ye("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${function*(t,e){if(void 0!==t){let o=0;for(const i of t)yield e(i,o++)}}
81
81
  /**
82
82
  * @license
83
83
  * Copyright 2021 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */(function*(t,e,o=1){const i=void 0===e?0:t;e??(e=t);for(let t=i;o>0?t<e:e<t;t+=o)yield t}(o),(t=>{const r=t===i;return pt`<button part="pagination-item ${r?"pagination-item--active":""}" class="${fe("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,o)}" @click="${()=>this.goToSlide(t*e)}" @keydown="${this.handleKeyDown}"><span class="${fe("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="${fe("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${i+1}</span> <span part="pagination-divider" class="${fe("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${fe("w-5 text-center",this.inverted?"text-white":"text-black")}">${o}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!s}" class="${fe("!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="${fe("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${n?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${fe("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="${fe(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="${fe(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};So.styles=[te.styles,z(xo),A`${Xt}: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}`],Co([Mt({type:String,reflect:!0})],So.prototype,"variant",2),Co([Mt({type:Boolean,reflect:!0})],So.prototype,"inverted",2),Co([Mt({type:Boolean,reflect:!0})],So.prototype,"loop",2),Co([Mt({type:Boolean,reflect:!0})],So.prototype,"autoplay",2),Co([Mt({type:Number,attribute:"slides-per-page"})],So.prototype,"slidesPerPage",2),Co([Mt({type:Number,attribute:"slides-per-move"})],So.prototype,"slidesPerMove",2),Co([Dt("slot:not([name])")],So.prototype,"defaultSlot",2),Co([Dt(".carousel__slides")],So.prototype,"scrollContainer",2),Co([Dt(".carousel__pagination")],So.prototype,"paginationContainer",2),Co([Lt()],So.prototype,"activeSlide",2),Co([Lt()],So.prototype,"pausedAutoplay",2),Co([Yt("pausedAutoplay")],So.prototype,"handlePausedAutoplay",1),Co([Yt("loop",{waitUntilFirstUpdate:!0}),Yt("slidesPerPage",{waitUntilFirstUpdate:!0})],So.prototype,"initializeSlides",1),Co([Yt("activeSlide")],So.prototype,"handelSlideChange",1),Co([Yt("slidesPerMove")],So.prototype,"handleSlidesPerMoveChange",1),Co([Yt("autoplay")],So.prototype,"handleAutoplayChange",1),So=Co([At("sd-carousel")],So);const _o=Object.freeze(Object.defineProperty({__proto__:null,get default(){return So}},Symbol.toStringTag,{value:"Module"}));var Eo=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,zo=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Po(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Eo(e,o,s),s};let Ao=class extends te{constructor(){super(...arguments),this.hasSlotController=new Je(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,o=pt`<slot @slotchange="${this.syncCheckboxes}"></slot>`;return pt`<fieldset part="form-control" class="${fe("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="${fe("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="${fe({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${o}</div></fieldset>`}};Ao.styles=[Xt,te.styles,A`: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}`],zo([Mt()],Ao.prototype,"label",2),zo([Mt({reflect:!0})],Ao.prototype,"size",2),zo([Mt({reflect:!0})],Ao.prototype,"orientation",2),zo([Yt("size",{waitUntilFirstUpdate:!0})],Ao.prototype,"handleSizeChange",1),zo([Yt("invalid",{waitUntilFirstUpdate:!0})],Ao.prototype,"handleInvalid",1),Ao=zo([At("sd-checkbox-group")],Ao);const Oo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ao}},Symbol.toStringTag,{value:"Module"})),To=(t="value")=>(e,o)=>{const i=e.constructor,r=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(e,s,n){const a=i.getPropertyOptions(t);if(e===("string"==typeof a.attribute?a.attribute:t)){const e=a.converter||H,i=("function"==typeof e?e:(null==e?void 0:e.fromAttribute)??H.fromAttribute)(n,a.type);this[t]!==i&&(this[o]=i)}r.call(this,e,s,n)}}
85
+ */(function*(t,e,o=1){const i=void 0===e?0:t;e??(e=t);for(let t=i;o>0?t<e:e<t;t+=o)yield t}(o),(t=>{const r=t===i;return pt`<button part="pagination-item ${r?"pagination-item--active":""}" class="${ye("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,o)}" @click="${()=>this.goToSlide(t*e)}" @keydown="${this.handleKeyDown}"><span class="${ye("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="${ye("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${i+1}</span> <span part="pagination-divider" class="${ye("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${ye("w-5 text-center",this.inverted?"text-white":"text-black")}">${o}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!s}" class="${ye("!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="${ye("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${n?"chevron-up":"chevron-down"}"></sd-icon></slot></button></div><button class="${ye("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="${ye(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="${ye(this.pausedAutoplay?"hidden":"")}"><sd-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-icon></slot></button></div></div>`}};_o.styles=[ee.styles,z(ko),A`${Xt}: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}`],So([Mt({type:String,reflect:!0})],_o.prototype,"variant",2),So([Mt({type:Boolean,reflect:!0})],_o.prototype,"inverted",2),So([Mt({type:Boolean,reflect:!0})],_o.prototype,"loop",2),So([Mt({type:Boolean,reflect:!0})],_o.prototype,"autoplay",2),So([Mt({type:Number,attribute:"slides-per-page"})],_o.prototype,"slidesPerPage",2),So([Mt({type:Number,attribute:"slides-per-move"})],_o.prototype,"slidesPerMove",2),So([Dt("slot:not([name])")],_o.prototype,"defaultSlot",2),So([Dt(".carousel__slides")],_o.prototype,"scrollContainer",2),So([Dt(".carousel__pagination")],_o.prototype,"paginationContainer",2),So([Lt()],_o.prototype,"activeSlide",2),So([Lt()],_o.prototype,"pausedAutoplay",2),So([Yt("pausedAutoplay")],_o.prototype,"handlePausedAutoplay",1),So([Yt("loop",{waitUntilFirstUpdate:!0}),Yt("slidesPerPage",{waitUntilFirstUpdate:!0})],_o.prototype,"initializeSlides",1),So([Yt("activeSlide")],_o.prototype,"handelSlideChange",1),So([Yt("slidesPerMove")],_o.prototype,"handleSlidesPerMoveChange",1),So([Yt("autoplay")],_o.prototype,"handleAutoplayChange",1),_o=So([At("sd-carousel")],_o);const Eo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _o}},Symbol.toStringTag,{value:"Module"}));var Po=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,Ao=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?zo(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Po(e,o,s),s};let Oo=class extends ee{constructor(){super(...arguments),this.hasSlotController=new Qe(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,o=pt`<slot @slotchange="${this.syncCheckboxes}"></slot>`;return pt`<fieldset part="form-control" class="${ye("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="${ye("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="${ye({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${o}</div></fieldset>`}};Oo.styles=[Xt,ee.styles,A`: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}`],Ao([Mt()],Oo.prototype,"label",2),Ao([Mt({reflect:!0})],Oo.prototype,"size",2),Ao([Mt({reflect:!0})],Oo.prototype,"orientation",2),Ao([Yt("size",{waitUntilFirstUpdate:!0})],Oo.prototype,"handleSizeChange",1),Ao([Yt("invalid",{waitUntilFirstUpdate:!0})],Oo.prototype,"handleInvalid",1),Oo=Ao([At("sd-checkbox-group")],Oo);const To=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Oo}},Symbol.toStringTag,{value:"Module"})),Mo=(t="value")=>(e,o)=>{const i=e.constructor,r=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(e,s,n){const a=i.getPropertyOptions(t);if(e===("string"==typeof a.attribute?a.attribute:t)){const e=a.converter||H,i=("function"==typeof e?e:(null==e?void 0:e.fromAttribute)??H.fromAttribute)(n,a.type);this[t]!==i&&(this[o]=i)}r.call(this,e,s,n)}}
86
86
  /**
87
87
  * @license
88
88
  * Copyright 2020 Google LLC
89
89
  * SPDX-License-Identifier: BSD-3-Clause
90
- */,Mo={},Lo=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 o=t.element,i=t.name;if(3===t.type){if(e===o[i])return ut}else if(4===t.type){if(!!e===o.hasAttribute(i))return ut}else if(1===t.type&&o.getAttribute(i)===e+"")return ut;return((t,e=Mo)=>{t._$AH=e;
90
+ */,Lo={},Bo=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 o=t.element,i=t.name;if(3===t.type){if(e===o[i])return ut}else if(4===t.type){if(!!e===o.hasAttribute(i))return ut}else if(1===t.type&&o.getAttribute(i)===e+"")return ut;return((t,e=Lo)=>{t._$AH=e;
91
91
  /**
92
92
  * @license
93
93
  * Copyright 2020 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
- */})(t),e}});var Bo=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,jo=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Do(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Bo(e,o,s),s};let Vo=class extends te{constructor(){super(...arguments),this.formControlController=new We(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="${fe("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="${ro(this.value)}" .indeterminate="${Lo(this.indeterminate)}" .checked="${Lo(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="${fe("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="${fe("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};Vo.styles=[te.styles,A`: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))}`],jo([Dt('input[type="checkbox"]')],Vo.prototype,"input",2),jo([Mt()],Vo.prototype,"title",2),jo([Mt()],Vo.prototype,"name",2),jo([Mt()],Vo.prototype,"value",2),jo([Mt({reflect:!0})],Vo.prototype,"size",2),jo([Mt({type:Boolean,reflect:!0})],Vo.prototype,"disabled",2),jo([Mt({type:Boolean,reflect:!0})],Vo.prototype,"checked",2),jo([Mt({type:Boolean,reflect:!0})],Vo.prototype,"indeterminate",2),jo([To("checked")],Vo.prototype,"defaultChecked",2),jo([Mt({reflect:!0})],Vo.prototype,"form",2),jo([Mt({type:Boolean,reflect:!0})],Vo.prototype,"required",2),jo([Yt("disabled",{waitUntilFirstUpdate:!0})],Vo.prototype,"handleDisabledChange",1),jo([Yt(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Vo.prototype,"handleStateChange",1),Vo=jo([At("sd-checkbox")],Vo);const Uo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Vo}},Symbol.toStringTag,{value:"Module"}));var Ro=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Io=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Fo(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ro(e,o,s),s};let Ho=class extends te{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return pt`<hr part="main" class="${fe(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};Ho.styles=[Xt,te.styles,A`:host{margin:0}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],Io([Mt({reflect:!0})],Ho.prototype,"orientation",2),Io([Mt({type:Boolean,reflect:!0})],Ho.prototype,"inverted",2),Ho=Io([At("sd-divider")],Ho);const No=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ho}},Symbol.toStringTag,{value:"Module"})),qo=new Set;function Zo(t){if(qo.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 Ko(t){qo.delete(t),0===qo.size&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Wo(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Yo(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 Xo(t){const e=[];return function t(o){o instanceof HTMLElement&&(e.push(o),null!==o.shadowRoot&&"open"===o.shadowRoot.mode&&t(o.shadowRoot)),[...o.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Yo(t)))??null,end:e.reverse().find((t=>Yo(t)))??null}}let Go=[];class Jo{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(){Go.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Go=Go.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Go[Go.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Xo(this.element),o="forward"===this.tabDirection?t:e;"function"==typeof(null==o?void 0:o.focus)&&o.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var Qo=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ti(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Qo(e,o,s),s};let oi=class extends te{constructor(){super(...arguments),this.hasSlotController=new Je(this,"footer"),this.localize=new k(this),this.modal=new Jo(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(),Zo(this)))}disconnectedCallback(){super.disconnectedCallback(),Ko(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=be(this,"drawer.denyClose",{dir:this.localize.dir()});ae(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(),Zo(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([ce(this.drawer),ce(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=be(this,`drawer.show${Wo(this.placement)}`,{dir:this.localize.dir()}),o=be(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([ae(this.panel,e.keyframes,e.options),ae(this.overlay,o.keyframes,o.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Ko(this)),await Promise.all([ce(this.drawer),ce(this.overlay)]);const t=be(this,`drawer.hide${Wo(this.placement)}`,{dir:this.localize.dir()}),e=be(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([ae(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),ae(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout((()=>o.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Zo(this)),this.open&&this.contained&&(this.modal.deactivate(),Ko(this))}async show(){if(!this.open)return this.open=!0,ve(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ve(this,"sd-after-hide")}render(){return pt`<div part="base" class="${fe("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${fe("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="${fe("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="${ro(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="${fe(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};oi.styles=[te.styles,A`${Xt}: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}`],ei([Dt("[part=base]")],oi.prototype,"drawer",2),ei([Dt("[part=panel]")],oi.prototype,"panel",2),ei([Dt("[part=overlay]")],oi.prototype,"overlay",2),ei([Mt({type:Boolean,reflect:!0})],oi.prototype,"open",2),ei([Mt({attribute:"label",reflect:!0})],oi.prototype,"label",2),ei([Mt({reflect:!0})],oi.prototype,"placement",2),ei([Mt({type:Boolean,reflect:!0})],oi.prototype,"contained",2),ei([Mt({attribute:"no-header",type:Boolean})],oi.prototype,"noHeader",2),ei([Yt("open",{waitUntilFirstUpdate:!0})],oi.prototype,"handleOpenChange",1),ei([Yt("contained",{waitUntilFirstUpdate:!0})],oi.prototype,"handleNoModalChange",1),oi=ei([At("sd-drawer")],oi),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 ii=Object.freeze(Object.defineProperty({__proto__:null,get default(){return oi}},Symbol.toStringTag,{value:"Module"})),ri=Math.min,si=Math.max,ni=Math.round,ai=Math.floor,li=t=>({x:t,y:t}),di={left:"right",right:"left",bottom:"top",top:"bottom"},ci={start:"end",end:"start"};function hi(t,e,o){return si(t,ri(e,o))}function pi(t,e){return"function"==typeof t?t(e):t}function ui(t){return t.split("-")[0]}function mi(t){return t.split("-")[1]}function gi(t){return"x"===t?"y":"x"}function bi(t){return"y"===t?"height":"width"}function vi(t){return["top","bottom"].includes(ui(t))?"y":"x"}function fi(t){return gi(vi(t))}function yi(t){return t.replace(/start|end/g,(t=>ci[t]))}function wi(t){return t.replace(/left|right|bottom|top/g,(t=>di[t]))}function xi(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 ki(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function $i(t,e,o){let{reference:i,floating:r}=t;const s=vi(e),n=fi(e),a=bi(n),l=ui(e),d="y"===s,c=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let u;switch(l){case"top":u={x:c,y:i.y-r.height};break;case"bottom":u={x:c,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-r.width,y:h};break;default:u={x:i.x,y:i.y}}switch(mi(e)){case"start":u[n]-=p*(o&&d?-1:1);break;case"end":u[n]+=p*(o&&d?-1:1)}return u}async function Ci(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:n,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=pi(e,t),m=xi(u),g=a[p?"floating"===h?"reference":"floating":h],b=ki(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(g)))||o?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),v="floating"===h?{...n.floating,x:i,y:r}:n.reference,f=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.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=ki(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:f,strategy:l}):v);return{top:(b.top-w.top+m.top)/y.y,bottom:(w.bottom-b.bottom+m.bottom)/y.y,left:(b.left-w.left+m.left)/y.x,right:(w.right-b.right+m.right)/y.x}}const Si=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:i}=e,r=await async function(t,e){const{placement:o,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),n=ui(o),a=mi(o),l="y"===vi(o),d=["left","top"].includes(n)?-1:1,c=s&&l?-1:1,h=pi(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 a&&"number"==typeof m&&(u="end"===a?-1*m:m),l?{x:u*c,y:p*d}:{x:p*d,y:u*c}}(e,t);return{x:o+r.x,y:i+r.y,data:r}}}},_i=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:r,elements:s}=e,{apply:n=(()=>{}),...a}=pi(t,e),l=await Ci(e,a),d=ui(o),c=mi(o),h="y"===vi(o),{width:p,height:u}=i.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=c===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m="end"===c?"top":"bottom");const b=u-l[m],v=p-l[g],f=!e.middlewareData.shift;let y=b,w=v;if(h){const t=p-l.left-l.right;w=c||f?ri(v,t):t}else{const t=u-l.top-l.bottom;y=c||f?ri(b,t):t}if(f&&!c){const t=si(l.left,0),e=si(l.right,0),o=si(l.top,0),i=si(l.bottom,0);h?w=p-2*(0!==t||0!==e?t+e:si(l.left,l.right)):y=u-2*(0!==o||0!==i?o+i:si(l.top,l.bottom))}await n({...e,availableWidth:w,availableHeight:y});const x=await r.getDimensions(s.floating);return p!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}};function Ei(t){return Ai(t)?(t.nodeName||"").toLowerCase():"#document"}function Pi(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function zi(t){var e;return null==(e=(Ai(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ai(t){return t instanceof Node||t instanceof Pi(t).Node}function Oi(t){return t instanceof Element||t instanceof Pi(t).Element}function Ti(t){return t instanceof HTMLElement||t instanceof Pi(t).HTMLElement}function Mi(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof Pi(t).ShadowRoot)}function Li(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Ui(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Bi(t){return["table","td","th"].includes(Ei(t))}function Di(t){const e=ji(),o=Ui(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ji(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Vi(t){return["html","body","#document"].includes(Ei(t))}function Ui(t){return Pi(t).getComputedStyle(t)}function Ri(t){return Oi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Fi(t){if("html"===Ei(t))return t;const e=t.assignedSlot||t.parentNode||Mi(t)&&t.host||zi(t);return Mi(e)?e.host:e}function Ii(t){const e=Fi(t);return Vi(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ti(e)&&Li(e)?e:Ii(e)}function Hi(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Ii(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),n=Pi(r);return s?e.concat(n,n.visualViewport||[],Li(r)?r:[],n.frameElement&&o?Hi(n.frameElement):[]):e.concat(r,Hi(r,[],o))}function Ni(t){const e=Ui(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Ti(t),s=r?t.offsetWidth:o,n=r?t.offsetHeight:i,a=ni(o)!==s||ni(i)!==n;return a&&(o=s,i=n),{width:o,height:i,$:a}}function qi(t){return Oi(t)?t:t.contextElement}function Zi(t){const e=qi(t);if(!Ti(e))return li(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:s}=Ni(e);let n=(s?ni(o.width):o.width)/i,a=(s?ni(o.height):o.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}const Ki=li(0);function Wi(t){const e=Pi(t);return ji()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ki}function Yi(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=qi(t);let n=li(1);e&&(i?Oi(i)&&(n=Zi(i)):n=Zi(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Pi(t))&&e}(s,o,i)?Wi(s):li(0);let l=(r.left+a.x)/n.x,d=(r.top+a.y)/n.y,c=r.width/n.x,h=r.height/n.y;if(s){const t=Pi(s),e=i&&Oi(i)?Pi(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Zi(o),e=o.getBoundingClientRect(),i=Ui(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,d*=t.y,c*=t.x,h*=t.y,l+=r,d+=s,o=Pi(o).frameElement}}return ki({width:c,height:h,x:l,y:d})}function Xi(t){return Yi(zi(t)).left+Ri(t).scrollLeft}function Gi(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Pi(t),i=zi(t),r=o.visualViewport;let s=i.clientWidth,n=i.clientHeight,a=0,l=0;if(r){s=r.width,n=r.height;const t=ji();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:n,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=zi(t),o=Ri(t),i=t.ownerDocument.body,r=si(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=si(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let n=-o.scrollLeft+Xi(t);const a=-o.scrollTop;return"rtl"===Ui(i).direction&&(n+=si(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:n,y:a}}(zi(t));else if(Oi(e))i=function(t,e){const o=Yi(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,s=Ti(t)?Zi(t):li(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:i*s.y}}(e,o);else{const o=Wi(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return ki(i)}function Ji(t,e){const o=Fi(t);return!(o===e||!Oi(o)||Vi(o))&&("fixed"===Ui(o).position||Ji(o,e))}function Qi(t,e){const o=e.get(t);if(o)return o;let i=Hi(t,[],!1).filter((t=>Oi(t)&&"body"!==Ei(t))),r=null;const s="fixed"===Ui(t).position;let n=s?Fi(t):t;for(;Oi(n)&&!Vi(n);){const e=Ui(n),o=Di(n);!o&&"fixed"===e.position&&(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Li(n)&&!o&&Ji(t,n))?i=i.filter((t=>t!==n)):r=e,n=Fi(n)}return e.set(t,i),i}function tr(t,e,o){const i=Ti(e),r=zi(e),s="fixed"===o,n=Yi(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=li(0);if(i||!i&&!s)if(("body"!==Ei(e)||Li(r))&&(a=Ri(e)),i){const t=Yi(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Xi(r));return{x:n.left+a.scrollLeft-l.x,y:n.top+a.scrollTop-l.y,width:n.width,height:n.height}}function er(t,e){return Ti(t)&&"fixed"!==Ui(t).position?e?e(t):t.offsetParent:null}function or(t,e){const o=Pi(t);if(!Ti(t))return o;let i=er(t,e);for(;i&&Bi(i)&&"static"===Ui(i).position;)i=er(i,e);return i&&("html"===Ei(i)||"body"===Ei(i)&&"static"===Ui(i).position&&!Di(i))?o:i||function(t){let e=Fi(t);for(;Ti(e)&&!Vi(e);){if(Di(e))return e;e=Fi(e)}return null}(t)||o}const ir={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Ti(o),s=zi(o);if(o===s)return e;let n={scrollLeft:0,scrollTop:0},a=li(1);const l=li(0);if((r||!r&&"fixed"!==i)&&(("body"!==Ei(o)||Li(s))&&(n=Ri(o)),Ti(o))){const t=Yi(o);a=Zi(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-n.scrollLeft*a.x+l.x,y:e.y*a.y-n.scrollTop*a.y+l.y}},getDocumentElement:zi,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const s=[..."clippingAncestors"===o?Qi(e,this._c):[].concat(o),i],n=s[0],a=s.reduce(((t,o)=>{const i=Gi(e,o,r);return t.top=si(i.top,t.top),t.right=ri(i.right,t.right),t.bottom=ri(i.bottom,t.bottom),t.left=si(i.left,t.left),t}),Gi(e,n,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:or,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||or,s=this.getDimensions;return{reference:tr(e,await r(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ni(t)},getScale:Zi,isElement:Oi,isRTL:function(t){return"rtl"===Ui(t).direction}};var rr=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,nr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?sr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&rr(e,o,s),s};let ar=class extends te{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()}disconnectedCallback(){this.stop()}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())}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,o,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=qi(t),c=r||s?[...d?Hi(d):[],...Hi(e)]:[];c.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const h=d&&a?function(t,e){let o,i=null;const r=zi(t);function s(){clearTimeout(o),i&&i.disconnect(),i=null}return function n(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:d,top:c,width:h,height:p}=t.getBoundingClientRect();if(a||e(),!h||!p)return;const u={rootMargin:-ai(c)+"px "+-ai(r.clientWidth-(d+h))+"px "+-ai(r.clientHeight-(c+p))+"px "+-ai(d)+"px",threshold:si(0,ri(1,l))||1};let m=!0;function g(t){const e=t[0].intersectionRatio;if(e!==l){if(!m)return n();e?n(!1,e):o=setTimeout((()=>{n(!1,1e-7)}),100)}m=!1}try{i=new IntersectionObserver(g,{...u,root:r.ownerDocument})}catch{i=new IntersectionObserver(g,u)}i.observe(t)}(!0),s}(d,o):null;let p=-1,u=null;n&&(u=new ResizeObserver((t=>{let[i]=t;i&&i.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{u&&u.observe(e)}))),o()})),d&&!l&&u.observe(d),u.observe(e));let m,g=l?Yi(t):null;return l&&function e(){const i=Yi(t);g&&(i.x!==g.x||i.y!==g.y||i.width!==g.width||i.height!==g.height)&&o(),g=i,m=requestAnimationFrame(e)}(),o(),()=>{c.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),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=[Si({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(_i({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=o?`${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 o,i;const{placement:r,middlewareData:s,rects:n,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=pi(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const v=ui(r),f=ui(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(f||!g?[wi(a)]:function(t){const e=wi(t);return[yi(t),e,yi(e)]}(a));!p&&"none"!==m&&w.push(...function(t,e,o,i){const r=mi(t);let s=function(t,e,o){const i=["left","right"],r=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return o?e?r:i:e?i:r;case"left":case"right":return e?s:n;default:return[]}}(ui(t),"start"===o,i);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(yi)))),s}(a,g,m,y));const x=[a,...w],k=await Ci(e,b),$=[];let C=(null==(i=s.flip)?void 0:i.overflows)||[];if(c&&$.push(k[v]),h){const t=function(t,e,o){void 0===o&&(o=!1);const i=mi(t),r=fi(t),s=bi(r);let n="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=wi(n)),[n,wi(n)]}(r,n,y);$.push(k[t[0]],k[t[1]])}if(C=[...C,{placement:r,overflows:$}],!$.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:C},reset:{placement:e}};let o=null==(_=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:_.placement;if(!o)switch(u){case"bestFit":{var E;const t=null==(E=C.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:E[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}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:o,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=pi(t,e),d={x:o,y:i},c=await Ci(e,l),h=vi(ui(r)),p=gi(h);let u=d[p],m=d[h];if(s){const t="y"===p?"bottom":"right";u=hi(u+c["y"===p?"top":"left"],u,u-c[t])}if(n){const t="y"===h?"bottom":"right";m=hi(m+c["y"===h?"top":"left"],m,m-c[t])}const g=a.fn({...e,[p]:u,[h]:m});return{...g,data:{x:g.x-o,y:g.y-i}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(_i({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:o,y:i,placement:r,rects:s,platform:n,elements:a,middlewareData:l}=e,{element:d,padding:c=0}=pi(t,e)||{};if(null==d)return{};const h=xi(c),p={x:o,y:i},u=fi(r),m=bi(u),g=await n.getDimensions(d),b="y"===u,v=b?"top":"left",f=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=s.reference[m]+s.reference[u]-p[u]-s.floating[m],x=p[u]-s.reference[u],k=await(null==n.getOffsetParent?void 0:n.getOffsetParent(d));let $=k?k[y]:0;(!$||!await(null==n.isElement?void 0:n.isElement(k)))&&($=a.floating[y]||s.floating[m]);const C=w/2-x/2,S=$/2-g[m]/2-1,_=ri(h[v],S),E=ri(h[f],S),P=_,z=$-g[m]-E,A=$/2-g[m]/2+C,O=hi(P,A,z),T=!l.arrow&&null!=mi(r)&&A!=O&&s.reference[m]/2-(A<P?_:E)-g[m]/2<0,M=T?A<P?A-P:A-z:0;return{[u]:p[u]+M,data:{[u]:O,centerOffset:A-O-M,...T&&{alignmentOffset:M}},reset:T}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,o)=>{const i=new Map,r={platform:ir,...o},s={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:n}=o,a=s.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(e));let d=await n.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=$i(d,i,l),p=i,u={},m=0;for(let o=0;o<a.length;o++){const{name:s,fn:g}=a[o],{x:b,y:v,data:f,reset:y}=await g({x:c,y:h,initialPlacement:i,placement:p,strategy:r,middlewareData:u,rects:d,platform:n,elements:{reference:t,floating:e}});c=b??c,h=v??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 n.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=$i(d,p,l))),o=-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:o,placement:i})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=o.arrow.x,e=o.arrow.y;let i="",n="",a="",l="";if("start"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",n=r?o:"",l=r?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";n=r?"":o,l=r?o:"",a="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))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:n,bottom:a,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="${fe("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>`}};ar.styles=[te.styles,Xt,A`: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)}`],nr([Dt('[part="popup"]')],ar.prototype,"popup",2),nr([Dt('[part="arrow"]')],ar.prototype,"arrowEl",2),nr([Mt()],ar.prototype,"anchor",2),nr([Mt({type:Boolean,reflect:!0})],ar.prototype,"active",2),nr([Mt({reflect:!0})],ar.prototype,"placement",2),nr([Mt({reflect:!0})],ar.prototype,"strategy",2),nr([Mt({type:Number})],ar.prototype,"distance",2),nr([Mt({type:Number})],ar.prototype,"skidding",2),nr([Mt({type:Boolean})],ar.prototype,"arrow",2),nr([Mt({attribute:"arrow-placement"})],ar.prototype,"arrowPlacement",2),nr([Mt({attribute:"arrow-padding",type:Number})],ar.prototype,"arrowPadding",2),nr([Mt({type:Boolean})],ar.prototype,"flip",2),nr([Mt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],ar.prototype,"flipFallbackPlacements",2),nr([Mt({attribute:"flip-fallback-strategy"})],ar.prototype,"flipFallbackStrategy",2),nr([Mt({type:Object})],ar.prototype,"flipBoundary",2),nr([Mt({attribute:"flip-padding",type:Number})],ar.prototype,"flipPadding",2),nr([Mt({type:Boolean})],ar.prototype,"shift",2),nr([Mt({type:Object})],ar.prototype,"shiftBoundary",2),nr([Mt({attribute:"shift-padding",type:Number})],ar.prototype,"shiftPadding",2),nr([Mt({attribute:"auto-size"})],ar.prototype,"autoSize",2),nr([Mt()],ar.prototype,"sync",2),nr([Mt({type:Object})],ar.prototype,"autoSizeBoundary",2),nr([Mt({attribute:"auto-size-padding",type:Number})],ar.prototype,"autoSizePadding",2),ar=nr([At("sd-popup")],ar);const lr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ar}},Symbol.toStringTag,{value:"Module"}));var dr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,hr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?cr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&dr(e,o,s),s};let pr=class extends te{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,o;const i=(null==(t=this.containingElement)?void 0:t.getRootNode())instanceof ShadowRoot?null==(o=null==(e=document.activeElement)?void 0:e.shadowRoot)?void 0:o.activeElement:document.activeElement;(!this.containingElement||(null==i?void 0:i.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){!function(t,e,o="vertical",i="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,n=r.left+e.scrollLeft,a=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,c=e.scrollTop+e.offsetHeight;("horizontal"===o||"both"===o)&&(n<a?e.scrollTo({left:n,behavior:i}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:i})),("vertical"===o||"both"===o)&&(s<d?e.scrollTo({top:s,behavior:i}):s+t.clientHeight>c&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:i}))}(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 o=e.defaultSlot.assignedElements({flatten:!0}),i=o[0],r=o[o.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),o.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(i),i.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=>Xo(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,ve(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ve(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 ce(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=be(this,"dropdown.show",{dir:this.localize.dir()});await ae(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await ce(this);const{keyframes:t,options:e}=be(this,"dropdown.hide",{dir:this.localize.dir()});await ae(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="${fe("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>`}};pr.styles=[te.styles,Xt,A`: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}`],hr([Dt("#dropdown")],pr.prototype,"popup",2),hr([Dt("[part=trigger]")],pr.prototype,"trigger",2),hr([Dt("[part=panel]")],pr.prototype,"panel",2),hr([Mt({type:Boolean,reflect:!0})],pr.prototype,"open",2),hr([Mt({type:Boolean,reflect:!0})],pr.prototype,"rounded",2),hr([Mt({reflect:!0})],pr.prototype,"placement",2),hr([Mt({type:Boolean,reflect:!0})],pr.prototype,"disabled",2),hr([Mt({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],pr.prototype,"stayOpenOnSelect",2),hr([Mt({attribute:!1})],pr.prototype,"containingElement",2),hr([Mt({type:Number})],pr.prototype,"distance",2),hr([Mt({type:Number})],pr.prototype,"skidding",2),hr([Mt({type:Boolean,reflect:!0,attribute:"no-auto-size"})],pr.prototype,"noAutoSize",2),hr([Mt({type:Boolean,reflect:!0,attribute:"no-flip"})],pr.prototype,"noFlip",2),hr([Mt({type:Boolean})],pr.prototype,"hoist",2),hr([Yt("open",{waitUntilFirstUpdate:!0})],pr.prototype,"handleOpenChange",1),pr=hr([At("sd-dropdown")],pr),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 ur=Object.freeze(Object.defineProperty({__proto__:null,get default(){return pr}},Symbol.toStringTag,{value:"Module"}));var mr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor,br=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?gr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&mr(e,o,s),s};let vr=class extends te{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())}};vr.styles=[te.styles,Xt,A`: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)}`],br([Mt({reflect:!0,type:Boolean})],vr.prototype,"fixed",2),br([bo(100)],vr.prototype,"onResize",1),vr=br([At("sd-header")],vr);const fr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return vr}},Symbol.toStringTag,{value:"Module"})),yr=A`${Xt}:host{display:block}`,wr=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"}));var xr=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,$r=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?kr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&xr(e,o,s),s};let Cr=class extends te{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 Ut(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>`}};Cr.styles=yr,$r([Mt()],Cr.prototype,"src",2),$r([Mt()],Cr.prototype,"mode",2),$r([Mt({attribute:"allow-scripts",type:Boolean})],Cr.prototype,"allowScripts",2),$r([Yt("src")],Cr.prototype,"handleSrcChange",1),Cr=$r([At("sd-include")],Cr);const Sr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Cr}},Symbol.toStringTag,{value:"Module"})),_r=A`.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,Pr=Object.getOwnPropertyDescriptor,zr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Pr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Er(e,o,s),s};const Ar=!(null==(o=navigator.userAgentData)?void 0:o.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Or=class extends te{constructor(){super(...arguments),this.formControlController=new We(this),this.hasSlotController=new Je(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,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,i){this.input.setRangeText(t,e,o,i),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"),o=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),i=this.hasSlotController.test("right"),r=!!this.label||!!t,s=!!this.helpText||!!e,n=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),a=this.required||!!this.pattern||!!this.minlength||!!this.maxlength,l=a&&!this.checkValidity(),d=a&&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",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return pt`<div part="form-control" class="${fe("form-control",r&&"form-control--has-label",this.disabled&&"pointer-events-none")}"><label part="form-control-label" class="${fe("form-control-label mb-2",r?"inline-block":"hidden",h)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}${this.required?"*":""}</slot></label><div part="form-control-input" class="form-control-input relative w-full"><div part="border" class="${fe("absolute w-full h-full pointer-events-none border rounded-default transition-all",u)}"></div><div part="base" class="${fe("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")}">${o?pt`<slot name="left" part="left" class="${fe("inline-flex","sm"===this.size?"mr-1":"mr-2",m,b)}"></slot>`:""} <input part="input" id="input" class="${fe("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="${ro(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ro(this.placeholder)}" minlength="${ro(this.minlength)}" maxlength="${ro(this.maxlength)}" min="${ro(this.min)}" max="${ro(this.max)}" step="${ro(this.step)}" .value="${Lo(this.value)}" autocapitalize="${ro("password"===this.type?"off":this.autocapitalize)}" autocomplete="${ro("password"===this.type?"off":this.autocomplete)}" autocorrect="${ro("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ro(this.pattern)}" enterkeyhint="${ro(this.enterkeyhint)}" inputmode="${ro(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${n?pt`<button part="clear-button" class="${fe("flex justify-center ",g)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${fe("text-neutral-500",b)}" 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="${fe(m,g,b)}" library="system" name="eye"></sd-icon></slot>`:pt`<slot name="hide-password-icon"><sd-icon class="${fe(m,g,b)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||Ar?"":pt`<sd-icon class="${fe(m,g,b)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?pt`<sd-icon class="${fe(m,g,b)}" library="system" name="clock"></sd-icon>`:""} ${l?pt`<sd-icon class="${fe("text-error",g,b)}" library="system" name="risk"></sd-icon>`:""} ${d?pt`<sd-icon class="${fe("text-success",g,b)}" library="system" name="confirm"></sd-icon>`:""} ${i?pt`<slot name="right" part="right" class="${fe("inline-flex",m,g,b)}"></slot>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${fe("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${s?"false":"true"}">${this.helpText}</slot></div>`}};Or.styles=[Xt,_r,te.styles,A`:host{box-sizing:border-box;position:relative;display:inline-block;text-align:left;width:100%}:host([vertical]){display:block}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}`],zr([Dt("#input")],Or.prototype,"input",2),zr([Lt()],Or.prototype,"hasFocus",2),zr([Mt({reflect:!0})],Or.prototype,"type",2),zr([Mt({reflect:!0})],Or.prototype,"size",2),zr([Mt()],Or.prototype,"inputmode",2),zr([Mt()],Or.prototype,"value",2),zr([To()],Or.prototype,"defaultValue",2),zr([Mt()],Or.prototype,"placeholder",2),zr([Mt()],Or.prototype,"label",2),zr([Mt({attribute:"help-text"})],Or.prototype,"helpText",2),zr([Mt({type:Boolean})],Or.prototype,"clearable",2),zr([Mt({type:Boolean,reflect:!0})],Or.prototype,"disabled",2),zr([Mt({type:Boolean,reflect:!0})],Or.prototype,"readonly",2),zr([Mt({attribute:"password-toggle",type:Boolean})],Or.prototype,"passwordToggle",2),zr([Mt({attribute:"password-visible",type:Boolean})],Or.prototype,"passwordVisible",2),zr([Mt({attribute:"no-spin-buttons",type:Boolean})],Or.prototype,"noSpinButtons",2),zr([Mt({type:Number})],Or.prototype,"minlength",2),zr([Mt({type:Number})],Or.prototype,"maxlength",2),zr([Mt({type:Number})],Or.prototype,"min",2),zr([Mt({type:Number})],Or.prototype,"max",2),zr([Mt({reflect:!0})],Or.prototype,"form",2),zr([Mt()],Or.prototype,"name",2),zr([Mt()],Or.prototype,"title",2),zr([Mt({type:Boolean,reflect:!0})],Or.prototype,"required",2),zr([Mt()],Or.prototype,"pattern",2),zr([Mt()],Or.prototype,"step",2),zr([Mt()],Or.prototype,"autocapitalize",2),zr([Mt()],Or.prototype,"autocorrect",2),zr([Mt()],Or.prototype,"autocomplete",2),zr([Mt({type:Boolean})],Or.prototype,"autofocus",2),zr([Mt()],Or.prototype,"enterkeyhint",2),zr([Mt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Or.prototype,"spellcheck",2),zr([Yt("disabled",{waitUntilFirstUpdate:!0})],Or.prototype,"handleDisabledChange",1),zr([Yt("step",{waitUntilFirstUpdate:!0})],Or.prototype,"handleStepChange",1),zr([Yt("value",{waitUntilFirstUpdate:!0})],Or.prototype,"handleValueChange",1),Or=zr([At("sd-input")],Or);const Tr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Or}},Symbol.toStringTag,{value:"Module"}));var Mr=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,Br=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Lr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Mr(e,o,s),s};let Dr=class extends te{constructor(){super(...arguments),this.hasSlotController=new Je(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="${fe("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="${ro(this.href||void 0)}" target="${ro(this.target||void 0)}" download="${ro(this.download||void 0)}" rel="${ro(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="${fe("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="${fe("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Dr.styles=[te.styles,A`::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}`],Br([Dt("a")],Dr.prototype,"button",2),Br([Mt({reflect:!0})],Dr.prototype,"size",2),Br([Mt({type:Boolean,reflect:!0})],Dr.prototype,"inverted",2),Br([Mt({type:Boolean,reflect:!0})],Dr.prototype,"standalone",2),Br([Mt()],Dr.prototype,"href",2),Br([Mt()],Dr.prototype,"target",2),Br([Mt()],Dr.prototype,"download",2),Dr=Br([At("sd-link")],Dr);const jr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Dr}},Symbol.toStringTag,{value:"Module"}));var Vr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,Rr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Ur(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Vr(e,o,s),s};let Fr=class extends te{constructor(){super(...arguments),this.hasSlotController=new Je(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(),o=this.isAccordion(),i=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),s=t?eo`a`:o?eo`summary`:eo`button`,n=this.vertical?"pb-3":"pb-2",a=io`<${s} part="base" class="${fe("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",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-[1px]",this.vertical?"px-8":"px-4")}" aria-controls="${ro(o?"navigation-item-details":void 0)}" aria-current="${ro(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${ro(e?this.disabled:void 0)}" href="${ro(this.href||void 0)}" target="${ro(t?this.target:void 0)}" download="${ro(t?this.download:void 0)}" rel="${ro(t&&this.target?"noreferrer noopener":void 0)}" role="${t?"link":"button"}" tabindex="${this.disabled?"-1":"0"}" @click="${o?this.handleClickSummary:e?this.handleClickButton:void 0}"><div class="${fe("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="${fe("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",i?"pb-1":n,this.calculatePaddingX())}">${this.divider&&this.vertical?io`<sd-divider part="divider" class="${fe("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?io`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${fe("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${i&&this.vertical?io`<slot name="description" part="description" class="${fe("inline-block text-sm text-left text-black",o?"grow":"w-full",n,this.calculatePaddingX())}"></slot>`:""}</${s}>`;return o?io`<details id="navigation-item-details" ?open="${this.open}" class="relative flex">${a}<slot name="children"></slot></details>`:io`${a}`}};Fr.styles=[Xt,te.styles,A`:host{box-sizing:border-box;position:relative;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Rr([Mt({reflect:!0})],Fr.prototype,"href",2),Rr([Mt()],Fr.prototype,"target",2),Rr([Mt()],Fr.prototype,"download",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"current",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"disabled",2),Rr([Mt({reflect:!0})],Fr.prototype,"size",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"vertical",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"chevron",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"indented",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"relaxed",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"divider",2),Rr([Mt({type:Boolean,reflect:!0})],Fr.prototype,"open",2),Fr=Rr([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})
95
+ */})(t),e}});var Do=Object.defineProperty,jo=Object.getOwnPropertyDescriptor,Vo=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?jo(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Do(e,o,s),s};let Uo=class extends ee{constructor(){super(...arguments),this.formControlController=new Ye(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="${ye("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="${so(this.value)}" .indeterminate="${Bo(this.indeterminate)}" .checked="${Bo(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="${ye("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="${ye("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};Uo.styles=[ee.styles,A`: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))}`],Vo([Dt('input[type="checkbox"]')],Uo.prototype,"input",2),Vo([Mt()],Uo.prototype,"title",2),Vo([Mt()],Uo.prototype,"name",2),Vo([Mt()],Uo.prototype,"value",2),Vo([Mt({reflect:!0})],Uo.prototype,"size",2),Vo([Mt({type:Boolean,reflect:!0})],Uo.prototype,"disabled",2),Vo([Mt({type:Boolean,reflect:!0})],Uo.prototype,"checked",2),Vo([Mt({type:Boolean,reflect:!0})],Uo.prototype,"indeterminate",2),Vo([Mo("checked")],Uo.prototype,"defaultChecked",2),Vo([Mt({reflect:!0})],Uo.prototype,"form",2),Vo([Mt({type:Boolean,reflect:!0})],Uo.prototype,"required",2),Vo([Yt("disabled",{waitUntilFirstUpdate:!0})],Uo.prototype,"handleDisabledChange",1),Vo([Yt(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],Uo.prototype,"handleStateChange",1),Uo=Vo([At("sd-checkbox")],Uo);const Ro=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Uo}},Symbol.toStringTag,{value:"Module"}));var Fo=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,Ho=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Io(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Fo(e,o,s),s};let No=class extends ee{constructor(){super(...arguments),this.orientation="horizontal",this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return pt`<hr part="main" class="${ye(this.inverted?"border-primary-400":"border-neutral-400","horizontal"===this.orientation?"border-t w-full":" border-l h-full")}">`}};No.styles=[Xt,ee.styles,A`:host{margin:0}:host(sd-divider[orientation=horizontal]){display:block}:host(sd-divider[orientation=vertical]){display:inline-block}`],Ho([Mt({reflect:!0})],No.prototype,"orientation",2),Ho([Mt({type:Boolean,reflect:!0})],No.prototype,"inverted",2),No=Ho([At("sd-divider")],No);const qo=Object.freeze(Object.defineProperty({__proto__:null,get default(){return No}},Symbol.toStringTag,{value:"Module"})),Zo=new Set;function Ko(t){if(Zo.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 Wo(t){Zo.delete(t),0===Zo.size&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Yo(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Xo(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 Go(t){const e=[];return function t(o){o instanceof HTMLElement&&(e.push(o),null!==o.shadowRoot&&"open"===o.shadowRoot.mode&&t(o.shadowRoot)),[...o.children].forEach((e=>t(e)))}(t),{start:e.find((t=>Xo(t)))??null,end:e.reverse().find((t=>Xo(t)))??null}}let Jo=[];class Qo{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(){Jo.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Jo=Jo.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Jo[Jo.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Go(this.element),o="forward"===this.tabDirection?t:e;"function"==typeof(null==o?void 0:o.focus)&&o.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var ti=Object.defineProperty,ei=Object.getOwnPropertyDescriptor,oi=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ei(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ti(e,o,s),s};let ii=class extends ee{constructor(){super(...arguments),this.hasSlotController=new Qe(this,"footer"),this.localize=new k(this),this.modal=new Qo(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(),Ko(this)))}disconnectedCallback(){super.disconnectedCallback(),Wo(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=ve(this,"drawer.denyClose",{dir:this.localize.dir()});le(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(),Ko(this));const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([he(this.drawer),he(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=ve(this,`drawer.show${Yo(this.placement)}`,{dir:this.localize.dir()}),o=ve(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([le(this.panel,e.keyframes,e.options),le(this.overlay,o.keyframes,o.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Wo(this)),await Promise.all([he(this.drawer),he(this.overlay)]);const t=ve(this,`drawer.hide${Yo(this.placement)}`,{dir:this.localize.dir()}),e=ve(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([le(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),le(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout((()=>o.focus())),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),Ko(this)),this.open&&this.contained&&(this.modal.deactivate(),Wo(this))}async show(){if(!this.open)return this.open=!0,fe(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,fe(this,"sd-after-hide")}render(){return pt`<div part="base" class="${ye("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${ye("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="${ye("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="${so(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="${ye(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};ii.styles=[ee.styles,A`${Xt}: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}`],oi([Dt("[part=base]")],ii.prototype,"drawer",2),oi([Dt("[part=panel]")],ii.prototype,"panel",2),oi([Dt("[part=overlay]")],ii.prototype,"overlay",2),oi([Mt({type:Boolean,reflect:!0})],ii.prototype,"open",2),oi([Mt({attribute:"label",reflect:!0})],ii.prototype,"label",2),oi([Mt({reflect:!0})],ii.prototype,"placement",2),oi([Mt({type:Boolean,reflect:!0})],ii.prototype,"contained",2),oi([Mt({attribute:"no-header",type:Boolean})],ii.prototype,"noHeader",2),oi([Yt("open",{waitUntilFirstUpdate:!0})],ii.prototype,"handleOpenChange",1),oi([Yt("contained",{waitUntilFirstUpdate:!0})],ii.prototype,"handleNoModalChange",1),ii=oi([At("sd-drawer")],ii),be("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"}}),be("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"}}),be("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"}}),be("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"}}),be("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}}),be("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),be("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});const ri=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ii}},Symbol.toStringTag,{value:"Module"})),si=Math.min,ni=Math.max,ai=Math.round,li=Math.floor,di=t=>({x:t,y:t}),ci={left:"right",right:"left",bottom:"top",top:"bottom"},hi={start:"end",end:"start"};function pi(t,e,o){return ni(t,si(e,o))}function ui(t,e){return"function"==typeof t?t(e):t}function mi(t){return t.split("-")[0]}function gi(t){return t.split("-")[1]}function bi(t){return"x"===t?"y":"x"}function vi(t){return"y"===t?"height":"width"}function fi(t){return["top","bottom"].includes(mi(t))?"y":"x"}function yi(t){return bi(fi(t))}function wi(t){return t.replace(/start|end/g,(t=>hi[t]))}function xi(t){return t.replace(/left|right|bottom|top/g,(t=>ci[t]))}function ki(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 $i(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ci(t,e,o){let{reference:i,floating:r}=t;const s=fi(e),n=yi(e),a=vi(n),l=mi(e),d="y"===s,c=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let u;switch(l){case"top":u={x:c,y:i.y-r.height};break;case"bottom":u={x:c,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:h};break;case"left":u={x:i.x-r.width,y:h};break;default:u={x:i.x,y:i.y}}switch(gi(e)){case"start":u[n]-=p*(o&&d?-1:1);break;case"end":u[n]+=p*(o&&d?-1:1)}return u}async function Si(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:n,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=ui(e,t),m=ki(u),g=a[p?"floating"===h?"reference":"floating":h],b=$i(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(g)))||o?g:g.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),v="floating"===h?{...n.floating,x:i,y:r}:n.reference,f=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.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=$i(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:f,strategy:l}):v);return{top:(b.top-w.top+m.top)/y.y,bottom:(w.bottom-b.bottom+m.bottom)/y.y,left:(b.left-w.left+m.left)/y.x,right:(w.right-b.right+m.right)/y.x}}const _i=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:i}=e,r=await async function(t,e){const{placement:o,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),n=mi(o),a=gi(o),l="y"===fi(o),d=["left","top"].includes(n)?-1:1,c=s&&l?-1:1,h=ui(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 a&&"number"==typeof m&&(u="end"===a?-1*m:m),l?{x:u*c,y:p*d}:{x:p*d,y:u*c}}(e,t);return{x:o+r.x,y:i+r.y,data:r}}}},Ei=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:r,elements:s}=e,{apply:n=(()=>{}),...a}=ui(t,e),l=await Si(e,a),d=mi(o),c=gi(o),h="y"===fi(o),{width:p,height:u}=i.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=c===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m="end"===c?"top":"bottom");const b=u-l[m],v=p-l[g],f=!e.middlewareData.shift;let y=b,w=v;if(h){const t=p-l.left-l.right;w=c||f?si(v,t):t}else{const t=u-l.top-l.bottom;y=c||f?si(b,t):t}if(f&&!c){const t=ni(l.left,0),e=ni(l.right,0),o=ni(l.top,0),i=ni(l.bottom,0);h?w=p-2*(0!==t||0!==e?t+e:ni(l.left,l.right)):y=u-2*(0!==o||0!==i?o+i:ni(l.top,l.bottom))}await n({...e,availableWidth:w,availableHeight:y});const x=await r.getDimensions(s.floating);return p!==x.width||u!==x.height?{reset:{rects:!0}}:{}}}};function Pi(t){return Oi(t)?(t.nodeName||"").toLowerCase():"#document"}function zi(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ai(t){var e;return null==(e=(Oi(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Oi(t){return t instanceof Node||t instanceof zi(t).Node}function Ti(t){return t instanceof Element||t instanceof zi(t).Element}function Mi(t){return t instanceof HTMLElement||t instanceof zi(t).HTMLElement}function Li(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof zi(t).ShadowRoot)}function Bi(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=Ri(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Di(t){return["table","td","th"].includes(Pi(t))}function ji(t){const e=Vi(),o=Ri(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Vi(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ui(t){return["html","body","#document"].includes(Pi(t))}function Ri(t){return zi(t).getComputedStyle(t)}function Fi(t){return Ti(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ii(t){if("html"===Pi(t))return t;const e=t.assignedSlot||t.parentNode||Li(t)&&t.host||Ai(t);return Li(e)?e.host:e}function Hi(t){const e=Ii(t);return Ui(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mi(e)&&Bi(e)?e:Hi(e)}function Ni(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Hi(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),n=zi(r);return s?e.concat(n,n.visualViewport||[],Bi(r)?r:[],n.frameElement&&o?Ni(n.frameElement):[]):e.concat(r,Ni(r,[],o))}function qi(t){const e=Ri(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Mi(t),s=r?t.offsetWidth:o,n=r?t.offsetHeight:i,a=ai(o)!==s||ai(i)!==n;return a&&(o=s,i=n),{width:o,height:i,$:a}}function Zi(t){return Ti(t)?t:t.contextElement}function Ki(t){const e=Zi(t);if(!Mi(e))return di(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:s}=qi(e);let n=(s?ai(o.width):o.width)/i,a=(s?ai(o.height):o.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!a||!Number.isFinite(a))&&(a=1),{x:n,y:a}}const Wi=di(0);function Yi(t){const e=zi(t);return Vi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Wi}function Xi(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=Zi(t);let n=di(1);e&&(i?Ti(i)&&(n=Ki(i)):n=Ki(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==zi(t))&&e}(s,o,i)?Yi(s):di(0);let l=(r.left+a.x)/n.x,d=(r.top+a.y)/n.y,c=r.width/n.x,h=r.height/n.y;if(s){const t=zi(s),e=i&&Ti(i)?zi(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Ki(o),e=o.getBoundingClientRect(),i=Ri(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,d*=t.y,c*=t.x,h*=t.y,l+=r,d+=s,o=zi(o).frameElement}}return $i({width:c,height:h,x:l,y:d})}function Gi(t){return Xi(Ai(t)).left+Fi(t).scrollLeft}function Ji(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=zi(t),i=Ai(t),r=o.visualViewport;let s=i.clientWidth,n=i.clientHeight,a=0,l=0;if(r){s=r.width,n=r.height;const t=Vi();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:n,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ai(t),o=Fi(t),i=t.ownerDocument.body,r=ni(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=ni(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let n=-o.scrollLeft+Gi(t);const a=-o.scrollTop;return"rtl"===Ri(i).direction&&(n+=ni(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:n,y:a}}(Ai(t));else if(Ti(e))i=function(t,e){const o=Xi(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,s=Mi(t)?Ki(t):di(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:i*s.y}}(e,o);else{const o=Yi(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return $i(i)}function Qi(t,e){const o=Ii(t);return!(o===e||!Ti(o)||Ui(o))&&("fixed"===Ri(o).position||Qi(o,e))}function tr(t,e){const o=e.get(t);if(o)return o;let i=Ni(t,[],!1).filter((t=>Ti(t)&&"body"!==Pi(t))),r=null;const s="fixed"===Ri(t).position;let n=s?Ii(t):t;for(;Ti(n)&&!Ui(n);){const e=Ri(n),o=ji(n);!o&&"fixed"===e.position&&(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Bi(n)&&!o&&Qi(t,n))?i=i.filter((t=>t!==n)):r=e,n=Ii(n)}return e.set(t,i),i}function er(t,e,o){const i=Mi(e),r=Ai(e),s="fixed"===o,n=Xi(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=di(0);if(i||!i&&!s)if(("body"!==Pi(e)||Bi(r))&&(a=Fi(e)),i){const t=Xi(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Gi(r));return{x:n.left+a.scrollLeft-l.x,y:n.top+a.scrollTop-l.y,width:n.width,height:n.height}}function or(t,e){return Mi(t)&&"fixed"!==Ri(t).position?e?e(t):t.offsetParent:null}function ir(t,e){const o=zi(t);if(!Mi(t))return o;let i=or(t,e);for(;i&&Di(i)&&"static"===Ri(i).position;)i=or(i,e);return i&&("html"===Pi(i)||"body"===Pi(i)&&"static"===Ri(i).position&&!ji(i))?o:i||function(t){let e=Ii(t);for(;Mi(e)&&!Ui(e);){if(ji(e))return e;e=Ii(e)}return null}(t)||o}const rr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Mi(o),s=Ai(o);if(o===s)return e;let n={scrollLeft:0,scrollTop:0},a=di(1);const l=di(0);if((r||!r&&"fixed"!==i)&&(("body"!==Pi(o)||Bi(s))&&(n=Fi(o)),Mi(o))){const t=Xi(o);a=Ki(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-n.scrollLeft*a.x+l.x,y:e.y*a.y-n.scrollTop*a.y+l.y}},getDocumentElement:Ai,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const s=[..."clippingAncestors"===o?tr(e,this._c):[].concat(o),i],n=s[0],a=s.reduce(((t,o)=>{const i=Ji(e,o,r);return t.top=ni(i.top,t.top),t.right=si(i.right,t.right),t.bottom=si(i.bottom,t.bottom),t.left=ni(i.left,t.left),t}),Ji(e,n,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ir,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||ir,s=this.getDimensions;return{reference:er(e,await r(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return qi(t)},getScale:Ki,isElement:Ti,isRTL:function(t){return"rtl"===Ri(t).direction}};var sr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,ar=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?nr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&sr(e,o,s),s};let lr=class extends ee{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()}disconnectedCallback(){this.stop()}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())}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,o,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=Zi(t),c=r||s?[...d?Ni(d):[],...Ni(e)]:[];c.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const h=d&&a?function(t,e){let o,i=null;const r=Ai(t);function s(){clearTimeout(o),i&&i.disconnect(),i=null}return function n(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:d,top:c,width:h,height:p}=t.getBoundingClientRect();if(a||e(),!h||!p)return;const u={rootMargin:-li(c)+"px "+-li(r.clientWidth-(d+h))+"px "+-li(r.clientHeight-(c+p))+"px "+-li(d)+"px",threshold:ni(0,si(1,l))||1};let m=!0;function g(t){const e=t[0].intersectionRatio;if(e!==l){if(!m)return n();e?n(!1,e):o=setTimeout((()=>{n(!1,1e-7)}),100)}m=!1}try{i=new IntersectionObserver(g,{...u,root:r.ownerDocument})}catch{i=new IntersectionObserver(g,u)}i.observe(t)}(!0),s}(d,o):null;let p=-1,u=null;n&&(u=new ResizeObserver((t=>{let[i]=t;i&&i.target===d&&u&&(u.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{u&&u.observe(e)}))),o()})),d&&!l&&u.observe(d),u.observe(e));let m,g=l?Xi(t):null;return l&&function e(){const i=Xi(t);g&&(i.x!==g.x||i.y!==g.y||i.width!==g.width||i.height!==g.height)&&o(),g=i,m=requestAnimationFrame(e)}(),o(),()=>{c.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),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=[_i({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Ei({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=o?`${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 o,i;const{placement:r,middlewareData:s,rects:n,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=ui(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const v=mi(r),f=mi(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=p||(f||!g?[xi(a)]:function(t){const e=xi(t);return[wi(t),e,wi(e)]}(a));!p&&"none"!==m&&w.push(...function(t,e,o,i){const r=gi(t);let s=function(t,e,o){const i=["left","right"],r=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return o?e?r:i:e?i:r;case"left":case"right":return e?s:n;default:return[]}}(mi(t),"start"===o,i);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(wi)))),s}(a,g,m,y));const x=[a,...w],k=await Si(e,b),$=[];let C=(null==(i=s.flip)?void 0:i.overflows)||[];if(c&&$.push(k[v]),h){const t=function(t,e,o){void 0===o&&(o=!1);const i=gi(t),r=yi(t),s=vi(r);let n="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=xi(n)),[n,xi(n)]}(r,n,y);$.push(k[t[0]],k[t[1]])}if(C=[...C,{placement:r,overflows:$}],!$.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:C},reset:{placement:e}};let o=null==(_=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:_.placement;if(!o)switch(u){case"bestFit":{var E;const t=null==(E=C.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:E[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}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:o,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=ui(t,e),d={x:o,y:i},c=await Si(e,l),h=fi(mi(r)),p=bi(h);let u=d[p],m=d[h];if(s){const t="y"===p?"bottom":"right";u=pi(u+c["y"===p?"top":"left"],u,u-c[t])}if(n){const t="y"===h?"bottom":"right";m=pi(m+c["y"===h?"top":"left"],m,m-c[t])}const g=a.fn({...e,[p]:u,[h]:m});return{...g,data:{x:g.x-o,y:g.y-i}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Ei({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:o,y:i,placement:r,rects:s,platform:n,elements:a,middlewareData:l}=e,{element:d,padding:c=0}=ui(t,e)||{};if(null==d)return{};const h=ki(c),p={x:o,y:i},u=yi(r),m=vi(u),g=await n.getDimensions(d),b="y"===u,v=b?"top":"left",f=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=s.reference[m]+s.reference[u]-p[u]-s.floating[m],x=p[u]-s.reference[u],k=await(null==n.getOffsetParent?void 0:n.getOffsetParent(d));let $=k?k[y]:0;(!$||!await(null==n.isElement?void 0:n.isElement(k)))&&($=a.floating[y]||s.floating[m]);const C=w/2-x/2,S=$/2-g[m]/2-1,_=si(h[v],S),E=si(h[f],S),P=_,z=$-g[m]-E,A=$/2-g[m]/2+C,O=pi(P,A,z),T=!l.arrow&&null!=gi(r)&&A!=O&&s.reference[m]/2-(A<P?_:E)-g[m]/2<0,M=T?A<P?A-P:A-z:0;return{[u]:p[u]+M,data:{[u]:O,centerOffset:A-O-M,...T&&{alignmentOffset:M}},reset:T}}}))({element:this.arrowEl,padding:this.arrowPadding})),((t,e,o)=>{const i=new Map,r={platform:rr,...o},s={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:n}=o,a=s.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(e));let d=await n.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=Ci(d,i,l),p=i,u={},m=0;for(let o=0;o<a.length;o++){const{name:s,fn:g}=a[o],{x:b,y:v,data:f,reset:y}=await g({x:c,y:h,initialPlacement:i,placement:p,strategy:r,middlewareData:u,rects:d,platform:n,elements:{reference:t,floating:e}});c=b??c,h=v??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 n.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=Ci(d,p,l))),o=-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:o,placement:i})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=o.arrow.x,e=o.arrow.y;let i="",n="",a="",l="";if("start"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",n=r?o:"",l=r?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";n=r?"":o,l=r?o:"",a="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))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:n,bottom:a,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="${ye("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>`}};lr.styles=[ee.styles,Xt,A`: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)}`],ar([Dt('[part="popup"]')],lr.prototype,"popup",2),ar([Dt('[part="arrow"]')],lr.prototype,"arrowEl",2),ar([Mt()],lr.prototype,"anchor",2),ar([Mt({type:Boolean,reflect:!0})],lr.prototype,"active",2),ar([Mt({reflect:!0})],lr.prototype,"placement",2),ar([Mt({reflect:!0})],lr.prototype,"strategy",2),ar([Mt({type:Number})],lr.prototype,"distance",2),ar([Mt({type:Number})],lr.prototype,"skidding",2),ar([Mt({type:Boolean})],lr.prototype,"arrow",2),ar([Mt({attribute:"arrow-placement"})],lr.prototype,"arrowPlacement",2),ar([Mt({attribute:"arrow-padding",type:Number})],lr.prototype,"arrowPadding",2),ar([Mt({type:Boolean})],lr.prototype,"flip",2),ar([Mt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],lr.prototype,"flipFallbackPlacements",2),ar([Mt({attribute:"flip-fallback-strategy"})],lr.prototype,"flipFallbackStrategy",2),ar([Mt({type:Object})],lr.prototype,"flipBoundary",2),ar([Mt({attribute:"flip-padding",type:Number})],lr.prototype,"flipPadding",2),ar([Mt({type:Boolean})],lr.prototype,"shift",2),ar([Mt({type:Object})],lr.prototype,"shiftBoundary",2),ar([Mt({attribute:"shift-padding",type:Number})],lr.prototype,"shiftPadding",2),ar([Mt({attribute:"auto-size"})],lr.prototype,"autoSize",2),ar([Mt()],lr.prototype,"sync",2),ar([Mt({type:Object})],lr.prototype,"autoSizeBoundary",2),ar([Mt({attribute:"auto-size-padding",type:Number})],lr.prototype,"autoSizePadding",2),lr=ar([At("sd-popup")],lr);const dr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return lr}},Symbol.toStringTag,{value:"Module"}));var cr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,pr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?hr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&cr(e,o,s),s};let ur=class extends ee{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,o;const i=(null==(t=this.containingElement)?void 0:t.getRootNode())instanceof ShadowRoot?null==(o=null==(e=document.activeElement)?void 0:e.shadowRoot)?void 0:o.activeElement:document.activeElement;(!this.containingElement||(null==i?void 0:i.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){!function(t,e,o="vertical",i="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,n=r.left+e.scrollLeft,a=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,d=e.scrollTop,c=e.scrollTop+e.offsetHeight;("horizontal"===o||"both"===o)&&(n<a?e.scrollTo({left:n,behavior:i}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:i})),("vertical"===o||"both"===o)&&(s<d?e.scrollTo({top:s,behavior:i}):s+t.clientHeight>c&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:i}))}(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 o=e.defaultSlot.assignedElements({flatten:!0}),i=o[0],r=o[o.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),o.length>0&&requestAnimationFrame((()=>{("ArrowDown"===t.key||"Home"===t.key)&&(e.setCurrentItem(i),i.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=>Go(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,fe(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,fe(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 he(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=ve(this,"dropdown.show",{dir:this.localize.dir()});await le(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await he(this);const{keyframes:t,options:e}=ve(this,"dropdown.hide",{dir:this.localize.dir()});await le(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="${ye("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>`}};ur.styles=[ee.styles,Xt,A`: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}`],pr([Dt("#dropdown")],ur.prototype,"popup",2),pr([Dt("[part=trigger]")],ur.prototype,"trigger",2),pr([Dt("[part=panel]")],ur.prototype,"panel",2),pr([Mt({type:Boolean,reflect:!0})],ur.prototype,"open",2),pr([Mt({type:Boolean,reflect:!0})],ur.prototype,"rounded",2),pr([Mt({reflect:!0})],ur.prototype,"placement",2),pr([Mt({type:Boolean,reflect:!0})],ur.prototype,"disabled",2),pr([Mt({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],ur.prototype,"stayOpenOnSelect",2),pr([Mt({attribute:!1})],ur.prototype,"containingElement",2),pr([Mt({type:Number})],ur.prototype,"distance",2),pr([Mt({type:Number})],ur.prototype,"skidding",2),pr([Mt({type:Boolean,reflect:!0,attribute:"no-auto-size"})],ur.prototype,"noAutoSize",2),pr([Mt({type:Boolean,reflect:!0,attribute:"no-flip"})],ur.prototype,"noFlip",2),pr([Mt({type:Boolean})],ur.prototype,"hoist",2),pr([Yt("open",{waitUntilFirstUpdate:!0})],ur.prototype,"handleOpenChange",1),ur=pr([At("sd-dropdown")],ur),be("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),be("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const mr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ur}},Symbol.toStringTag,{value:"Module"}));var gr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,vr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?br(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&gr(e,o,s),s};let fr=class extends ee{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())}};fr.styles=[ee.styles,Xt,A`: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)}`],vr([Mt({reflect:!0,type:Boolean})],fr.prototype,"fixed",2),vr([vo(100)],fr.prototype,"onResize",1),fr=vr([At("sd-header")],fr);const yr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return fr}},Symbol.toStringTag,{value:"Module"})),wr=A`${Xt}:host{display:block}`,xr=Object.freeze(Object.defineProperty({__proto__:null,default:wr},Symbol.toStringTag,{value:"Module"}));var kr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,Cr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?$r(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&kr(e,o,s),s};let Sr=class extends ee{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 Ut(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=wr,Cr([Mt()],Sr.prototype,"src",2),Cr([Mt()],Sr.prototype,"mode",2),Cr([Mt({attribute:"allow-scripts",type:Boolean})],Sr.prototype,"allowScripts",2),Cr([Yt("src")],Sr.prototype,"handleSrcChange",1),Sr=Cr([At("sd-include")],Sr);const _r=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Sr}},Symbol.toStringTag,{value:"Module"})),Er=A`.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,zr=Object.getOwnPropertyDescriptor,Ar=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?zr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Pr(e,o,s),s};const Or=!(null==(o=navigator.userAgentData)?void 0:o.brands.some((t=>t.brand.includes("Chromium"))))&&navigator.userAgent.includes("Firefox");let Tr=class extends ee{constructor(){super(...arguments),this.formControlController=new Ye(this),this.hasSlotController=new Qe(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,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,i){this.input.setRangeText(t,e,o,i),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"),o=(this.hasSlotController.test("description"),this.hasSlotController.test("left")),i=this.hasSlotController.test("right"),r=!!this.label||!!t,s=!!this.helpText||!!e,n=this.clearable&&!this.readonly&&("number"==typeof this.value||this.value.length>0),a=this.required||!!this.pattern||!!this.minlength||!!this.maxlength,l=a&&!this.checkValidity(),d=a&&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",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],b={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return pt`<div part="form-control" class="${ye("form-control",r&&"form-control--has-label",this.disabled&&"pointer-events-none")}"><label part="form-control-label" class="${ye("form-control-label mb-2",r?"inline-block":"hidden",h)}" for="input" aria-hidden="${r?"false":"true"}"><slot name="label">${this.label}${this.required?"*":""}</slot></label><div part="form-control-input" class="form-control-input relative w-full"><div part="border" class="${ye("absolute w-full h-full pointer-events-none border rounded-default transition-all",u)}"></div><div part="base" class="${ye("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",Or&&"input--is-firefox")}">${o?pt`<slot name="left" part="left" class="${ye("inline-flex","sm"===this.size?"mr-1":"mr-2",m,b)}"></slot>`:""} <input part="input" id="input" class="${ye("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="${so(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${so(this.placeholder)}" minlength="${so(this.minlength)}" maxlength="${so(this.maxlength)}" min="${so(this.min)}" max="${so(this.max)}" step="${so(this.step)}" .value="${Bo(this.value)}" autocapitalize="${so("password"===this.type?"off":this.autocapitalize)}" autocomplete="${so("password"===this.type?"off":this.autocomplete)}" autocorrect="${so("password"===this.type?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${so(this.pattern)}" enterkeyhint="${so(this.enterkeyhint)}" inputmode="${so(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${n?pt`<button part="clear-button" class="${ye("flex justify-center ",g)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${ye("text-neutral-500",b)}" 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="${ye(m,g,b)}" library="system" name="eye"></sd-icon></slot>`:pt`<slot name="hide-password-icon"><sd-icon class="${ye(m,g,b)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>`:""} ${"date"!==this.type&&"datetime-local"!==this.type||Or?"":pt`<sd-icon class="${ye(m,g,b)}" library="system" name="calendar"></sd-icon>`} ${"time"===this.type?pt`<sd-icon class="${ye(m,g,b)}" library="system" name="clock"></sd-icon>`:""} ${l?pt`<sd-icon class="${ye("text-error",g,b)}" library="system" name="risk"></sd-icon>`:""} ${d?pt`<sd-icon class="${ye("text-success",g,b)}" library="system" name="confirm"></sd-icon>`:""} ${i?pt`<slot name="right" part="right" class="${ye("inline-flex",m,g,b)}"></slot>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${ye("text-sm text-neutral-700",s?"block":"hidden")}" aria-hidden="${s?"false":"true"}">${this.helpText}</slot></div>`}};Tr.styles=[Xt,Er,ee.styles,A`:host{box-sizing:border-box;position:relative;display:inline-block;text-align:left;width:100%}:host([vertical]){display:block}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}`],Ar([Dt("#input")],Tr.prototype,"input",2),Ar([Lt()],Tr.prototype,"hasFocus",2),Ar([Mt({reflect:!0})],Tr.prototype,"type",2),Ar([Mt({reflect:!0})],Tr.prototype,"size",2),Ar([Mt()],Tr.prototype,"inputmode",2),Ar([Mt()],Tr.prototype,"value",2),Ar([Mo()],Tr.prototype,"defaultValue",2),Ar([Mt()],Tr.prototype,"placeholder",2),Ar([Mt()],Tr.prototype,"label",2),Ar([Mt({attribute:"help-text"})],Tr.prototype,"helpText",2),Ar([Mt({type:Boolean})],Tr.prototype,"clearable",2),Ar([Mt({type:Boolean,reflect:!0})],Tr.prototype,"disabled",2),Ar([Mt({type:Boolean,reflect:!0})],Tr.prototype,"readonly",2),Ar([Mt({attribute:"password-toggle",type:Boolean})],Tr.prototype,"passwordToggle",2),Ar([Mt({attribute:"password-visible",type:Boolean})],Tr.prototype,"passwordVisible",2),Ar([Mt({attribute:"no-spin-buttons",type:Boolean})],Tr.prototype,"noSpinButtons",2),Ar([Mt({type:Number})],Tr.prototype,"minlength",2),Ar([Mt({type:Number})],Tr.prototype,"maxlength",2),Ar([Mt({type:Number})],Tr.prototype,"min",2),Ar([Mt({type:Number})],Tr.prototype,"max",2),Ar([Mt({reflect:!0})],Tr.prototype,"form",2),Ar([Mt()],Tr.prototype,"name",2),Ar([Mt()],Tr.prototype,"title",2),Ar([Mt({type:Boolean,reflect:!0})],Tr.prototype,"required",2),Ar([Mt()],Tr.prototype,"pattern",2),Ar([Mt()],Tr.prototype,"step",2),Ar([Mt()],Tr.prototype,"autocapitalize",2),Ar([Mt()],Tr.prototype,"autocorrect",2),Ar([Mt()],Tr.prototype,"autocomplete",2),Ar([Mt({type:Boolean})],Tr.prototype,"autofocus",2),Ar([Mt()],Tr.prototype,"enterkeyhint",2),Ar([Mt({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],Tr.prototype,"spellcheck",2),Ar([Yt("disabled",{waitUntilFirstUpdate:!0})],Tr.prototype,"handleDisabledChange",1),Ar([Yt("step",{waitUntilFirstUpdate:!0})],Tr.prototype,"handleStepChange",1),Ar([Yt("value",{waitUntilFirstUpdate:!0})],Tr.prototype,"handleValueChange",1),Tr=Ar([At("sd-input")],Tr);const Mr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Tr}},Symbol.toStringTag,{value:"Module"}));var Lr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,Dr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Br(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Lr(e,o,s),s};let jr=class extends ee{constructor(){super(...arguments),this.hasSlotController=new Qe(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="${ye("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="${so(this.href||void 0)}" target="${so(this.target||void 0)}" download="${so(this.download||void 0)}" rel="${so(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="${ye("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="${ye("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=[ee.styles,A`::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}`],Dr([Dt("a")],jr.prototype,"button",2),Dr([Mt({reflect:!0})],jr.prototype,"size",2),Dr([Mt({type:Boolean,reflect:!0})],jr.prototype,"inverted",2),Dr([Mt({type:Boolean,reflect:!0})],jr.prototype,"standalone",2),Dr([Mt()],jr.prototype,"href",2),Dr([Mt()],jr.prototype,"target",2),Dr([Mt()],jr.prototype,"download",2),jr=Dr([At("sd-link")],jr);const Vr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return jr}},Symbol.toStringTag,{value:"Module"}));var Ur=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Fr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Rr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ur(e,o,s),s};let Ir=class extends ee{constructor(){super(...arguments),this.hasSlotController=new Qe(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(),o=this.isAccordion(),i=(this.hasSlotController.test("[default]"),this.hasSlotController.test("main"),this.hasSlotController.test("description")),r=this.hasSlotController.test("children"),s=t?oo`a`:o?oo`summary`:oo`button`,n=this.vertical?"pb-3":"pb-2",a=ro`<${s} part="base" class="${ye("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",o?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-[1px]",this.vertical?"px-8":"px-4")}" aria-controls="${so(o?"navigation-item-details":void 0)}" aria-current="${so(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${so(e?this.disabled:void 0)}" href="${so(this.href||void 0)}" target="${so(t?this.target:void 0)}" download="${so(t?this.download:void 0)}" rel="${so(t&&this.target?"noreferrer noopener":void 0)}" role="${t?"link":"button"}" tabindex="${this.disabled?"-1":"0"}" @click="${o?this.handleClickSummary:e?this.handleClickButton:void 0}"><div class="${ye("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="${ye("relative pt-3 inline-flex justify-between items-center",o?"grow":"w-full",i?"pb-1":n,this.calculatePaddingX())}">${this.divider&&this.vertical?ro`<sd-divider part="divider" class="${ye("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?ro`<sd-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${ye("h-6 w-6 ml-2 transition-all",o?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-icon>`:""} </span>${i&&this.vertical?ro`<slot name="description" part="description" class="${ye("inline-block text-sm text-left text-black",o?"grow":"w-full",n,this.calculatePaddingX())}"></slot>`:""}</${s}>`;return o?ro`<details id="navigation-item-details" ?open="${this.open}" class="relative flex">${a}<slot name="children"></slot></details>`:ro`${a}`}};Ir.styles=[Xt,ee.styles,A`:host{box-sizing:border-box;position:relative;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],Fr([Mt({reflect:!0})],Ir.prototype,"href",2),Fr([Mt()],Ir.prototype,"target",2),Fr([Mt()],Ir.prototype,"download",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"current",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"disabled",2),Fr([Mt({reflect:!0})],Ir.prototype,"size",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"vertical",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"chevron",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"indented",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"relaxed",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"divider",2),Fr([Mt({type:Boolean,reflect:!0})],Ir.prototype,"open",2),Ir=Fr([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})
96
96
  /**
97
97
  * @license
98
98
  * Copyright 2017 Google LLC
99
99
  * SPDX-License-Identifier: BSD-3-Clause
100
- */("sd-navigation-item")],Fr);const Ir=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Fr}},Symbol.toStringTag,{value:"Module"}));var Hr=Object.defineProperty,Nr=Object.getOwnPropertyDescriptor,qr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Nr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Hr(e,o,s),s};const Zr=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),Kr=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"});let Wr=class extends te{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 ce(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=be(this,"notification.show",{dir:this.localize.dir()});await ae(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await ce(this.base);const{keyframes:t,options:e}=be(this,"notification.hide",{dir:this.localize.dir()});await ae(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,ve(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ve(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Kr: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="${fe("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="${fe("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="${fe("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="${fe("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>`}};Wr.styles=[Xt,te.styles,A`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],qr([Dt('[part~="base"]')],Wr.prototype,"base",2),qr([Mt({type:Boolean,reflect:!0})],Wr.prototype,"open",2),qr([Mt({type:Boolean,reflect:!0})],Wr.prototype,"closable",2),qr([Mt({reflect:!0})],Wr.prototype,"variant",2),qr([Mt({reflect:!0,attribute:"toast-stack"})],Wr.prototype,"toastStack",2),qr([Mt({type:Number})],Wr.prototype,"duration",2),qr([Mt({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Wr.prototype,"durationIndicator",2),qr([Yt("open",{waitUntilFirstUpdate:!0})],Wr.prototype,"handleOpenChange",1),qr([Yt("duration")],Wr.prototype,"handleDurationChange",1),Wr=qr([At("sd-notification")],Wr),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 Yr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Wr}},Symbol.toStringTag,{value:"Module"})),Xr=A`${Xt}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var Gr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Jr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Gr(e,o,s),s};let ts=class extends te{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=es(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=es(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=es(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=es(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const o=t.indexOf(e),i=es(e);null!==i&&(i.classList.add("sd-button-group__button"),i.classList.toggle("sd-button-group__button--first",0===o),i.classList.toggle("sd-button-group__button--inner",o>0&&o<t.length-1),i.classList.toggle("sd-button-group__button--last",o===t.length-1),i.classList.toggle("sd-button-group__button--radio","sd-radio-button"===i.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 es(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}ts.styles=Xr,Qr([Dt("slot")],ts.prototype,"defaultSlot",2),Qr([Lt()],ts.prototype,"disableRole",2),Qr([Mt()],ts.prototype,"label",2),ts=Qr([At("sd-button-group")],ts);var os=Object.defineProperty,is=Object.getOwnPropertyDescriptor,rs=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?is(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&os(e,o,s),s};let ss=class extends te{constructor(){super(...arguments),this.formControlController=new We(this),this.hasSlotController=new Je(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,Ge):t?(this.invalid=!0,Xe):(this.invalid=!1,Ye)}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"),o=this.getAllRadios(),i=this.value;e.disabled||(this.value=e.value,o.forEach((t=>t.checked=t===e)),this.value!==i&&(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)),o=e.find((t=>t.checked))??e[0],i=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,r=this.value;let s=e.indexOf(o)+i;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 o=this.getAllRadios();if(await Promise.all(o.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t.invalid=this.invalid}))),this.hasButtonGroup=o.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!o.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=o[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else o[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"),o=!!this.label||!!t,i=!!this.errorText||!!e,r=pt`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return pt`<fieldset part="form-control" class="${fe("border-0 p-0 m-0",i&&"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="${fe("mb-2 p-0 font-bold leading-normal text-black",o?"has-label flex":"hidden")}" aria-hidden="${!o}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${fe("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>`}};ss.dependencies={"sd-button-group":ts},ss.styles=[Xt,te.styles,A`: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}`],rs([Dt("slot:not([name])")],ss.prototype,"defaultSlot",2),rs([Dt("#validation-input")],ss.prototype,"validationInput",2),rs([Lt()],ss.prototype,"hasButtonGroup",2),rs([Lt()],ss.prototype,"defaultValue",2),rs([Lt()],ss.prototype,"invalid",2),rs([Lt()],ss.prototype,"errorText",2),rs([Mt()],ss.prototype,"label",2),rs([Mt()],ss.prototype,"name",2),rs([Mt({reflect:!0})],ss.prototype,"value",2),rs([Mt({reflect:!0})],ss.prototype,"size",2),rs([Mt({reflect:!0})],ss.prototype,"form",2),rs([Mt({type:Boolean,reflect:!0})],ss.prototype,"required",2),rs([Mt({reflect:!0})],ss.prototype,"orientation",2),rs([Yt("size",{waitUntilFirstUpdate:!0})],ss.prototype,"handleSizeChange",1),rs([Yt("invalid",{waitUntilFirstUpdate:!0})],ss.prototype,"handleInvalidChange",1),rs([Yt("value")],ss.prototype,"handleValueChange",1),ss=rs([At("sd-radio-group")],ss);const ns=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ss}},Symbol.toStringTag,{value:"Module"}));var as=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,ds=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ls(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&as(e,o,s),s};let cs=class extends te{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="${fe("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="${fe("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="${fe("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="${fe("ml-2 select-none inline-block",(this.disabled?"text-neutral-500":this.invalid&&"text-error")||"text-black")}"></slot></span>`}};cs.styles=[te.styles,A`: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}`],ds([Lt()],cs.prototype,"checked",2),ds([Lt()],cs.prototype,"hasFocus",2),ds([Mt({reflect:!0})],cs.prototype,"size",2),ds([Mt({type:Boolean,reflect:!0})],cs.prototype,"invalid",2),ds([Mt({type:Boolean,reflect:!0})],cs.prototype,"disabled",2),ds([Mt()],cs.prototype,"value",2),ds([Yt("checked")],cs.prototype,"handleCheckedChange",1),ds([Yt("disabled",{waitUntilFirstUpdate:!0})],cs.prototype,"handleDisabledChange",1),cs=ds([At("sd-radio")],cs);const hs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return cs}},Symbol.toStringTag,{value:"Module"}));var ps=Object.defineProperty,us=Object.getOwnPropertyDescriptor,ms=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?us(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ps(e,o,s),s};let gs=class extends te{constructor(){super(...arguments),this.formControlController=new We(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="${fe("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="${ro(this.value)}" .checked="${Lo(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="${fe("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="${fe("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="${fe("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};gs.styles=[te.styles,A`: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))}`],ms([Dt("input")],gs.prototype,"input",2),ms([Mt()],gs.prototype,"title",2),ms([Mt()],gs.prototype,"name",2),ms([Mt()],gs.prototype,"value",2),ms([Mt({type:Boolean,reflect:!0})],gs.prototype,"disabled",2),ms([Mt({type:Boolean,reflect:!0})],gs.prototype,"checked",2),ms([To("checked")],gs.prototype,"defaultChecked",2),ms([Mt({reflect:!0})],gs.prototype,"form",2),ms([Mt({type:Boolean,reflect:!0})],gs.prototype,"required",2),ms([Yt("disabled",{waitUntilFirstUpdate:!0})],gs.prototype,"handleDisabledChange",1),ms([Yt(["checked"],{waitUntilFirstUpdate:!0})],gs.prototype,"handleStateChange",1),gs=ms([At("sd-switch")],gs);const bs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return gs}},Symbol.toStringTag,{value:"Module"}));var vs=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,ys=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?fs(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&vs(e,o,s),s};let ws=class extends te{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")}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?eo`a`:eo`button`;return io`<${e} part="base" type="${ro(t?void 0:"button")}" href="${ro(t?this.href:void 0)}" rel="${ro(t&&this.target?"noreferrer noopener":void 0)}" target="${ro(t?this.target:void 0)}" download="${ro(t?this.download:void 0)}" ?disabled="${ro(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${fe("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><slot part="removable-indicator" name="removable-indicator" class="${fe(!this.removable&&"hidden",{lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot></${e}>`}};ws.styles=[te.styles,A`:host{display:inline-block}`],ys([Dt("a, button")],ws.prototype,"tag",2),ys([Mt({reflect:!0})],ws.prototype,"size",2),ys([Mt({type:Boolean,reflect:!0})],ws.prototype,"selected",2),ys([Mt({type:Boolean,reflect:!0})],ws.prototype,"removable",2),ys([Mt({type:Boolean,reflect:!0})],ws.prototype,"disabled",2),ys([Mt()],ws.prototype,"href",2),ys([Mt()],ws.prototype,"target",2),ys([Mt()],ws.prototype,"download",2),ws=ys([At("sd-tag")],ws);const xs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ws}},Symbol.toStringTag,{value:"Module"}));var ks=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,Cs=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?$s(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ks(e,o,s),s};let Ss=class extends te{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new Je(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-300"===this.variant||this.inset,e=this.hasSlotController.test("[default]"),o=this.hasSlotController.test("media"),i=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),pt`<div class="${fe("flex",{white:"bg-white","white border-neutral-300":"bg-white border border-neutral-300","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="${fe(!t&&"vertical"===this._orientation&&"mb-4",!o&&"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="${fe("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${fe("gap-2 mb-4",!i&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${fe("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="${fe(!e&&"hidden")}"><slot></slot></div></div></div>`}};Ss.styles=[te.styles,A`: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}`],Cs([Mt({reflect:!0})],Ss.prototype,"variant",2),Cs([Mt({reflect:!0,type:Number})],Ss.prototype,"breakpoint",2),Cs([Mt({type:Boolean,reflect:!0})],Ss.prototype,"inset",2),Cs([Dt('[part="base"]')],Ss.prototype,"teaser",2),Cs([Lt()],Ss.prototype,"_orientation",2),Ss=Cs([At("sd-teaser")],Ss);const _s=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ss}},Symbol.toStringTag,{value:"Module"}));var Es=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,zs=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Ps(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Es(e,o,s),s};let As=class extends te{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=le(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=le(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 ce(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=be(this,"tooltip.show",{dir:this.localize.dir()});await ae(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await ce(this.body);const{keyframes:t,options:e}=be(this,"tooltip.hide",{dir:this.localize.dir()});await ae(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,ve(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,ve(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return pt`<sd-popup part="base" exportparts="
100
+ */("sd-navigation-item")],Ir);const Hr=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ir}},Symbol.toStringTag,{value:"Module"}));var Nr=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Zr=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?qr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Nr(e,o,s),s};const Kr=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 ee{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 he(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=ve(this,"notification.show",{dir:this.localize.dir()});await le(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await he(this.base);const{keyframes:t,options:e}=ve(this,"notification.hide",{dir:this.localize.dir()});await le(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,fe(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,fe(this,"sd-after-hide")}async toast(){return new Promise((t=>{const e="bottom-center"===this.toastStack?Wr:Kr;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="${ye("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="${ye("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="${ye("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="${ye("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=[Xt,ee.styles,A`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],Zr([Dt('[part~="base"]')],Yr.prototype,"base",2),Zr([Mt({type:Boolean,reflect:!0})],Yr.prototype,"open",2),Zr([Mt({type:Boolean,reflect:!0})],Yr.prototype,"closable",2),Zr([Mt({reflect:!0})],Yr.prototype,"variant",2),Zr([Mt({reflect:!0,attribute:"toast-stack"})],Yr.prototype,"toastStack",2),Zr([Mt({type:Number})],Yr.prototype,"duration",2),Zr([Mt({type:Boolean,reflect:!0,attribute:"duration-indicator"})],Yr.prototype,"durationIndicator",2),Zr([Yt("open",{waitUntilFirstUpdate:!0})],Yr.prototype,"handleOpenChange",1),Zr([Yt("duration")],Yr.prototype,"handleDurationChange",1),Yr=Zr([At("sd-notification")],Yr),be("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),be("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"})),Gr=A`${Xt}:host{display:inline-block}.button-group{display:flex;flex-wrap:nowrap}`;var Jr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,ts=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Qr(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Jr(e,o,s),s};let es=class extends ee{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=os(t.target);null==e||e.classList.add("sd-button-group__button--focus")}handleBlur(t){const e=os(t.target);null==e||e.classList.remove("sd-button-group__button--focus")}handleMouseOver(t){const e=os(t.target);null==e||e.classList.add("sd-button-group__button--hover")}handleMouseOut(t){const e=os(t.target);null==e||e.classList.remove("sd-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const o=t.indexOf(e),i=os(e);null!==i&&(i.classList.add("sd-button-group__button"),i.classList.toggle("sd-button-group__button--first",0===o),i.classList.toggle("sd-button-group__button--inner",o>0&&o<t.length-1),i.classList.toggle("sd-button-group__button--last",o===t.length-1),i.classList.toggle("sd-button-group__button--radio","sd-radio-button"===i.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 os(t){const e="sd-button, sd-radio-button";return t.closest(e)??t.querySelector(e)}es.styles=Gr,ts([Dt("slot")],es.prototype,"defaultSlot",2),ts([Lt()],es.prototype,"disableRole",2),ts([Mt()],es.prototype,"label",2),es=ts([At("sd-button-group")],es);var is=Object.defineProperty,rs=Object.getOwnPropertyDescriptor,ss=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?rs(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&is(e,o,s),s};let ns=class extends ee{constructor(){super(...arguments),this.formControlController=new Ye(this),this.hasSlotController=new Qe(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,Je):t?(this.invalid=!0,Ge):(this.invalid=!1,Xe)}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"),o=this.getAllRadios(),i=this.value;e.disabled||(this.value=e.value,o.forEach((t=>t.checked=t===e)),this.value!==i&&(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)),o=e.find((t=>t.checked))??e[0],i=" "===t.key?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,r=this.value;let s=e.indexOf(o)+i;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 o=this.getAllRadios();if(await Promise.all(o.map((async t=>{await t.updateComplete,t.checked=t.value===this.value,t.size=this.size,t.invalid=this.invalid}))),this.hasButtonGroup=o.some((t=>"sd-radio-button"===t.tagName.toLowerCase())),!o.some((t=>t.checked)))if(this.hasButtonGroup){const e=null==(t=o[0].shadowRoot)?void 0:t.querySelector("button");e&&(e.tabIndex=0)}else o[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"),o=!!this.label||!!t,i=!!this.errorText||!!e,r=pt`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return pt`<fieldset part="form-control" class="${ye("border-0 p-0 m-0",i&&"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="${ye("mb-2 p-0 font-bold leading-normal text-black",o?"has-label flex":"hidden")}" aria-hidden="${!o}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${ye("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>`}};ns.dependencies={"sd-button-group":es},ns.styles=[Xt,ee.styles,A`: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}`],ss([Dt("slot:not([name])")],ns.prototype,"defaultSlot",2),ss([Dt("#validation-input")],ns.prototype,"validationInput",2),ss([Lt()],ns.prototype,"hasButtonGroup",2),ss([Lt()],ns.prototype,"defaultValue",2),ss([Lt()],ns.prototype,"invalid",2),ss([Lt()],ns.prototype,"errorText",2),ss([Mt()],ns.prototype,"label",2),ss([Mt()],ns.prototype,"name",2),ss([Mt({reflect:!0})],ns.prototype,"value",2),ss([Mt({reflect:!0})],ns.prototype,"size",2),ss([Mt({reflect:!0})],ns.prototype,"form",2),ss([Mt({type:Boolean,reflect:!0})],ns.prototype,"required",2),ss([Mt({reflect:!0})],ns.prototype,"orientation",2),ss([Yt("size",{waitUntilFirstUpdate:!0})],ns.prototype,"handleSizeChange",1),ss([Yt("invalid",{waitUntilFirstUpdate:!0})],ns.prototype,"handleInvalidChange",1),ss([Yt("value")],ns.prototype,"handleValueChange",1),ns=ss([At("sd-radio-group")],ns);const as=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ns}},Symbol.toStringTag,{value:"Module"}));var ls=Object.defineProperty,ds=Object.getOwnPropertyDescriptor,cs=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ds(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&ls(e,o,s),s};let hs=class extends ee{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="${ye("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="${ye("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="${ye("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="${ye("ml-2 select-none inline-block",(this.disabled?"text-neutral-500":this.invalid&&"text-error")||"text-black")}"></slot></span>`}};hs.styles=[ee.styles,A`: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}`],cs([Lt()],hs.prototype,"checked",2),cs([Lt()],hs.prototype,"hasFocus",2),cs([Mt({reflect:!0})],hs.prototype,"size",2),cs([Mt({type:Boolean,reflect:!0})],hs.prototype,"invalid",2),cs([Mt({type:Boolean,reflect:!0})],hs.prototype,"disabled",2),cs([Mt()],hs.prototype,"value",2),cs([Yt("checked")],hs.prototype,"handleCheckedChange",1),cs([Yt("disabled",{waitUntilFirstUpdate:!0})],hs.prototype,"handleDisabledChange",1),hs=cs([At("sd-radio")],hs);const ps=Object.freeze(Object.defineProperty({__proto__:null,get default(){return hs}},Symbol.toStringTag,{value:"Module"}));var us=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,gs=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ms(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&us(e,o,s),s};let bs=class extends ee{constructor(){super(...arguments),this.formControlController=new Ye(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="${ye("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="${so(this.value)}" .checked="${Bo(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="${ye("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="${ye("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="${ye("select-none inline-block ml-2 text-black",this.disabled?"text-neutral-500":"text-neutral-800")}"><slot></slot></span></label>`}};bs.styles=[ee.styles,A`: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))}`],gs([Dt("input")],bs.prototype,"input",2),gs([Mt()],bs.prototype,"title",2),gs([Mt()],bs.prototype,"name",2),gs([Mt()],bs.prototype,"value",2),gs([Mt({type:Boolean,reflect:!0})],bs.prototype,"disabled",2),gs([Mt({type:Boolean,reflect:!0})],bs.prototype,"checked",2),gs([Mo("checked")],bs.prototype,"defaultChecked",2),gs([Mt({reflect:!0})],bs.prototype,"form",2),gs([Mt({type:Boolean,reflect:!0})],bs.prototype,"required",2),gs([Yt("disabled",{waitUntilFirstUpdate:!0})],bs.prototype,"handleDisabledChange",1),gs([Yt(["checked"],{waitUntilFirstUpdate:!0})],bs.prototype,"handleStateChange",1),bs=gs([At("sd-switch")],bs);const vs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return bs}},Symbol.toStringTag,{value:"Module"}));var fs=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,ws=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?ys(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&fs(e,o,s),s};let xs=class extends ee{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")}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?oo`a`:oo`button`;return ro`<${e} part="base" type="${so(t?void 0:"button")}" href="${so(t?this.href:void 0)}" rel="${so(t&&this.target?"noreferrer noopener":void 0)}" target="${so(t?this.target:void 0)}" download="${so(t?this.download:void 0)}" ?disabled="${so(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${ye("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><slot part="removable-indicator" name="removable-indicator" class="${ye(!this.removable&&"hidden",{lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-icon library="system" name="close" label="remove"></sd-icon></slot></${e}>`}};xs.styles=[ee.styles,A`:host{display:inline-block}`],ws([Dt("a, button")],xs.prototype,"tag",2),ws([Mt({reflect:!0})],xs.prototype,"size",2),ws([Mt({type:Boolean,reflect:!0})],xs.prototype,"selected",2),ws([Mt({type:Boolean,reflect:!0})],xs.prototype,"removable",2),ws([Mt({type:Boolean,reflect:!0})],xs.prototype,"disabled",2),ws([Mt()],xs.prototype,"href",2),ws([Mt()],xs.prototype,"target",2),ws([Mt()],xs.prototype,"download",2),xs=ws([At("sd-tag")],xs);const ks=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xs}},Symbol.toStringTag,{value:"Module"}));var $s=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,Ss=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Cs(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&$s(e,o,s),s};let _s=class extends ee{constructor(){super(...arguments),this.variant="white",this.breakpoint=448,this.inset=!1,this.hasSlotController=new Qe(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]"),o=this.hasSlotController.test("media"),i=this.hasSlotController.test("meta");return this.hasSlotController.test("headline"),pt`<div class="${ye("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="${ye(!t&&"vertical"===this._orientation&&"mb-4",!o&&"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="${ye("flex flex-col text-left","horizontal"===this._orientation&&"flex flex-col","vertical"===this._orientation&&t&&"m-4")}" part="content"><div part="meta" class="${ye("gap-2 mb-4",!i&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="${ye("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="${ye(!e&&"hidden")}"><slot></slot></div></div></div>`}};_s.styles=[ee.styles,A`: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}`],Ss([Mt({reflect:!0})],_s.prototype,"variant",2),Ss([Mt({reflect:!0,type:Number})],_s.prototype,"breakpoint",2),Ss([Mt({type:Boolean,reflect:!0})],_s.prototype,"inset",2),Ss([Dt('[part="base"]')],_s.prototype,"teaser",2),Ss([Lt()],_s.prototype,"_orientation",2),_s=Ss([At("sd-teaser")],_s);const Es=Object.freeze(Object.defineProperty({__proto__:null,get default(){return _s}},Symbol.toStringTag,{value:"Module"}));var Ps=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,As=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?zs(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ps(e,o,s),s};let Os=class extends ee{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=de(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}}handleMouseOut(){if(this.hasTrigger("hover")){const t=de(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 he(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=ve(this,"tooltip.show",{dir:this.localize.dir()});await le(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await he(this.body);const{keyframes:t,options:e}=ve(this,"tooltip.hide",{dir:this.localize.dir()});await le(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,fe(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,fe(this,"sd-after-hide")}render(){const t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return pt`<sd-popup part="base" exportparts="
101
101
  popup:base__popup,
102
102
  arrow:base__arrow
103
- " class="${fe(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="${fe("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${fe(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>`}};As.styles=[te.styles,z(xo),A`: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([Dt("slot:not([name])")],As.prototype,"defaultSlot",2),zs([Dt("#tooltip")],As.prototype,"body",2),zs([Dt("sd-popup")],As.prototype,"popup",2),zs([Mt()],As.prototype,"content",2),zs([Mt({reflect:!0})],As.prototype,"placement",2),zs([Mt()],As.prototype,"size",2),zs([Mt({type:Boolean,reflect:!0})],As.prototype,"disabled",2),zs([Mt({type:Boolean,reflect:!0})],As.prototype,"open",2),zs([Mt()],As.prototype,"trigger",2),zs([Mt({type:Boolean})],As.prototype,"hoist",2),zs([Yt("open",{waitUntilFirstUpdate:!0})],As.prototype,"handleOpenChange",1),zs([Yt(["content","hoist","placement"])],As.prototype,"handleOptionsChange",1),zs([Yt("disabled")],As.prototype,"handleDisabledChange",1),As=zs([At("sd-tooltip")],As),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 Os=Object.freeze(Object.defineProperty({__proto__:null,get default(){return As}},Symbol.toStringTag,{value:"Module"}));var Ts=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,Ls=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Ms(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ts(e,o,s),s};let Bs=class extends te{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new Je(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="${fe(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="${fe(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="${fe(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="${fe(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>`}};Bs.styles=[te.styles,A`: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%}`],Ls([Dt("[part=base]")],Bs.prototype,"hostEl",2),Ls([Mt({type:Boolean,reflect:!0})],Bs.prototype,"playing",2),Ls([Mt({type:Boolean,reflect:!0})],Bs.prototype,"overlay",2),Ls([Mt({type:Boolean})],Bs.prototype,"isBelowBreakpoint",2),Bs=Ls([At("sd-video")],Bs);const Ds=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Bs}},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"]={});
103
+ " class="${ye(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="${ye("lg"===this.size?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-icon library="system" name="info-circle" class="${ye(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>`}};Os.styles=[ee.styles,z(ko),A`: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}`],As([Dt("slot:not([name])")],Os.prototype,"defaultSlot",2),As([Dt("#tooltip")],Os.prototype,"body",2),As([Dt("sd-popup")],Os.prototype,"popup",2),As([Mt()],Os.prototype,"content",2),As([Mt({reflect:!0})],Os.prototype,"placement",2),As([Mt()],Os.prototype,"size",2),As([Mt({type:Boolean,reflect:!0})],Os.prototype,"disabled",2),As([Mt({type:Boolean,reflect:!0})],Os.prototype,"open",2),As([Mt()],Os.prototype,"trigger",2),As([Mt({type:Boolean})],Os.prototype,"hoist",2),As([Yt("open",{waitUntilFirstUpdate:!0})],Os.prototype,"handleOpenChange",1),As([Yt(["content","hoist","placement"])],Os.prototype,"handleOptionsChange",1),As([Yt("disabled")],Os.prototype,"handleDisabledChange",1),Os=As([At("sd-tooltip")],Os),be("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),be("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});const Ts=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Os}},Symbol.toStringTag,{value:"Module"}));var Ms=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,Bs=(t,e,o,i)=>{for(var r,s=i>1?void 0:i?Ls(e,o):e,n=t.length-1;n>=0;n--)(r=t[n])&&(s=(i?r(e,o,s):r(s))||s);return i&&s&&Ms(e,o,s),s};let Ds=class extends ee{constructor(){super(...arguments),this.playing=!1,this.overlay=!1,this.isBelowBreakpoint=!1,this.hasSlotController=new Qe(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="${ye(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="${ye(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="${ye(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="${ye(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>`}};Ds.styles=[ee.styles,A`: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%}`],Bs([Dt("[part=base]")],Ds.prototype,"hostEl",2),Bs([Mt({type:Boolean,reflect:!0})],Ds.prototype,"playing",2),Bs([Mt({type:Boolean,reflect:!0})],Ds.prototype,"overlay",2),Bs([Mt({type:Boolean})],Ds.prototype,"isBelowBreakpoint",2),Ds=Bs([At("sd-video")],Ds);const js=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ds}},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"]={});