@solid-design-system/components 3.22.17 → 3.22.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. package/dist/components/es/select.js +3 -3
  2. package/dist/components/es/solid-components2.js +1 -1
  3. package/dist/components/umd/solid-components.js +4 -4
  4. package/dist/custom-elements.json +1 -1
  5. package/dist/package/components/select/select.d.ts +1 -0
  6. package/dist/package/components/select/select.js +7 -2
  7. package/dist/package/translations/de.js +1 -0
  8. package/dist/package/translations/en.js +1 -0
  9. package/dist/package/utilities/localize.d.ts +1 -0
  10. package/dist/versioned-components/es/accordion-group.js +1 -1
  11. package/dist/versioned-components/es/accordion.js +1 -1
  12. package/dist/versioned-components/es/audio.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/dialog.js +1 -1
  21. package/dist/versioned-components/es/divider.js +1 -1
  22. package/dist/versioned-components/es/drawer.js +1 -1
  23. package/dist/versioned-components/es/dropdown.js +1 -1
  24. package/dist/versioned-components/es/expandable.js +1 -1
  25. package/dist/versioned-components/es/flipcard.js +1 -1
  26. package/dist/versioned-components/es/form.js +1 -1
  27. package/dist/versioned-components/es/header.js +1 -1
  28. package/dist/versioned-components/es/icon.js +1 -1
  29. package/dist/versioned-components/es/include.js +1 -1
  30. package/dist/versioned-components/es/input.js +1 -1
  31. package/dist/versioned-components/es/link.js +1 -1
  32. package/dist/versioned-components/es/map-marker.js +1 -1
  33. package/dist/versioned-components/es/navigation-item.js +1 -1
  34. package/dist/versioned-components/es/notification.js +1 -1
  35. package/dist/versioned-components/es/option.js +1 -1
  36. package/dist/versioned-components/es/quickfact.js +1 -1
  37. package/dist/versioned-components/es/radio-button.js +1 -1
  38. package/dist/versioned-components/es/radio-group.js +1 -1
  39. package/dist/versioned-components/es/radio.js +1 -1
  40. package/dist/versioned-components/es/scrollable.js +1 -1
  41. package/dist/versioned-components/es/select.js +3 -3
  42. package/dist/versioned-components/es/solid-components2.js +2 -2
  43. package/dist/versioned-components/es/spinner.js +1 -1
  44. package/dist/versioned-components/es/step-group.js +1 -1
  45. package/dist/versioned-components/es/step.js +1 -1
  46. package/dist/versioned-components/es/switch.js +1 -1
  47. package/dist/versioned-components/es/tab-group.js +1 -1
  48. package/dist/versioned-components/es/tab-panel.js +1 -1
  49. package/dist/versioned-components/es/tab.js +1 -1
  50. package/dist/versioned-components/es/tag.js +1 -1
  51. package/dist/versioned-components/es/teaser-media.js +1 -1
  52. package/dist/versioned-components/es/teaser.js +1 -1
  53. package/dist/versioned-components/es/textarea.js +1 -1
  54. package/dist/versioned-components/es/tooltip.js +2 -2
  55. package/dist/versioned-components/es/video.js +1 -1
  56. package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
  57. package/dist/versioned-package/_components/button-group/button-group.js +11 -11
  58. package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
  59. package/dist/versioned-package/components/accordion/accordion.js +2 -2
  60. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
  61. package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
  62. package/dist/versioned-package/components/audio/audio.d.ts +1 -1
  63. package/dist/versioned-package/components/audio/audio.js +6 -6
  64. package/dist/versioned-package/components/badge/badge.d.ts +1 -1
  65. package/dist/versioned-package/components/badge/badge.js +1 -1
  66. package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
  67. package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
  68. package/dist/versioned-package/components/button/button.d.ts +1 -1
  69. package/dist/versioned-package/components/button/button.js +4 -4
  70. package/dist/versioned-package/components/carousel/carousel.d.ts +1 -1
  71. package/dist/versioned-package/components/carousel/carousel.js +6 -6
  72. package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
  73. package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
  74. package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
  75. package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
  76. package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
  77. package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
  78. package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
  79. package/dist/versioned-package/components/dialog/dialog.js +2 -2
  80. package/dist/versioned-package/components/divider/divider.d.ts +1 -1
  81. package/dist/versioned-package/components/divider/divider.js +2 -2
  82. package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
  83. package/dist/versioned-package/components/drawer/drawer.js +2 -2
  84. package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
  85. package/dist/versioned-package/components/dropdown/dropdown.js +8 -8
  86. package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
  87. package/dist/versioned-package/components/expandable/expandable.js +2 -2
  88. package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
  89. package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
  90. package/dist/versioned-package/components/header/header.d.ts +1 -1
  91. package/dist/versioned-package/components/header/header.js +4 -4
  92. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  93. package/dist/versioned-package/components/icon/icon.js +1 -1
  94. package/dist/versioned-package/components/include/include.d.ts +1 -1
  95. package/dist/versioned-package/components/include/include.js +1 -1
  96. package/dist/versioned-package/components/input/input.d.ts +1 -1
  97. package/dist/versioned-package/components/input/input.js +3 -3
  98. package/dist/versioned-package/components/link/link.d.ts +1 -1
  99. package/dist/versioned-package/components/link/link.js +2 -2
  100. package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
  101. package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
  102. package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
  103. package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
  104. package/dist/versioned-package/components/notification/notification.d.ts +1 -1
  105. package/dist/versioned-package/components/notification/notification.js +5 -5
  106. package/dist/versioned-package/components/option/option.d.ts +1 -1
  107. package/dist/versioned-package/components/option/option.js +2 -2
  108. package/dist/versioned-package/components/popup/popup.d.ts +1 -1
  109. package/dist/versioned-package/components/popup/popup.js +1 -1
  110. package/dist/versioned-package/components/quickfact/quickfact.d.ts +1 -1
  111. package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
  112. package/dist/versioned-package/components/radio/radio.d.ts +1 -1
  113. package/dist/versioned-package/components/radio/radio.js +2 -2
  114. package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
  115. package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
  116. package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
  117. package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
  118. package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
  119. package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
  120. package/dist/versioned-package/components/select/select.d.ts +5 -4
  121. package/dist/versioned-package/components/select/select.js +31 -26
  122. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  123. package/dist/versioned-package/components/spinner/spinner.js +1 -1
  124. package/dist/versioned-package/components/step/step.d.ts +1 -1
  125. package/dist/versioned-package/components/step/step.js +2 -2
  126. package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
  127. package/dist/versioned-package/components/step-group/step-group.js +2 -2
  128. package/dist/versioned-package/components/switch/switch.d.ts +1 -1
  129. package/dist/versioned-package/components/switch/switch.js +1 -1
  130. package/dist/versioned-package/components/tab/tab.d.ts +1 -1
  131. package/dist/versioned-package/components/tab/tab.js +2 -2
  132. package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
  133. package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
  134. package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
  135. package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
  136. package/dist/versioned-package/components/tag/tag.d.ts +1 -1
  137. package/dist/versioned-package/components/tag/tag.js +2 -2
  138. package/dist/versioned-package/components/teaser/teaser.js +1 -1
  139. package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
  140. package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
  141. package/dist/versioned-package/components/textarea/textarea.js +2 -2
  142. package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
  143. package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
  144. package/dist/versioned-package/components/video/video.d.ts +1 -1
  145. package/dist/versioned-package/components/video/video.js +2 -2
  146. package/dist/versioned-package/internal/form.js +3 -3
  147. package/dist/versioned-package/styles/headline/headline.css.js +1 -1
  148. package/dist/versioned-package/translations/de.js +1 -0
  149. package/dist/versioned-package/translations/en.js +1 -0
  150. package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
  151. package/dist/versioned-package/utilities/localize.d.ts +1 -0
  152. package/dist/versioned-styles/solid-styles.css +1 -1
  153. package/dist/vscode.html-custom-data.json +45 -45
  154. package/dist/web-types.json +46 -46
  155. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
- import{s as t,a as e}from"./animate.js";import{S as s,L as i,x as o,t as l,j as a,c as n,i as r,e as h,n as p,a as d}from"./solid-components2.js";import{d as c}from"./default-value.js";import{F as u}from"./form.js";import{g as m,s as y}from"./animation-registry.js";import{H as b}from"./slot.js";import{r as v}from"./state.js";import{o as f}from"./query-assigned-elements.js";import{s as g}from"./scroll.js";import{o as x,S as w}from"./icon.js";import{w as O}from"./event.js";import{w as C}from"./watch.js";import S from"./tag.js";var $=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=(t,e,s,i)=>{for(var o,l=i>1?void 0:i?k(e,s):e,a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i?o(e,s,l):o(l))||l);return i&&l&&$(e,s,l),l};let I=class extends s{constructor(){super(...arguments),this.formControlController=new u(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new b(this,"help-text","label"),this.localize=new i(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",this.hasFocus=!1,this.selectedOptions=[],this.showValidStyle=!1,this.showInvalidStyle=!1,this.defaultValue="",this.open=!1,this.size="lg",this.placement="bottom",this.label="",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.disabled=!1,this.helpText="",this.currentPlacement=this.placement,this.clearable=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.styleOnValid=!1,this.hoist=!1,this.getTag=t=>o`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{s as t,a as e}from"./animate.js";import{S as s,L as i,x as o,t as l,j as a,c as n,i as r,e as h,n as d,a as p}from"./solid-components2.js";import{d as c}from"./default-value.js";import{F as u}from"./form.js";import{g as m,s as y}from"./animation-registry.js";import{H as b}from"./slot.js";import{r as v}from"./state.js";import{o as g}from"./query-assigned-elements.js";import{s as f}from"./scroll.js";import{o as x,S as w}from"./icon.js";import{w as O}from"./event.js";import{w as C}from"./watch.js";import S from"./tag.js";var $=Object.defineProperty,k=Object.getOwnPropertyDescriptor,T=(t,e,s,i)=>{for(var o,l=i>1?void 0:i?k(e,s):e,a=t.length-1;a>=0;a--)(o=t[a])&&(l=(i?o(e,s,l):o(l))||l);return i&&l&&$(e,s,l),l};let D=class extends s{constructor(){super(...arguments),this.formControlController=new u(this,{assumeInteractionOn:["sd-blur","sd-input"]}),this.hasSlotController=new b(this,"help-text","label"),this.localize=new i(this),this.typeToSelectString="",this.hasHover=!1,this.displayLabel="",this.deletedTagLabel="",this.hasFocus=!1,this.selectedOptions=[],this.showValidStyle=!1,this.showInvalidStyle=!1,this.defaultValue="",this.open=!1,this.size="lg",this.placement="bottom",this.label="",this.placeholder=this.localize.term("selectDefaultPlaceholder"),this.disabled=!1,this.helpText="",this.currentPlacement=this.placement,this.clearable=!1,this.multiple=!1,this.useTags=!1,this.maxOptionsVisible=3,this.form="",this.name="",this.value="",this.required=!1,this.styleOnValid=!1,this.hoist=!1,this.getTag=t=>o`<sd-tag ?disabled="${this.disabled}" part="tag" exportparts="
2
2
  base:tag__base,
3
3
  content:tag__content,
4
4
  removable-indicator:tag__removable-indicator,
5
- " size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,s=null!==e.closest(".select__clear"),i=null!==e.closest("sd-icon-button");if(!s&&!i){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),s=e.indexOf(this.currentOption);let i=Math.max(0,s);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(i=s+1,i>e.length-1&&(i=0)):"ArrowUp"===t.key?(i=s-1,i<0&&(i=e.length-1)):"Home"===t.key?i=0:"End"===t.key&&(i=e.length-1),this.setCurrentOption(e[i])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),s=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==s&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],s=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),s.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),s=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),s.length&&s.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const s=this.getTag(t,e);return o`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof s?x(s):s}</div>`}return e===this.maxOptionsVisible?o`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:o``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await t(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:s,options:i}=m(this,"select.show",{dir:this.localize.dir()});await e(this.popup.popup,s,i),this.currentOption&&g(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await t(this);const{keyframes:s,options:i}=m(this,"select.hide",{dir:this.localize.dir()});await e(this.popup.popup,s,i),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,O(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,O(this,"sd-after-hide");this.open=!1}checkValidity(){var t;return null==(t=this.valueInput)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){this.hasSlotController.test("[default]");const t=this.hasSlotController.test("label"),e=(this.hasSlotController.test("clear-icon"),this.hasSlotController.test("expand-icon"),this.hasSlotController.test("help-text")),s=!!this.label||!!t,i=!!this.helpText||!!e,a=this.clearable&&!this.disabled&&this.value.length>0,n=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",r=this.disabled?"cursor-not-allowed":"cursor-pointer",h={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],p={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return o`<div part="form-control" class="${l("relative text-left",r,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${s&&"inline-block"}" aria-hidden="${s?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${l("relative w-full bg-white","disabled"===n?"text-neutral-500":"text-black")}"><div part="border" class="${l("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[n],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${l("inline-flex relative w-full","bottom"===this.currentPlacement?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
5
+ " size="${"sm"===this.size?"sm":"lg"}" removable @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-tag>`,this.handleDocumentFocusIn=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()},this.handleDocumentKeyDown=t=>{const e=t.target,s=null!==e.closest(".select__clear"),i=null!==e.closest("sd-icon-button");if(!s&&!i){if("Escape"===t.key&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),"Enter"===t.key||" "===t.key&&""===this.typeToSelectString)return t.preventDefault(),t.stopImmediatePropagation(),this.open?void(this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))):void this.show();if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){const e=this.getAllOptions(),s=e.indexOf(this.currentOption);let i=Math.max(0,s);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;"ArrowDown"===t.key?(i=s+1,i>e.length-1&&(i=0)):"ArrowUp"===t.key?(i=s-1,i<0&&(i=e.length-1)):"Home"===t.key?i=0:"End"===t.key&&(i=e.length-1),this.setCurrentOption(e[i])}if(1===t.key.length||"Backspace"===t.key){const e=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if("Backspace"===t.key)return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout((()=>this.typeToSelectString=""),1e3),"Backspace"===t.key?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(const t of e)if(t.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(t);break}}}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.applySizeToOptions(),this.open=!1}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){const e=t.composedPath().some((t=>t instanceof HTMLSlotElement&&"removable-indicator"===t.name));this.disabled||e||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),""!==this.value&&(this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then((()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})))}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){const e=t.target.closest("sd-option"),s=this.value;e&&!e.disabled&&(this.multiple?this.toggleOptionSelection(e):this.setSelectedOptions(e),this.updateComplete.then((()=>this.displayInput.focus({preventScroll:!0}))),this.value!==s&&this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],s=[];customElements.get("sd-option")?(t.forEach((t=>{this.multiple&&(t.checkbox=!0),s.push(t.value)})),this.setSelectedOptions(t.filter((t=>e.includes(t.value))))):customElements.whenDefined("sd-option").then((()=>this.handleDefaultSlotChange()))}handleTagRemove(t,e){t.stopPropagation(),this.disabled||(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then((()=>{this.emit("sd-input"),this.emit("sd-change")})))}getAllOptions(){return[...this.querySelectorAll("sd-option")]}getFirstOption(){return this.querySelector("sd-option")}setCurrentOption(t){this.getAllOptions().forEach((t=>{t.current=!1,t.tabIndex=-1})),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){const e=this.getAllOptions(),s=Array.isArray(t)?t:[t];e.forEach((t=>t.selected=!1)),s.length&&s.forEach((t=>t.selected=!0)),this.selectionChanged()}toggleOptionSelection(t,e){t.selected=!0===e||!1===e?e:!t.selected,this.selectionChanged()}selectionChanged(){var t,e;this.selectedOptions=this.getAllOptions().filter((t=>t.selected)),this.multiple?(this.value=this.selectedOptions.map((t=>t.value)),this.useTags||0===this.value.length?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(null==(t=this.selectedOptions[0])?void 0:t.value)??"",this.displayLabel=(null==(e=this.selectedOptions[0])?void 0:e.getTextLabel())??""),this.updateComplete.then((()=>{this.formControlController.updateValidity()}))}get tags(){return this.selectedOptions.map(((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){const s=this.getTag(t,e);return o`<div @sd-remove="${e=>this.handleTagRemove(e,t)}">${"string"==typeof s?x(s):s}</div>`}return e===this.maxOptionsVisible?o`<sd-tag size="${"sm"===this.size?"sm":"lg"}" ?disabled="${this.disabled}">+${this.selectedOptions.length-e}</sd-tag>`:o``}))}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){const e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){const t=this.getAllOptions();customElements.get("sd-option")&&t.forEach((t=>{t.checkbox=this.multiple}))}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await t(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame((()=>{this.setCurrentOption(this.currentOption)}));const{keyframes:s,options:i}=m(this,"select.show",{dir:this.localize.dir()});await e(this.popup.popup,s,i),this.currentOption&&f(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await t(this);const{keyframes:s,options:i}=m(this,"select.hide",{dir:this.localize.dir()});await e(this.popup.popup,s,i),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach((t=>{t.size=this.size}))}handleValueChange(){const t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter((t=>e.includes(t.value))))}async show(){if(!this.open&&!this.disabled)return this.open=!0,O(this,"sd-after-show");this.open=!1}async hide(){if(this.open&&!this.disabled)return this.open=!1,O(this,"sd-after-hide");this.open=!1}checkValidity(){var t;return null==(t=this.valueInput)?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){this.hasSlotController.test("[default]");const t=this.hasSlotController.test("label"),e=(this.hasSlotController.test("clear-icon"),this.hasSlotController.test("expand-icon"),this.hasSlotController.test("help-text")),s=!!this.label||!!t,i=!!this.helpText||!!e,a=this.clearable&&!this.disabled&&this.value.length>0,n=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",r=this.disabled?"cursor-not-allowed":"cursor-pointer",h={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],d={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return o`<div part="form-control" class="${l("relative text-left",r,"sm"===this.size?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span><div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${s&&"inline-block"}" aria-hidden="${s?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${l("relative w-full bg-white","disabled"===n?"text-neutral-500":"text-black")}"><div part="border" class="${l("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{disabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[n],this.open&&("bottom"===this.currentPlacement?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${l("inline-flex relative w-full","bottom"===this.currentPlacement?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
6
6
  popup:popup__content,
7
- "><div part="combobox" class="${l("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${l("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",r,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?o`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${l("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",r)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?o`<button part="clear-button" class="${l("select__clear flex justify-center",h)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${l("text-icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?o`<sd-icon part="invalid-icon" class="${l(h,p,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-icon part="valid-icon" class="${l("flex-shrink-0 text-success",h,p)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${l("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",p)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${l("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${i?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};I.dependencies={"sd-icon":w,"sd-popup":a,"sd-tag":S},I.styles=[n,s.styles,r`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],D([f({selector:"sd-option"})],I.prototype,"_optionsInDefaultSlot",2),D([h("sd-popup")],I.prototype,"popup",2),D([h('[part="combobox"]')],I.prototype,"combobox",2),D([h('[part="display-input"]')],I.prototype,"displayInput",2),D([h(".value-input")],I.prototype,"valueInput",2),D([h('[part="listbox"]')],I.prototype,"listbox",2),D([h("#invalid-message")],I.prototype,"invalidMessage",2),D([v()],I.prototype,"hasHover",2),D([v()],I.prototype,"displayLabel",2),D([v()],I.prototype,"hasFocus",2),D([v()],I.prototype,"currentOption",2),D([v()],I.prototype,"selectedOptions",2),D([v()],I.prototype,"showValidStyle",2),D([v()],I.prototype,"showInvalidStyle",2),D([c()],I.prototype,"defaultValue",2),D([p({type:Boolean,reflect:!0})],I.prototype,"open",2),D([p({reflect:!0})],I.prototype,"size",2),D([p({reflect:!0})],I.prototype,"placement",2),D([p()],I.prototype,"label",2),D([p()],I.prototype,"placeholder",2),D([p({type:Boolean,reflect:!0})],I.prototype,"disabled",2),D([p({attribute:"help-text"})],I.prototype,"helpText",2),D([v()],I.prototype,"currentPlacement",2),D([p({type:Boolean})],I.prototype,"clearable",2),D([p({type:Boolean,reflect:!0})],I.prototype,"multiple",2),D([p({type:Boolean,reflect:!0})],I.prototype,"useTags",2),D([p({attribute:"max-options-visible",type:Number})],I.prototype,"maxOptionsVisible",2),D([p({reflect:!0})],I.prototype,"form",2),D([p()],I.prototype,"name",2),D([p({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],I.prototype,"value",2),D([p({type:Boolean,reflect:!0})],I.prototype,"required",2),D([p({type:Boolean,reflect:!0,attribute:"style-on-valid"})],I.prototype,"styleOnValid",2),D([p({type:Boolean})],I.prototype,"hoist",2),D([p()],I.prototype,"getTag",2),D([C("useTags",{waitUntilFirstUpdate:!0})],I.prototype,"handleUseTagsChange",1),D([C("disabled",{waitUntilFirstUpdate:!0})],I.prototype,"handleDisabledChange",1),D([C("open",{waitUntilFirstUpdate:!0})],I.prototype,"handleOpenChange",1),D([C("size",{waitUntilFirstUpdate:!0})],I.prototype,"applySizeToOptions",1),D([C("value",{waitUntilFirstUpdate:!0})],I.prototype,"handleValueChange",1),I=D([d("sd-select")],I),y("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),y("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{I as default};
7
+ "><div part="combobox" class="${l("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${l("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",r,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?o`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""} <input class="${l("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",r)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?o`<button part="clear-button" class="${l("select__clear flex justify-center",h)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${l("text-icon-fill-neutral-800",d)}" library="system" name="closing-round"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?o`<sd-icon part="invalid-icon" class="${l(h,d,"text-error")}" library="system" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-icon part="valid-icon" class="${l("flex-shrink-0 text-success",h,d)}" library="system" name="status-check"></sd-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${l("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",d)}"><sd-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${l("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow","bottom"===this.currentPlacement?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${i?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};D.dependencies={"sd-icon":w,"sd-popup":a,"sd-tag":S},D.styles=[n,s.styles,r`:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249) / var(--tw-bg-opacity))}`],T([g({selector:"sd-option"})],D.prototype,"_optionsInDefaultSlot",2),T([h("sd-popup")],D.prototype,"popup",2),T([h('[part="combobox"]')],D.prototype,"combobox",2),T([h('[part="display-input"]')],D.prototype,"displayInput",2),T([h(".value-input")],D.prototype,"valueInput",2),T([h('[part="listbox"]')],D.prototype,"listbox",2),T([h("#invalid-message")],D.prototype,"invalidMessage",2),T([v()],D.prototype,"hasHover",2),T([v()],D.prototype,"displayLabel",2),T([v()],D.prototype,"deletedTagLabel",2),T([v()],D.prototype,"hasFocus",2),T([v()],D.prototype,"currentOption",2),T([v()],D.prototype,"selectedOptions",2),T([v()],D.prototype,"showValidStyle",2),T([v()],D.prototype,"showInvalidStyle",2),T([c()],D.prototype,"defaultValue",2),T([d({type:Boolean,reflect:!0})],D.prototype,"open",2),T([d({reflect:!0})],D.prototype,"size",2),T([d({reflect:!0})],D.prototype,"placement",2),T([d()],D.prototype,"label",2),T([d()],D.prototype,"placeholder",2),T([d({type:Boolean,reflect:!0})],D.prototype,"disabled",2),T([d({attribute:"help-text"})],D.prototype,"helpText",2),T([v()],D.prototype,"currentPlacement",2),T([d({type:Boolean})],D.prototype,"clearable",2),T([d({type:Boolean,reflect:!0})],D.prototype,"multiple",2),T([d({type:Boolean,reflect:!0})],D.prototype,"useTags",2),T([d({attribute:"max-options-visible",type:Number})],D.prototype,"maxOptionsVisible",2),T([d({reflect:!0})],D.prototype,"form",2),T([d()],D.prototype,"name",2),T([d({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],D.prototype,"value",2),T([d({type:Boolean,reflect:!0})],D.prototype,"required",2),T([d({type:Boolean,reflect:!0,attribute:"style-on-valid"})],D.prototype,"styleOnValid",2),T([d({type:Boolean})],D.prototype,"hoist",2),T([d()],D.prototype,"getTag",2),T([C("useTags",{waitUntilFirstUpdate:!0})],D.prototype,"handleUseTagsChange",1),T([C("disabled",{waitUntilFirstUpdate:!0})],D.prototype,"handleDisabledChange",1),T([C("open",{waitUntilFirstUpdate:!0})],D.prototype,"handleOpenChange",1),T([C("size",{waitUntilFirstUpdate:!0})],D.prototype,"applySizeToOptions",1),T([C("value",{waitUntilFirstUpdate:!0})],D.prototype,"handleValueChange",1),D=T([p("sd-select")],D),y("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),y("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});export{D as default};
@@ -1,4 +1,4 @@
1
- const t={name:"default",resolver:t=>{const e=t.split("/");return("content"===e[0]||"system"===e[0])&&(t="union-investment/"+t),`https://celum-icons.fe.union-investment.de/${t}.svg`},mutator:t=>{const e={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return e.currentColorFills=t.querySelectorAll('[fill="#00358e" i]'),e.currentColorStrokes=t.querySelectorAll('[stroke="#00358e" i]'),e.greenFills=t.querySelectorAll('[fill="#2d9d00" i]'),e.greenStrokes=t.querySelectorAll('[stroke="#2d9d00" i]'),e.currentColorFills.forEach((t=>{t.setAttribute("fill","currentColor")})),e.currentColorStrokes.forEach((t=>{t.setAttribute("stroke","currentColor")})),e.greenFills.forEach((t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),e.greenStrokes.forEach((t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),t}},e=Object.freeze(Object.defineProperty({__proto__:null,default:t},Symbol.toStringTag,{value:"Module"})),r={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>',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-check":'\n <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 13">\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>',"magnifying-glass":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 20.293l-6.967-6.96c-0.046-0.046-0.096-0.087-0.15-0.124l-0.004-0.002c0.882-1.162 1.413-2.632 1.413-4.227 0-3.881-3.146-7.027-7.027-7.027s-7.027 3.146-7.027 7.027c0 3.881 3.146 7.027 7.027 7.027 1.594 0 3.065-0.531 4.244-1.426l-0.017 0.013c0.039 0.057 0.081 0.107 0.127 0.153l6.967 6.967c0.181 0.181 0.431 0.292 0.707 0.292s0.526-0.112 0.707-0.292v0c0.183-0.181 0.296-0.432 0.296-0.71s-0.113-0.529-0.296-0.71l-0-0zM9 14c-2.761 0-5-2.239-5-5s2.239-5 5-5c2.761 0 5 2.239 5 5v0c0 2.761-2.239 5-5 5v0z"></path></svg>',transcript:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <path d="M19 22H5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h9a1 1 0 0 1 .707.293l5 5c.186.187.293.444.293.707v13a1 1 0 0 1-1 1ZM6 20h12V8.413L13.587 4H6v16Z"/> <path d="M19 10h-6a1 1 0 0 1-1-1V3a1 1 0 1 1 2 0v5h5a1 1 0 1 1 0 2Zm-3 4H8a1 1 0 1 1 0-2h8a1 1 0 1 1 0 2Zm-2 4H8a1 1 0 1 1 0-2h6a1 1 0 1 1 0 2Z"/></svg>',mute:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm12.374-8.96a1 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.414L18.747 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/></svg>',volume:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm9.217-13.48a1 1 0 0 0-.44 1.339l-.003-.006c1.177 2.191 1.876 4.792 1.893 7.555V12a16.365 16.365 0 0 1-1.936 7.638l.043-.088a1.002 1.002 0 0 0 .438 1.331l.006.003c.13.071.285.114.449.117h.001a.999.999 0 0 0 .89-.544l.003-.006c1.312-2.45 2.09-5.357 2.107-8.445v-.005c-.017-3.093-.794-6-2.155-8.549l.048.099a1.001 1.001 0 0 0-1.349-.44l.006-.003-.001-.001Z"/><path d="M14.447 5.167a1 1 0 0 0-.278 1.39l-.002-.004C15.35 8.333 16 10.266 16 12s-.667 3.667-1.833 5.447a1 1 0 0 0 1.664 1.11l.002-.004C17.23 16.45 18 14.12 18 12s-.77-4.45-2.167-6.553a1 1 0 0 0-1.39-.278l.004-.002Z"/></svg>'},o={name:"system",resolver:t=>t in r?`data:image/svg+xml,${encodeURIComponent(r[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},a=Object.freeze(Object.defineProperty({__proto__:null,default:o,icons:r},Symbol.toStringTag,{value:"Module"}));let i=[o,t],n=[];function s(t){n.push(t)}function l(t){n=n.filter((e=>e!==t))}function c(t){return i.find((e=>e.name===t))}function d(t,e){p(t),i.push({name:t,resolver:e.resolver,mutator:e.mutator}),n.forEach((e=>{e.library===t&&e.setIcon()}))}function p(t){i=i.filter((e=>e.name!==t))}const h=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:c,registerIconLibrary:d,unregisterIconLibrary:p,unwatchIcon:l,watchIcon:s},Symbol.toStringTag,{value:"Module"})),u=new Set,g=new MutationObserver(y),m=new Map;let v,w=document.documentElement.dir||"ltr",b=document.documentElement.lang||navigator.language;function f(...t){t.map((t=>{const e=t.$code.toLowerCase();m.has(e)?m.set(e,Object.assign(Object.assign({},m.get(e)),t)):m.set(e,t),v||(v=t)})),y()}function y(){w=document.documentElement.dir||"ltr",b=document.documentElement.lang||navigator.language,[...u.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(){u.add(this.host)}hostDisconnected(){u.delete(this.host)}dir(){return`${this.host.dir||w}`.toLowerCase()}lang(){return`${this.host.lang||b}`.toLowerCase()}getTranslationData(t){var e,r;const o=new Intl.Locale(t.replace(/_/g,"-")),a=null==o?void 0:o.language.toLowerCase(),i=null!==(r=null===(e=null==o?void 0:o.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==r?r:"";return{locale:o,language:a,region:i,primary:m.get(`${a}-${i}`),secondary:m.get(a)}}exists(t,e){var r;const{primary:o,secondary:a}=this.getTranslationData(null!==(r=e.lang)&&void 0!==r?r:this.lang());return e=Object.assign({includeFallback:!1},e),!!(o&&o[t]||a&&a[t]||e.includeFallback&&v&&v[t])}term(t,...e){const{primary:r,secondary:o}=this.getTranslationData(this.lang());let a;if(r&&r[t])a=r[t];else if(o&&o[t])a=o[t];else{if(!v||!v[t])return console.error(`No translation found for: ${String(t)}`),String(t);a=v[t]}return"function"==typeof a?a(...e):a}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,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(t,e)}};f({$code:"de",$name:"Deutsch",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio-Player",carousel:"Karussell",clearEntry:"Eingabe löschen",close:"Schließen",copy:"Kopieren",numOptionsSelected:t=>0===t?"":`Optionen ausgewählt (${t})`,currentValue:"Aktueller Wert",goToSlide:(t,e)=>`Zu Folie ${t} von ${e} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",mute:"Stummschalten",nextSlide:"Nächste Folie",pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",previousSlide:"Vorherige Folie",progress:"Fortschritt",remove:"Entfernen",resize:"Größe ändern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm auswählen",selectDefaultPlaceholder:"Bitte auswählen",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(t,e)=>`Folie ${t} von ${e}`,toggleColorFormat:"Farbformat umschalten",unmute:"Unmute"}),f({$code:"en",$name:"English",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio Player",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,carousel:"Carousel",currentValue:"Current value",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",mute:"Mute",nextSlide:"Next slide",pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format",unmute:"Unmute"});class k extends x{constructor(t){super(t),this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver((()=>this.setCustomLocalizationFromData())).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){const t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(t){console.error("Error parsing custom-localization attribute:",t)}}term(t,...e){const r=this.instanceTranslations&&this.instanceTranslations[t];return r?"function"==typeof r?r(...e):r:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations={...this.instanceTranslations,...t}}}const $=Math.min,_=Math.max,A=Math.round,S=Math.floor,E=t=>({x:t,y:t}),C={left:"right",right:"left",bottom:"top",top:"bottom"},z={start:"end",end:"start"};function P(t,e,r){return _(t,$(e,r))}function M(t,e){return"function"==typeof t?t(e):t}function j(t){return t.split("-")[0]}function T(t){return t.split("-")[1]}function L(t){return"x"===t?"y":"x"}function O(t){return"y"===t?"height":"width"}function R(t){return["top","bottom"].includes(j(t))?"y":"x"}function H(t){return L(R(t))}function Z(t){return t.replace(/start|end/g,(t=>z[t]))}function N(t){return t.replace(/left|right|bottom|top/g,(t=>C[t]))}function B(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 U(t){const{x:e,y:r,width:o,height:a}=t;return{width:o,height:a,top:r,left:e,right:e+o,bottom:r+a,x:e,y:r}}function F(t,e,r){let{reference:o,floating:a}=t;const i=R(e),n=H(e),s=O(n),l=j(e),c="y"===i,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,h=o[s]/2-a[s]/2;let u;switch(l){case"top":u={x:d,y:o.y-a.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:p};break;case"left":u={x:o.x-a.width,y:p};break;default:u={x:o.x,y:o.y}}switch(T(e)){case"start":u[n]-=h*(r&&c?-1:1);break;case"end":u[n]+=h*(r&&c?-1:1)}return u}async function D(t,e){var r;void 0===e&&(e={});const{x:o,y:a,platform:i,rects:n,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:u=0}=M(e,t),g=B(u),m=s[h?"floating"===p?"reference":"floating":p],v=U(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),w="floating"===p?{x:o,y:a,width:n.floating.width,height:n.floating.height}:n.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),f=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=U(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:l}):w);return{top:(v.top-y.top+g.top)/f.y,bottom:(y.bottom-v.bottom+g.bottom)/f.y,left:(v.left-y.left+g.left)/f.x,right:(y.right-v.right+g.right)/f.x}}function V(t){return Y(t)?(t.nodeName||"").toLowerCase():"#document"}function q(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function I(t){var e;return null==(e=(Y(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Y(t){return t instanceof Node||t instanceof q(t).Node}function W(t){return t instanceof Element||t instanceof q(t).Element}function X(t){return t instanceof HTMLElement||t instanceof q(t).HTMLElement}function K(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof q(t).ShadowRoot)}function G(t){const{overflow:e,overflowX:r,overflowY:o,display:a}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(a)}function J(t){return["table","td","th"].includes(V(t))}function Q(t){const e=tt(),r=rt(t);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!e&&!!r.backdropFilter&&"none"!==r.backdropFilter||!e&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((t=>(r.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(r.contain||"").includes(t)))}function tt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(V(t))}function rt(t){return q(t).getComputedStyle(t)}function ot(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function at(t){if("html"===V(t))return t;const e=t.assignedSlot||t.parentNode||K(t)&&t.host||I(t);return K(e)?e.host:e}function it(t){const e=at(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:X(e)&&G(e)?e:it(e)}function nt(t,e,r){var o;void 0===e&&(e=[]),void 0===r&&(r=!0);const a=it(t),i=a===(null==(o=t.ownerDocument)?void 0:o.body),n=q(a);return i?e.concat(n,n.visualViewport||[],G(a)?a:[],n.frameElement&&r?nt(n.frameElement):[]):e.concat(a,nt(a,[],r))}function st(t){const e=rt(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=X(t),i=a?t.offsetWidth:r,n=a?t.offsetHeight:o,s=A(r)!==i||A(o)!==n;return s&&(r=i,o=n),{width:r,height:o,$:s}}function lt(t){return W(t)?t:t.contextElement}function ct(t){const e=lt(t);if(!X(e))return E(1);const r=e.getBoundingClientRect(),{width:o,height:a,$:i}=st(e);let n=(i?A(r.width):r.width)/o,s=(i?A(r.height):r.height)/a;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}const dt=E(0);function pt(t){const e=q(t);return tt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:dt}function ht(t,e,r,o){void 0===e&&(e=!1),void 0===r&&(r=!1);const a=t.getBoundingClientRect(),i=lt(t);let n=E(1);e&&(o?W(o)&&(n=ct(o)):n=ct(t));const s=function(t,e,r){return void 0===e&&(e=!1),!(!r||e&&r!==q(t))&&e}(i,r,o)?pt(i):E(0);let l=(a.left+s.x)/n.x,c=(a.top+s.y)/n.y,d=a.width/n.x,p=a.height/n.y;if(i){const t=q(i),e=o&&W(o)?q(o):o;let r=t,a=r.frameElement;for(;a&&o&&e!==r;){const t=ct(a),e=a.getBoundingClientRect(),o=rt(a),i=e.left+(a.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(a.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=i,c+=n,r=q(a),a=r.frameElement}}return U({width:d,height:p,x:l,y:c})}const ut=[":popover-open",":modal"];function gt(t){return ut.some((e=>{try{return t.matches(e)}catch{return!1}}))}function mt(t){return ht(I(t)).left+ot(t).scrollLeft}function vt(t,e,r){let o;if("viewport"===e)o=function(t,e){const r=q(t),o=I(t),a=r.visualViewport;let i=o.clientWidth,n=o.clientHeight,s=0,l=0;if(a){i=a.width,n=a.height;const t=tt();(!t||t&&"fixed"===e)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:n,x:s,y:l}}(t,r);else if("document"===e)o=function(t){const e=I(t),r=ot(t),o=t.ownerDocument.body,a=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let n=-r.scrollLeft+mt(t);const s=-r.scrollTop;return"rtl"===rt(o).direction&&(n+=_(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:n,y:s}}(I(t));else if(W(e))o=function(t,e){const r=ht(t,!0,"fixed"===e),o=r.top+t.clientTop,a=r.left+t.clientLeft,i=X(t)?ct(t):E(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:a*i.x,y:o*i.y}}(e,r);else{const r=pt(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return U(o)}function wt(t,e){const r=at(t);return!(r===e||!W(r)||et(r))&&("fixed"===rt(r).position||wt(r,e))}function bt(t,e){const r=e.get(t);if(r)return r;let o=nt(t,[],!1).filter((t=>W(t)&&"body"!==V(t))),a=null;const i="fixed"===rt(t).position;let n=i?at(t):t;for(;W(n)&&!et(n);){const e=rt(n),r=Q(n);!r&&"fixed"===e.position&&(a=null),(i?!r&&!a:!r&&"static"===e.position&&a&&["absolute","fixed"].includes(a.position)||G(n)&&!r&&wt(t,n))?o=o.filter((t=>t!==n)):a=e,n=at(n)}return e.set(t,o),o}function ft(t,e,r){const o=X(e),a=I(e),i="fixed"===r,n=ht(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=E(0);if(o||!o&&!i)if(("body"!==V(e)||G(a))&&(s=ot(e)),o){const t=ht(e,!0,i,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else a&&(l.x=mt(a));return{x:n.left+s.scrollLeft-l.x,y:n.top+s.scrollTop-l.y,width:n.width,height:n.height}}function yt(t){return"static"===rt(t).position}function xt(t,e){return X(t)&&"fixed"!==rt(t).position?e?e(t):t.offsetParent:null}function kt(t,e){const r=q(t);if(gt(t))return r;if(!X(t)){let e=at(t);for(;e&&!et(e);){if(W(e)&&!yt(e))return e;e=at(e)}return r}let o=xt(t,e);for(;o&&J(o)&&yt(o);)o=xt(o,e);return o&&et(o)&&yt(o)&&!Q(o)?r:o||function(t){let e=at(t);for(;X(e)&&!et(e);){if(Q(e))return e;e=at(e)}return null}(t)||r}const $t={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:r,offsetParent:o,strategy:a}=t;const i="fixed"===a,n=I(o),s=!!e&&gt(e.floating);if(o===n||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=E(1);const d=E(0),p=X(o);if((p||!p&&!i)&&(("body"!==V(o)||G(n))&&(l=ot(o)),X(o))){const t=ht(o);c=ct(o),d.x=t.x+o.clientLeft,d.y=t.y+o.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x,y:r.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:I,getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t;const i=[..."clippingAncestors"===r?gt(e)?[]:bt(e,this._c):[].concat(r),o],n=i[0],s=i.reduce(((t,r)=>{const o=vt(e,r,a);return t.top=_(o.top,t.top),t.right=$(o.right,t.right),t.bottom=$(o.bottom,t.bottom),t.left=_(o.left,t.left),t}),vt(e,n,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:kt,getElementRects:async function(t){const e=this.getOffsetParent||kt,r=this.getDimensions,o=await r(t.floating);return{reference:ft(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:r}=st(t);return{width:e,height:r}},getScale:ct,isElement:W,isRTL:function(t){return"rtl"===rt(t).direction}};const _t=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:a,y:i,placement:n,middlewareData:s}=e,l=await async function(t,e){const{placement:r,platform:o,elements:a}=t,i=await(null==o.isRTL?void 0:o.isRTL(a.floating)),n=j(r),s=T(r),l="y"===R(r),c=["left","top"].includes(n)?-1:1,d=i&&l?-1:1,p=M(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&"number"==typeof g&&(u="end"===s?-1*g:g),l?{x:u*d,y:h*c}:{x:h*c,y:u*d}}(e,t);return n===(null==(r=s.offset)?void 0:r.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:n}}}}},At=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:a,elements:i}=e,{apply:n=(()=>{}),...s}=M(t,e),l=await D(e,s),c=j(r),d=T(r),p="y"===R(r),{width:h,height:u}=o.floating;let g,m;"top"===c||"bottom"===c?(g=c,m=d===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,g="end"===d?"top":"bottom");const v=u-l.top-l.bottom,w=h-l.left-l.right,b=$(u-l[g],v),f=$(h-l[m],w),y=!e.middlewareData.shift;let x=b,k=f;if(p?k=d||y?$(f,w):w:x=d||y?$(b,v):v,y&&!d){const t=_(l.left,0),e=_(l.right,0),r=_(l.top,0),o=_(l.bottom,0);p?k=h-2*(0!==t||0!==e?t+e:_(l.left,l.right)):x=u-2*(0!==r||0!==o?r+o:_(l.top,l.bottom))}await n({...e,availableWidth:k,availableHeight:x});const A=await a.getDimensions(i.floating);return h!==A.width||u!==A.height?{reset:{rects:!0}}:{}}}},St=globalThis,Et=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ct=Symbol(),zt=new WeakMap;
1
+ const t={name:"default",resolver:t=>{const e=t.split("/");return("content"===e[0]||"system"===e[0])&&(t="union-investment/"+t),`https://celum-icons.fe.union-investment.de/${t}.svg`},mutator:t=>{const e={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return e.currentColorFills=t.querySelectorAll('[fill="#00358e" i]'),e.currentColorStrokes=t.querySelectorAll('[stroke="#00358e" i]'),e.greenFills=t.querySelectorAll('[fill="#2d9d00" i]'),e.greenStrokes=t.querySelectorAll('[stroke="#2d9d00" i]'),e.currentColorFills.forEach((t=>{t.setAttribute("fill","currentColor")})),e.currentColorStrokes.forEach((t=>{t.setAttribute("stroke","currentColor")})),e.greenFills.forEach((t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),e.greenStrokes.forEach((t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")})),t}},e=Object.freeze(Object.defineProperty({__proto__:null,default:t},Symbol.toStringTag,{value:"Module"})),r={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>',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-check":'\n <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 12 13">\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>',"magnifying-glass":'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M21.707 20.293l-6.967-6.96c-0.046-0.046-0.096-0.087-0.15-0.124l-0.004-0.002c0.882-1.162 1.413-2.632 1.413-4.227 0-3.881-3.146-7.027-7.027-7.027s-7.027 3.146-7.027 7.027c0 3.881 3.146 7.027 7.027 7.027 1.594 0 3.065-0.531 4.244-1.426l-0.017 0.013c0.039 0.057 0.081 0.107 0.127 0.153l6.967 6.967c0.181 0.181 0.431 0.292 0.707 0.292s0.526-0.112 0.707-0.292v0c0.183-0.181 0.296-0.432 0.296-0.71s-0.113-0.529-0.296-0.71l-0-0zM9 14c-2.761 0-5-2.239-5-5s2.239-5 5-5c2.761 0 5 2.239 5 5v0c0 2.761-2.239 5-5 5v0z"></path></svg>',transcript:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <path d="M19 22H5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h9a1 1 0 0 1 .707.293l5 5c.186.187.293.444.293.707v13a1 1 0 0 1-1 1ZM6 20h12V8.413L13.587 4H6v16Z"/> <path d="M19 10h-6a1 1 0 0 1-1-1V3a1 1 0 1 1 2 0v5h5a1 1 0 1 1 0 2Zm-3 4H8a1 1 0 1 1 0-2h8a1 1 0 1 1 0 2Zm-2 4H8a1 1 0 1 1 0-2h6a1 1 0 1 1 0 2Z"/></svg>',mute:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm12.374-8.96a1 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.414L18.747 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/></svg>',volume:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">\n <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm9.217-13.48a1 1 0 0 0-.44 1.339l-.003-.006c1.177 2.191 1.876 4.792 1.893 7.555V12a16.365 16.365 0 0 1-1.936 7.638l.043-.088a1.002 1.002 0 0 0 .438 1.331l.006.003c.13.071.285.114.449.117h.001a.999.999 0 0 0 .89-.544l.003-.006c1.312-2.45 2.09-5.357 2.107-8.445v-.005c-.017-3.093-.794-6-2.155-8.549l.048.099a1.001 1.001 0 0 0-1.349-.44l.006-.003-.001-.001Z"/><path d="M14.447 5.167a1 1 0 0 0-.278 1.39l-.002-.004C15.35 8.333 16 10.266 16 12s-.667 3.667-1.833 5.447a1 1 0 0 0 1.664 1.11l.002-.004C17.23 16.45 18 14.12 18 12s-.77-4.45-2.167-6.553a1 1 0 0 0-1.39-.278l.004-.002Z"/></svg>'},o={name:"system",resolver:t=>t in r?`data:image/svg+xml,${encodeURIComponent(r[t])}`:"",mutator:t=>t.setAttribute("fill","currentColor")},a=Object.freeze(Object.defineProperty({__proto__:null,default:o,icons:r},Symbol.toStringTag,{value:"Module"}));let i=[o,t],n=[];function s(t){n.push(t)}function l(t){n=n.filter((e=>e!==t))}function c(t){return i.find((e=>e.name===t))}function d(t,e){p(t),i.push({name:t,resolver:e.resolver,mutator:e.mutator}),n.forEach((e=>{e.library===t&&e.setIcon()}))}function p(t){i=i.filter((e=>e.name!==t))}const h=Object.freeze(Object.defineProperty({__proto__:null,getIconLibrary:c,registerIconLibrary:d,unregisterIconLibrary:p,unwatchIcon:l,watchIcon:s},Symbol.toStringTag,{value:"Module"})),u=new Set,g=new MutationObserver(y),m=new Map;let v,w=document.documentElement.dir||"ltr",b=document.documentElement.lang||navigator.language;function f(...t){t.map((t=>{const e=t.$code.toLowerCase();m.has(e)?m.set(e,Object.assign(Object.assign({},m.get(e)),t)):m.set(e,t),v||(v=t)})),y()}function y(){w=document.documentElement.dir||"ltr",b=document.documentElement.lang||navigator.language,[...u.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(){u.add(this.host)}hostDisconnected(){u.delete(this.host)}dir(){return`${this.host.dir||w}`.toLowerCase()}lang(){return`${this.host.lang||b}`.toLowerCase()}getTranslationData(t){var e,r;const o=new Intl.Locale(t.replace(/_/g,"-")),a=null==o?void 0:o.language.toLowerCase(),i=null!==(r=null===(e=null==o?void 0:o.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==r?r:"";return{locale:o,language:a,region:i,primary:m.get(`${a}-${i}`),secondary:m.get(a)}}exists(t,e){var r;const{primary:o,secondary:a}=this.getTranslationData(null!==(r=e.lang)&&void 0!==r?r:this.lang());return e=Object.assign({includeFallback:!1},e),!!(o&&o[t]||a&&a[t]||e.includeFallback&&v&&v[t])}term(t,...e){const{primary:r,secondary:o}=this.getTranslationData(this.lang());let a;if(r&&r[t])a=r[t];else if(o&&o[t])a=o[t];else{if(!v||!v[t])return console.error(`No translation found for: ${String(t)}`),String(t);a=v[t]}return"function"==typeof a?a(...e):a}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,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(t,e)}};f({$code:"de",$name:"Deutsch",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio-Player",carousel:"Karussell",clearEntry:"Eingabe löschen",close:"Schließen",copy:"Kopieren",numOptionsSelected:t=>0===t?"":`Optionen ausgewählt (${t})`,currentValue:"Aktueller Wert",goToSlide:(t,e)=>`Zu Folie ${t} von ${e} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",mute:"Stummschalten",nextSlide:"Nächste Folie",pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",previousSlide:"Vorherige Folie",progress:"Fortschritt",remove:"Entfernen",removed:t=>`${t} entfernt`,resize:"Größe ändern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm auswählen",selectDefaultPlaceholder:"Bitte auswählen",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(t,e)=>`Folie ${t} von ${e}`,toggleColorFormat:"Farbformat umschalten",unmute:"Unmute"}),f({$code:"en",$name:"English",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio Player",clearEntry:"Clear entry",close:"Close",copy:"Copy",numOptionsSelected:t=>0===t?"":`Options Selected (${t})`,carousel:"Carousel",currentValue:"Current value",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",mute:"Mute",nextSlide:"Next slide",pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",removed:t=>`${t} removed`,resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format",unmute:"Unmute"});class k extends x{constructor(t){super(t),this._instanceTranslations=null}get instanceTranslations(){return this._instanceTranslations}set instanceTranslations(t){this._instanceTranslations=t,this.host.requestUpdate()}hostConnected(){super.hostConnected(),this.setCustomLocalizationFromData(),new MutationObserver((()=>this.setCustomLocalizationFromData())).observe(this.host,{attributes:!0,attributeFilter:["data-custom-localization"]})}hostDisconnected(){super.hostDisconnected()}setCustomLocalizationFromData(){const t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(t){console.error("Error parsing custom-localization attribute:",t)}}term(t,...e){const r=this.instanceTranslations&&this.instanceTranslations[t];return r?"function"==typeof r?r(...e):r:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations={...this.instanceTranslations,...t}}}const $=Math.min,_=Math.max,A=Math.round,S=Math.floor,E=t=>({x:t,y:t}),C={left:"right",right:"left",bottom:"top",top:"bottom"},z={start:"end",end:"start"};function P(t,e,r){return _(t,$(e,r))}function M(t,e){return"function"==typeof t?t(e):t}function j(t){return t.split("-")[0]}function T(t){return t.split("-")[1]}function L(t){return"x"===t?"y":"x"}function O(t){return"y"===t?"height":"width"}function R(t){return["top","bottom"].includes(j(t))?"y":"x"}function H(t){return L(R(t))}function Z(t){return t.replace(/start|end/g,(t=>z[t]))}function N(t){return t.replace(/left|right|bottom|top/g,(t=>C[t]))}function B(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 U(t){const{x:e,y:r,width:o,height:a}=t;return{width:o,height:a,top:r,left:e,right:e+o,bottom:r+a,x:e,y:r}}function F(t,e,r){let{reference:o,floating:a}=t;const i=R(e),n=H(e),s=O(n),l=j(e),c="y"===i,d=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,h=o[s]/2-a[s]/2;let u;switch(l){case"top":u={x:d,y:o.y-a.height};break;case"bottom":u={x:d,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:p};break;case"left":u={x:o.x-a.width,y:p};break;default:u={x:o.x,y:o.y}}switch(T(e)){case"start":u[n]-=h*(r&&c?-1:1);break;case"end":u[n]+=h*(r&&c?-1:1)}return u}async function D(t,e){var r;void 0===e&&(e={});const{x:o,y:a,platform:i,rects:n,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:u=0}=M(e,t),g=B(u),m=s[h?"floating"===p?"reference":"floating":p],v=U(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),w="floating"===p?{x:o,y:a,width:n.floating.width,height:n.floating.height}:n.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),f=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=U(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:b,strategy:l}):w);return{top:(v.top-y.top+g.top)/f.y,bottom:(y.bottom-v.bottom+g.bottom)/f.y,left:(v.left-y.left+g.left)/f.x,right:(y.right-v.right+g.right)/f.x}}function V(t){return Y(t)?(t.nodeName||"").toLowerCase():"#document"}function q(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function I(t){var e;return null==(e=(Y(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Y(t){return t instanceof Node||t instanceof q(t).Node}function W(t){return t instanceof Element||t instanceof q(t).Element}function X(t){return t instanceof HTMLElement||t instanceof q(t).HTMLElement}function K(t){return!(typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof q(t).ShadowRoot)}function G(t){const{overflow:e,overflowX:r,overflowY:o,display:a}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(a)}function J(t){return["table","td","th"].includes(V(t))}function Q(t){const e=tt(),r=rt(t);return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!e&&!!r.backdropFilter&&"none"!==r.backdropFilter||!e&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((t=>(r.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(r.contain||"").includes(t)))}function tt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(V(t))}function rt(t){return q(t).getComputedStyle(t)}function ot(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function at(t){if("html"===V(t))return t;const e=t.assignedSlot||t.parentNode||K(t)&&t.host||I(t);return K(e)?e.host:e}function it(t){const e=at(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:X(e)&&G(e)?e:it(e)}function nt(t,e,r){var o;void 0===e&&(e=[]),void 0===r&&(r=!0);const a=it(t),i=a===(null==(o=t.ownerDocument)?void 0:o.body),n=q(a);return i?e.concat(n,n.visualViewport||[],G(a)?a:[],n.frameElement&&r?nt(n.frameElement):[]):e.concat(a,nt(a,[],r))}function st(t){const e=rt(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=X(t),i=a?t.offsetWidth:r,n=a?t.offsetHeight:o,s=A(r)!==i||A(o)!==n;return s&&(r=i,o=n),{width:r,height:o,$:s}}function lt(t){return W(t)?t:t.contextElement}function ct(t){const e=lt(t);if(!X(e))return E(1);const r=e.getBoundingClientRect(),{width:o,height:a,$:i}=st(e);let n=(i?A(r.width):r.width)/o,s=(i?A(r.height):r.height)/a;return(!n||!Number.isFinite(n))&&(n=1),(!s||!Number.isFinite(s))&&(s=1),{x:n,y:s}}const dt=E(0);function pt(t){const e=q(t);return tt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:dt}function ht(t,e,r,o){void 0===e&&(e=!1),void 0===r&&(r=!1);const a=t.getBoundingClientRect(),i=lt(t);let n=E(1);e&&(o?W(o)&&(n=ct(o)):n=ct(t));const s=function(t,e,r){return void 0===e&&(e=!1),!(!r||e&&r!==q(t))&&e}(i,r,o)?pt(i):E(0);let l=(a.left+s.x)/n.x,c=(a.top+s.y)/n.y,d=a.width/n.x,p=a.height/n.y;if(i){const t=q(i),e=o&&W(o)?q(o):o;let r=t,a=r.frameElement;for(;a&&o&&e!==r;){const t=ct(a),e=a.getBoundingClientRect(),o=rt(a),i=e.left+(a.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(a.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=i,c+=n,r=q(a),a=r.frameElement}}return U({width:d,height:p,x:l,y:c})}const ut=[":popover-open",":modal"];function gt(t){return ut.some((e=>{try{return t.matches(e)}catch{return!1}}))}function mt(t){return ht(I(t)).left+ot(t).scrollLeft}function vt(t,e,r){let o;if("viewport"===e)o=function(t,e){const r=q(t),o=I(t),a=r.visualViewport;let i=o.clientWidth,n=o.clientHeight,s=0,l=0;if(a){i=a.width,n=a.height;const t=tt();(!t||t&&"fixed"===e)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:n,x:s,y:l}}(t,r);else if("document"===e)o=function(t){const e=I(t),r=ot(t),o=t.ownerDocument.body,a=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let n=-r.scrollLeft+mt(t);const s=-r.scrollTop;return"rtl"===rt(o).direction&&(n+=_(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:n,y:s}}(I(t));else if(W(e))o=function(t,e){const r=ht(t,!0,"fixed"===e),o=r.top+t.clientTop,a=r.left+t.clientLeft,i=X(t)?ct(t):E(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:a*i.x,y:o*i.y}}(e,r);else{const r=pt(t);o={...e,x:e.x-r.x,y:e.y-r.y}}return U(o)}function wt(t,e){const r=at(t);return!(r===e||!W(r)||et(r))&&("fixed"===rt(r).position||wt(r,e))}function bt(t,e){const r=e.get(t);if(r)return r;let o=nt(t,[],!1).filter((t=>W(t)&&"body"!==V(t))),a=null;const i="fixed"===rt(t).position;let n=i?at(t):t;for(;W(n)&&!et(n);){const e=rt(n),r=Q(n);!r&&"fixed"===e.position&&(a=null),(i?!r&&!a:!r&&"static"===e.position&&a&&["absolute","fixed"].includes(a.position)||G(n)&&!r&&wt(t,n))?o=o.filter((t=>t!==n)):a=e,n=at(n)}return e.set(t,o),o}function ft(t,e,r){const o=X(e),a=I(e),i="fixed"===r,n=ht(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=E(0);if(o||!o&&!i)if(("body"!==V(e)||G(a))&&(s=ot(e)),o){const t=ht(e,!0,i,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else a&&(l.x=mt(a));return{x:n.left+s.scrollLeft-l.x,y:n.top+s.scrollTop-l.y,width:n.width,height:n.height}}function yt(t){return"static"===rt(t).position}function xt(t,e){return X(t)&&"fixed"!==rt(t).position?e?e(t):t.offsetParent:null}function kt(t,e){const r=q(t);if(gt(t))return r;if(!X(t)){let e=at(t);for(;e&&!et(e);){if(W(e)&&!yt(e))return e;e=at(e)}return r}let o=xt(t,e);for(;o&&J(o)&&yt(o);)o=xt(o,e);return o&&et(o)&&yt(o)&&!Q(o)?r:o||function(t){let e=at(t);for(;X(e)&&!et(e);){if(Q(e))return e;e=at(e)}return null}(t)||r}const $t={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:r,offsetParent:o,strategy:a}=t;const i="fixed"===a,n=I(o),s=!!e&&gt(e.floating);if(o===n||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=E(1);const d=E(0),p=X(o);if((p||!p&&!i)&&(("body"!==V(o)||G(n))&&(l=ot(o)),X(o))){const t=ht(o);c=ct(o),d.x=t.x+o.clientLeft,d.y=t.y+o.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x,y:r.y*c.y-l.scrollTop*c.y+d.y}},getDocumentElement:I,getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:o,strategy:a}=t;const i=[..."clippingAncestors"===r?gt(e)?[]:bt(e,this._c):[].concat(r),o],n=i[0],s=i.reduce(((t,r)=>{const o=vt(e,r,a);return t.top=_(o.top,t.top),t.right=$(o.right,t.right),t.bottom=$(o.bottom,t.bottom),t.left=_(o.left,t.left),t}),vt(e,n,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:kt,getElementRects:async function(t){const e=this.getOffsetParent||kt,r=this.getDimensions,o=await r(t.floating);return{reference:ft(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:r}=st(t);return{width:e,height:r}},getScale:ct,isElement:W,isRTL:function(t){return"rtl"===rt(t).direction}};const _t=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:a,y:i,placement:n,middlewareData:s}=e,l=await async function(t,e){const{placement:r,platform:o,elements:a}=t,i=await(null==o.isRTL?void 0:o.isRTL(a.floating)),n=j(r),s=T(r),l="y"===R(r),c=["left","top"].includes(n)?-1:1,d=i&&l?-1:1,p=M(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&"number"==typeof g&&(u="end"===s?-1*g:g),l?{x:u*d,y:h*c}:{x:h*c,y:u*d}}(e,t);return n===(null==(r=s.offset)?void 0:r.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:n}}}}},At=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:a,elements:i}=e,{apply:n=(()=>{}),...s}=M(t,e),l=await D(e,s),c=j(r),d=T(r),p="y"===R(r),{width:h,height:u}=o.floating;let g,m;"top"===c||"bottom"===c?(g=c,m=d===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,g="end"===d?"top":"bottom");const v=u-l.top-l.bottom,w=h-l.left-l.right,b=$(u-l[g],v),f=$(h-l[m],w),y=!e.middlewareData.shift;let x=b,k=f;if(p?k=d||y?$(f,w):w:x=d||y?$(b,v):v,y&&!d){const t=_(l.left,0),e=_(l.right,0),r=_(l.top,0),o=_(l.bottom,0);p?k=h-2*(0!==t||0!==e?t+e:_(l.left,l.right)):x=u-2*(0!==r||0!==o?r+o:_(l.top,l.bottom))}await n({...e,availableWidth:k,availableHeight:x});const A=await a.getDimensions(i.floating);return h!==A.width||u!==A.height?{reset:{rects:!0}}:{}}}},St=globalThis,Et=St.ShadowRoot&&(void 0===St.ShadyCSS||St.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ct=Symbol(),zt=new WeakMap;
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC